W3C home > Mailing lists > Public > www-rdf-interest@w3.org > January 2005

Re: XMLLiterals and language

From: Jeremy Carroll <jjc@hplb.hpl.hp.com>
Date: Tue, 18 Jan 2005 10:21:28 +0000
Message-ID: <41ECE328.7080101@hplb.hpl.hp.com>
To: Reto Bachmann-Gmuer <reto@gmuer.ch>
Cc: www-rdf-interest@w3.org



Language is a pain with XML Literals.


> 
> The RDF-Validator does not mention the language in the triple-list 
> generated from the following:
> 
> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>  xmlns:dc="http://purl.org/dc/elements/1.1/">
>  <rdf:Description rdf:about="http://www.w3.org/">
>    <dc:title  rdf:parseType="Literal" xml:lang="en">World Wide Web 
> Consortium</dc:title>
>  </rdf:Description>
> </rdf:RDF>
> 

According to the recs the language in this one is ignored. If you want 
the language tag (which you should) you have to put it explicitly inside 
the XMLLiteral e.g.


<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns="....xhtml"
   xmlns:dc="http://purl.org/dc/elements/1.1/">
   <rdf:Description rdf:about="http://www.w3.org/">
     <dc:title  rdf:parseType="Literal" xml:lang="en"><span
xml:lang="en">World Wide Web
  Consortium</span></dc:title>
   </rdf:Description>
  </rdf:RDF>
> Thanks!
> reto
> 

Jeremy
Received on Tuesday, 18 January 2005 10:21:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:52:12 GMT