[Nepomuk] Re: Nepomuk database inconsistencies

Vishesh Handa handa.vish at gmail.com
Thu Apr 28 21:36:00 CEST 2011


Hey Michael

On Tue, Apr 19, 2011 at 5:32 PM, Michael Kerrin <michael.kerrin at gmail.com>wrote:

> Hi All,
>
> 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.



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.

None of this should result in the tag being lost. Is this reproduce-able?
Cause I can't seem to reproduce it.


> 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.
>
> 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.
>
> 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 "tags:/howto/" in
> konqueror but doesn'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
> "SELECT ?r, ?p  WHERE {?r ?p <file:///home/semtest/Documents/nnn>.}" and
> printed the properties on both resources, note that the
> http://www.semanticdesktop.org/ontologies/2007/01/19/nie#url property is
> the same in both cases. The program I put together myself from information
> in techbase.kde.org
>
> semtest at michael-laptop:~/projects/programs/metadata/build$ ./listprops
> nepomuk:/res/cf89d11d-e7cb-4637-9ed9-42ceceb14899
> nepomuk:/res/70b9397a-5c0c-41f0-94bc-6c4f27fefc15
> Display properties of: nepomuk:/res/cf89d11d-e7cb-4637-9ed9-42ceceb14899
> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> Property:  "http://nepomuk.kde.org/ontologies/2010/11/29/kext#unixFileMode"
> ""
> Property:  "
> http://nepomuk.kde.org/ontologies/2010/11/29/kext#unixFileOwner"
> "semtest"
> Property:  "
> http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#fileName"   "nnn"
>
> Property:  "
> http://www.semanticdesktop.org/ontologies/2007/01/19/nie#mimeType"
> "application/x-zerosize"
> Property:  "http://www.semanticdesktop.org/ontologies/2007/01/19/nie#url"
> "file:///home/semtest/Documents/nnn"
> Property:  "
> http://nepomuk.kde.org/ontologies/2010/11/29/kext#unixFileGroup"
> "semtest"
> Property:  "
> http://www.semanticdesktop.org/ontologies/2007/01/19/nie#lastModified"
> ""
> Property:  "
> http://www.semanticdesktop.org/ontologies/2007/01/19/nie#contentSize"   ""
>
> Property:  "
> http://www.semanticdesktop.org/ontologies/2007/01/19/nie#isPartOf"
> "nepomuk:/res/2f543cd9-7d94-44ee-a2d1-33fecc063c03"
>
> Display properties of: nepomuk:/res/70b9397a-5c0c-41f0-94bc-6c4f27fefc15
> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> Property:  "
> http://www.semanticdesktop.org/ontologies/2007/08/15/nao#lastModified"
> ""
> Property:  "http://nepomuk.kde.org/ontologies/2010/11/29/kext#unixFileMode"
> ""
> Property:  "
> http://nepomuk.kde.org/ontologies/2010/11/29/kext#unixFileOwner"
> "semtest"
> Property:  "
> http://www.semanticdesktop.org/ontologies/2007/03/22/nfo#fileName"   "nnn"
>
> Property:  "
> http://www.semanticdesktop.org/ontologies/2007/01/19/nie#mimeType"
> "application/vnd.oasis.opendocument.text"
> Property:  "http://www.semanticdesktop.org/ontologies/2007/01/19/nie#url"
> "file:///home/semtest/Documents/nnn"
> Property:  "
> http://www.semanticdesktop.org/ontologies/2007/08/15/nao#hasTag"
> "nepomuk:/res/efff1e19-d771-4b29-80bf-a395335b1542"
> Property:  "
> http://nepomuk.kde.org/ontologies/2010/11/29/kext#unixFileGroup"
> "semtest"
> Property:  "
> http://www.semanticdesktop.org/ontologies/2007/01/19/nie#lastModified"
> ""
> Property:  "
> http://www.semanticdesktop.org/ontologies/2007/01/19/nie#plainTextContent"
> ""
> Property:  "
> http://www.semanticdesktop.org/ontologies/2007/01/19/nie#contentSize"   ""
>
> Property:  "
> http://www.semanticdesktop.org/ontologies/2007/01/19/nie#isPartOf"
> "nepomuk:/res/2f543cd9-7d94-44ee-a2d1-33fecc063c03"
> Tagged with tag:  "howto"
>
> #######
>
> 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't think I should be able to create two resources for the one file as it
> really gets confusing.
>
>
You're right, it shouldn't be allowed. I think we need some inverse
cardinality checks in Nepomuk as well. :/


> Michael
>
> _______________________________________________
> Nepomuk mailing list
> Nepomuk at kde.org
> https://mail.kde.org/mailman/listinfo/nepomuk
>
>


-- 
Vishesh Handa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/nepomuk/attachments/20110429/9df87459/attachment-0001.htm 


More information about the Nepomuk mailing list