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

Re: XMLLiterals and language

From: Reto Bachmann-Gmuer <reto@gmuer.ch>
Date: Mon, 17 Jan 2005 23:19:35 +0100
Message-ID: <41EC39F7.50806@gmuer.ch>
To: Reto Bachmann-Gmuer <reto@gmuer.ch>
CC: www-rdf-interest@w3.org

Ops, I was looking at an old version of rdf-concepts, in the current 
version (1) there is no rdf-wrapper and the answer to my question seems 
to be in section 3.4 "[XHTML] 
<http://www.w3.org/TR/rdf-concepts/#ref-xhtml> may be included within 
RDF in this way. Sometimes, in this latter case, an additional |span| or 
|div| element is needed to carry an |xml:lang| or |lang| attribute.". 
Actually I'm not sure if I'm convinced to look into the xhtml and 
possibly change it, or if I'll go on with plain literals.

reto

1. http://www.w3.org/TR/rdf-concepts/

Reto Bachmann-Gmuer wrote:

> In my application I often deal with XHTML in literal values. The 
> literal have a language as a whole, usually this is the language of 
> all the xhtml elements but not necessarily. Currently I'm storing 
> these as plain literals, now I read in rdf-concepts that XMLLiterals 
> have a root element "rdf-wrapper" which may have an xml:lang. Do I 
> understand this right that all xml-literals have this (implicit) 
> wrapper and may have a language? How do I encode an XMLLiteral with 
> language in rdf/xml?
>
> 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>
>
> Thanks!
> reto
>
Received on Monday, 17 January 2005 22:12:10 GMT

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