README
Comunica File RDF Dereference Actor
An RDF Dereference actor that
resolves an URL to a local file (optionally starting with file://
)
and parses it using the RDF parse bus.
This module is part of the Comunica framework, and should only be used by developers that want to build their own query engine.
Click here if you just want to query with Comunica.
Install
$ yarn add @comunica/actor-rdf-dereference-file
Configure
After installing, this package can be added to your engine's configuration as follows:
{
"@context": [
...
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-rdf-dereference-http-parse/^1.0.0/components/context.jsonld"
],
"actors": [
...
{
"@id": "config-sets:rdf-dereference.json#myRdfFileDereferencer",
"@type": "ActorRdfDereferenceFile",
"cardf:mediatorRdfParse": {
"@id": "config-sets:rdf-dereference.json#mediatorRdfParse",
"@type": "MediatorRace",
"cc:Mediator/bus": { "@id": "cbrp:Bus/RdfParse" }
}
}
]
}
Config Parameters
cardf:mediatorRdfParse
: A mediator over the RDF Parse bus for actual parsing.