Metreeca Keep
    Preparing search index...

    Function createSPARQLStore

    • Creates a SPARQL store backed by a Repository.

      Each StoreClient call (standalone or inside execute) is dispatched through a fresh Repository scope obtained from repository.execute, so concurrent calls share no transaction. Inside execute, the user task receives a StoreClient wired to the scoped Repository; mutations are batched and flushed to the repository as a single update when the task completes, then committed by the repository transaction. Queries within the task do not observe the task's own pending mutations (no read-your-own-writes); split dependent reads across separate execute calls.

      Important

      Transaction Isolation — Determined by the supplied Repository.

      Important

      Mutation Events — Limited to mutations issued through this store; mutations from other clients on the underlying repository are not observed.

      Important

      Updates issued within execute are always buffered and flushed as a single update on commit, regardless of native transaction support. Native transactions remain relevant nonetheless, isolating the task's reads for consistency.

      Parameters

      • repository: Repository

        The repository for SPARQL query, update, and transaction execution

      Returns Store

      An immutable Store