@comunica/actor-rdf-metadata-extract-shapetrees
v0.6.1
Published
A shapetrees rdf-metadata-extract actor
Downloads
34
Readme
Comunica Shapetrees RDF Metadata Extract Actor
An RDF Metadata Extract actor that
adds the shapetrees
entry to the metadata object,
which will contain those Shape Trees objects that either match and do not match with the current query.
The applicable and non-applicable are stored in separate arrays.
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-metadata-extract-shapetrees
Metadata entries
This actor adds the following entries to the metadata object.
shapetrees
: An object containing arrays ofapplicable
andnonApplicable
ShapeTree
objects.
Configure
After installing, this package can be added to your engine's configuration as follows:
{
"@context": [
...
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-rdf-metadata-extract-shapetrees/^1.0.0/components/context.jsonld"
],
"actors": [
...
{
"@id": "urn:comunica:default:rdf-metadata-extract/actors#shapetrees",
"@type": "ActorRdfMetadataExtractShapetrees"
"mediatorDereferenceRdf": { "@id": "urn:comunica:default:dereference-rdf/mediators#main" },
"mediatorHttp": { "@id": "urn:comunica:default:http/mediators#main" }
}
]
}
Config Parameters
actorInitQuery
: An instance of ActorInitQuery, defaults tourn:comunica:default:init/actors#query
.mediatorDereferenceRdf
: A mediator over the Dereference RDF bus.mediatorHttp
: A mediator over the HTTP bus.