A mediator for a single mediation number value

Usage no npm install needed!

<script type="module">
  import comunicaMediatorRace from 'https://cdn.skypack.dev/@comunica/mediator-race';


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.


$ yarn add @comunica/mediator-race


After installing, this mediator can be instantiated as follows:

  "@context": [
  "actors": [
      "@type": "SomeActor",
      "someMediator": {
        "@id": "config-sets:rdf-dereference.json#mediatorRdfParseHandle",
        "@type": "MediatorRace",
        "cc:Mediator/bus": { "@id": "cbrp:Bus/RdfParse" }

Config Parameters

  • cc:Mediator/bus: Identifier of the bus to mediate over.