This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Is Nepoogle good for you?

Tags: None
(comma "," separated)
User avatar
Ignacio Serantes
Registered Member
Posts
453
Karma
1
OS

Is Nepoogle good for you?

Mon Jun 11, 2012 12:17 pm
Initially Nepoogle was designed only as a tool to query Nepomuk avoiding the encoding bugs using a powerful but simple query syntax. More than nine months passed and during this time Nepoogle has been evolved and today offers a good collection of features: playlists, previews, resources deletion, duplicates management, hyperlinks, query links, Google search for contact names, Nepomuk TVNamer support, etc...

The fact it's I'm really comfortable using Nepoogle, I'm the developer and fits perfect to me ;), but as I received few feedback I'm not sure if Nepoogle fits to others.

I'm working adding parenthesis support to query syntax, something fundamental in a good query language, and this will mark the release of version 1.0. For next mayor version of Nepoogle I would add support to remote queries, sorting features, a new query engine and, I hope, a better user experience.

So, are there suggestions about how to improve Nepoogle?


Ignacio Serantes, proud to be a member of KDE forums since 2008-Nov.
User avatar
Ignacio Serantes
Registered Member
Posts
453
Karma
1
OS

Re: Is Nepoogle good for you?

Fri Jul 06, 2012 5:58 pm
A screenshot where you can see the power inside Nepomuk, a Music Album with metadata and the associated video clips.

Image

Full size version: https://dl.dropbox.com/u/1111731/kde/nepoogle%2019.png


Ignacio Serantes, proud to be a member of KDE forums since 2008-Nov.
User avatar
šumski
Registered Member
Posts
106
Karma
1
OS

Re: Is Nepoogle good for you?

Fri Jul 06, 2012 7:42 pm
This is great (judging only by the screenshot). Will try it and report back ;)
User avatar
šumski
Registered Member
Posts
106
Karma
1
OS

Re: Is Nepoogle good for you?

Fri Jul 06, 2012 9:21 pm
Am i missing something? Or doing it wrong?
Code: Select all
Traceback (most recent call last):
  File "/usr/local/bin/nepoogle", line 89, in <module>
    from lglobals import *
ImportError: No module named lglobals
User avatar
Ignacio Serantes
Registered Member
Posts
453
Karma
1
OS

Re: Is Nepoogle good for you?

Fri Jul 06, 2012 9:33 pm
šumski wrote:Am i missing something? Or doing it wrong?
Code: Select all
Traceback (most recent call last):
  File "/usr/local/bin/nepoogle", line 89, in <module>
    from lglobals import *
ImportError: No module named lglobals

If you are trying git you must generate nepoogle script executing build.py in the directory where nepoogle is located. Try the next command in console:

mkdir build && ./build.py nepoogle build/nepoogle

then you could use build/nepoogle.

Sorry, "install.sh" it's not ready to be used with git sources but it's required to install icons.


Ignacio Serantes, proud to be a member of KDE forums since 2008-Nov.
User avatar
šumski
Registered Member
Posts
106
Karma
1
OS

Re: Is Nepoogle good for you?

Fri Jul 06, 2012 10:07 pm
That's allright, installed with your instructions, but it is not working. This isn't something on nepoogle's end as searching doesn't work in dolphin/krunner also.

Image

Image

Image
User avatar
Ignacio Serantes
Registered Member
Posts
453
Karma
1
OS

Re: Is Nepoogle good for you?

Fri Jul 06, 2012 10:15 pm
šumski wrote:That's allright, installed with your instructions, but it is not working. This isn't something on nepoogle's end as searching doesn't work in dolphin/krunner also.


KDE version? In the help there is a warning:

Warning!: in KDE 4.9 Nepoogle's query engine it's not working so default query engine is Nepomuk::Query:QueryParser().

So in this case Nepoogle engine it's not working and you must use Nepomuk::Query::QueryParser syntax, the same used by KRunner and Dolphin.

try something like performer:"artist name here", this must work if you have audio from that artist indexed.


Ignacio Serantes, proud to be a member of KDE forums since 2008-Nov.
User avatar
šumski
Registered Member
Posts
106
Karma
1
OS

Re: Is Nepoogle good for you?

Fri Jul 06, 2012 10:39 pm
Code: Select all
sopranocmd --version
sopranocmd 2.8.0

kde4-config --version
Qt: 4.8.2
KDE Development Platform: 4.8.97
kde4-config: 1.0


Image

Konsole output when performing a query:
Code: Select all
select distinct ?r WHERE {
 
}
select distinct ?r (bif:concat(bif:search_excerpt(bif:vector('Billy Cobham'), ?v2))) as ?_n_f_t_m_ex_ WHERE {
  ?r <http://www.semanticdesktop.org/ontologies/2009/02/19/nmm#performer> ?v1 . FILTER EXISTS {
  ?r a [ <http://www.semanticdesktop.org/ontologies/2007/08/15/nao#userVisible> "true"^^<http://www.w3.org/2001/XMLSchema#boolean> ] .
 } .
 ?v1 <http://www.w3.org/2000/01/rdf-schema#label> ?v2 . FILTER(bif:contains(?v2, "'Billy Cobham'")) .
}
"/usr/bin/python2.7(12654)" Soprano: "SQLExecDirect failed on query 'sparql DEFINE input:inference <nepomukinference> select distinct ?r (bif:concat(bif:search_excerpt(bif:vector('Billy Cobham'), ?v2))) as ?_n_f_t_m_ex_ where { ?r <http://www.semanticdesktop.org/ontologies/2009/02/19/nmm#performer> ?v1 . FILTER EXISTS { ?r a [ <http://www.semanticdesktop.org/ontologies/2007/08/15/nao#userVisible> 'true'^^<sopranofakes:/booleanHackUntilVirtuosoProblemIsResolved> ] . } . ?v1 <http://www.w3.org/2000/01/rdf-schema#label> ?v2 . FILTER(bif:contains(?v2, "'Billy Cobham'")) . }' (iODBC Error: [OpenLink][Virtuoso iODBC Driver][Virtuoso Server]SQ074: Line 1: SP031: SPARQL: Internal error: 'output:valmode' declaration conflicts with 'output:format')"
"/usr/bin/python2.7(12654)" Soprano: "SQLExecDirect failed on query 'sparql DEFINE input:inference <nepomukinference> select distinct ?r (bif:concat(bif:search_excerpt(bif:vector('Billy Cobham'), ?v2))) as ?_n_f_t_m_ex_ where { ?r <http://www.semanticdesktop.org/ontologies/2009/02/19/nmm#performer> ?v1 . FILTER EXISTS { ?r a [ <http://www.semanticdesktop.org/ontologies/2007/08/15/nao#userVisible> 'true'^^<sopranofakes:/booleanHackUntilVirtuosoProblemIsResolved> ] . } . ?v1 <http://www.w3.org/2000/01/rdf-schema#label> ?v2 . FILTER(bif:contains(?v2, "'Billy Cobham'")) . }' (iODBC Error: [OpenLink][Virtuoso iODBC Driver][Virtuoso Server]SQ074: Line 1: SP031: SPARQL: Internal error: 'output:valmode' declaration conflicts with 'output:format')"
"/usr/bin/python2.7(12654)" Soprano: "SQLExecDirect failed on query 'sparql DEFINE input:inference <nepomukinference> select distinct ?r (bif:concat(bif:search_excerpt(bif:vector('Billy Cobham'), ?v2))) as ?_n_f_t_m_ex_ where { ?r <http://www.semanticdesktop.org/ontologies/2009/02/19/nmm#performer> ?v1 . FILTER EXISTS { ?r a [ <http://www.semanticdesktop.org/ontologies/2007/08/15/nao#userVisible> 'true'^^<sopranofakes:/booleanHackUntilVirtuosoProblemIsResolved> ] . } . ?v1 <http://www.w3.org/2000/01/rdf-schema#label> ?v2 . FILTER(bif:contains(?v2, "'Billy Cobham'")) . }' (iODBC Error: [OpenLink][Virtuoso iODBC Driver][Virtuoso Server]SQ074: Line 1: SP031: SPARQL: Internal error: 'output:valmode' declaration conflicts with 'output:format')"
User avatar
šumski
Registered Member
Posts
106
Karma
1
OS

Re: Is Nepoogle good for you?

Fri Jul 06, 2012 11:25 pm
Could be virtuoso issue?
http://mail.kde.org/pipermail/nepomuk/2 ... 02536.html
Yup, downgraded to 6.1.4, and it's better:

Image

Image

but:
Image
Does it need re-indexing?

Performer/artist search still doesn't work:
Image
User avatar
Ignacio Serantes
Registered Member
Posts
453
Karma
1
OS

Re: Is Nepoogle good for you?

Sat Jul 07, 2012 9:24 am
There are changes in KDE 4.9 affecting Nepomuk inferencing, http://trueg.wordpress.com/2012/04/03/n ... ing-begin/, and as I can't installed a KDE 4.9 beta Nepoogle it's not tested with this version. I hope soon I could test, and fix, all issues.

On the other side a reindexing could be useful. You are obtaining with your queries flac files but type reported is "Data Object" when in my system are "nmm:MusicPiece". This entry could be useful to you http://trueg.wordpress.com/2011/12/05/m ... s-is-easy/.


Ignacio Serantes, proud to be a member of KDE forums since 2008-Nov.
User avatar
šumski
Registered Member
Posts
106
Karma
1
OS

Re: Is Nepoogle good for you?

Sat Jul 07, 2012 10:01 am
Re-indexed, but still a no-go from nepoogle, atleast with performer and album search (tried also mp3's).
Image

Nevermind, i'll try it againg when you report 4.9 compatibilty. Good thing is, if i hadn't tried nepoogle, i wouldn't notice this virtuoso bug ;)
User avatar
Ignacio Serantes
Registered Member
Posts
453
Karma
1
OS

Re: Is Nepoogle good for you?

Sat Jul 07, 2012 12:23 pm
šumski wrote:Re-indexed, but still a no-go from nepoogle, atleast with performer and album search (tried also mp3's).
Image

Nevermind, i'll try it againg when you report 4.9 compatibilty. Good thing is, if i hadn't tried nepoogle, i wouldn't notice this virtuoso bug ;)

Maybe KDE version detection it's not working :?.

Could you try e0 performer:"Branko Despot". If you obtained results you could help me executing a few commands in python2:

>>> import PyKDE4.kdecore
>>> PyKDE4.kdecore.versionString().split(" ")[0].strip()

And I need the returned string.


Ignacio Serantes, proud to be a member of KDE forums since 2008-Nov.
User avatar
šumski
Registered Member
Posts
106
Karma
1
OS

Re: Is Nepoogle good for you?

Sat Jul 07, 2012 1:07 pm
No results:
Code: Select all
select distinct ?r WHERE {
 
}
select distinct ?r (bif:concat(bif:search_excerpt(bif:vector('Branko Despot'), ?v2))) as ?_n_f_t_m_ex_ WHERE {
  ?r <http://www.semanticdesktop.org/ontologies/2009/02/19/nmm#performer> ?v1 . FILTER EXISTS {
  ?r a [ <http://www.semanticdesktop.org/ontologies/2007/08/15/nao#userVisible> "true"^^<http://www.w3.org/2001/XMLSchema#boolean> ] .
 } .
 ?v1 <http://www.w3.org/2000/01/rdf-schema#label> ?v2 . FILTER(bif:contains(?v2, "'Branko Despot'")) .
}

Output in ~/.kde/share/config/kio_nepomuksearchrc if i search for Branko Despot in krunner and i click on result:
Code: Select all
query_9_url=nepomuksearch:/Branko%20Despot?encodedquery=%3C%3Fxml%20version%3D%221.0%22%3F%3E%3Cquery%20limit%3D%220%22%20offset%3D%220%22%20fullTextScoring%3D%22false%22%20fullTextScoringOrder%3D%22desc%22%20flags%3D%22%22%3E%3Ccomparison%20comparator%3D%22%3D%22%20inverted%3D%22false%22%3E%3Cresource%20uri%3D%22nepomuk%3A%2Fres%2Fa39512fa-fecb-4129-ab4a-2818ace63011%22%2F%3E%3C%2Fcomparison%3E%3C%2Fquery%3E%0A&resource=nepomuk%3A%2Fres%2Fa39512fa-fecb-4129-ab4a-2818ace63011

Note that result gives Branko Despot as a contact.

If your' wondering what version i have, it's master KDE, all of Kdelibs, Nepomuk-Core, and PyKDE
User avatar
Ignacio Serantes
Registered Member
Posts
453
Karma
1
OS

Re: Is Nepoogle good for you?

Sat Jul 07, 2012 1:28 pm
I don't know why the query it not generated correctly :(. I will try to install KDE 4.9 as soon as possible.


Ignacio Serantes, proud to be a member of KDE forums since 2008-Nov.
User avatar
Ignacio Serantes
Registered Member
Posts
453
Karma
1
OS

Re: Is Nepoogle good for you?

Mon Jul 09, 2012 4:01 pm
This video shows how edition works Nepoogle: http://tinypic.com/r/34p057m/6


Ignacio Serantes, proud to be a member of KDE forums since 2008-Nov.


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Google [Bot], Sogou [Bot]