forked from friendica/php-json-ld
Fix nquads output for graph w/bnode ID.
This commit is contained in:
parent
2760055bd2
commit
7cf02461cc
|
@ -1042,8 +1042,16 @@ class JsonLdProcessor {
|
||||||
|
|
||||||
// graph
|
// graph
|
||||||
if($g !== null) {
|
if($g !== null) {
|
||||||
|
if($g->interfaceName === 'IRI') {
|
||||||
$quad .= " <{$g->nominalValue}>";
|
$quad .= " <{$g->nominalValue}>";
|
||||||
}
|
}
|
||||||
|
else if(bnode) {
|
||||||
|
$quad += ' _:g';
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$quad += " {$g->nominalValue}";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$quad .= " .\n";
|
$quad .= " .\n";
|
||||||
return $quad;
|
return $quad;
|
||||||
|
|
Loading…
Reference in a new issue