Hey Michael<br><br><div class="gmail_quote">On Tue, Apr 19, 2011 at 5:32 PM, Michael Kerrin <span dir="ltr">&lt;<a href="mailto:michael.kerrin@gmail.com">michael.kerrin@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi All,<br><br>I created a simple ODF document and tagged it in dolphin through the information panel. After editing the document with kword and saving it (just putting some text into it) I lose my tag in dolphin.</blockquote>
<div><br></div><div><br></div><div>This is weird. When you initially create the file, it should get indexed ( based on its location ), so the resource would get its nie:url and some other basic properties. Then you add a tag. After editing and saving the file, then file would get re-indexed ie the old indexed data would be thrown away and the new indexed data would be added. </div>
<div><br></div><div>None of this should result in the tag being lost. Is this reproduce-able? Cause I can&#39;t seem to reproduce it.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
 Also running any sparql queries with against the nepomuk service show that tag exists before but not after saving the document in kword. This does work if I use libreoffice, the tag stays put. This occurs on a Virtual Machine running Kubuntu natty.<br>


<br>So I decide to dig in and see if I can figure anything out, I built kde with kdesrc-build and jumped in repeating the above trying to debug with gdb what was going on. I saw the same result.<br><br>But now some how just doing the above and nothing else I can remember I have managed to create two resources for the one file, one is tagged and the other is not. Also the tagged up shows up when I view in &quot;tags:/howto/&quot; in konqueror but doesn&#39;t show up in the information panel when I look at the file in dolphin. I found the two nepomuk resources by running the query &quot;SELECT ?r, ?p  WHERE {?r ?p &lt;file:///home/semtest/Documents/nnn&gt;.}&quot; and printed the properties on both resources, note that the <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> property is the same in both cases. The program I put together myself from information in <a href="http://techbase.kde.org" target="_blank">techbase.kde.org</a><br>


<br>semtest@michael-laptop:~/projects/programs/metadata/build$ ./listprops nepomuk:/res/cf89d11d-e7cb-4637-9ed9-42ceceb14899 nepomuk:/res/70b9397a-5c0c-41f0-94bc-6c4f27fefc15 <br>Display properties of: nepomuk:/res/cf89d11d-e7cb-4637-9ed9-42ceceb14899<br>


&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;<br>Property:  &quot;<a href="http://nepomuk.kde.org/ontologies/2010/11/29/kext#unixFileMode" target="_blank">http://nepomuk.kde.org/ontologies/2010/11/29/kext#unixFileMode</a>&quot;   &quot;&quot; <br>


Property:  &quot;<a href="http://nepomuk.kde.org/ontologies/2010/11/29/kext#unixFileOwner" target="_blank">http://nepomuk.kde.org/ontologies/2010/11/29/kext#unixFileOwner</a>&quot;   &quot;semtest&quot; <br>Property:  &quot;<a href="http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#fileName" target="_blank">http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#fileName</a>&quot;   &quot;nnn&quot; <br>


Property:  &quot;<a href="http://www.semanticdesktop.org/ontologies/2007/01/19/nie#mimeType" target="_blank">http://www.semanticdesktop.org/ontologies/2007/01/19/nie#mimeType</a>&quot;   &quot;application/x-zerosize&quot; <br>
Property:  &quot;<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>&quot;   &quot;file:///home/semtest/Documents/nnn&quot; <br>


Property:  &quot;<a href="http://nepomuk.kde.org/ontologies/2010/11/29/kext#unixFileGroup" target="_blank">http://nepomuk.kde.org/ontologies/2010/11/29/kext#unixFileGroup</a>&quot;   &quot;semtest&quot; <br>Property:  &quot;<a href="http://www.semanticdesktop.org/ontologies/2007/01/19/nie#lastModified" target="_blank">http://www.semanticdesktop.org/ontologies/2007/01/19/nie#lastModified</a>&quot;   &quot;&quot; <br>


Property:  &quot;<a href="http://www.semanticdesktop.org/ontologies/2007/01/19/nie#contentSize" target="_blank">http://www.semanticdesktop.org/ontologies/2007/01/19/nie#contentSize</a>&quot;   &quot;&quot; <br>Property:  &quot;<a href="http://www.semanticdesktop.org/ontologies/2007/01/19/nie#isPartOf" target="_blank">http://www.semanticdesktop.org/ontologies/2007/01/19/nie#isPartOf</a>&quot;   &quot;nepomuk:/res/2f543cd9-7d94-44ee-a2d1-33fecc063c03&quot; <br>


<br>Display properties of: nepomuk:/res/70b9397a-5c0c-41f0-94bc-6c4f27fefc15<br>&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;&lt;<br>


Property:  &quot;<a href="http://www.semanticdesktop.org/ontologies/2007/08/15/nao#lastModified" target="_blank">http://www.semanticdesktop.org/ontologies/2007/08/15/nao#lastModified</a>&quot;   &quot;&quot; <br>Property:  &quot;<a href="http://nepomuk.kde.org/ontologies/2010/11/29/kext#unixFileMode" target="_blank">http://nepomuk.kde.org/ontologies/2010/11/29/kext#unixFileMode</a>&quot;   &quot;&quot; <br>


Property:  &quot;<a href="http://nepomuk.kde.org/ontologies/2010/11/29/kext#unixFileOwner" target="_blank">http://nepomuk.kde.org/ontologies/2010/11/29/kext#unixFileOwner</a>&quot;   &quot;semtest&quot; <br>Property:  &quot;<a href="http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#fileName" target="_blank">http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#fileName</a>&quot;   &quot;nnn&quot; <br>


Property:  &quot;<a href="http://www.semanticdesktop.org/ontologies/2007/01/19/nie#mimeType" target="_blank">http://www.semanticdesktop.org/ontologies/2007/01/19/nie#mimeType</a>&quot;   &quot;application/vnd.oasis.opendocument.text&quot; <br>


Property:  &quot;<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>&quot;   &quot;file:///home/semtest/Documents/nnn&quot; <br>
Property:  &quot;<a href="http://www.semanticdesktop.org/ontologies/2007/08/15/nao#hasTag" target="_blank">http://www.semanticdesktop.org/ontologies/2007/08/15/nao#hasTag</a>&quot;   &quot;nepomuk:/res/efff1e19-d771-4b29-80bf-a395335b1542&quot; <br>


Property:  &quot;<a href="http://nepomuk.kde.org/ontologies/2010/11/29/kext#unixFileGroup" target="_blank">http://nepomuk.kde.org/ontologies/2010/11/29/kext#unixFileGroup</a>&quot;   &quot;semtest&quot; <br>Property:  &quot;<a href="http://www.semanticdesktop.org/ontologies/2007/01/19/nie#lastModified" target="_blank">http://www.semanticdesktop.org/ontologies/2007/01/19/nie#lastModified</a>&quot;   &quot;&quot; <br>


Property:  &quot;<a href="http://www.semanticdesktop.org/ontologies/2007/01/19/nie#plainTextContent" target="_blank">http://www.semanticdesktop.org/ontologies/2007/01/19/nie#plainTextContent</a>&quot;   &quot;&quot; <br>
Property:  &quot;<a href="http://www.semanticdesktop.org/ontologies/2007/01/19/nie#contentSize" target="_blank">http://www.semanticdesktop.org/ontologies/2007/01/19/nie#contentSize</a>&quot;   &quot;&quot; <br>

Property:  &quot;<a href="http://www.semanticdesktop.org/ontologies/2007/01/19/nie#isPartOf" target="_blank">http://www.semanticdesktop.org/ontologies/2007/01/19/nie#isPartOf</a>&quot;   &quot;nepomuk:/res/2f543cd9-7d94-44ee-a2d1-33fecc063c03&quot; <br>


Tagged with tag:  &quot;howto&quot; <br><br>#######<br><br>Now why is all this happening and what can I do to help. a) the tag disappears and b) how might I have created two resources for the one file. I don&#39;t think I should be able to create two resources for the one file as it really gets confusing. <br>
<font color="#888888">

<br></font></blockquote><div><br></div><div>You&#39;re right, it shouldn&#39;t be allowed. I think we need some inverse cardinality checks in Nepomuk as well. :/</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<font color="#888888">Michael<br>
</font><br>_______________________________________________<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>
<br></blockquote></div><br><br clear="all"><br>-- <br><font color="#999999">Vishesh Handa</font><br>