Hello,

in my small application I've been using Nepomuk for tagging specific files. 
I've been creating a Resource out of a KUrl of each file, then calling either 
setTags() or addTag() depending on the number of tags. Each new tag is created 
by setting both the tag name when constructing it, and by calling setLabel() 
afterwards. 

My issue is that such things don't show up in Dolphin.  The tag gets correctly 
created (and as far as I can tell, even assigned, if I load the resource and 
just check its tags() ) but Dolphin doesn't show it as being assigned to the 
file in question (nor does Gwenview, if I use an image file). I don't think 
it's a Dolphin bug, rather a problem of what I'm doing so far. 

I followed the examples in the techbase tutorials, by the way, and I'm using 
4.5.1.

What is the "correct" way of tagging a file so that it shows also in other ?

I'm currently using the Python bindings of Nepomuk, but even C++ examples 
should be ok (I can understand it). 

For reference, an excerpt of the code is as follows:

resource = Nepomuk.Resource(KUrl(file_path))
new_tag = Nepomuk.Tag("test_tag")
resource.addTag(new_tag)

Please CC me to replies, as I'm not subscribed.


Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Nepomuk mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/nepomuk

Reply via email to