@comunica/actor-rdf-resolve-hypermedia-sparql
TypeScript icon, indicating that this package has built-in type declarations

2.10.2 • Public • Published

Comunica SPARQL RDF Resolve Hypermedia Actor

npm version

An RDF Resolve Hypermedia actor that handles SPARQL endpoints.

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-resolve-hypermedia-sparql

Configure

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

{
  "@context": [
    ...
    "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-rdf-resolve-hypermedia-sparql/^2.0.0/components/context.jsonld"  
  ],
  "actors": [
    ...
    {
      "@id": "urn:comunica:default:rdf-resolve-hypermedia/actors#sparql",
      "@type": "ActorRdfResolveHypermediaSparql",
      "mediatorHttp": { "@id": "urn:comunica:default:http/mediators#main" }
    }
  ]
}

Config Parameters

  • mediatorHttp: A mediator over the HTTP bus.
  • checkUrlSuffix: If URLs ending with '/sparql' should also be considered SPARQL endpoints, defaults to true.
  • forceHttpGet: If queries should be sent via HTTP GET instead of POST, defaults to false.
  • cacheSize: The cache size for COUNT queries, defaults to 1024.

Package Sidebar

Install

npm i @comunica/actor-rdf-resolve-hypermedia-sparql

Weekly Downloads

2,371

Version

2.10.2

License

MIT

Unpacked Size

51.4 kB

Total Files

15

Last publish

Collaborators

  • jeswr
  • joachimvh
  • rubensworks
  • rubenverborgh
  • dexagod