Hi,<div><br></div><div>I improved this script a bit. I can upload as an attach.<br><br><div class="gmail_quote">On Wed, Sep 28, 2011 at 9:27 AM, Sebastian Trüg <span dir="ltr"><<a href="mailto:trueg@kde.org">trueg@kde.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Now could you also please dumpres (a small tool you can find here:<br>
<a href="http://websvn.kde.org/trunk/playground/base/nepomuk-kde/toolbox/" target="_blank">http://websvn.kde.org/trunk/playground/base/nepomuk-kde/toolbox/</a>) the<br>
files that are returned more than once.<br>
<br>
I tried the query here a few times and always get the same number of<br>
results.<br>
<br>
Cheers,<br>
<font color="#888888">Sebastian<br>
</font><div class="im"><br>
On 09/27/2011 11:41 PM, François wrote:<br>
> There it is :<br>
><br>
> select distinct ?r where {<br>
> {<br>
> ?r a <<a href="http://www.semanticdesktop.org/ontologies/2009/02/19/nmm#Movie" target="_blank">http://www.semanticdesktop.org/ontologies/2009/02/19/nmm#Movie</a>><br>
> .<br>
> ?r a ?v2 .<br>
> FILTER(?v2 in<br>
> (<<a href="http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#Folder" target="_blank">http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#Folder</a>>,<<a href="http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#FileDataObject" target="_blank">http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#FileDataObject</a>>))<br>
> .<br>
> ?r <<a href="http://www.semanticdesktop.org/ontologies/2007/01/19/nie#url" target="_blank">http://www.semanticdesktop.org/ontologies/2007/01/19/nie#url</a>> ?v3<br>
> .<br>
> FILTER(REGEX(STR(?v3), '(^file:///home/shared/Films/)', 'i')) .<br>
> } .<br>
> ?r <<a href="http://www.semanticdesktop.org/ontologies/2007/08/15/nao#userVisible" target="_blank">http://www.semanticdesktop.org/ontologies/2007/08/15/nao#userVisible</a>><br>
> ?v1 .<br>
> FILTER(?v1>0) .<br>
> }<br>
><br>
> Thanks for your interest and patience :)<br>
><br>
</div><div><div></div><div class="h5">_______________________________________________<br>
Nepomuk mailing list<br>
<a href="mailto:Nepomuk@kde.org">Nepomuk@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/nepomuk" target="_blank">https://mail.kde.org/mailman/listinfo/nepomuk</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Best wishes,<div>Ignacio</div><div><br></div><br>
</div>