[Nepomuk] Query result count

François daitheflu at free.fr
Wed Sep 28 21:17:38 UTC 2011


I didn't succeed in compiling dumpres.cpp (I'm not really used to compiling 
stuff, and it complained about not finding "kde4_add_executable").
So, yep, I think I'd really appreciate the python version of it :)

Cheers,

-- 
François


Le Mercredi 28 Septembre 2011 10:38:01, Sebastian Trüg a écrit :
> Sure, I am always using the C++ version of dumpres but using python
> makes perfect sense. Also it is easier to maintain then. Please do post
> it. Maybe we could add it to nepomukshell or something - just so it is
> easy to install.
> 
> Cheers,
> Sebastian
> 
> On 09/28/2011 10:22 AM, Ignacio Serantes wrote:
> > Hi,
> > 
> > I improved this script a bit. I can upload as an attach.
> > 
> > On Wed, Sep 28, 2011 at 9:27 AM, Sebastian Trüg <trueg at kde.org
> > 
> > <mailto:trueg at kde.org>> wrote:
> >     Now could you also please dumpres (a small tool you can find here:
> >     http://websvn.kde.org/trunk/playground/base/nepomuk-kde/toolbox/) the
> >     files that are returned more than once.
> >     
> >     I tried the query here a few times and always get the same number of
> >     results.
> >     
> >     Cheers,
> >     Sebastian
> >     
> >     On 09/27/2011 11:41 PM, François wrote:
> >     > There it is :
> >     > 
> >     > select distinct ?r where {
> >     > 
> >     >      {
> >     >      
> >     >          ?r a
> >     
> >     <http://www.semanticdesktop.org/ontologies/2009/02/19/nmm#Movie>
> >     
> >     > .
> >     > 
> >     >          ?r a ?v2 .
> >     >          FILTER(?v2 in
> >     
> >     (<http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#Folder>,<h
> >     ttp://www.semanticdesktop.org/ontologies/2007/03/22/nfo#FileDataObjec
> >     t>))
> >     
> >     > .
> >     > 
> >     >          ?r
> >     
> >     <http://www.semanticdesktop.org/ontologies/2007/01/19/nie#url> ?v3
> >     
> >     > .
> >     > 
> >     >          FILTER(REGEX(STR(?v3), '(^file:///home/shared/Films/)',
> >     
> >     'i')) .
> >     
> >     >      }  .
> >     >      ?r
> >     
> >     <http://www.semanticdesktop.org/ontologies/2007/08/15/nao#userVisible
> >     >
> >     
> >     > ?v1 .
> >     > 
> >     >      FILTER(?v1>0) .
> >     >  
> >     >  }
> >     > 
> >     > Thanks for your interest and patience :)
> >     
> >     _______________________________________________
> >     Nepomuk mailing list
> >     Nepomuk at kde.org <mailto:Nepomuk at kde.org>
> >     https://mail.kde.org/mailman/listinfo/nepomuk
> 
> _______________________________________________
> Nepomuk mailing list
> Nepomuk at kde.org
> https://mail.kde.org/mailman/listinfo/nepomuk


More information about the Nepomuk mailing list