Do not expand values that are terms unless they are vocab relative.

This commit is contained in:
Dave Longley 2013-02-13 17:16:19 -05:00
parent 2c8b2ef18d
commit 447aa88d61

View file

@ -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'};
}