3.2.1 • Published 3 years ago

@ldf/datasource-sparql v3.2.1

Weekly downloads
347
License
MIT
Repository
github
Last release
3 years ago

Linked Data Fragments Server - SPARQL Datasource

npm version

This module contains a SPARQL datasource for the Linked Data Fragments server. It allows SPARQL endpoints to be used as a data proxy.

This package is a Linked Data Fragments Server module.

Usage in @ldf/server

This package exposes the following config entries:

  • SparqlDatasource: A SPARQL-endpoint-based datasource that requires at least one sparqlEndpoint field. Should be used as @type value.
  • sparqlEndpoint: Refers to an absolute or relative file location of an HDT file. Should be used as key in a SparqlDatasource.

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:mySparqlDatasource",
      "@type": "SparqlDatasource",
      "datasourceTitle": "My SPARQL source",
      "description": "My datasource with a SPARQL-endpoint back-end",
      "datasourcePath": "mysparql",
      "sparqlEndpoint": "https://dbpedia.org/sparql"
    }
  ]
}

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-sparql.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-sparql/^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.

3.2.1

3 years ago

3.2.0

3 years ago

3.1.0

4 years ago

3.0.7

4 years ago

3.0.5

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago