Metreeca Wire
    Preparing search index...

    SPARQL repository API and data model.

    Provides a single, backend-independent API for working with SPARQL stores. Consumers query and update through the Repository interface and exchange data as the SPARQL types defined here, layered on the RDF terms and statements of @metreeca/trio, regardless of which connector backs the store.

    Media types

    • SPARQLQuery — IANA media type for SPARQL query requests
    • SPARQLUpdate — IANA media type for SPARQL update requests
    • SPARQLResults — IANA media type for SPARQL query results in JSON

    Repository

    Data model

    • SPARQL — query, update, or syntactic fragment as serialised text
    • TupleSELECT query-solution mapping
    • Pattern — triple pattern admitting variables
    • Variable — allocated ?-prefixed SPARQL variable

    Factories

    Wrappers

    Variables

    SPARQLQuery

    IANA media type for SPARQL query requests.

    SPARQLUpdate

    IANA media type for SPARQL update requests.

    SPARQLResults

    IANA media type for SPARQL query results in JSON.

    Interfaces

    Repository

    SPARQL repository.

    RepositoryClient

    SPARQL repository query and update operations.

    Type Aliases

    SPARQL

    A SPARQL query, update, or syntactic fragment as serialised text.

    Tuple

    A SPARQL query-solution mapping.

    Pattern

    A SPARQL triple pattern, as a subject/predicate/object statement with optional variables.

    Variable

    A SPARQL variable.

    Functions

    sparql

    Marks a string or a template literal as SPARQL text.

    tuple

    Creates a SPARQL solution Tuple.

    pattern

    Creates a SPARQL triple Pattern.

    variable

    Creates a SPARQL Variable.

    createBufferingRepository

    Wraps a Repository to coalesce a transaction's updates into a single request.

    createLoggingRepository

    Wraps a Repository to log each operation and its elapsed time.