Readonly
beforeActor that must be registered in the bus before this actor.
Readonly
busThe bus this actor subscribes to.
Readonly
nameThe name for this actor.
Protected
getProtected
logProtected
logProtected
logProtected
logProtected
logProtected
logRun the given action on this actor.
In most cases, this method should not be called directly. Instead, #runObservable should be called.
The action to run.
A promise that resolves to the run result.
Run the given action on this actor AND invokes the Bus#onRun method.
The action to run.
A promise that resolves to the run result.
Static
getStatic
getObtain all IRIs from the given pattern that are not related to vocabularies. Concretely, predicates will be omitted, and objects if predicate is http://www.w3.org/1999/02/22-rdf-syntax-ns#type
A quad pattern.
Static
getCalculate a score for the given quad pattern based on a given set of sources. The more sources are present in the given pattern as non-vocab URIs, the higher the score.
A quad pattern.
An array of sources.
Static
getStatic
getStatic
sortThis sorts join entries by first prioritizing triple patterns in BGPs, and then all other operation types.
Sort the patterns in BGPs by the following priorities:
Quad patterns.
The sources that are currently being queried.
An actor that sorts join entries based on Hartig's heuristic for plan selection in link traversal environments.
It first determines isolated connected graphs. (done by @comunica/actor-optimize-query-operation-join-connected) For each of the connected graphs, it orders triple patterns in BGPs by the following priority:
It does this in an adaptive way. This means that this actor will only determine the first triple pattern, execute it, and materialize the remaining BGP based on its results. After that, the remaining BGP is evaluated recursively by this or another BGP actor.