import { type RDF } from "https://deno.land/x/ldkit@v0.5.1/rdf.ts";
const { DatasetCore } = RDF;
Methods
add(quad: InQuad): this
Adds the specified quad to the dataset.
Existing quads, as defined in Quad.equals
, will be ignored.
match(): DatasetCore<OutQuad, InQuad>
Returns a new dataset that is comprised of all quads in the current instance matching the given arguments.
The logic described in Quad Matching is applied for each quad in this dataset to check if it should be included in the output dataset.
This method always returns a new DatasetCore, even if that dataset contains no quads.
Since a DatasetCore
is an unordered set, the order of the quads within the returned sequence is arbitrary.
[[Symbol.iterator]](): Iterator<OutQuad>