Expand @type: @vocab.
This commit is contained in:
parent
d1ecc90e8a
commit
2c8b2ef18d
|
@ -2706,6 +2706,11 @@ class JsonLdProcessor {
|
||||||
return (object)array('@id' => $this->_expandIri(
|
return (object)array('@id' => $this->_expandIri(
|
||||||
$active_ctx, $value, array('base' => true)));
|
$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
|
// do not expand keyword values
|
||||||
if(self::_isKeyword($expanded_property)) {
|
if(self::_isKeyword($expanded_property)) {
|
||||||
|
|
Loading…
Reference in a new issue