Package Exports
- @comunica/actor-init-query-operation
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@comunica/actor-init-query-operation) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Comunica Query Operation
An example init actor for Comunica that triggers an Query Operation event.
This module is part of the Comunica framework.
Install
$ yarn add @comunica/actor-init-query-operation
Usage
The config/
folder contains an examples on how to run this actor,
which will trigger on the Runner's 'init' event.
As defined by components/ActorInitQueryOperation
,
the actor allows an optional query operation parameter to be changed.
When executed, the actor will take the query operation JSON from the first CLI parameter, or take it from the config file if not available, evaluate the operation, and print its response to stdout.
When @comunica/runner-cli
, @comunica/runner
and the appropriate actor modules are installed,
executing the following:
$ node_modules/.bin/comunica-run config/config-example.json
will print the response.
Note: when running in a dev environment:
Make sure that your NODE_PATH
contains the node_modules
folder of this module.