@comunica/actor-rdf-resolve-hypermedia-links-traverse-replace-conditional
v0.6.0
Published
A traverse-replace-conditional rdf-resolve-hypermedia-links actor
Downloads
158
Readme
Comunica Traverse Filter Conditional RDF Resolve Hypermedia Links Actor
An RDF Resolve Hypermedia Links
actor that iterates over all links in traverse
,
and for each link that is also defined in traverseConditional
,
that link in traverse
is replaced.
This allows other actors to define a conditional link in traverseConditional
with a specific context,
which is only followed (and specific context applied) if another actor defines this link.
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-resolve-hypermedia-links-traverse-replace-conditional
Configure
After installing, this package can be added to your engine's configuration as follows:
{
"@context": [
...
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-rdf-resolve-hypermedia-links-traverse-replace-conditional/^1.0.0/components/context.jsonld"
],
"actors": [
...
{
"@id": "config-setsslt:traverse-content-policies-conditional.json#myActorRdfResolveHypermediaLinksTraverseReplaceConditional",
"@type": "ActorRdfResolveHypermediaLinksTraverseReplaceConditional",
"mediatorRdfResolveHypermediaLinks": { "@id": "config-sets:resolve-hypermedia.json#mediatorRdfResolveHypermediaLinks" }
}
]
}
Config Parameters
mediatorRdfResolveHypermediaLinks
: A mediator over the RDF Resolve Hypermedia Links bus.