Hi Steve, Thank you for the answer. I was already planning on upgrading to 2.2.4. I'm glad to know that the problem doesn't occur with Mulgara.
Rui On Fri, Nov 28, 2008 at 7:33 PM, Steve Bayliss <[EMAIL PROTECTED]> wrote: > Hi Rui > > I think this is a problem/bug with Kowari. I can reproduce your problem on > Fedora 2.2.3, but your query works fine on Fedora 3, which is using Mulgara > rather than Kowari. > > You might try either upgrading to Fedora 3, or using Fedora 2.2.4 which has > also been updated to use Mulgara rather than Kowari (release notes are here > - > http://fedora-commons.org/confluence/display/FR22DOC/Fedora+2.2.4+Release+No > tes) > > Steve > > > > -----Original Message----- > From: Rui Castro [mailto:[EMAIL PROTECTED] > Sent: 28 November 2008 15:41 > To: [email protected]; > [EMAIL PROTECTED] > Subject: [Fedora-commons-users] ITQL query failed: empty String > > > Hi, > > I'm having a problem using "order by" in a ITQL query when the field used > for sorting is empty. > > Imagine this query: > > ********************************************************************** > select > $pid $dateinitial > from <#ri> > where > $pid <http://roda.dgarq.gov.pt/#description-dateinitial> $dateinitial > order by $pid limit 3 offset 0 > > --- Results --- > > "pid","dateinitial" > info:fedora/roda:168, > info:fedora/roda:1930, > info:fedora/roda:1931, > ********************************************************************** > Note that the second field $dateinitial is empty for all values. > > Now, if i do the same query but ordering by $dateinitial. Like this: > ********************************************************************** > select > $pid $dateinitial > from <#ri> > where > $pid <http://roda.dgarq.gov.pt/#description-dateinitial> $dateinitial > order by $dateinital limit 3 offset 0 > > --- Result is error --- > > org.trippi.TrippiException: ITQL query failed: empty String > at > org.trippi.impl.kowari.KowariSession.query(KowariSession.java:256) > at > org.trippi.impl.base.ConcurrentTriplestoreReader.findTuples(ConcurrentTriple > storeReader.java:79) > ... > ********************************************************************** > > Does anybody knows a solution arround this? I want to be able to sort by any > field, even when it is empty. > > Best regards, > Rui Castro > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes Grand prize is a trip for two to an Open Source event anywhere in the > world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Fedora-commons-users mailing list [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/fedora-commons-users > > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Fedora-commons-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fedora-commons-developers
