|
|
Index
| Recent Threads
| Who's Online
| User List
| Search
| Help
| |
|
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. |
![]() |
openRDF.org Forum » Sesame & Rio: Help » Thread: remote repository configuration, template creation |
|
Total posts in this thread: 7 |
[Add To My Favorites] [Watch this Thread] [Post new Thread] |
| Author |
|
|
Dec 6, 2007 11:15:45 AM
florentj Regular
|
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 |
||
|
|
Dec 7, 2007 9:52:59 AM
arjohn OpenRDF project lead The Netherlands Joined: Jan 23, 2004 Posts: 1289 Status: Offline |
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 |
||
|
|
Dec 10, 2007 2:54:32 PM
florentj Regular
|
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 ---------------------------------------- ---------------------------------------- |
||
|
|
Dec 18, 2007 10:49:07 AM
arjohn OpenRDF project lead The Netherlands Joined: Jan 23, 2004 Posts: 1289 Status: Offline |
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 |
||
|
|
Dec 18, 2007 12:06:35 PM
florentj Regular
|
Hi, I confirm, I didn't set the license but you can apply the license of your choice. chears florent |
||
|
|
Dec 18, 2007 1:12:55 PM
arjohn OpenRDF project lead The Netherlands Joined: Jan 23, 2004 Posts: 1289 Status: Offline |
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:
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] |
||
|
|
Dec 18, 2007 1:20:37 PM
florentj Regular
|
thanks for this, it will be easier for me to stay up to date with the SVN florent |
||
|
| [Show Printable Version of Thread] [Post new Thread] |