forked from friendica/php-json-ld
Do not include '@' for empty language tag.
This commit is contained in:
parent
8a0eb2150e
commit
8c0319895c
|
@ -1638,7 +1638,9 @@ class JsonLdProcessor {
|
||||||
$o->value);
|
$o->value);
|
||||||
$quad .= '"' . $escaped . '"';
|
$quad .= '"' . $escaped . '"';
|
||||||
if($o->datatype === self::RDF_LANGSTRING) {
|
if($o->datatype === self::RDF_LANGSTRING) {
|
||||||
$quad .= "@{$o->language}";
|
if($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}>";
|
||||||
|
|
Loading…
Reference in a new issue