Expand @type: @vocab.

This commit is contained in:
Dave Longley 2013-02-13 17:00:05 -05:00
parent d1ecc90e8a
commit 2c8b2ef18d
1 changed files with 5 additions and 0 deletions

View File

@ -2706,6 +2706,11 @@ class JsonLdProcessor {
return (object)array('@id' => $this->_expandIri(
$active_ctx, $value, array('base' => true)));
}
// do @id expansion w/vocab
if($type === '@vocab') {
return (object)array('@id' => $this->_expandIri(
$active_ctx, $value, array('vocab' => true, 'base' => true)));
}
// do not expand keyword values
if(self::_isKeyword($expanded_property)) {