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

0.4.1 • Public • Published

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.

Package Sidebar

Install

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

Weekly Downloads

3

Version

0.4.1

License

MIT

Unpacked Size

21.3 kB

Total Files

12

Last publish

Collaborators

  • jeswr
  • joachimvh
  • rubensworks
  • rubenverborgh
  • dexagod