@comunica/mediator-race
TypeScript icon, indicating that this package has built-in type declarations

3.0.1 • Public • Published

Comunica Race Mediator

npm version

A mediator that picks the first actor that resolves its test.

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/mediator-race

Configure

After installing, this mediator can be instantiated as follows:

{
  "@context": [
    ...
    "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/mediator-race/^3.0.0/components/context.jsonld"
  ],
  "actors": [
    ...
    {
      "@type": "SomeActor",
      "someMediator": {
        "@id": "#mediatorRdfParseHandle",
        "@type": "MediatorRace",
        "bus": { "@id": "ActorRdfParse:_default_bus" }
      }
    }
  ]
}

Config Parameters

  • bus: Identifier of the bus to mediate over.

Readme

Keywords

Package Sidebar

Install

npm i @comunica/mediator-race

Weekly Downloads

4,592

Version

3.0.1

License

MIT

Unpacked Size

14.5 kB

Total Files

12

Last publish

Collaborators

  • jeswr
  • joachimvh
  • rubensworks
  • rubenverborgh
  • dexagod