This Solid store allows you to generate RDF through the use of RML rules.
First install this repository as a dependency:
$ npm i @rmlio/solid-rml-store
Then add the following lines to your config:
"@context": [
"https://linkedsoftwaredependencies.org/bundles/npm/@rmlio/solid-rml-store/^0.0.0/components/context.jsonld",
{
"solid-rml-store": "urn:solid-rml-store:default"
}
],
"import": [
"files-rsrs:config/default.json"
],
"@graph": [
{
"@id": "solid-rml-store:AnyToRdfConverter",
"AnyToRdfConverter:_rmlRulesPath": [path to the rules file],
"AnyToRdfConverter:_rmlmapperPath": [path to the jar]
},
]
This converter converts an existing representation to its RDF representation,
according to the RML rules defined in a given file (AnyToRdfConverter:_rmlRulesPath
).
The content-type
defined in the representation's metadata is used to know the type of the input data,
thus this cannot be undefined
.
If the RMLMapper (rmlmapper.jar
) is not found at the given location (AnyToRdfConverter:_rmlmapperPath
),
then the latest version is download to that location.
Beware that this jar is approximately 60MB, thus this download can take some time.