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

Nepomuk, Strigi, 4.3 - again...!

Tags: None
(comma "," separated)
metaphor_set
Registered Member
Posts
4
Karma
0

Nepomuk, Strigi, 4.3 - again...!

Thu Aug 13, 2009 5:43 pm
Hi everybody,

ok, so I got the Nepomuk-Strigi thingy up and running in some 4.2 svn/4.3 beta versions of KDE4...

Klick on the Tray Icon, window popped up and tells me that the Nepomuk index is about 160 MB in size. Great.

Alt+F2 opened krunner, entering "Annie" showed all the Music by Annie Lennox. Great.

Alt+F2 + entering "cups" showed amongst others a pdf somewhere in the depths of my home folder which explains the configuration of cups-pfd. Great.

After my recent Update to KDE 4.3 nothing of the above does work as expected. Nepokuk is running, strigi is running, but krunner doesn't find any of the files.

I deleted my .kde4 folder - twice - nothing changes. I checked whether the krunner part for nepomuk is activated, looked for file permissions... nothing changes.

Any clues where I can look why this thing isn't working? Is there any basic tutorial (again: not what nepomuk might become some day, but what it is now and how it does it?), any information about error tracking?

Thanks in advance
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Can you please post the output of "sopranocmd"?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
metaphor_set
Registered Member
Posts
4
Karma
0
bcooksley, hi

thanks for the answer. Here is the output of sopranocmd:

Code: Select all
sopranocmd 2.3.0               
   Copyright (C) 2007-2009 Sebastian Trueg <trueg@kde.org>
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2 of the License, or   
   (at your option) any later version.                                 

Usage:
   sopranocmd --backend <backendname> [--dir <storagedir>] [--port <port>] [--host <host>] [--username <username>] [--password <password>] [--settings <settings>] [--serialization <s>] <command> [<parameters>]
   sopranocmd --port <port> [--host <host>] --model <name> [--serialization <s>] <command> [<parameters>]                                                                                                       
   sopranocmd --socket <socketpath>  --model <name> [--serialization <s>] <command> [<parameters>]                                                                                                               
   sopranocmd --dbus <dbusservice> --model <name> [--serialization <s>] <command> [<parameters>]                                                                                                                 
   sopranocmd --sparql <sparql end point> [--port <port>] [--username <username>] [--password <password>] [--serialization <s>] <command> [<parameters>]                                                         
   sopranocmd --file <rdf-file> [--serialization <s>] <command> [<parameters>]                                                                                                                                   

   --version           Print version information.

   --help              Print this help.

   --model <name>      The name of the Soprano model to perform the command on.
                       (only applicable when querying against the Soprano server.)

   --backend           The backend to use when accessing a storage directly and not via the Soprano server.
                       Possible backends are:                                                             
                       sesame2                                                                             

   --settings <s>      A list of additional settings to be passed to the backend. Only applicable in combination with
                       --backend. Settings are key=value pairs separated by semicolon.                               

   --dir               The storage directory. This only applies when specifying the backend. Defaults
                       to current directory.                                                         

   --dbus <service>    Contact the soprano server through D-Bus running on the specified service.

   --port <port>       Specify the port the Soprano server is running on.
                       (only applicable when querying against the Soprano server or a sparql endpoint.)

   --host <host>       Specify the host the Soprano server is running on (defaults to localhost).
                       (only applicable when querying against the Soprano server.)               

   --username <name>   Specify the username for the Soprano backend.
                       (only applicable when using a sparql endpoint.)

   --password <word>   Specify the password for the Soprano backend.
                       (only applicable when using a sparql endpoint.)

   --socket <path>     Specify the path to the local socket the Soprano server is running on.
                       (only applicable when querying against the Soprano server.)           

   --sparql <endpoint> Specify the remote Http sparql endpoint to use.

   --file <rdf-file>   Use an rdf file as input.

   --index <path>      Use the CLucene index stored at <path> via an IndexFilterModel.

   --serialization <s> The serialization used for commands 'export' and 'import'. Defaults to 'application/x-nquads'.
                       (can also be used to change the output format of construct and describe queries.)
                       (be aware that Soprano can understand simple string identifiers such as 'trig' or 'n-triples'.
                       There is no need to know the exact mimetype.)

   --querylang <lang>  The query language used for query commands. Defaults to 'SPARQL'
                       Hint: sopranocmd automatically adds prefix definitions for standard namespaces such as RDF,
                             RDFS, NRL, etc. if used in a SPARQL query.

   <command>           The command to perform.
                       - 'add':     Add a new statement. The parameters are a list of 3 or 4 nodes as defined below.
                       - 'remove':  Remove one or more statements. The parameters are a list of up to 4 nodes which define
                                    the statement pattern to apply. Each statement mathing the pattern will be removed.
                       - 'list':    List statements. As with 'remove' the parameters are a list of up to 4 nodes.
                       - 'monitor': Monitor a remote model. sopranocmd will continue listing added and removed statements
                                    matching the statement pattern specified via the parameters until it is stopped. Be aware
                                    that some backends do not report every removed statement but only the remove pattern.
                       - 'query':   Execute a query on the model and print the results. The paramter is the actual query to perform.
                       - 'import':  Import a set of statements into the model. The parameter is a local filename to read the
                                    statements to import from.
                       - 'export':  Export a set of statements to a file. The parameters are an optional SPARQL construct query
                                    which selects the statements to export (if not specified all statements are exported) and a local
                                    filename to write the exported statements to.

   <parameters>        The parameters to the command as specified above.

   Nodes are defined in an N-Triples-like notation:
   - Resouce nodes are defined in angle brackets.
     Example: <http://www.test.org#A>
   - Blank nodes are defined as "_:" followed by their identifier.
     Example: _:a
   - Literal nodes are defined as a combination of their string value and their datatype URI
     or as a simple literal string:
     Examples: "Hello World"^^<http://www.w3.org/2001/XMLSchema#string>
               42         (evaluates to a literal of type integer)
               0.7        (evaluates to a literal of type double)
               Hello      (evaluates to a literal of type string)
               "Hello"    (evaluates to a plain literal)
               "Hallo"@de (evaluates to a plain literal)
   - An empty string evaluates to an empy node ("" does the trick)

No model name specified.


I checked the size of the index in .kde4/share/apps/nepomuk . It's merely a few kb in size. Compared to the old profile (44 MB) there is clearly something wrong... :((
User avatar
Ignacio Serantes
Registered Member
Posts
453
Karma
1
OS

Re: Nepomuk, Strigi, 4.3 - again...!

Fri Aug 14, 2009 10:59 am
Check that soprano's sesame backend are installed.

To reinit Nepomuk you don't need erase all .kde4 directory. Follow the next steps:
1) Stop nepomuk.
2) Open konsole and execute:
rm -Rf `kde4-config --localprefix`/share/apps/nepomuk/repository/main
3) Start nepomuk.

You can do a backup of your db with

mv `kde4-config --localprefix`/share/apps/nepomuk/repository/main `kde4-config --localprefix`/share/apps/nepomuk/repository/main.bak


Ignacio Serantes, proud to be a member of KDE forums since 2008-Nov.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Nepomuk, Strigi, 4.3 - again...!

Fri Aug 14, 2009 11:13 pm
It appears that the Sesame2 backend is installed, although if it functions is another thing altogether....

Is anything other than "Ok" status messages being displayed in System Settings > Advanced > Desktop Search? Also, have you configured directories for it to index?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
metaphor_set
Registered Member
Posts
4
Karma
0
It works!

@Ignacio and bcooksley: Sesame2 backend was installed and there was quite a lot of indexing activity. After that, the status message in System Settings > Advanced > Desktop Search said that strigi is idle to save system resources.

But as I said already, the index itself was just around 20kb in size...

I haven't changed anything since yesterday (no backups, no config settings...) but instead of deleting the index "the old way" I used Ignacio's way of doing it.

1) Stop nepomuk.
2) Open konsole and execute:
rm -Rf `kde4-config --localprefix`/share/apps/nepomuk/repository/main
3) Start nepomuk.


It seems that either making sure that nepomuk is stopped or the kde4-config command does the trick.

Thanks for your help, guys!

Ah, btw. I had to delete my profile anyway since there were quite a few things messed up completely after updating to 4.3. Plasma had a lot of hickups and was crashing when I logged out.


Bookmarks



Who is online

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