From 25d86fc0dbf6b56be60042d60d07446609cb1290 Mon Sep 17 00:00:00 2001 From: Dave Longley Date: Mon, 30 Apr 2012 19:55:26 -0400 Subject: [PATCH] Handle strings in @graph [] case. --- jsonld.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jsonld.php b/jsonld.php index 17262cd..d3eb605 100644 --- a/jsonld.php +++ b/jsonld.php @@ -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),