UNPKG

@rdfjs/data-model

Version:

A basic implementation of the RDF/JS Data Model

14 lines (10 loc) 246 B
class NamedNode { constructor (iri) { this.value = iri } equals (other) { return !!other && other.termType === this.termType && other.value === this.value } } NamedNode.prototype.termType = 'NamedNode' export default NamedNode