Endpoint URLs and the optional fetch override
Readonlyquery: stringSPARQL query endpoint URL, for example http://localhost:7200/repositories/my-repo
Optional Readonlyupdate?: stringSPARQL update endpoint URL; defaults to query when omitted
Optional Readonlyfetch?: (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>Custom fetch implementation used for every HTTP exchange, enabling header, auth, and
exchange customisation; defaults to the global fetch
An immutable Repository backed by the configured endpoints
Creates an HTTP-based Repository backed by a SPARQL 1.1 Protocol endpoint.
Each query and update is dispatched eagerly as a single HTTP request.
Transaction Isolation — None. The SPARQL 1.1 Protocol exposes no transaction primitives.
Error handling — every HTTP exchange is funnelled through createFetch, so:
status: 0statusTextasdetail, and the parsed body (RFC 7807 JSON, plain text, or omitted) asreportask/selectresponse rejects with a synthesised Problem carrying the response status and a parse-failuredetailconstructresponse whoseContent-Typeis not N-Triples rejects with a synthesised ProblemSyntaxErrorfor ill-formed N-Triples, or aRangeErrorfor a malformed or unrecognised SPARQL Results JSON binding