Handle strings in @graph [] case.
This commit is contained in:
parent
ad531248c6
commit
25d86fc0db
1 changed files with 4 additions and 0 deletions
|
@ -1670,6 +1670,10 @@ class JsonLdProcessor {
|
||||||
}
|
}
|
||||||
|
|
||||||
if(is_string($element)) {
|
if(is_string($element)) {
|
||||||
|
// property can be null for string subject references in @graph
|
||||||
|
if($property === null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
// emit IRI for rdf:type, else plain literal
|
// emit IRI for rdf:type, else plain literal
|
||||||
$statement = (object)array(
|
$statement = (object)array(
|
||||||
'subject' => self::copy($subject),
|
'subject' => self::copy($subject),
|
||||||
|
|
Loading…
Reference in a new issue