Hey Sebastian<br><br>I was working on my note taking application, and I want all the resources which are notes. So, I did this -<br><br>Nepomuk::Query::ResourceTypeTerm typeTerm( Nepomuk::Types::Class( PIMO::Note() ) );<br>
Nepomuk::Query::Query query( typeTerm );<br><br>which was fine. Then I realized that I wanted the notes to be sorted according to the last modification date. <br><br>Currently, I'm doing this -<br><br> Nepomuk::Query::ResourceTypeTerm typeTerm( Nepomuk::Types::Class( PIMO::Note() ) );<br>
Nepomuk::Query::Query query( typeTerm );<br><br> Nepomuk::Query::Query::RequestProperty rp( NAO::lastModified(), false );<br> query.addRequestProperty( rp );<br> <br> QString sparql = query.toSparqlQuery() + " order by desc(?reqProp1)";<br>
client->sparqlQuery( sparql );<br clear="all"><br>
Is it possible that you forgot to implement sorting in the query lib? Cause I can't seem to find how to do it.<br><br>-- <br><font color="#999999">Vishesh Handa</font><br>