joshsh/sesametools — Issue #19: Blank node format does not include necessary "_:" prefix
Author: daverog
Created: 2011-11-03 11:46:25+00:00
State: open

From the Talis spec:

"Blank node subjects are named using a string conforming to the nodeID production in Turtle. For example: _:A1"

With RDFJSONWriter, blank nodes are output without this prefix, for example "A1"

FIx in RDFJSON?:

if (object instanceof BNode) {
valueObj.put("value", "_:" + object.stringValue());
} else {
valueObj.put("value", object.stringValue());
}

if (subject instanceof BNode) {
result.put("_:" + subject.stringValue(), predicateObj);
} else {
result.put(subject.stringValue(), predicateObj);
}