[Nepomuk] Query result count

Ignacio Serantes kde at aynoa.net
Wed Sep 28 08:22:51 UTC 2011


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> 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
> https://mail.kde.org/mailman/listinfo/nepomuk
>



-- 
Best wishes,
Ignacio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/nepomuk/attachments/20110928/9a772d90/attachment-0001.html>


More information about the Nepomuk mailing list