RDF4J rdf lucene configuration

334 Views Asked by At

I have been trying for some time to configure my sesame RDF repository (at the moment is called RDF4j) in order to use full text queries.

I did not find much documentation about this configuration, I think that I need to create a template file so then I can use it with the console. Here is the little information about the topic https://groups.google.com/forum/#!topic/rdf4j-users/xw2UJCziKl8

Does anybody know any information about the configuration of RDF4j with Lucene? Any clue would be very appreciate. Otherway, I would think about change the whole repository for another, like for example virtuoso.

Thanks in advance,

1

There are 1 best solutions below

0
On

You need to do these operations:

  1. Start rdf4j-server. I used rdf4j-server.war (and rdf4j-workbench.war). My url was http://127.0.0.1:8080/rdf4j-server
  2. Put lucene.ttl (lucene.ttl or this) into ~/.RDF4J/console/templates, where "~" your home directory
  3. Correct settings in this file
  4. Then start console from rdf4j distributive

Then execute next commands in console:

connect http://127.0.0.1:8080/rdf4j-server
create lucene
Enter lucene repository Id: myRepositoryId
Enter lucene repository name: myRepositoryName

Then you can see in http://127.0.0.1:8080/rdf4j-workbench created repository. If you add some triples you can use lucene search