Do not do @id expansion for @id/@type even if aliased.
This commit is contained in:
parent
7d06cd0c92
commit
9b87179143
1 changed files with 3 additions and 3 deletions
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @author Dave Longley
|
* @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', 'http://www.w3.org/2001/XMLSchema#');
|
||||||
define('JSONLD_XSD_BOOLEAN', JSONLD_XSD . 'boolean');
|
define('JSONLD_XSD_BOOLEAN', JSONLD_XSD . 'boolean');
|
||||||
|
@ -1574,8 +1574,8 @@ class JsonLdProcessor
|
||||||
}
|
}
|
||||||
|
|
||||||
// special-case expand @id and @type (skips '@id' expansion)
|
// special-case expand @id and @type (skips '@id' expansion)
|
||||||
if($property === $keywords->{'@id'} or
|
if($property === '@id' or $property === $keywords->{'@id'} or
|
||||||
$property === $keywords->{'@type'})
|
$property === '@type' or $property === $keywords->{'@type'})
|
||||||
{
|
{
|
||||||
$rval = _expandTerm($ctx, $value, null);
|
$rval = _expandTerm($ctx, $value, null);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue