0.4.0 • Published 21 days ago

@comunica/actor-rdf-resolve-hypermedia-links-traverse-replace-conditional v0.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
21 days ago

Comunica Traverse Filter Conditional RDF Resolve Hypermedia Links Actor

npm version

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