You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

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

Package Overview
Dependencies
Maintainers
4
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

A node-fetch http actor

1.22.3
latest
Source
npm
Version published
Weekly downloads
3.3K
-57.35%
Maintainers
4
Weekly downloads
 
Created
Source

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.

Keywords

comunica

FAQs

Package last updated on 19 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts