|
From: Geraint E. <rd...@co...> - 2006-03-01 09:49:16
|
Thanks for the response Richard. Richard Cyganiak wrote: > On 28 Feb 2006, at 12:20, Geraint Edwards wrote: > >> I am building a mozilla datasource but am having some difficulties >> with RDF containers. As far as I can tell Mozilla cannot handle Seq >> or Bag entries of type RDF:_n , expecting an RDF:li in both cases. > > That's weird, because rdf:_n is the basic form, and rdf:li is the > syntactic sugar. (Does it work when you change the rdf:_n to rdf:li > manually?) Yes - in fact I am moving from long established (working) simple perl code and local files which present container members as <RDF:li>. I have also followed an example at xulplanet (see http://www.xulplanet.com/tutorials/mozsdk/rdfsyntax.php) written to demonstrate mozilla/rdf and the rdf:_n syntax gives empty containers whereas the rdf:li syntax works as expected. >> (tracking the order with another attribute possibly?) or does >> someone have experience in getting gecko/mozilla to recognise RDF:_n >> nodes within containers? > I suspect what I will need to do is to create a new serialization class extending RdfSerializer and override the writeContentStatements function (I know its meant to be private but its better than hacking the core code!) to rewrite the RDF:_n tags as RDF:_li and adding a custom attribute to pass the order number to firefox. I can then use this custom attribute to create the appropriate RDF:_n based modification statements I send back from the browser to the server. It should work but is a bit of a pain :-(. Geraint |