Fix nquads output for graph w/bnode ID.

This commit is contained in:
Dave Longley 2012-06-15 10:24:41 -04:00
parent 2760055bd2
commit 7cf02461cc

View file

@ -1042,7 +1042,15 @@ class JsonLdProcessor {
// graph // graph
if($g !== null) { if($g !== null) {
$quad .= " <{$g->nominalValue}>"; if($g->interfaceName === 'IRI') {
$quad .= " <{$g->nominalValue}>";
}
else if(bnode) {
$quad += ' _:g';
}
else {
$quad += " {$g->nominalValue}";
}
} }
$quad .= " .\n"; $quad .= " .\n";