Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

rdf:li

3 views
Skip to first unread message

Fxp

unread,
May 31, 2009, 7:45:24 PM5/31/09
to
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çois

Neil

unread,
Jun 1, 2009, 5:02:18 AM6/1/09
to
Fxp wrote:

>* 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?
>
>

That's the easy way to do it, yes ;-) (it's AppendElement by the way,
for some reason RDF always begins with a capital letter)

>If someone could point me toward a working exemple of this it would be a big help
>
>

I think SeaMonkey's sidebar fiddles around with RDF containers, see
http://hg.mozilla.org/comm-central/file/default/suite/common/sidebar/

--
Warning: May contain traces of nuts.

BenKwan

unread,
Jun 22, 2009, 5:03:11 AM6/22/09
to
On Jun 1, 7:45 am, Fxp <f-...@laposte.net> 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çois

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 =
RDFService.GetResource(aURI),and RDFC.appendElement(res);

i hope my answer is helpful for you!
gl!

0 new messages