[Nepomuk] Fetch results with dbus

Sebastian Trüg trueg at kde.org
Mon Mar 22 12:16:14 CET 2010


Well, you cannot query using qdbus since the query service discards any
query information as soon as the client terminates.

Thus, you need to do the DBus thing inside an application or a script
(using qdbus in a script will of course not work since the situation is
the same).

In case you know some Ruby or Python you could write a little script
that does exactly that: use the string from the command line as input
for a query to the query service and then print all results.

This would be a nice exercise and a helpful testing tool for many people
(including myself). :)

Cheers,
Sebastian

On 03/22/2010 10:32 AM, David Tapiador wrote:
> Hello,
> 
> My name is David, and i'm a newbie in this world of semantic desktop :)
> 
> Yesterday, i was reading about nepomuk services and how to query results with 
> dbus, but i cant get it.
> 
> In this document[1] there are some explains but none works... The same search 
> works ok in dolphin and give results
> 
> Maybe the syntax is wrong?
> 
> i've done this queries
> 
> nogates at emma:~$ qdbus org.kde.nepomuk.services.nepomukqueryservice 
> /nepomukqueryservice query 'contentSize>1KiB'
> 
> nogates at emma:~$ qdbus org.kde.nepomuk.services.nepomukqueryservice 
> /
> /nepomukqueryservice
> /servicecontrol
> nogates at emma:~$ qdbus org.kde.nepomuk.services.nepomukqueryservice 
> /nepomukqueryservice query hasTag:diy
> 
> nogates at emma:~$ qdbus org.kde.nepomuk.services.nepomukqueryservice 
> /
> /nepomukqueryservice
> /servicecontrol
> 
> An object path should be created at qdbus org.kde.nepomuk.Query, shouldnt it?
> 
> Any help will welcomed :)
> 
> i'm using kde 4.4.1
> 
> ty!
> 
> 
> [1] 
> http://techbase.kde.org/Development/Tutorials/Metadata/Nepomuk/QueryService
> 
> --
> David Tapiador del Dujo
> -----------------------------------------------
> Gnoxys, Desarrollo y Sistemas de Software Libre
> 
> Tlf. Ofic.: 91 521 63 24
> Tlf. Movil: 653 92 53 38
> david.tapiador at gnoxys.net
> http://www.gnoxys.net
> -----------------------------------------------
> _______________________________________________
> Nepomuk mailing list
> Nepomuk at kde.org
> https://mail.kde.org/mailman/listinfo/nepomuk
> 


More information about the Nepomuk mailing list