@ldf/datasource-n3
v3.2.1
Published
Linked Data Fragments Server - N3 Datasources
Downloads
31
Readme
Linked Data Fragments Server - N3 Datasources
This module contains a N3 datasources for the Linked Data Fragments server. It allows N-Quads, N-Triples, Trig and Turtle files to be loaded.
This package is a Linked Data Fragments Server module.
Usage in @ldf/server
This package exposes the following config entries:
NQuadsDatasource
: An N-Quads datasource that requires at least onefile
field. Should be used as@type
value.NTriplesDatasource
: An N-Triples datasource that requires at least onefile
field. Should be used as@type
value.TrigDatasource
: A Trig datasource that requires at least onefile
field. Should be used as@type
value.TurtleDatasource
: A Turtle datasource that requires at least onefile
field. Should be used as@type
value.N3Datasource
: An N3 datasource that requires at least onefile
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:myTurtleDatasource",
"@type": "TurtleDatasource",
"datasourceTitle": "My Turtle file",
"description": "My dataset with a Turtle back-end",
"datasourcePath": "myttl",
"file": "path/to/file.ttl"
}
]
}
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-n3.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-n3/^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.