@types/rdf-dataset-ext
Version:
TypeScript definitions for rdf-dataset-ext
13 lines (10 loc) • 560 B
TypeScript
import { BaseQuad, DatasetCore } from "@rdfjs/types";
/**
* Tests if the datasets a and b contain the same quads without doing a normalization step beforehand.
*
* That means Blank Node labels must also match. The comparison is done by testing `.size` of both dataset for
* equality and by looping over all quads of a and check if b contains it using the `.has` method. Returns `true` if
* both datasets are equal. Otherwise `false `is returned.
*/
declare function equals(a: DatasetCore<BaseQuad>, b: DatasetCore<BaseQuad>): boolean;
export = equals;