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

A node-fetch http actor

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
21090Jun 18, 2021Oct 18, 2017Minified + gzip package size for @comunica/actor-rdf-dereference-http-parse in KB

Readme

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.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.