A comunica From Query Operation Actor.

Hierarchy (View Summary)

Constructors

Properties

beforeActors: Actor<
    IActionQueryOperation,
    IActorTest,
    IQueryOperationResult,
    undefined,
>[] = []

Actor that must be registered in the bus before this actor.

bus: Bus<
    Actor<
        IActionQueryOperation,
        IActorTest,
        IQueryOperationResult,
        undefined,
    >,
    IActionQueryOperation,
    IActorTest,
    IQueryOperationResult,
    undefined,
>

The bus this actor subscribes to.

mediatorQueryOperation: MediatorQueryOperation
name: string

The name for this actor.

{<rdf:subject>}
operationName: string

Methods

  • Recursively transform the given operation to use the given graphs as default graph This will (possibly) create a new operation and not modify the given operation.

    Parameters

    • algebraFactory: Factory

      The algebra factory.

    • operation: Operation

      An operation.

    • defaultGraphs: Term[]

      Graph terms.

    Returns Operation

    A new operation.

  • Recursively transform the given operation to use the given graphs as named graph This will (possibly) create a new operation and not modify the given operation.

    Parameters

    • algebraFactory: Factory

      The algebra factory.

    • operation: Operation

      An operation.

    • namedGraphs: NamedNode<string>[]

      Graph terms.

    • defaultGraphs: Term[]

      Default graph terms.

    Returns Operation

    A new operation.

  • Create a deep copy of the given operation.

    Parameters

    • operation: Operation

      An operation.

    • recursiveCb: (subOperation: Operation) => Operation

      A callback for recursive operation calls.

    Returns Operation

    The copied operation.

  • Transform an operation based on the default and named graphs in the pattern.

    FROM sets the default graph. If multiple are available, take the union of the operation for all of them at quad-pattern level.

    FROM NAMED indicates which named graphs are available. This will rewrite the query so that only triples from the given named graphs can be selected.

    Parameters

    • algebraFactory: Factory

      The algebra factory.

    • pattern: From

      A from operation.

    Returns Operation

    The transformed operation.

  • Transform the given array of operations into a join operation.

    Parameters

    • algebraFactory: Factory

      The algebra factory.

    • operations: Operation[]

      An array of operations, must contain at least one operation.

    Returns Operation

    A join operation.

  • Transform the given array of operations into a union operation.

    Parameters

    • algebraFactory: Factory

      The algebra factory.

    • operations: Operation[]

      An array of operations, must contain at least one operation.

    Returns Operation

    A union operation.