@comunica/actor-rdf-resolve-hypermedia-links-traverse-replace-conditional
TypeScript icon, indicating that this package has built-in type declarations

0.4.1 • Public • Published

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

Package Sidebar

Install

npm i @comunica/actor-rdf-resolve-hypermedia-links-traverse-replace-conditional

Weekly Downloads

44

Version

0.4.1

License

MIT

Unpacked Size

27.5 kB

Total Files

12

Last publish

Collaborators

  • jeswr
  • joachimvh
  • rubensworks
  • rubenverborgh
  • dexagod