@comunica/actor-query-source-identify-hypermedia-sparql
v4.0.2
Published
A sparql query-source-identify-hypermedia actor
Downloads
5,783
Readme
Comunica SPARQL Query Source Identify Hypermedia Actor
A Query Source Identify 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-query-source-identify-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-query-source-identify-hypermedia-sparql/^1.0.0/components/context.jsonld"
],
"actors": [
...
{
"@id": "urn:comunica:default:query-source-identify-hypermedia/actors#sparql",
"@type": "ActorQuerySourceIdentifyHypermediaSparql",
"mediatorHttp": { "@id": "urn:comunica:default:http/mediators#main" },
"mediatorMergeBindingsContext": { "@id": "urn:comunica:default:merge-bindings-context/mediators#main" }
}
]
}
Config Parameters
mediatorHttp
: A mediator over the HTTP bus.mediatorMergeBindingsContext
: A mediator over the Merge Bindings Context bus.checkUrlSuffix
: If URLs ending with '/sparql' should also be considered SPARQL endpoints, defaults totrue
.forceHttpGet
: If queries should be sent via HTTP GET instead of POST, defaults tofalse
.cacheSize
: The cache size for COUNT queries, defaults to1024
.bindMethod
: The query operation for communicating bindings, defaults to'values'
, alt:'union'
or'filter'
.countTimeout
: Timeout in ms of how long count queries are allowed to take. If the timeout is reached, an infinity cardinality is returned. Defaults to3000
.