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

0.5.0 • Public • Published

Comunica Mediator Combine Array

npm version

A comunica mediator that concatenates an array of all actor results.

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-combine-array

Configure

After installing, this mediator can be instantiated as follows:

{
  "@context": [
    ...
    "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/mediator-combine-array/^2.0.0/components/context.jsonld"
  ],
  "actors": [
    ...
    {
      "@type": "SomeActor",
      "someMediator": {
        "@id": "#mediatorRdfParseMediatypes",
        "@type": "MediatorCombineArray",
        "bus": { "@id": "ActorRdfParse:_default_bus" },
        "field": "mediaTypes"
      }
    }
  ]
}

Config Parameters

  • bus: Identifier of the bus to mediate over.
  • field: The field name to mediate over and concat arrays in.
  • filterErrors: Optional flag to indicate if actors that throw test errors should be filtered out of the pipeline, defaults to false.

Readme

Keywords

Package Sidebar

Install

npm i @comunica/mediator-combine-array

Weekly Downloads

131

Version

0.5.0

License

MIT

Unpacked Size

38 kB

Total Files

13

Last publish

Collaborators

  • jeswr
  • joachimvh
  • rubensworks
  • rubenverborgh
  • dexagod