0.4.0 • Published 21 days ago

@comunica/actor-extract-links-headers v0.4.0

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

Comunica Headers Extract Links Actor

npm version

An RDF Metadata Extract actor that collects all links headers 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-headers

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-headers/^1.0.0/components/context.jsonld"
  ],
  "actors": [
    ...
    {
      "@id": "urn:comunica:default:extract-links/actors#headers",
      "@type": "ActorExtractLinksHeaders"
      "headersRegexes": [
        "rel=\"describedby\""
      ]
    }
  ]
}

Config Parameters

  • headersRegexes: An array of regular expressions that will be matched with incoming link headers.