From b7cf6df4790d7e35af1d66ad628bc1be13dc9d58 Mon Sep 17 00:00:00 2001 From: Dave Longley Date: Mon, 11 Feb 2013 11:38:52 -0500 Subject: [PATCH] Use correct blank node namer when sharing context. --- jsonld.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jsonld.php b/jsonld.php index a5327ea..b696e40 100644 --- a/jsonld.php +++ b/jsonld.php @@ -2502,6 +2502,7 @@ class JsonLdProcessor { if(property_exists($jsonld_cache, 'activeCtx')) { $rval = $jsonld_cache->activeCtx->get($active_ctx, $local_ctx); if($rval) { + $rval->namer = $active_ctx->namer; return $rval; } } @@ -4729,7 +4730,7 @@ class JsonLdProcessor { $rval->keywords = $active_ctx->keywords; $rval->mappings = $active_ctx->mappings; if($active_ctx->namer !== null) { - $rval->namer = clone $active_ctx->namer; + $rval->namer = new UniqueNamer('_:t'); } $rval->inverse = $active_ctx->inverse; return $rval;