Skip to content
EARQ = ElasticSearch + ARQ (Free Text Indexing for SPARQL (via ARQ property functions) using a ElasticSearch (and Lucene))
Find file
Pull request Compare This branch is even with castagna:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.settings
src
.classpath
.gitignore
.project
LICENSE.txt
README.md
pom.xml

README.md

EARQ = ElasticSearch + ARQ

EARQ is a combination of ARQ and ElasticSearch. It gives ARQ the ability to perform free text searches using an ElasticSearch cluster. ElasticSearch indexes are additional information for accessing the RDF graph, not storage for the graph itself.

This is experimental (and unsupported).

How to use it

This is how you build an index from a Jena Model:

ModelIndexerString indexer = new ModelIndexerString("earq_index");
indexer.indexStatements(model.listStatements());
indexer.close();

This is how you configure ARQ to use ElasticSearch:

IndexSearcher searcher = IndexSearcherFactory.create(Type.ELASTICSEARCH, "earq_index") ;
EARQ.setDefaultIndex(searcher) ;

This is an example of a SPARQL query using the sarq:search property function:

PREFIX earq: <http://openjena.org/EARQ/property#>
SELECT * WHERE {
    ?doc ?p ?lit .
    (?lit ?score ) earq:search "+text" .
}

Acknowledgement

The design and part of the code has been inspired from LARQ, see:

Todo

  • ... still broken
  • Remove LARQ reference from ModelIndexerSubject
Something went wrong with that request. Please try again.