@comunica/actor-rdf-dereference-http-parse
TypeScript icon, indicating that this package has built-in type declarations

1.22.3 • Public • Published

Comunica HTTP Parse RDF Dereference Actor

npm version

An RDF Dereference actor that resolves the URL using the HTTP bus and parses it using the RDF parse bus.

An RDF Dereference actor implementation for Comunica that resolves the URL using the HTTP bus and parses it using the RDF arse bus.

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-dereference-http-parse

Configure

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

{
  "@context": [
    ...
    "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-rdf-dereference-http-parse/^1.0.0/components/context.jsonld"  
  ],
  "actors": [
    ...
    {
      "@id": "config-sets:rdf-dereference.json#myRdfDereferencer",
      "@type": "ActorRdfDereferenceHttpParse",
      "mediatorHttp": {
        "@id": "config-sets:http.json#mediatorHttp"
      },
      "crdhp:mediatorRdfParseMediatypes": {
        "@id": "config-sets:rdf-dereference.json#mediatorRdfParseMediatypes",
        "@type": "MediatorCombineUnion",
        "cc:Mediator/bus": { "@id": "cbrp:Bus/RdfParse" },
        "cmcu:Mediator/CombineUnion/field": "mediaTypes"
      },
      "crdhp:mediatorRdfParseHandle": {
        "@id": "config-sets:rdf-dereference.json#mediatorRdfParseHandle",
        "@type": "MediatorRace",
        "cc:Mediator/bus": { "@id": "cbrp:Bus/RdfParse" }
      },
      "crdhp:maxAcceptHeaderLength": 1024,
      "crdhp:maxAcceptHeaderLengthBrowser": 128,
    }
  ]
}

Config Parameters

  • crdhp:mediatorHttp: A mediator over the HTTP bus.
  • crdhp:mediatorRdfParseMediatypes: A mediator over the RDF Parse bus for collecting media types.
  • crdhp:mediatorRdfParseHandle: A mediator over the RDF Parse bus for actual parsing.
  • crdhp:maxAcceptHeaderLength: The maximum allowed accept header value length for non-browser environments, defaults to 1024.
  • crdhp:maxAcceptHeaderLengthBrowser: The maximum allowed accept header value length for browser environments, defaults to 128.

Readme

Keywords

Package Sidebar

Install

npm i @comunica/actor-rdf-dereference-http-parse

Weekly Downloads

372

Version

1.22.3

License

MIT

Unpacked Size

22.4 kB

Total Files

14

Last publish

Collaborators

  • jeswr
  • joachimvh
  • rubensworks
  • rubenverborgh
  • dexagod