@comunica/actor-rdf-join-inner-multi-bind
v4.0.2
Published
A multi-bind rdf-join actor
Downloads
12,422
Readme
Comunica Inner Multi-way Bind RDF Join Actor
An RDF Join actor that inner-joins 2 or more streams by picking the one with the lowest cardinality, binding each item with the remaining operations, and recursively resolving those operations by delegating to the Query Operation bus.
By default, it will bind in a depth-first manner, but this can be changed to breadth-first iteration if needed.
As soon as at least one of the join entries can contain undefined values, this actor will maintain the original join order, and just pick the first one as the one to bind from.
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-rdf-join-inner-multi-bind
Configure
After installing, this package can be added to your engine's configuration as follows:
{
"@context": [
...
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-rdf-join-inner-multi-bind/^4.0.0/components/context.jsonld"
],
"actors": [
...
{
"@id": "urn:comunica:default:rdf-join/actors#inner-multi-bind",
"@type": "ActorRdfJoinMultiBind",
"mediatorJoinSelectivity": { "@id": "urn:comunica:default:rdf-join-selectivity/mediators#main" },
"mediatorJoinEntriesSort": { "@id": "urn:comunica:default:rdf-join-entries-sort/mediators#main" },
"mediatorQueryOperation": { "@id": "urn:comunica:default:query-operation/mediators#main" },
"mediatorMergeBindingsContext": { "@id": "urn:comunica:default:merge-bindings-context/mediators#main" }
}
]
}
Config Parameters
mediatorJoinSelectivity
: A mediator over the RDF Join Selectivity bus.mediatorJoinEntriesSort
: A mediator over the RDF Join Entries Sort bus.mediatorQueryOperation
: A mediator over the Query Operation bus.mediatorMergeBindingsContext
: A mediator over the Merge Bindings Context bus.bindOrder
: The order in which elements should be bound. (defaults todepth-first
, but can also bebreadth-first
)selectivityModifier
: Multiplier for selectivity values. (defaults to0.0001
)