Return keywords immediately when expanding.

This commit is contained in:
Dave Longley 2013-02-26 00:36:53 -05:00
parent 8bad8e2d24
commit f0746b22c0
1 changed files with 3 additions and 3 deletions

View File

@ -4533,9 +4533,9 @@ class JsonLdProcessor {
*/
function _expandIri(
$active_ctx, $value, $relative_to=array(), $local_ctx=null, $defined=null) {
// nothing to expand
if($value === null) {
return null;
// already expanded
if($value === null || self::_isKeyword($value)) {
return $value;
}
// define term dependency if not defined