Browse Source

Do not include '@' for empty language tag.

master
Dave Longley 9 years ago
parent
commit
8c0319895c
  1. 4
      jsonld.php

4
jsonld.php

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

Loading…
Cancel
Save