From 3aba934eb6114ffd0efa756bfe7731c3533092a8 Mon Sep 17 00:00:00 2001 From: Dave Longley Date: Wed, 3 Apr 2013 22:10:54 -0400 Subject: [PATCH] Simplify context sharing after removing bnode renaming from expansion. --- jsonld.php | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/jsonld.php b/jsonld.php index 05b9699..0ac4cb2 100644 --- a/jsonld.php +++ b/jsonld.php @@ -1,7 +1,7 @@ {'@base'} = $active_ctx->{'@base'}; - $rval->mappings = $active_ctx->mappings; - $rval->inverse = $active_ctx->inverse; - if(property_exists($active_ctx, '@language')) { - $rval->{'@language'} = $active_ctx->{'@language'}; - } - if(property_exists($active_ctx, '@vocab')) { - $rval->{'@vocab'} = $active_ctx->{'@vocab'}; - } - return $rval; - } - /** * Returns whether or not the given value is a keyword. * @@ -5417,8 +5394,7 @@ class ActiveContextCache { if(property_exists($this->cache, $key1)) { $level1 = $this->cache->{$key1}; if(property_exists($level1, $key2)) { - // get shareable copy of cached active context - return JsonLdProcessor::_shareActiveContext($level1->{$key2}); + return $level1->{$key2}; } } return null;