Thanks.

For the time being, I just made a workaround (For showing the latest n objects, 
newest first: count the objects (N), sort (asc), take the last n objects with 
OFFSET N-n, then sort desc in xslt afterwards) that is probably less work than 
upgrading Mulgara and fixing all the dependencies. I can wait for Fedora 3.6 to 
do it the right way.

Egbert
-----Original Message-----
From: Edwin Shin [mailto:ed...@fedora-commons.org] 
Sent: maandag 13 februari 2012 13:48
To: Support and info exchange list for Fedora users.
Subject: Re: [fcrepo-user] Problem with descending sort in sparql query

I was running out the door when I penned that last email. In more detail: since 
the Fedora your using is using Mulgara 2.1.4 and you need at least 2.1.5, you 
need to see about upgrading your copy of Mulgara.

Unfortunately, it's not as straightforward as just replacing the Mulgara 
library.

What I would do is have a look at the following ticket, which was to upgrade 
Mulgara for the upcoming 3.6 release.:

https://jira.duraspace.org/browse/FCREPO-702?page=com.xiplink.jira.git.jira-git-plugin:git-commits-tabpanel#issue-tabs

>From the git commits, you can work out what libraries you need to replace in 
>your copy of Fedora (assuming you're deploying to Tomcat, you'll find these in 
>your $CATALINA_HOME/webapps/fedora/WEB-INF/lib).

At the very least it's:
DEL lib/derby-10.4.2.0.jar
ADD lib/derby-10.7.1.1.jar
ADD lib/interruptiblermi-1.1.jar
DEL lib/lucene-core-2.4.0.jar
ADD lib/lucene-core-3.4.0.jar
DEL lib/mail-1.3.jar
ADD lib/mail-1.4.1.jar
ADD lib/mulgara-core-2.1.12.jar
DEL lib/mulgara-core-2.1.4.jar
ADD lib/slf4j-api-1.5.11.jar
DEL lib/slf4j-api-1.5.2.jar

but you need to also check the fcrepo/pom.xml and fcrepo-common/pom.xml changes 
to see if there were other dependencies that were changed as well.


Eddie




On 13 Feb 2012, at 7:28 PM, Edwin Shin wrote:

> As I recall, it's an issue w/ the version of Mulgara in Fedora 3.4. You need 
> at least Mulgara 2.1.5 for proper ORDER BY DESC/ASC support.
> 
> On 13 Feb 2012, at 7:08 PM, Egbert Gramsbergen wrote:
> 
>> Hello,
>> 
>> I am using a sparql query like
>> 
>> SELECT ?a ?t
>> WHERE { ?a <info:fedora/fedora-system:def/model#createdDate> ?t } 
>> ORDER BY DESC(?t)
>> 
>> But the result is not sorted by DESC(?t) as it should.
>> Am I missing something? I am using Fedora 3.4.
>> 
>> Egbert Gramsbergen
>> -------------------------------------
>> E.F. Gramsbergen
>> TU Delft Library/Innovation
>> e.f.gramsber...@tudelft.nl
>> 
>> ---------------------------------------------------------------------
>> --------- Try before you buy = See our experts in action!
>> The most comprehensive online learning library for Microsoft 
>> developers is just $99.99! Visual Studio, SharePoint, SQL - plus 
>> HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you 
>> subscribe now!
>> http://p.sf.net/sfu/learndevnow-dev2
>> _______________________________________________
>> Fedora-commons-users mailing list
>> Fedora-commons-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
> 


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers is just 
$99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style 
Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Fedora-commons-users mailing list
Fedora-commons-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Fedora-commons-users mailing list
Fedora-commons-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to