UNPKG
@rdf-esm/data-model
Version:
latest (0.5.4)
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
A basic implementation of the RDFJS Data Model
github.com/rdf-esm/data-model
rdf-esm/data-model
@rdf-esm/data-model
/
lib
/
blank-node.js
16 lines
(12 loc)
•
283 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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