Re: rdf:li
BenKwan <[email protected]> Mon, 22 Jun 2009 02:03:11 -0700 (PDT)
| Newsgroups | gmane.comp.mozilla.devel.rdf |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <[email protected]> |
On Jun 1, 7:45=A0am, Fxp <[email protected]> wrote: > Hi, > > I found out how > * to assert, > * to makeseq : RDFCU.MakeSeq(data, RDF.GetResource("http://www.xulplanet.= com/rdf/myphotos")); > > but I still don't understand how to build the rdf:li inside the > rdf:seq. > > Has it got to do with RDFC.Init and RDFC.appendElement? > > If someone could point me toward a working exemple of this it would be > a big help > > ... unless there is a technique to flush an editable tree directly > back inside the rdf file, in one click :) > > Thank you for your help > > Fran=E7ois build the rdf:li inside the rdf:seq? If i don't misunderstand your mean,i think it is as follow: 1.you get a container : if the container exists,you can create a container and use RDFC.Init,if not,you have you use RDFCU.MakeSeq one! 2.get the resource you want to add to the container: res =3D RDFService.GetResource(aURI),and RDFC.appendElement(res); i hope my answer is helpful for you! gl!