If I can expand this thread, always about nepomuksearch and the query library...<div><br></div><div>First question: I have some code like the following:</div><div><div><br></div><div>Query::ComparisonTerm cterm(Types::Property(Soprano::Vocabulary::RDF::type()), Query::ResourceTerm(Nepomuk::Resource(Nepomuk::Vocabulary::NFO::FileDataObject())), Query::ComparisonTerm::Equal);</div>

<div>Query::ComparisonTerm fterm(Types::Property(Soprano::Vocabulary::RDF::type()), Query::ResourceTerm(Nepomuk::Resource(Nepomuk::Vocabulary::NFO::Folder())), Query::ComparisonTerm::Equal);</div><div><br></div><div>then I add the first and the negation of the second term to an AndTerm, then to a file query with an include folder, and the final result is the following:</div>

<div><br></div><div>select distinct ?r  where { { ?r &lt;<a href="http://www.w3.org/1999/02/22-rdf-syntax-ns#type">http://www.w3.org/1999/02/22-rdf-syntax-ns#type</a>&gt; &lt;<a href="http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#FileDataObject">http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#FileDataObject</a>&gt; . OPTIONAL { ?v2 &lt;<a href="http://www.w3.org/1999/02/22-rdf-syntax-ns#type">http://www.w3.org/1999/02/22-rdf-syntax-ns#type</a>&gt; &lt;<a href="http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#Folder">http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#Folder</a>&gt; .  . FILTER(?v2=?r) . } . FILTER(!BOUND(?v2)) . } .  ?r &lt;<a href="http://www.semanticdesktop.org/ontologies/2007/01/19/nie#url">http://www.semanticdesktop.org/ontologies/2007/01/19/nie#url</a>&gt; ?v1 .  FILTER(REGEX(STR(?v1), &quot;^file:///home/alex/nepomuk-kde/misc/&quot;)) .  }</div>

<div><br></div><div>which does not find any file, even if I think it should find some, because the ones in the misc/ subdirectory are correctly indexed by strigi, and I can find them individually...</div><div><br></div><div>

And the second question, about the API itself: shouldn&#39;t be reasonable to add a NotEqual value to the ComparisonTerm comparators? I know that there exists the NegationTerm (which I am using above), but there are all the comparators but the NotEqual already in the enum, so I think it may make sense to add it, too.</div>

<br>-- <br>Sivieri Alessandro<br><a href="mailto:alessandro.sivieri@gmail.com">alessandro.sivieri@gmail.com</a><br><a href="http://www.chimera-bellerofonte.eu/">http://www.chimera-bellerofonte.eu/</a><br><a href="http://www.poul.org/">http://www.poul.org/</a><br>


</div>