From f0746b22c07b96bbf9f0256794b17ec303137109 Mon Sep 17 00:00:00 2001 From: Dave Longley Date: Tue, 26 Feb 2013 00:36:53 -0500 Subject: [PATCH] Return keywords immediately when expanding. --- jsonld.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jsonld.php b/jsonld.php index 2cec124..65ff924 100644 --- a/jsonld.php +++ b/jsonld.php @@ -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