FPWD comment - literals, data types and language tags

Dear all,

Congrats for the WD!

I'm looking at it now, and I'm really happy with simple bodies.
I am not so happy however with the fact that the spec does forbid the use of language tags on simple text bodies.

In the OA community, several months ago, there was a discussion about XML-datatypes vs plain-literals-with-language-tags. As Rob reminded me in private mail:
[
The issue with datatypes and language tags is:

* You can't have both at once in RDF, so we need to allow:
     {"value": "hi", "language": "en", "format": "text/plain"}

* In JSON-LD, the difference between a language tagged literal, and the resource is very confusing:
"hi"@en is:  {"@value": "hi", "@language" : "en"}
Whereas the blank node just drops the @s:   {"value": "hi", "language": "en"}
If we allowed both patterns, we'd be losing any simplicity and understandability gains by having them at all.  So if there's more information than just the value, including format, language, creator, etc, then it has to be a resource following the web architecture.

* If the body data type isn't fixed, you would end up with the same situation as language tags, just with @type and format.  So to prevent it we require it to be an xsd:string, which will serialize to just the string in JSON-LD compaction.
]

At the time I accepted these arguments. But I think what convinced me then is that there were cases mentioned for literal bodies that would have a different (XML) datatype.
Now the FPWD mentions only simple text bodies. So this makes the case for not using plain literals a lot weaker.

If I was a fresh reader, it would puzzle me a lot to find the sentence
"The string body MUST be an xsd:string and MUST NOT have a language associated with it."
And as someone with a key interest in multilingual scenarios, I want to raise again the issue!
In fact the current solution makes annotations-with-literals useless in many of the Europeana cases, so I'd rather see a very good case for not enabling language tags.

Best regards,

Antoine

Received on Saturday, 13 December 2014 15:47:21 UTC