From 7a67ebd0f8f2d44fc238a9b0fa3aaa7c19551892 Mon Sep 17 00:00:00 2001 From: Dave Longley Date: Fri, 9 Aug 2013 13:33:14 -0400 Subject: [PATCH] Do not include (data)types in node map. --- jsonld.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/jsonld.php b/jsonld.php index f095e03..cf22929 100644 --- a/jsonld.php +++ b/jsonld.php @@ -3335,9 +3335,6 @@ class JsonLdProcessor { if(strpos($type, '_:') === 0) { $type = $input->{'@type'} = $namer->getName($type); } - if(!property_exists($graphs->{$graph}, $type)) { - $graphs->{$graph}->{$type} = (object)array('@id' => $type); - } } if($list !== null) { $list[] = $input; @@ -3445,9 +3442,6 @@ class JsonLdProcessor { if($property === '@type') { // rename @type blank nodes $o = (strpos($o, '_:') === 0) ? $namer->getName($o) : $o; - if(!property_exists($graphs->{$graph}, $o)) { - $graphs->{$graph}->{$o} = (object)array('@id' => $o); - } } // handle embedded subject or subject reference