Fix nquads output for graph w/bnode ID.
This commit is contained in:
parent
2760055bd2
commit
7cf02461cc
1 changed files with 10 additions and 2 deletions
12
jsonld.php
12
jsonld.php
|
@ -1041,8 +1041,16 @@ class JsonLdProcessor {
|
|||
}
|
||||
|
||||
// graph
|
||||
if($g !== null) {
|
||||
$quad .= " <{$g->nominalValue}>";
|
||||
if($g !== null) {
|
||||
if($g->interfaceName === 'IRI') {
|
||||
$quad .= " <{$g->nominalValue}>";
|
||||
}
|
||||
else if(bnode) {
|
||||
$quad += ' _:g';
|
||||
}
|
||||
else {
|
||||
$quad += " {$g->nominalValue}";
|
||||
}
|
||||
}
|
||||
|
||||
$quad .= " .\n";
|
||||
|
|
Loading…
Reference in a new issue