[Kde-bindings] Ruby Nepomuk::Query Module

Richard Dale richard.dale at telefonica.net
Mon Apr 9 20:08:29 UTC 2012


On Wednesday, March 14, 2012 08:52:03 PM David Tapiador wrote:
> Hi there,
> 
> Im new here, so firstly, say hello to kde binding community :)
> 
> In the last couple of this, i have been triying to write a ruby script with
> ruby kde bindings, aka korundum. i've followed some tutorials on internet
> written in python[1] (nothing found on ruby), and all works fine until i
> have to use Nepumok::Query Module and subclasses.
> 
> nogates at emma:~$ irb
> irb(main):003:0> require 'korundum4'
> => true
> irb(main):005:0* require 'nepomuk'
> => true
> irb(main):006:0> Nepomuk::Resource
> => Nepomuk::Resource
> irb(main):007:0> Nepomuk::Query
> NameError: uninitialized constant Nepomuk::Query
> 
> Am i missing something? or it is just ruby bindings has not this feature?
I've just had a look and the Smoke bindings that korundum uses are split into 
two libs - nepomuk and nepomukquery. There is a corresponding ruby module for 
nepomuk, but unfortunately not for nepomukquery. It isn't hard to add one, and 
I'll try and do that this week.

-- Richard

> 
> Im using debian unstable with this packages
> 
> libdbus-ruby                          0.7.0-1
> libdbus-ruby1.8                       0.7.0-1
> libglib2-ruby1.8                      1.0.3-1
> libkde4-ruby                          4:4.7.1-1
> libkde4-ruby1.8                       4:4.7.1-1
> libopenssl-ruby                       4.4
> libopenssl-ruby1.8                    1.8.7.249-2
> libplasma-ruby                        4:4.7.1-1
> libplasma-ruby1.8                     4:4.7.1-1
> libqt4-ruby                           4:4.7.1-1
> libqt4-ruby1.8                        4:4.7.1-1
> libqtruby4shared2                     4:4.7.1-1+b1
> librmagick-ruby                       2.13.1-5
> libruby1.8                            1.8.7.352-2
> libruby1.8-dbg                        1.8.7.352-2
> libruby1.9.1                          1.9.3.0-2
> libsoprano-ruby1.8                    4:4.7.1-1
> plasma-scriptengine-ruby              4:4.7.4-1
> ruby                                  4.8
> ruby-akonadi                          4:4.7.1-1
> ruby-dbus                             0.7.0-1
> ruby-glib2                            1.0.3-1+b1
> ruby-kde4                             4:4.7.1-1
> ruby-kde4-dbg                         4:4.7.1-1
> ruby-okular                           4:4.7.1-1
> ruby-phonon                           4:4.7.1-1+b1
> ruby-plasma                           4:4.7.1-1
> ruby-qt4                              4:4.7.1-1+b1
> ruby-qt4-dbg                          4:4.7.1-1+b1
> ruby-qt4-script                       4:4.7.1-1+b1
> ruby-qt4-test                         4:4.7.1-1+b1
> ruby-qt4-uitools                      4:4.7.1-1+b1
> ruby-qt4-webkit                       4:4.7.1-1+b1
> ruby-rmagick                          2.13.1-5+b1
> ruby-soprano                          4:4.7.1-1
> ruby1.8                               1.8.7.352-2
> ruby1.8-dev                           1.8.7.352-2
> 
> KDE env is
> 
> nogates at emma:~$ systemsettings --version
> Qt: 4.7.4
> KDE Development Platform: 4.7.4 (4.7.4)
> System Settings: 1.0
> 
> Thanks for your time!
> 
> cheers!
> 
> [1] http://www.dennogumi.org/2011/06/pykde4-queries-with-nepomuk


More information about the Kde-bindings mailing list