17 lines
469 B
JavaScript
17 lines
469 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.BlankNode = void 0;
|
|
/**
|
|
* A term that represents an RDF blank node with a label.
|
|
*/
|
|
class BlankNode {
|
|
constructor(value) {
|
|
this.termType = 'BlankNode';
|
|
this.value = value;
|
|
}
|
|
equals(other) {
|
|
return !!other && other.termType === 'BlankNode' && other.value === this.value;
|
|
}
|
|
}
|
|
exports.BlankNode = BlankNode;
|
|
//# sourceMappingURL=BlankNode.js.map
|