Return keywords immediately when expanding.

This commit is contained in:
Dave Longley 2013-02-26 00:36:53 -05:00
parent 8bad8e2d24
commit f0746b22c0

View file

@ -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