Do not include (data)types in node map.

This commit is contained in:
Dave Longley 2013-08-09 13:33:14 -04:00
parent 281d8ee797
commit 7a67ebd0f8

View file

@ -3335,9 +3335,6 @@ class JsonLdProcessor {
if(strpos($type, '_:') === 0) { if(strpos($type, '_:') === 0) {
$type = $input->{'@type'} = $namer->getName($type); $type = $input->{'@type'} = $namer->getName($type);
} }
if(!property_exists($graphs->{$graph}, $type)) {
$graphs->{$graph}->{$type} = (object)array('@id' => $type);
}
} }
if($list !== null) { if($list !== null) {
$list[] = $input; $list[] = $input;
@ -3445,9 +3442,6 @@ class JsonLdProcessor {
if($property === '@type') { if($property === '@type') {
// rename @type blank nodes // rename @type blank nodes
$o = (strpos($o, '_:') === 0) ? $namer->getName($o) : $o; $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 // handle embedded subject or subject reference