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

Nepomuk doesn't work

Tags: nepomuk nepomuk nepomuk
(comma "," separated)
warnec
Registered Member
Posts
96
Karma
0

Nepomuk doesn't work

Mon Aug 24, 2009 5:42 pm
Hi. I really liked the idea of file tagging in Nepomuk, but right now I feel like it eats my RAM, CPU cycles and HDD space and gives nothing back. I hold all photo folders together on an NTFS partition, and I tried to tag some of them today - tags like "vacation" "2007" "2008" "2009" "ski" etc. All these tags were assigned in Dolphin. I also made sure all photo folders are checked as indexed in Nepomuk configuration, and enabled Strigi indexing.

Right now Strigi says it has 16,576 files indexed, and Nepomuk data keeps 255.3 MB of space.

I tried to use nepomuksearch in Dolphin, but no matter which of these tags I type, I get no folders/files found. I tried hasTag:"xxx" etc. and still no luck. The same goes to KRunner. I tried Gwenview, and it looks like it tried to do something:

http://yfrog.com/12nepomukp


Looks like it can't read the name of most of the tags. And even when I click on one of the tags with visible name, no folders/files with this tags are presented.

Is it working for you?

PS.: BTW I can't figure any way to remove tags. I don't mean removing a certain tag from a certain file/folder, but to remove a tag entirely, so that it won't be included in the tag list to choose from.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Nepomuk doesn't work

Tue Aug 25, 2009 5:18 am
If you enable the "Nepomuk" runner in KRunner, then try typing in the name of some of your files or the text contained in them. Results should be shown by KRunner.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
warnec
Registered Member
Posts
96
Karma
0

Re: Nepomuk doesn't work

Tue Aug 25, 2009 7:12 am
Nope, doesn't work. I've got FSRunner installed and it lists all my images in /home partition, and they're the only results I get. If I try to search for any of the photos inside my NTFS partition (the ones I tagged) I get nothing.

BTW, all these photos are named like DSCnumbers.jpg, that's why I wanted to tag them - to achieve a quick access to let's say, all folders containing photos from my ski trip when I type "ski" in Dolphin's search box, or, let's say, hasTag:ski, but still doesn't work.


And what's with Gwenview, anyway? Why does it look so weird?
User avatar
Ignacio Serantes
Registered Member
Posts
453
Karma
1
OS

Re: Nepomuk doesn't work

Tue Aug 25, 2009 11:45 am
Read this entry because could be useful for you

viewtopic.php?f=22&t=50936#p70956

but I don't expect so much with search. Sebastian Trueg recently fix serious bug with queries, sometimes nepomuksearch fails, and I think that this fix would not be available until KDE 4.4.

I write him about query syntax and I must add a search tips&tricks in this forum soon.


Ignacio Serantes, proud to be a member of KDE forums since 2008-Nov.
warnec
Registered Member
Posts
96
Karma
0

Re: Nepomuk doesn't work

Tue Aug 25, 2009 12:51 pm
Ok. Hope to have that fixed in 4.4. Pity there's been so much buzz and talk about Nepomuk, and currently it seems it's totally unusable.


I'm also puzzled why I read many times about new features and fixes coming to 4.4. It seems like everyone forgot there must be something in between, as I haven't found any improvement list/release schedule/bugfixes list for 4.3.1.


Why not try fix Nepomuk for 4.3.1?


And BTW, how can I remove all current Nepomuk tags I made in Dolphin?

PS.: I use Digikam now, and it looks like it uses its own tag system, and that works perfectly for managing photos. But I'll be glad to see Nepomuk work to find emails/text files/etc.
User avatar
Ignacio Serantes
Registered Member
Posts
453
Karma
1
OS

Re: Nepomuk doesn't work

Tue Aug 25, 2009 1:48 pm
Sorry, think I'm mistaken. Bug would be fixed for 4.3.1 but new features more user alike not be available until KDE 4.4.

You can read about the bug in Trueg's Blog.
http://trueg.wordpress.com/2009/08/13/f ... gs-is-fun/


Ignacio Serantes, proud to be a member of KDE forums since 2008-Nov.
warnec
Registered Member
Posts
96
Karma
0

Re: Nepomuk doesn't work

Wed Aug 26, 2009 8:17 am
Ok, and is there any possiblity to delete current tags completely?
User avatar
Ignacio Serantes
Registered Member
Posts
453
Karma
1
OS

Re: Nepomuk doesn't work

Wed Aug 26, 2009 1:43 pm
No. Actually this functionality is not available but there is a manual, and moderate difficult method, to do this job using sopranocmd. Think that in KDE 4.3, Nepomuk is practically useless for a not advanced users.

The manual method is:

1) Use sopranocmd to export your database as a text file.
2) Edit text file with krite.
3) Change or delete Tags. Please take care with relations.
4) Stop nepomuk.
5) Delete nepomuk database.
6) Start nepomuk.
7) Use sopranocmd to import your modified text file.

This was a generic explanation. If you don't understand I can explain better step by step with samples :).

I use this method to rename and delete tags.


Ignacio Serantes, proud to be a member of KDE forums since 2008-Nov.
warnec
Registered Member
Posts
96
Karma
0

Re: Nepomuk doesn't work

Wed Aug 26, 2009 5:35 pm
Ignacio Serantes wrote:Think that in KDE 4.3, Nepomuk is practically useless for a not advanced users.


Real pity then, there was so much talk about Nepomuk for some time that I thought it might be actually useful and that I'd give it a shot. I count on big improvements for 4.4, then ;) Anyway, digikam currently suits all my photo sorting needs (I reckon its tag system is independent from Nepomuk?)

Ignacio Serantes wrote:This was a generic explanation. If you don't understand I can explain better step by step with samples :).


I basically understand that (nothing I can't learn from sopranocmd --help), I don't know what "krite" is though. I suppose you made a typo? You mean krita? But krita is vector graphics editor, right? :P Must be something else...

And can you tell me where is the Nepomuk databse stored?
User avatar
Ignacio Serantes
Registered Member
Posts
453
Karma
1
OS

Re: Nepomuk doesn't work

Wed Aug 26, 2009 5:57 pm
warnec wrote:And can you tell me where is the Nepomuk databse stored?
Sorry, Kwrite, sopranocmd exports data as a text file, my engrish sometimes is really bad ;).

Database was stored here:

`kde4-config --localprefix`/share/apps/nepomuk/repository/main

and I export db with next command:

sopranocmd --socket `kde4-config --localprefix`/share/apps/nepomuk/socket --model main export nepomukdb.txt

I used sockets because it was fast than d-bus.


Ignacio Serantes, proud to be a member of KDE forums since 2008-Nov.
warnec
Registered Member
Posts
96
Karma
0

Re: Nepomuk doesn't work

Wed Aug 26, 2009 8:43 pm
Ok, I did that and got 173MB .txt file. So now I just disable nepomuk, then empty the .txt, and change "export" to "import"?

PS.: I disabled nepomuk, so I still have the extracted database, but don't know if the original still exists. After disabling semantic desktop and nepomuk in options, I get:

Code: Select all
[warnec@chakra ~]$ sopranocmd --socket `kde4-config --localprefix`/share/apps/nepomuk/socket --model main export nepomukdb.txt
"/usr/bin/sopranocmd(4656)" Error in thread 139870460577552 : "QLocalSocket::connectToServer: Invalid name"
Failed to contact Soprano server through socket at /home/warnec/.kdemod4//share/apps/nepomuk/socket

I reckon the database has been wiped out, or is it still there waiting to be accessed as soon as Nepomuk gets enabled?
User avatar
Ignacio Serantes
Registered Member
Posts
453
Karma
1
OS

Re: Nepomuk doesn't work  Topic is solved

Wed Aug 26, 2009 9:25 pm
If you have strigi enabled that size is normal and if you don't start Nepomuk sopranocmd don't works. Steps to follow are:

1) Edit and save your changes.
2) Stop nepomuk.
3) delete directory main:
rm -Rf `kde4-config --localprefix`/share/apps/nepomuk/repository/main
or, better, do a backup:
mv `kde4-config --localprefix`/share/apps/nepomuk/repository/main `kde4-config --localprefix`/share/apps/nepomuk/repository/main.bak
4) Start nepomuk and wait until a new database will be created. Empty Nepomuk db is about 2 MBytes so you can use du to calculate size:
du -sh `kde4-config --localprefix`/share/apps/nepomuk/repository/main
5) Finally import your backup with:
sopranocmd --socket `kde4-config --localprefix`/share/apps/nepomuk/socket --model main import nepomukdb.txt

I talk about backup and restore system with Sebastian Trueg and I hope that an own data backup/restore, backup data collected with strigi is a lost of space and time, will be implemented in the future.


Ignacio Serantes, proud to be a member of KDE forums since 2008-Nov.
warnec
Registered Member
Posts
96
Karma
0

Re: Nepomuk doesn't work

Thu Aug 27, 2009 8:28 am
Ok, thanks! :D Hoping to see a GUI for it somewhere around 4.4 ;) Right now the current Nepomuk settings jsut let enable/disable i and choose folders to index...
User avatar
Ignacio Serantes
Registered Member
Posts
453
Karma
1
OS

Re: Nepomuk doesn't work

Thu Aug 27, 2009 9:42 pm
Well, I'm recibing today a mail from Sebastian Trueg and he told me that there is a system to delete tags from Dolphin using righ click button over tags :D.

Rename don't be available yet but, we can delete tags easly without nepomukcmd. Great!.


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


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]