[Mulgara-general] Order of walk results

Rui Castro rui.castro at gmail.com
Fri Mar 13 18:39:51 UTC 2009


Hi,

I'm having problems with a walk query in Mulgara in Fedora Common 2.2.1.

I have the following triples in my triplestore:

=============================================
info:fedora/roda:3,http://roda.dgarq.gov.pt/#child-of,info:fedora/
info:fedora/roda:153,http://roda.dgarq.gov.pt/#child-of,info:fedora/roda:3
info:fedora/roda:152,http://roda.dgarq.gov.pt/#child-of,info:fedora/roda:153
info:fedora/roda:95,http://roda.dgarq.gov.pt/#child-of,info:fedora/roda:152
=============================================


when i perform this query:

******************************************************************
select $child <http://roda.dgarq.gov.pt/#child-of> $parent from <#ri>
where
   walk (
      <info:fedora/roda:95> <http://roda.dgarq.gov.pt/#child-of> $parent
      and $child <http://roda.dgarq.gov.pt/#child-of> $parent
   )
******************************************************************

the results are

=============================================
"child","k0","parent"
info:fedora/roda:95,http://roda.dgarq.gov.pt/#child-of,info:fedora/roda:152
info:fedora/roda:3,http://roda.dgarq.gov.pt/#child-of,info:fedora/
info:fedora/roda:152,http://roda.dgarq.gov.pt/#child-of,info:fedora/roda:153
info:fedora/roda:153,http://roda.dgarq.gov.pt/#child-of,info:fedora/roda:3
=============================================

My problem is that the results are not ordered in any way. I would
expect the results to come ordered like this

=============================================
info:fedora/roda:3,http://roda.dgarq.gov.pt/#child-of,info:fedora/
info:fedora/roda:153,http://roda.dgarq.gov.pt/#child-of,info:fedora/roda:3
info:fedora/roda:152,http://roda.dgarq.gov.pt/#child-of,info:fedora/roda:153
info:fedora/roda:95,http://roda.dgarq.gov.pt/#child-of,info:fedora/roda:152
=============================================

or in the inverse order, like this

=============================================
info:fedora/roda:95,http://roda.dgarq.gov.pt/#child-of,info:fedora/roda:152
info:fedora/roda:152,http://roda.dgarq.gov.pt/#child-of,info:fedora/roda:153
info:fedora/roda:153,http://roda.dgarq.gov.pt/#child-of,info:fedora/roda:3
info:fedora/roda:3,http://roda.dgarq.gov.pt/#child-of,info:fedora/
=============================================

Am i doing something wrong in my query?

Best regards,
Rui Castro



More information about the Mulgara-general mailing list