import { type RDF } from "https://deno.land/x/ldkit@v0.5.1/rdf.ts";
const { Sink } = RDF;
A Sink is an object that consumes data from different kinds of streams.
It can store the content of the stream or do some further processing.
For example parsers, serializers, transformations and stores can implement the Sink interface.
Methods
import(stream: InputStream): OutputStream
Consumes the given stream.
The end
and error
events are used like described in the Stream interface.
Depending on the use case, subtypes of EventEmitter or Stream are used.