@ldf/datasource-jsonld
@ldf/datasource-jsonld
npm i @ldf/datasource-jsonld
@ldf/datasource-jsonld

@ldf/datasource-jsonld

A Triple Pattern Fragments server for Node.js

by LinkedDataFragments

3.2.1 (see all)License:MITTypeScript:Not Found
npm i @ldf/datasource-jsonld
Readme

Linked Data Fragments Server - JSON-LD Datasource

npm version

This module contains a JSON-LD datasource for the Linked Data Fragments server. It allows JSON-LD files to be loaded.

This package is a Linked Data Fragments Server module.

Usage in @ldf/server

This package exposes the following config entries:

  • JsonLdDatasource: A JSON-LD datasource that requires at least one file field. Should be used as @type value.

Example:

{
  "@context": "https://linkedsoftwaredependencies.org/bundles/npm/@ldf/server/^3.0.0/components/context.jsonld",
  "@id": "urn:ldf-server:my",
  "import": "preset-qpf:config-defaults.json",

  "datasources": [
    {
      "@id": "urn:ldf-server:myJsonLdDatasource",
      "@type": "JsonLdDatasource",
      "datasourceTitle": "My JSON-LD file",
      "description": "My dataset with a JSON-LD back-end",
      "datasourcePath": "myjsonld",
      "file": "path/to/file.jsonld"
    }
  ]
}

Usage in other packages

When this module is used in a package other than @ldf/server, then the JSON-LD context https://linkedsoftwaredependencies.org/contexts/@ldf/datasource-jsonld.jsonld must be imported.

For example:

{
  "@context": [
    "https://linkedsoftwaredependencies.org/bundles/npm/@ldf/core/^3.0.0/components/context.jsonld",
    "https://linkedsoftwaredependencies.org/bundles/npm/@ldf/preset-qpf/^3.0.0/components/context.jsonld",
    "https://linkedsoftwaredependencies.org/bundles/npm/@ldf/datasource-jsonld/^3.0.0/components/context.jsonld",
  ],
  // Same as above...
}

License

The Linked Data Fragments server is written by Ruben Verborgh, Miel Vander Sande, Ruben Taelman and colleagues.

This code is copyrighted by Ghent University – imec and released under the MIT license.

Downloads/wk

3

GitHub Stars

160

LAST COMMIT

1yr ago

MAINTAINERS

2

CONTRIBUTORS

24

OPEN ISSUES

35

OPEN PRs

2
VersionTagPublished
3.2.1
latest
2yrs ago
No alternatives found
No tutorials found
Add a tutorial
No dependencies found

Rate & Review

100
No reviews found
Be the first to rate