W3C home > Mailing lists > Public > public-rdf-wg@w3.org > January 2014

Re: Language Tag Case Conflict (between RDF1.1 and BCP47)

From: Gregg Kellogg <gregg@greggkellogg.net>
Date: Mon, 27 Jan 2014 11:44:52 -0800
Cc: Sandro Hawke <sandro@w3.org>, RDF Working Group WG <public-rdf-wg@w3.org>
Message-Id: <4B8B6436-8268-4777-B964-15D57E50D073@greggkellogg.net>
To: Andy Seaborne <andy@apache.org>

On Jan 27, 2014, at 6:03 AM, Andy Seaborne <andy@apache.org> wrote:

> On 26/01/14 21:24, Sandro Hawke wrote:
>> Andy Seaborne <andy@apache.org> wrote:
>>> On 26/01/14 14:23, Richard Cyganiak wrote:
>>>> Thanks for the clarifications Ivan.
> ...
>>> [[
>>> RDF 1.1 Concepts and Abstract Syntax is already in the Proposed
>>> Recommendation state of the W3C process, and at this point it is no
>>> longer possible for the editors to make changes (besides trivial
>>> typo/grammar issues).  Any design change will require going back to at
>>> least the Last Call stage.
>>> The Working Group has considered the normalization of language tags
>>> throughout its working phase and the design of semantic equivalence
>>> (comparison equivalence) was the final outcome.  Normalization is one
>>> way to achieve that, it is not the only way.
>>> Your comment will remain on the RDF comments list and any future
>>> working
>>> group may decide to revisit this area.
>>> ]]
>>> 	Andy
>>> (Yes - Jena stores lang tags as-is, based on feedback that some users
>>> expect what gets parsed is also what's written out again.)
>> If be inclined to include that last parenthetical,
> It was not meant to be included (just the [[..]]) - more a disclosure as it's mentioned in the original.
> Jena will change to reflect RDF 1.1.  We/Jena have to manage the transition anyway as persistent data is affected by RDF 1.1 (for simple literals => xsd:strings).

RDF.rb also maintains the language as originally provided and normalizes when doing comparisons. That means that when adding two literals that differ only in the case of the language, the first one added to a repository wins. The various serializers just reproduce what was originally input, unless output is set to normalize, in which case the language is set to lower-case. Language-tagged literals are always given the rdf:langString datatype, per RDF 1.1.

> 	Andy
>>     - Sandro
Received on Monday, 27 January 2014 19:45:19 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:04:37 UTC