<br><div class="gmail_quote">On Wed, Mar 2, 2011 at 12:28 PM, Sebastian Trüg <span dir="ltr">&lt;<a href="mailto:trueg@kde.org" target="_blank">trueg@kde.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div>&gt; So you actually want this:<br>
&gt;<br>
&gt; select ?r where { { ?r ?p1 ?v1 . ?v1 bif:contains &quot;A&quot; . } UNION { ?r ?p2<br>
&gt; ?v2 . ?v2 bif:contains &quot;B&quot; . } UNION { ?r ?p3 ?v3 . ?v3 ... } . }&quot;<br>
&gt;<br>
&gt; ? Are you sure?<br>
<br>
</div>Ignore that. You mean that what you want is this:<br>
<div><br>
select ?r where {<br>
  ?r ?p1 ?v1 . ?v1 bif:contains &quot;A&quot; .<br>
</div><div>  ?r ?p2 ?v2 . ?v2 bif:contains &quot;B&quot; .<br>
</div>  ?r ?p3 ?v3 . ?v3 ...<br>
}<br>
<br></blockquote><div>Yes and no :).</div><div>Yes: this kind of functionality could be needed at search level and your API seems to support it using AddTerm().</div><div>No: you can&#39;t transform this kind of search in this kind of query because is crazy :).</div>


<div><br></div><div>When you told me that I must use the API, I did a try and found this problem. You can&#39;t add a class with a constructor that supports 6 terms but if you use it you crash DBMS or, when you use more than 3 terms dbms freezes, at least with my data. I don&#39;t need to explain you the reasons why this kind of stuff must be controlled at API level ;).</div>


<div><br></div><div>By the way, as always I need to do more tests, understand how db is organised and where users need to do a search before I obtain conclusions that could be useful to you but, sadly, I&#39;m very short in free time and Ksoprano is useful but annoying. I think I must write my own tool to work with sparql and be more productive.</div>


<div><br></div><div>I have other mail pending with a couple of suggestions about building queries and dbms, but I need some time to prepare it and verify that my optimizations are reliable with additional test. I will try to respond you this weekend.</div>


<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
?<br>
<br>
Cheers,<br>
<font color="#888888">Sebastian<br>
</font><div><div></div><div>_______________________________________________<br>
Nepomuk mailing list<br>
<a href="mailto:Nepomuk@kde.org" target="_blank">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"><br>-- <br>Cheers,<div>Ignacio</div><div><br></div><br>