SPARQL connector for @metreeca/wire backed by an RDF4J Server repository.
Exposes any RDF4J Server repository through the common @metreeca/wire-sparql Repository
interface, bracketing each task in a server-managed transaction. One-off operations outside a transaction are delegated
to the SPARQL 1.1 Protocol through the companion
@metreeca/wire-sparql-http connector.
npm install @metreeca/wire-sparql # the SPARQL query API
npm install @metreeca/wire-sparql-rdf4j # this connector
TypeScript consumers must use "moduleResolution": "nodenext"/"node16"/"bundler" in tsconfig.json.
The legacy "node" resolver is not supported.
Connect to an RDF4J Server repository with createRDF4JRepository, then issue queries and updates through the
@metreeca/wire-sparql Repository API:
import { createRDF4JRepository } from "@metreeca/wire-sparql-rdf4j";
const repository = createRDF4JRepository({
server: "https://example.org/rdf4j-server",
repository: "my-repo"
});
See @metreeca/wire-sparql for the Repository query API (ask, select, construct, update, execute, close).
This connector defers transaction isolation to the configured RDF4J repository: server-managed transactions bracket each task
for atomic commit and rollback, achieving the isolation level of the underlying store (RDF4J's MemoryStore and
NativeStore both default to SNAPSHOT_READ). The REST API exposes no isolation-level parameter on the
start-transaction call.
This project is licensed under the Apache 2.0 License – see LICENSE file for details.
Creates a Repository backed by an RDF4J REST API endpoint.
RDF4J REST API endpoint connector for the @metreeca/wire storage connector collection.
Exposes any RDF4J Server repository through the common Repository API, bracketing each task in a server-managed transaction.
Transaction Isolation — Determined by the target RDF4J repository.
See
RDF4J REST API — Transactions