import { type RDF } from "https://deno.land/x/ldkit@v0.5.0/library/rdf.ts";
const { Stream } = RDF;
A quad stream. This stream is only readable, not writable.
Events:
readable()
: When a quad can be read from the stream, it will emit this event.end()
: This event fires when there will be no more quads to read.error(error: Error)
: This event fires if any error occurs. Themessage
describes the error.data(quad: RDF.Quad)
: This event is emitted for every quad that can be read from the stream. The quad is the content of the data. Optional events:- prefix(prefix: string, iri: RDF.NamedNode): This event is emitted every time a prefix is mapped to some IRI.