forked from friendica/php-json-ld
Handle strings in @graph [] case.
This commit is contained in:
parent
ad531248c6
commit
25d86fc0db
|
@ -1670,6 +1670,10 @@ class JsonLdProcessor {
|
|||
}
|
||||
|
||||
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
|
||||
$statement = (object)array(
|
||||
'subject' => self::copy($subject),
|
||||
|
|
Loading…
Reference in a new issue