Use base IRI when expanding @type.
This commit is contained in:
parent
4c76b11a67
commit
fece013733
|
@ -2152,12 +2152,9 @@ class JsonLdProcessor {
|
||||||
|
|
||||||
// special-case expand @id and @type (skips '@id' expansion)
|
// special-case expand @id and @type (skips '@id' expansion)
|
||||||
$prop = $this->_expandTerm($ctx, $property);
|
$prop = $this->_expandTerm($ctx, $property);
|
||||||
if($prop === '@id') {
|
if($prop === '@id' || $prop === '@type') {
|
||||||
$rval = $this->_expandTerm($ctx, $value, $base);
|
$rval = $this->_expandTerm($ctx, $value, $base);
|
||||||
}
|
}
|
||||||
else if($prop === '@type') {
|
|
||||||
$rval = $this->_expandTerm($ctx, $value);
|
|
||||||
}
|
|
||||||
else {
|
else {
|
||||||
// get type definition from context
|
// get type definition from context
|
||||||
$type = self::getContextValue($ctx, $property, '@type');
|
$type = self::getContextValue($ctx, $property, '@type');
|
||||||
|
|
Loading…
Reference in a new issue