@comunica/actor-extract-links-predicates
TypeScript icon, indicating that this package has built-in type declarations

0.5.0 • Public • Published

Comunica Predicates Extract Links Actor

npm version

An RDF Metadata Extract actor that collects all object links for subjects that (optionally) match the current document and predicates that match with any of the configured regular expressions.

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-extract-links-predicates

Configure

After installing, this package can be added to your engine's configuration as follows:

{
  "@context": [
    ...
    "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-extract-links-predicates/^1.0.0/components/context.jsonld"
  ],
  "actors": [
    ...
    {
      "@id": "urn:comunica:default:extract-links/actors#predicates",
      "@type": "ActorExtractLinksTraversePredicates"
      "checkSubject": true,
      "predicateRegexes": [
        "http://www.w3.org/ns/ldp#contains"
      ]
    }
  ]
}

Config Parameters

  • checkSubject: If only quads will be considered that have a subject equal to the request URL.
  • predicateRegexes: An array of regular expressions that will be matched with incoming predicates.

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @comunica/actor-extract-links-predicates

    Weekly Downloads

    72

    Version

    0.5.0

    License

    MIT

    Unpacked Size

    35.9 kB

    Total Files

    13

    Last publish

    Collaborators

    • jeswr
    • joachimvh
    • rubensworks
    • rubenverborgh
    • dexagod