Jassa-Core
Jassa-Core copied to clipboard
value of Node_Blank.getBlankNodeId() plain or AnonIdStr object?
In the NodeFactory
there are two ways to create a blank node (bNode
):
-
NodeFactory.createAnon(anonId)
-
NodeFactory.createFromTalisRdfJson(talisJson)
(e.g. called withvar talisJson = { value : '_:anna', type : 'bnode' }
)
In the first case bNode.getBlankNodeId()
will return anonId
(which is most probably a string). In the second case the actual blank node id is wrapped in an AnonIdStr
object.
Which variant is the official interface?