@ldf/datasource-sparql
v3.2.1
Published
Linked Data Fragments Server - SPARQL Datasource
Downloads
29
Readme
Linked Data Fragments Server - SPARQL Datasource
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 onesparqlEndpoint
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 aSparqlDatasource
.
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.