UNPKG

rdf-test-suite

Version:
25 lines 764 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.QueryResultQuads = void 0; const rdf_isomorphic_1 = require("rdf-isomorphic"); const rdf_string_1 = require("rdf-string"); /** * Holds quad-based query results. */ class QueryResultQuads { constructor(value) { this.type = 'quads'; this.value = value; } equals(that) { if (that.type !== 'quads') { return false; } return (0, rdf_isomorphic_1.isomorphic)(this.value, that.value); } toString() { return `[QueryResultQuads: ${JSON.stringify(this.value.map(rdf_string_1.quadToStringQuad), null, ' ')}]`; } } exports.QueryResultQuads = QueryResultQuads; //# sourceMappingURL=QueryResultQuads.js.map