Do not expand context IRI mappings using base.

This commit is contained in:
Dave Longley 2013-05-03 10:41:27 -04:00
parent 02eb5913c5
commit b0f8533fee
1 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
<?php
/**
* PHP implementation of the JSON-LD API.
* Version: 0.0.30
* Version: 0.0.31
*
* @author Dave Longley
*
@ -4429,7 +4429,7 @@ class JsonLdProcessor {
// expand and add @id mapping, set @type to @id
$mapping->{'@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);
}
}