Turns any SPARQL 1.1 Repository into a fully featured Store, so shape-driven retrieval and
persistence run against a graph backend without hand-written queries. A ready-made connector from the
@grafctory/wire collection (Oxigraph, generic HTTP endpoints, RDF4J, …)
covers the common backends; a new backend is supported by implementing Repository directly.
Wiring a Connector
A ready-made connector is passed to createSPARQLStore to obtain a store:
A new SPARQL backend is supported by implementing a Repository. The
repository exchanges SPARQL text and
Tuple solution rows, whose values are @grafctory/trioTerm values. Backend node values are lifted into terms with the
named, tagged and typed
constructors. The reference implementation in @grafctory/wire-sparql-oxigraph follows this pattern:
The options of a SPARQL store, setting its default retrieval scope and the caps on how
it queries its repository, so it never asks a backend for more than the backend accepts.
SPARQL 1.1 repository connector.
Turns any SPARQL 1.1 Repository into a fully featured Store, so shape-driven retrieval and persistence run against a graph backend without hand-written queries. A ready-made connector from the @grafctory/wire collection (Oxigraph, generic HTTP endpoints, RDF4J, …) covers the common backends; a new backend is supported by implementing Repository directly.
Wiring a Connector
A ready-made connector is passed to createSPARQLStore to obtain a store:
Implementing a Connector
A new SPARQL backend is supported by implementing a Repository. The repository exchanges SPARQL text and Tuple solution rows, whose values are
@grafctory/trioTerm values. Backend node values are lifted into terms with the named, tagged and typed constructors. The reference implementation in@grafctory/wire-sparql-oxigraphfollows this pattern:See