<div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
FINALLY SOMEONE LOOKS AT THIS STUFF BESIDES ME!!!!!!!!!!!!!!!!<br>
THANK YOU! :)<br>
<br></blockquote><div><br>:-)<br></div><div> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">
On 05/07/2010 01:15 PM, Vishesh Handa wrote:<br>
&gt; 1. The *Nepomuk::ResourceData::hasProperty( const QUrl&amp; uri )* function<br>
&gt; currently uses the MAINMODEL to answer. It think it should use the<br>
&gt; cache, as it would be faster. The function *hasProperty( const QUrl&amp; p,<br>
&gt; const Variant&amp; v ) *also uses the cache. A patch has been provided.<br>
<br>
</div>yes, please commit.<br>
<div class="im"><br></div></blockquote><div><br>Done!<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">
&gt; 2. The *Nepomuk::ResourceData::removeProperty( const QUrl&amp; uri )*<br>
&gt; function doesn&#39;t update the cache. The setProperty function does. It<br>
&gt; should be symmetrical. I think.<br>
<br>
</div>also correct.<br>
<br>
Can you backport this one?<br>
<br></blockquote><div><br>Committed and backported. <br></div><div class="im"> <br>
<br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">You are correct. But as you said the method is not used anyway, so we<br>
better remove it. right?<br></blockquote><div><br>I was going through the code again and the documentation clearly mentions that this function is meant for properties whose cardinality is one. (I missed this!)<br>        <br>
         /**<br>         * Update a property. This means an existing property is replaced if it differs from<br>         * the provided value. Otherwise nothing is done.<br>         *<br>         * This method assumes that the cardinality or property is 1.<br>
         */<br><br>So, it&#39;s doing exactly what it should. There is no reason to remove it. We could put a warning if the cardinality is greater than 1 or modify it so that it doesn&#39;t do anything if the cardinality &gt; 1. I&#39;ll write a patch tomorrow.<br>
<br>- Vishesh Handa 
<br></div></div>