[Nepomuk] Tagging from an outside application - effects not showing in Dolphin
Luca Beltrame
einar at heavensinferno.net
Sun Sep 19 18:52:15 CEST 2010
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/nepomuk/attachments/20100919/136bd740/attachment.sig
More information about the Nepomuk
mailing list