Skip to main content
Module

x/ldkit/rdf.ts>RDF.Source

LDkit - Linked Data query toolkit for TypeScript developers
Go to Latest
interface RDF.Source
import { type RDF } from "https://deno.land/x/ldkit@v0.5.1/rdf.ts";
const { Source } = RDF;

A Source is an object that emits quads.

It can contain quads but also generate them on the fly.

For example, parsers and transformations which generate quads can implement the Source interface.

Type Parameters

optional
Q extends BaseQuad = Quad

Methods

match(
subject?: Term | null,
predicate?: Term | null,
object?: Term | null,
graph?: Term | null,
): Stream<Q>

Returns a stream that processes all quads matching the pattern.