Ordered containers using RDF:_n tag form

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Ordered containers using RDF:_n tag form

Geraint Edwards-3
I am setting up RAP-RDF API for PHP to feed/manage a mozilla datasource
and have hit a problem.

RAP serializes the data graph using ordinal tags (for both SEQs and
BAGs). eg:

<RDF:Seq>
  <RDF:_1>...
  <RDF:_2>...
...
</RDF:Seq>

as opposed to:

<RDF:Seq>
  <RDF:li>...
  <RDF:li>...
...
</RDF:Seq>

When I load this datasource into mozilla the containers all appear empty
to mozilla (GetCount() always returns 0).

Is there anyway to tell Mozilla to expect the container SEQ to have
ordinal tags instead of simple RDF:li tags?

The ordinal tags are very useful on the server since they allow
resequencing for ordered containers (SEQ) to be managed fairly easily.

Thanks

Geraint

p.s. I also have the same problem with a similar example at xulplanet
http://xulplanet.com/tutorials/mozsdk/rdfsyntax.php
_______________________________________________
dev-tech-rdf mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-rdf
Reply | Threaded
Open this post in threaded view
|

Re: Ordered containers using RDF:_n tag form

Axel Hecht-2
https://bugzilla.mozilla.org/show_bug.cgi?id=106516 is the appropriate
bug. I used to work on a patch to remove this problem, but it bitrots
somewhere, and honestly, right now, I don't even know which bug that
progress was in.

Axel

Geraint Edwards wrote:

> I am setting up RAP-RDF API for PHP to feed/manage a mozilla datasource
> and have hit a problem.
>
> RAP serializes the data graph using ordinal tags (for both SEQs and
> BAGs). eg:
>
> <RDF:Seq>
>  <RDF:_1>...
>  <RDF:_2>...
> ...
> </RDF:Seq>
>
> as opposed to:
>
> <RDF:Seq>
>  <RDF:li>...
>  <RDF:li>...
> ...
> </RDF:Seq>
>
> When I load this datasource into mozilla the containers all appear empty
> to mozilla (GetCount() always returns 0).
>
> Is there anyway to tell Mozilla to expect the container SEQ to have
> ordinal tags instead of simple RDF:li tags?
>
> The ordinal tags are very useful on the server since they allow
> resequencing for ordered containers (SEQ) to be managed fairly easily.
>
> Thanks
>
> Geraint
>
> p.s. I also have the same problem with a similar example at xulplanet
> http://xulplanet.com/tutorials/mozsdk/rdfsyntax.php
_______________________________________________
dev-tech-rdf mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-rdf
Reply | Threaded
Open this post in threaded view
|

Re: Ordered containers using RDF:_n tag form

Geraint Edwards-3
Axel Hecht wrote:
> https://bugzilla.mozilla.org/show_bug.cgi?id=106516 is the appropriate
> bug. I used to work on a patch to remove this problem, but it bitrots
> somewhere, and honestly, right now, I don't even know which bug that
> progress was in.
>
> Axel

I'll probably write a modification to the server code to provide RDF:li
data but using a additional attribute to track the appropriate triplet
on the server.  I'll have to see if I can get at the 'hidden' ordering
data within 'mozilla' so I can keep both sides in sync.

Thanks for finding the bug

Geraint
_______________________________________________
dev-tech-rdf mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-rdf
Reply | Threaded
Open this post in threaded view
|

Re: Ordered containers using RDF:_n tag form

CaroleHOLDER26
In reply to this post by Geraint Edwards-3
freelance writer


_______________________________________________
dev-tech-rdf mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-rdf