Handle strings in @graph [] case.

This commit is contained in:
Dave Longley 2012-04-30 19:55:26 -04:00
parent ad531248c6
commit 25d86fc0db

View file

@ -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),