Metreeca Wire
    Preparing search index...

    SPARQL repository query and update operations.

    Groups the four core operations: ask, select, and construct read from the backing RDF store, and update writes to it. Repository extends this surface for standalone use; the same operations are also handed to a task as the per-call client inside execute, where they run within the enclosing transaction.

    interface RepositoryClient {
        ask(query: string): Promise<boolean>;
        select(query: string): Promise<readonly Tuple[]>;
        construct(query: string): Promise<readonly Triple[]>;
        update(update: string): Promise<void>;
    }

    Hierarchy (View Summary)

    Index

    Methods

    • Execute an ASK query.

      Parameters

      • query: string

        The SPARQL ASK query

      Returns Promise<boolean>

      A promise resolving to true if the query pattern matches; false otherwise

    • Execute a SELECT query.

      Parameters

      • query: string

        The SPARQL SELECT query

      Returns Promise<readonly Tuple[]>

      A promise resolving to the solution tuples, in solution-sequence order

    • Execute a CONSTRUCT query.

      Parameters

      • query: string

        The SPARQL CONSTRUCT query

      Returns Promise<readonly Triple[]>

      A promise resolving to the constructed RDF triples

    • Execute a SPARQL UPDATE operation.

      Parameters

      • update: string

        The SPARQL UPDATE request

      Returns Promise<void>