@comunica/actor-query-operation-service

A service query-operation actor

Stats

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

Readme

Comunica Service Query Operation Actor

npm version

A Query Operation actor that handles SPARQL ASK operations by setting the given service target as source in the context.

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-operation-service

Configure

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

{
  "@context": [
    ...
    "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-query-operation-service/^1.0.0/components/context.jsonld"  
  ],
  "actors": [
    ...
    {
      "@id": "config-sets:sparql-queryoperators.json#myServiceQueryOperator",
      "@type": "ActorQueryOperationService",
      "cbqo:mediatorQueryOperation": { "@id": "config-sets:sparql-queryoperators.json#mediatorQueryOperation" },
      "caqoserv:Actor/QueryOperation/Service/forceSparqlEndpoint": false
    }
  ]
}

Config Parameters

  • cbqo:mediatorQueryOperation: A mediator over the Query Operation bus.
  • caqoserv:Actor/QueryOperation/Service/forceSparqlEndpoint: Optional flag indicating if the SERVICE target should be assumed to be a SPARQL endpoint, defaults to false.

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.