ericP added a comment.

  The RDF model asserts that a literal with a langtag is considered to have a 
datatype of `rdf:langString`. The various formats state exactly how literals 
with langtags are written. The former specifies how APIs behave, such as a 
SPARQL FILTER ```DATATYPE("ab"@es) = rdf:langTag```; the latter specifies how 
they are written. The rules for the XML and JSON results formats are that the 
implicit datatype of langtagged literals  is omitted.
  
  I can see how this is confusing but I believe the community doesn't see them 
as conflicting.  Also, sadly, it seems that these are covered for the XML 
results format (look for `xml:lang` in the results for strlang03 
<https://www.w3.org/2009/sparql/docs/tests/summary.html#functions-strlang03>, 
but not for JSON.

TASK DETAIL
  https://phabricator.wikimedia.org/T225996

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: ericP
Cc: ericP, Smalyshev, Lucas_Werkmeister_WMDE, Fnielsen, Aklapper, 
darthmon_wmde, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, EBjune, merbst, 
LawExplorer, _jensen, rosalieper, Cirdan, Jonas, Xmlizer, jkroll, 
Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to