4.2.0 • Published 6 months ago

@comunica/actor-query-operation-wrap-stream v4.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Comunica Wrap Stream Query Operation Actor

npm version

A comunica Wrap Stream Query Operation Actor. This actor calls the bus-iterator-transform for all iterators produced by query-operation actors. This actor should only be included if you require the functionality of bus-iterator-transform as it may slow down query execution.

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-wrap-stream

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-wrap-stream/^1.0.0/components/context.jsonld"
  ],
  "actors": [
    ...
    {
      "@id": "urn:comunica:default:query-operation/actors#wrap-stream",
      "@type": "ActorQueryOperationWrapStream",
      "mediatorQueryOperation": { "@id": "urn:comunica:default:query-operation/mediators#main" },
      "mediatorIteratorTransform": { "@id": "urn:comunica:default:iterator-transform/mediators#main" }
    }
  ]
}

Config Parameters

  • mediatorIteratorTransform: Mediator that will run all actors subscribed to the bus-iterator-transform in sequence.
  • mediatorQueryOperation: Mediator that runs the query operation that will be wrapped.