W3C home > Mailing lists > Public > www-rdf-interest@w3.org > March 2002

Re: Specifing language direction in RDF

From: Chris Croome <chris@webarchitects.co.uk>
Date: Fri, 1 Mar 2002 19:14:08 +0000
To: www-rdf-interest@w3.org
Message-ID: <20020301191408.GC9252@webarchitects.co.uk>
Hi

On Fri 01-Mar-2002 at 05:27:01 -0000, Jeremy Carroll wrote:
> 
> RDF simply does not support xhtml:dir and trying to get it to do so is
> mistaken.

OK, fair enough, is it OK then not to specify the text direction of
right-to-left languages in RDF files?

> One way to use it successfully though, is with rdf:parseType="Literal".
> 
> e.g.
> 
>  <dc:title xml:lang="en-gb" rdf:parseType="Literal">
>     <xhtml:span xhtml:dir="ltr">Chris Croome's home page</xhtml:span>
>  </dc:title>
> 
> (I don't know xhtml well, and may have made mistakes there).

The XHTML is fine :-)

I've done another test file based on this [1] but it doesn't generate a
triple for the language (or the direction) as is being suggested by the
DCMI [2]:

  http://www.w3.org/RDF/Validator/ARPServlet?TRIPLES_AND_GRAPH=PRINT_BOTH&ORIENTATION=LR&FORMAT=PNG_EMBED&URI=http://chris.croome.net/dc.ltr4.rdf

In that way that my attempt does:

  http://www.w3.org/RDF/Validator/ARPServlet?TRIPLES_AND_GRAPH=PRINT_BOTH&ORIENTATION=LR&FORMAT=PNG_EMBED&URI=http://chris.croome.net/dc.ltr2.rdf

(Sorry for long URI's, I couldn't manage to make them any shorter
without breaking them.)  

> Running in Jena should get you the necessary namespace in the XML
> literal.  M&S is currently somewhat underspecified. On Tuesday the RDF
> Core decided to use XML Canonicalization in some way to specify that
> the namespace is part of the XML literal in an example such as this. I
> am working on the details.

Sorry you have completly lost me here, and appologies in advance if I'm
asking really stupid questions.

Chris


[1] http://chris.croome.net/dc.ltr4.rdf

[2] http://dublincore.org/documents/2001/11/30/dcq-rdf-xml/#sec4

-- 
Chris Croome                               <chris@webarchitects.co.uk>
web design                             http://www.webarchitects.co.uk/ 
web content management                               http://mkdoc.com/   
everything else                               http://chris.croome.net/  
Received on Friday, 1 March 2002 14:13:27 GMT

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