@ldf/datasource-rdfa
v3.3.0
Published
Linked Data Fragments Server - RDFa Datasource
Downloads
7
Readme
Linked Data Fragments Server - RDFa Datasource
This module contains a RDFa datasource for the Linked Data Fragments server. It allows HTML files containing RDFa to be loaded.
This package is a Linked Data Fragments Server module.
Usage in @ldf/server
This package exposes the following config entries:
RdfaDatasource
: A RDFa 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:myRdfaDatasource",
"@type": "RdfaDatasource",
"datasourceTitle": "My RDFa HTML file",
"description": "My dataset with a RDFa back-end",
"datasourcePath": "myrdfa",
"file": "path/to/file.html"
}
]
}
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-rdfa.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-rdfa/^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.