[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    playing with nepomuk
From:       Marcos Dione <mdione () grulic ! org ! ar>
Date:       2008-08-03 0:52:10
Message-ID: 20080803005210.GA24260 () mustang ! grulicueva ! net
[Download RAW message or body]


    hi all, sebastian. I've been all day playing with nepomuk, but
couldn't do a simple task: tag a file.

    first of all, the examples in [1] and [2] mention a class
Nepomuk::File, but it seems to not exist anymore. is it generated with
the resource generator?

    now, the code is attached. it's a simple kapp that creates a 'link'
in /tmp/ to a URL and then sets some tags on it. this is accomplished
via a class URL, a simple implementation of Nepomuk::Resource. it takes
care of creating the 'link', building a local URL from the original one.

    this test is cheating, as it asks for the tags to the same URL that
got tagged. if I instead build a Resource from it URL (line 74) I don't
see the tags in it. neither can I find the file with the nepomuksearch
tool, only the tags.

    I think I'm getting Resources wrong. how's the way to do it?

--
[1] http://api.kde.org/4.x-api/kdelibs-apidocs/nepomuk/html/hacking.html

[2] http://api.kde.org/4.x-api/kdelibs-apidocs/nepomuk/html/examples.html
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic