import { type RDF } from "https://deno.land/x/ldkit@v0.6.0/library/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.
delete(quad: InQuad): this
Removes the specified quad from the dataset.
has(quad: InQuad): boolean
Determines whether a dataset includes a certain quad.
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>