RE: language tags in typed RDF literals

> -----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 UTC