@comunica/actor-rdf-metadata-extract-shapetrees
TypeScript icon, indicating that this package has built-in type declarations

0.6.1 • Public • Published

Comunica Shapetrees RDF Metadata Extract Actor

npm version

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 of applicable and nonApplicable 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 to urn:comunica:default:init/actors#query.
  • mediatorDereferenceRdf: A mediator over the Dereference RDF bus.
  • mediatorHttp: A mediator over the HTTP bus.

Package Sidebar

Install

npm i @comunica/actor-rdf-metadata-extract-shapetrees

Weekly Downloads

1

Version

0.6.1

License

MIT

Unpacked Size

56.7 kB

Total Files

15

Last publish

Collaborators

  • jeswr
  • joachimvh
  • rubensworks
  • rubenverborgh
  • dexagod