UNPKG

@rdf-esm/data-model

Version:

A basic implementation of the RDFJS Data Model

16 lines (12 loc) 283 B
export class BlankNode { constructor (id) { this.value = id || ('b' + (++BlankNode.nextId)) } equals (other) { return !!other && other.termType === this.termType && other.value === this.value } get termType () { return 'BlankNode' } } BlankNode.nextId = 0