openRDF.org Welcome Guest   | Login   
  Search  
  Index  | Recent Threads  | Who's Online  | User List  | Search  | Help  | RSS feeds

Forum closing down
This forum will be closing down due to extensive spamming activities. As a first step, registration of new members has been disabled. Existing members will be able to use the forum for now, but please consider using the sesame-general mailing list instead.


Quick Go »
Thread Status: Normal
Total posts in this thread: 7
[Add To My Favorites] [Watch this Thread] [Post new Thread]
Author
Previous Thread This topic has been viewed 1733 times and has 6 replies Next Thread
Dec 6, 2007 11:15:45 AM

florentj
Regular



Joined: Mar 8, 2007
Posts: 38
Status: Offline

remote repository configuration, template creation Reply to this Post
Reply with Quote

Hi,

I'm trying to get the Nepomuk lucene sail working on a remote repository server.

as far as i understood, the only way to create a remote repository is to use the console and to create a template file.

but for this lucene sail, there is a setParameter for the lucene index emplacement.

which is something like that:

lucenesail.setParameter(LuceneSail.LUCENE_RAMDIR_KEY, "true");
or
lucenesail.setParameter(LuceneSail.LUCENE_DIR_KEY, "./data/mydirectory");

how is it possible to set that in the console template? Or is there another way to configure the repository and its sail stack?

regards,

florent
Show Printable Version of Post     [Link] Report threatening or abusive post: please login first  Go to top 
Dec 7, 2007 9:52:59 AM

arjohn
OpenRDF project lead
Member's Avatar

The Netherlands
Joined: Jan 23, 2004
Posts: 1289
Status: Offline
Re: remote repository configuration, template creation Reply to this Post
Reply with Quote

Repositories are configured using RDF configuration files. The templates that are used by the console are just such RDF files, but with some of the URIs or literals replaced with variable markers.

You can use the same mechanism to add a LuceneSail to a repository configuration, but the LuceneSail will need to have a SailFactory implementation (which takes care of reading the configuration) for this. Unfortunately, there is no such factory for the LuceneSail at this time.
----------------------------------------
Arjohn Kampman, OpenRDF project lead, Aduna
Show Printable Version of Post        Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Dec 10, 2007 2:54:32 PM

florentj
Regular



Joined: Mar 8, 2007
Posts: 38
Status: Offline

Re: remote repository configuration, template creation Reply to this Post
Reply with Quote

Hi,

As I needed it, i created it.
Attached is a patch containing:
- LuceneConfig
- Lucenefactory
- LuceneSchema

Naming might be wrong but this wasn't important to me, I was inspired by the other Sail names.

It's quite limited as you can't create in memory Lucene indexes (would be easy to add i guess but i didn't need it, and AFAIU would be easier to make if the test in the sail initialization would be inverted)

Also, the index directory must be specify with / as i couldn't get the escaping working cleanly with the console... (didn't look very far) I would be interesting to use the Sesame property to specify this directory maybe?

Also, you can't specify the analyzer... I may add that later

to sum up, it's really really limited but it did the job i needed and it may help.

I also attached a example of template file.

And, quick remark about template. It seems that it will get kind of cumbersome as more sail will appear cause you have to create a template for every possible combination. it would be great to be able to "chain" them in the console (but the implementation seems more than tricky to me) did anybody ever thought of this possible problem?

Last thing, excuse me if it isn't the right place to talk at the lucene sail and feel free to forward/send me to this right place :)

regards,

Florent
----------------------------------------
Attachment lucenesail.patch (5965 bytes) (Download Count: 323)

----------------------------------------
Attachment lucenesail.ttl (1199 bytes) (Download Count: 349)

Show Printable Version of Post     [Link] Report threatening or abusive post: please login first  Go to top 
Dec 18, 2007 10:49:07 AM

arjohn
OpenRDF project lead
Member's Avatar

The Netherlands
Joined: Jan 23, 2004
Posts: 1289
Status: Offline
Re: remote repository configuration, template creation Reply to this Post
Reply with Quote

Hi Florent,

I'm about to commit a (slightly modified version of) your patch. Your patch, however, doesn't specify any license. Can you confirm that you're OK with distributing the code under the "Aduna BSD-style license".
----------------------------------------
Arjohn Kampman, OpenRDF project lead, Aduna
Show Printable Version of Post        Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Dec 18, 2007 12:06:35 PM

florentj
Regular



Joined: Mar 8, 2007
Posts: 38
Status: Offline

Re: remote repository configuration, template creation Reply to this Post
Reply with Quote

Hi,

I confirm, I didn't set the license but you can apply the license of your choice.

chears

florent
Show Printable Version of Post     [Link] Report threatening or abusive post: please login first  Go to top 
Dec 18, 2007 1:12:55 PM

arjohn
OpenRDF project lead
Member's Avatar

The Netherlands
Joined: Jan 23, 2004
Posts: 1289
Status: Offline
Re: remote repository configuration, template creation Reply to this Post
Reply with Quote

Thanks. The patch has just been committed. Please note that I made a number of changes to the classes, so you may need to modify any existing configuration that you have now. Most prominent changes are:

  • Sail type string is now "openrdf:LuceneSail", was: "openrdf:Lucene"
  • The directory property is now #indexDir, was: #lucene_dir
  • Class names now start with LuceneSail, was: Lucene

Thanks for your work!
----------------------------------------
Arjohn Kampman, OpenRDF project lead, Aduna
----------------------------------------
[Edit 1 times, last edit by arjohn at Dec 18, 2007 1:13:46 PM]
Show Printable Version of Post        Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Dec 18, 2007 1:20:37 PM

florentj
Regular



Joined: Mar 8, 2007
Posts: 38
Status: Offline

Re: remote repository configuration, template creation Reply to this Post
Reply with Quote

thanks for this, it will be easier for me to stay up to date with the SVN

florent
Show Printable Version of Post     [Link] Report threatening or abusive post: please login first  Go to top 
[Show Printable Version of Thread] [Post new Thread]