rdf-test-suite
Version:
Executes the RDF and SPARQL test suites.
25 lines • 764 B
JavaScript
;
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