A Runner is used to instantiate a comunica workflow.

It is instantiated dynamically using a Components.js config file. A bus and a list of actors are injected into this runner dynamically.

The Runner#run function must be called to instantiate the workflow.

Constructors

Properties

Methods

Constructors

Properties

The list of all actors that are part of the comunica workflow.

busInit: Bus<
    Actor<IAction, IActorTest, IActorOutput, any>,
    IAction,
    IActorTest,
    IActorOutput,
    any,
>

The 'init' event bus.

Methods

  • Collect the given actors that are available in this runner.

    Example:

      const { engine } = runner.collectActors({ engine: 'urn:comunica:default:init/actors#query' };
      // engine is an actor instance
    

    An error will be thrown if any of the actors could not be found in the runner.

    Parameters

    • actorIdentifiers: Record<string, string>

      A mapping of keys to actor identifiers.

    Returns Record<string, Actor<IAction, IActorTest, IActorOutput, any>>

    A mapping of keys to actor instances.