There are two meanings to "index" here.
There are TDB indexes - these are hidden and always exist. No
application action needed. No special special queries.
There are indexes of the data outside the storage - text, spatial - that
need to be set up. They are accessed with property functions e.g.
text:query.
Andy
On 25/09/17 11:39, George News wrote:
Thanks Andy... However I don't fully understand the philosophy.
1) From the examples it seems I have to create special queries to use
the indexes? Am I right?
2) I guess the indexes can be also stored in a kind of TDB and not only
memory. Then do I have to always open the "special" dataset explicitly?
isn't any way that the main dataset TDB is directly linked to the Lucece
created one.
Problably is that I'm really new to the indexes stuff and this is my
fault (I have to read more ;))
REgards
On 2017-09-22 20:52, Andy Seaborne wrote:
Documentation:
http://jena.apache.org/documentation/query/text-query.html#configuration-by-code
Example:
https://github.com/apache/jena/blob/master/jena-text/src/main/java/examples/JenaTextExample1.java
Andy
On 22/09/17 10:42, George News wrote:
Hi,
could you please provide an example of directly working with indexes
from Jena API?
I have a TDB directly created using:
private static final Dataset dataset =
TDBFactory.createDataset(tripleStorePath);
Now that I have pretty much of the functionality to interact with it,
I want to create indexes. I have read a bit about Lucene, Text,
Spatial, etc. indexes, but I haven't really found an example to work
with them from the API point of view. I'm not using any assembler
configuration file, but in case it is mandatory I will change what is
required.
Could you give me some tip on how to create the indexes and make the
SPARQL engine make use of it?
TextDatasetFactory
Thanks a lot.
Jorge