From b0f8533feea7fa08cc122c5dabe3d8be84804dd0 Mon Sep 17 00:00:00 2001 From: Dave Longley Date: Fri, 3 May 2013 10:41:27 -0400 Subject: [PATCH] Do not expand context IRI mappings using base. --- jsonld.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jsonld.php b/jsonld.php index 8385837..d746088 100644 --- a/jsonld.php +++ b/jsonld.php @@ -1,7 +1,7 @@ {'@id'} = $this->_expandIri( - $active_ctx, $reverse, array('vocab' => true, 'base' => true), + $active_ctx, $reverse, array('vocab' => true, 'base' => false), $local_ctx, $defined); $mapping->{'@type'} = '@id'; $mapping->reverse = true; @@ -4444,7 +4444,7 @@ class JsonLdProcessor { if($id !== $term) { // add @id to mapping $mapping->{'@id'} = $this->_expandIri( - $active_ctx, $id, array('vocab' => true, 'base' => true), + $active_ctx, $id, array('vocab' => true, 'base' => false), $local_ctx, $defined); } }