[Nepomuk] Nepomuk database inconsistencies

Michael Kerrin michael.kerrin at gmail.com
Tue Apr 19 14:02:31 CEST 2011


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. 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.

Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/nepomuk/attachments/20110419/6ff1d824/attachment.htm 


More information about the Nepomuk mailing list