0.4.0 • Published 21 days ago

@comunica/actor-rdf-resolve-hypermedia-links-traverse-prune-shapetrees v0.4.0

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

Comunica Traverse Prune Shapetrees RDF Resolve Hypermedia Links Actor

npm version

An RDF Resolve Hypermedia Links actor that only works if there are shapetrees and traverse entries available in the metadata. In that case, it will prune away all links in traverse that do not match with any of the Shape Trees that are guaranteed to not match with the current query.

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-prune-shapetrees

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-prune-shapetrees/^1.0.0/components/context.jsonld"
  ],
  "actors": [
    ...
    {
      "@id": "urn:comunica:default:rdf-resolve-hypermedia-links/actors#traverse-prune-shapetrees",
      "@type": "ActorRdfResolveHypermediaLinksTraversePruneShapetrees"
      "mediatorRdfResolveHypermediaLinks": { "@id": "urn:comunica:default:rdf-resolve-hypermedia-links/mediators#main" }
    }
  ]
}

Config Parameters