W3C home > Mailing lists > Public > w3c-rdfcore-wg@w3.org > February 2003

Re: language tags in typed RDF literals

From: Graham Klyne <GK@NineByNine.org>
Date: Tue, 25 Feb 2003 15:27:57 +0000
Message-Id: <5.1.0.14.2.20030225152354.0445e6b0@127.0.0.1>
To: pat hayes <phayes@ai.uwf.edu>
Cc: "Jos De_Roo" <jos.deroo@agfa.com>, w3c-rdfcore-wg@w3.org

At 02:23 PM 2/21/03 -0600, pat hayes wrote:

>>[just to make sure w.r.t. rdf comments]
>>
>>
>>We currently have (in our test code) that
>>
>>   <test#x> <test#y> "10"@en^^xsd:int.
>>
>>rdfs xsd entails
>>
>>   <test#x> <test#y> "10"@fr^^xsd:int.
>>
>>(i.e. ignoring the lang tag)
>
>How about
>
><test#x> <test#y> "10"@en^^xsd:int .
>
>entails
>
><test#x> <test#y> "10"^^xsd:int .
>
>and vice versa?

I think this would be less surprising to users of RDF/XML;  e.g.

<rdf:RDF xmlns ...
          xml:lang="EN">
    <rdf:Description about="ex:itemForSale">
        <ex:itemDescription>A fine widget</ex:itemDescription>
        <ex:itemPriceInCents rdf:datatype="xsd:int">12345</ex:itemPriceInCents>
    </rdf:Description>
</rdf:RDF>

In this interpretation of language tags that Pat suggests, the presence of 
an outer language tag would not upset the inner datatyped interpretation.

#g


-------------------
Graham Klyne
<GK@NineByNine.org>
Received on Tuesday, 25 February 2003 12:19:41 EST

This archive was generated by hypermail pre-2.1.9 : Wednesday, 3 September 2003 09:55:53 EDT