forked from friendica/php-json-ld
Return keywords immediately when expanding.
This commit is contained in:
parent
8bad8e2d24
commit
f0746b22c0
|
@ -4533,9 +4533,9 @@ class JsonLdProcessor {
|
||||||
*/
|
*/
|
||||||
function _expandIri(
|
function _expandIri(
|
||||||
$active_ctx, $value, $relative_to=array(), $local_ctx=null, $defined=null) {
|
$active_ctx, $value, $relative_to=array(), $local_ctx=null, $defined=null) {
|
||||||
// nothing to expand
|
// already expanded
|
||||||
if($value === null) {
|
if($value === null || self::_isKeyword($value)) {
|
||||||
return null;
|
return $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
// define term dependency if not defined
|
// define term dependency if not defined
|
||||||
|
|
Loading…
Reference in a new issue