Do not do @id expansion for @id/@type even if aliased.

This commit is contained in:
Dave Longley 2012-01-11 19:32:30 -05:00
parent 7d06cd0c92
commit 9b87179143
1 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@
*
* @author Dave Longley
*
* Copyright (c) 2011 Digital Bazaar, Inc. All rights reserved.
* Copyright (c) 2011-2012 Digital Bazaar, Inc. All rights reserved.
*/
define('JSONLD_XSD', 'http://www.w3.org/2001/XMLSchema#');
define('JSONLD_XSD_BOOLEAN', JSONLD_XSD . 'boolean');
@ -1574,8 +1574,8 @@ class JsonLdProcessor
}
// special-case expand @id and @type (skips '@id' expansion)
if($property === $keywords->{'@id'} or
$property === $keywords->{'@type'})
if($property === '@id' or $property === $keywords->{'@id'} or
$property === '@type' or $property === $keywords->{'@type'})
{
$rval = _expandTerm($ctx, $value, null);
}