Do not include '@' for empty language tag.

This commit is contained in:
Dave Longley 2013-07-15 14:10:29 -04:00
parent 8a0eb2150e
commit 8c0319895c

View file

@ -1638,8 +1638,10 @@ class JsonLdProcessor {
$o->value); $o->value);
$quad .= '"' . $escaped . '"'; $quad .= '"' . $escaped . '"';
if($o->datatype === self::RDF_LANGSTRING) { if($o->datatype === self::RDF_LANGSTRING) {
if($o->language) {
$quad .= "@{$o->language}"; $quad .= "@{$o->language}";
} }
}
else if($o->datatype !== self::XSD_STRING) { else if($o->datatype !== self::XSD_STRING) {
$quad .= "^^<{$o->datatype}>"; $quad .= "^^<{$o->datatype}>";
} }