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

RE: language tags in typed RDF literals

From: <Patrick.Stickler@nokia.com>
Date: Wed, 26 Feb 2003 10:33:21 +0200
Message-ID: <A03E60B17132A84F9B4BB5EEDE57957B01B90BD9@trebe006.europe.nokia.com>
To: <GK@NineByNine.org>, <phayes@ai.uwf.edu>
Cc: <jos.deroo@agfa.com>, <w3c-rdfcore-wg@w3.org>



> -----Original Message-----
> From: ext Graham Klyne [mailto:GK@NineByNine.org]
> Sent: 25 February, 2003 17:28
> To: pat hayes
> Cc: Jos De_Roo; w3c-rdfcore-wg@w3.org
> Subject: Re: language tags in typed RDF literals
> 
> 
> 
> 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.

Well, this is the case now. I.e. we get

<ex:itemForSale> ex:itemDescription "A fine widget"@EN .
<ex:itemForSale> ex:itemPriceInCents "12345"@EN^^xsd:int .

which entails

<ex:itemForSale> ex:itemDescription "A fine widget"@EN .
<ex:itemForSale> ex:itemPriceInCents "12345"^^xsd:int .

but the simpler solution is if we just got from the above RDF/XML

<ex:itemForSale> ex:itemDescription "A fine widget"@EN .
<ex:itemForSale> ex:itemPriceInCents "12345"^^xsd:int .

I.e., the xml:lang does not 'infect' typed literal at all
and thus need not clutter the semantics at all.

Patrick
Received on Wednesday, 26 February 2003 03:33:26 EST

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