A Trifid plugin (v3.5.1) that exposes a SPARQL query endpoint backed by a static in-memory dataset loaded from a URL (local file or remote resource) at server startup. Uses Oxigraph for RDF storage and query evaluation. Supports multiple serialization formats (Turtle, TriG, N-Triples, N-Quads, N3, RDF/XML). The dataset is not refreshed automatically after initial load. Released on npm with TypeScript type declarations.
npm install trifid-handler-fetchNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures trifid-handler-fetch in a Trifid server, loading a Turtle file into an in-memory Oxigraph store and exposing a SPARQL endpoint at /sparql.
Implement a periodic reload mechanism or use a different handler that supports live updates.
Ensure the 'contentType' matches the actual format of the resource (e.g., 'text/turtle' for .ttl files).
Use 'unionDefaultGraph: true' with triple formats to load triples into the default graph instead of a named graph.
Include the graph name in SPARQL queries, e.g., SELECT * FROM <http://example.com/graph> WHERE { ?s ?p ?o }.Set 'contentType' to one of the supported values: text/turtle, application/trig, application/n-triples, application/n-quads, text/n3, application/rdf+xml.
Use default import: import trifidHandlerFetch from 'trifid-handler-fetch'.
Provide a valid URL string in the 'url' option.