[Nepomuk] Tagging from an outside application - effects not showing in Dolphin
Sebastian Trüg
trueg at kde.org
Mon Sep 20 11:51:07 CEST 2010
Your code looks good. So we need to debug the problem.
could you please use the "dumpres" utility from the nepomuk
playground[1] to list properties of the files you tagged.
Cheers,
Sebastian
[1] http://websvn.kde.org/trunk/playground/base/nepomuk-kde/toolbox/
On 09/19/2010 06:52 PM, Luca Beltrame wrote:
> 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.
>
>
>
>
>
> _______________________________________________
> Nepomuk mailing list
> Nepomuk at kde.org
> https://mail.kde.org/mailman/listinfo/nepomuk
More information about the Nepomuk
mailing list