diff --git a/jsonld.php b/jsonld.php index 0030480..53c9b94 100644 --- a/jsonld.php +++ b/jsonld.php @@ -1,7 +1,7 @@ $remote_doc), $e); } @@ -1112,9 +1112,9 @@ class JsonLdProcessor { } } catch(Exception $e) { throw new JsonLdException( - 'Could not retrieve a JSON-LD document from the URL: ' . $url, + 'Could not retrieve a JSON-LD document from the URL.', 'jsonld.LoadDocumentError', 'loading document failed', - array('remoteDoc' => $remote_doc), $e); + array('remoteDoc' => $remote_frame), $e); } // preserve frame context @@ -3578,6 +3578,10 @@ class JsonLdProcessor { if($property === '@graph') { // add graph subjects map entry if(!property_exists($graphs, $name)) { + // FIXME: temporary hack to avoid empty property bug + if(!$name) { + $name = '"'; + } $graphs->{$name} = new stdClass(); } $g = ($graph === '@merged') ? $graph : $name;