Linked Data Fragments Server - RDFa Datasource
npm install @ldf/datasource-rdfa
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._
@ldf/serverThis package exposes the following config entries:
* RdfaDatasource: A RDFa datasource that requires at least one file field. _Should be used as @type value._
Example:
``json
{
"@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"
}
]
}
`
When this module is used in a package other than @ldf/server,https://linkedsoftwaredependencies.org/contexts/@ldf/datasource-rdfa.jsonld
then the JSON-LD context 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...
}
This code is copyrighted by Ghent University – imec
and released under the MIT license.