[Nepomuk] Query result count

Sebastian Trüg trueg at kde.org
Wed Sep 28 08:38:01 UTC 2011


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>,<http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#FileDataObject>))
>     > .
>     >          ?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
> 
> 
> 
> 
> -- 
> Best wishes,
> Ignacio
> 
> 
> 
> 
> _______________________________________________
> Nepomuk mailing list
> Nepomuk at kde.org
> https://mail.kde.org/mailman/listinfo/nepomuk


More information about the Nepomuk mailing list