Circular transformation for RDF and n3

Hi,

I have tried a simple transformation and I wonder if it's a cwm 
problem or if I can't do what I'm trying to do.

Let say in a RSS feed we have this item.

    <item rdf:about="http://www.la-grange.net/2003/06/21.html#standard">
       <title>Carnet : Rencontre Standard Web</title>
       <description><![CDATA[<p xmlns="http://www.w3.org/1999/xhtml">Dommage, je
ne serais en France que du <a href="/karl#ailleurs" shape="rect">26 
juillet au 9
  août</a>. Vous pouvez pas renouveler l'expérience quand je serais là.</p>]]>
</description>
       <link>http://standblog.com/index.php?p=93112877&amp;c=1</link>
       <dc:subject>Web, standard</dc:subject>
       <dc:date>2003-06-21</dc:date>
    </item>

I have applied       cwm -rdf feed.rdf -n3 > foo.n3
and so I got

     :standard     a rss:item;
          dc:date "2003-06-21";
          dc:subject "Web, standard";
          rss:description """<p xmlns="http://www.w3.org/1999/xhtml">Dommage, je
ne serais en France que du <a href="/karl#ailleurs" shape="rect">26 
juillet au 9
  ao\u00FBt</a>. Vous pouvez pas renouveler l'exp\u00E9rience quand je 
serais l\u
00E0.</p>""";
          rss:link "http://standblog.com/index.php?p=93112877&c=1";
          rss:title "Carnet : Rencontre Standard Web" .



I have applied again the transformation
		cwm -n3 foo.n3 -rdf > foo.rdf

and I got

     <rss:item rdf:about="http://www.la-grange.net/2003/06/21.html#standard">
         <dc:date>2003-06-21</dc:date>
         <dc:subject>Web, standard</dc:subject>
         <rss:description>&#60;p 
xmlns="http://www.w3.org/1999/xhtml"&#62;Dommage
, je ne serais en France que du &#60;a href="/karl#ailleurs" 
shape="rect"&#62;26
  juillet au 9 août&#60;/a&#62;. Vous pouvez pas renouveler l'expérience quand
je serais là.&#60;/p&#62;</rss:description>
         <rss:link>http://standblog.com/index.php?p=93112877&#38;c=1</rss:link>
         <rss:title>Carnet : Rencontre Standard Web</rss:title>
     </rss:item>

The problem is that I don't have anymore the <p> in their original form.


Why I have tried that, because I thought of using n3 to manage 
content for a Web site.

     :entry0001     a rss:item;
          dc:date "2003-06-21";
           rss:description """
		<p>here all kind of text</p>
		<p>HTML markup</p>
		<p>to be able to insert all kind of things.</p>
	""";
          rss:link "http://www.example.org/2003/06/23.html";
          rss:title "Entry of the day" .

but if n3 to RDF is not going well, I will not be able to do RDF -> 
XHTML afteward.

Any ideas.


-- 
Karl Dubost / W3C - Conformance Manager
           http://www.w3.org/QA/

      --- Be Strict To Be Cool! ---

Received on Monday, 23 June 2003 11:30:29 UTC