| Version 7 (modified by , 20 years ago) ( diff ) |
|---|
LuceneSail
The lucene sail is a clever little hack that lets (parts of) RDF resources descriptions stored in Sesame Repositories be indexed as full-text.
There are two versions, both are designed to be stackable sails - they must sit on top of a memory,native or something else store.
Each are configured given two lists of RDF predicates:
- The lucene inclusion list - any triple with this predicates has the value indexed
- The RDF exclusion list - any triple with this predicate is not added to the underlying Sail.
By default they are both empty and all triples are stored in RDF and none are indexed.
Lucene Sail Aperture
This has a method addResource(SesameRDFContainer) which adds a single resource crawled from aperture to the underlying sail. Each aperture resource becomes a separate lucene document.
Lucene Sail
This will only triples in a transaction. When a transaction is commited each resource that was described becomes a separate lucene document.
Download
LuceneSail is part of the Gnowsis distribution.
SVN Access: https://gnowsis.opendfki.de/repos/gnowsis/trunk/lucenesail/
Searching
There is a textQuery(String) method which returns Lucene Hits objects.
It is also possible to use "magic" predicates in Serql queries. For example:
SELECT X FROM {X} <http://something/matches> {} <http://something/query> {\"java\"}
this will return any X that has some field indexed with the word "Java".
Soon I expect that Sparql will also be supported. But not in time for Beta0.9.
FOR THIS TO WORK YOU HAVE TO SET LuceneSail.magicQueries to TRUE'''
