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

@comunica/actor-dereference-http

📬 A knowledge graph querying framework for JavaScript

by comunica

2.6.8 (see all)License:MITTypeScript:Built-In
npm i @comunica/actor-dereference-http
Readme

Comunica Http Dereference Actor

npm version

An Dereference actor that resolves the URL using the HTTP bus.

An Dereference actor implementation for Comunica that resolves the URL using the HTTP 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-dereference-http

Configure

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

{
  "@context": [
    ...
    "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-dereference-http/^2.0.0/components/context.jsonld"  
  ],
  "actors": [
    ...
    {
      "@id": "urn:comunica:default:dereference/actors#http",
      "@type": "ActorDereferenceHttp",
      "beforeActors": { "@id": "urn:comunica:default:dereference/actors#fallback" },
      "mediatorHttp": { "@id": "urn:comunica:default:http/mediators#main" },
      "maxAcceptHeaderLength": 1024,
      "maxAcceptHeaderLengthBrowser": 128,
    }
  ]
}

Config Parameters

  • mediatorHttp: A mediator over the HTTP bus.
  • maxAcceptHeaderLength: The maximum allowed accept header value length for non-browser environments, defaults to 1024.
  • maxAcceptHeaderLengthBrowser: The maximum allowed accept header value length for browser environments, defaults to 128.
VersionTagPublished
2.6.8
latest
1mo ago
2.5.3-alpha.39.0
next
2mos ago
No alternatives found
No tutorials found
Add a tutorial
No dependencies found

Rate & Review

100
No reviews found
Be the first to rate