@ldf/datasource-hdt
v3.2.1
Published
Linked Data Fragments Server - HDT Datasource
Downloads
30
Readme
Linked Data Fragments Server - HDT Datasource
This module contains a HDT datasource for the Linked Data Fragments server. It allows HDT files to be loaded.
This package is a Linked Data Fragments Server module.
Usage in @ldf/server
This package exposes the following config entries:
HdtDatasource
: An HDT datasource that requires at least onehdtFile
field. Should be used as@type
value.hdtFile
: Refers to an absolute or relative file location of an HDT file. Should be used as key in aHdtDatasource
.hdtExternal
: An optional flag that can be set totrue
, which will make HDT queries go via an external process. Should be used as key in aHdtDatasource
.
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:myHdtDatasource",
"@type": "HdtDatasource",
"datasourceTitle": "My HDT file",
"description": "My dataset with an HDT back-end",
"datasourcePath": "myhdt",
"hdtFile": "path/to/file.hdt"
}
]
}
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-hdt.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-hdt/^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.