From 447aa88d614d8694578ab3b758e4cef48b2fddc0 Mon Sep 17 00:00:00 2001 From: Dave Longley Date: Wed, 13 Feb 2013 17:16:19 -0500 Subject: [PATCH] Do not expand values that are terms unless they are vocab relative. --- jsonld.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jsonld.php b/jsonld.php index ecccb6d..8e5b287 100644 --- a/jsonld.php +++ b/jsonld.php @@ -4310,7 +4310,8 @@ class JsonLdProcessor { $rval = $value; // value is a term - if($mapping && !$mapping->propertyGenerator) { + if(isset($relative_to['vocab']) && $relative_to['vocab'] && + $mapping && !$mapping->propertyGenerator) { $is_absolute = true; $rval = $mapping->{'@id'}; }