@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 write them 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
    • Dataset — RDF dataset overriding the one declared by a query or update
    • Tuple — SELECT 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, update and graph store operations.

    Type Aliases

    SPARQL

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

    Dataset

    A SPARQL RDF dataset.

    Tuple

    A SPARQL query-solution mapping.

    Pattern

    A SPARQL triple pattern.

    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 as few requests as possible.

    createLoggingRepository

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