On 21/06/13 09:33, Neubert Joachim wrote:
When I got it right, Fuseki is supposed to build the text index when it starts
up. However, this did not work for me.
Joachim,
Fuseki indexes the data as it's loaded, it does not index existing data
on startup. I see what you see in the Lucene directory before data is
loaded.
How is the data being loaded into the store?
Have you tried the config-tdb-text.ttl example? I have just checked
using that, and also modified to add something more like the entity map
you have and it works for me.
I've tried s-put and the web UI (SPARQL update) to load data into the
current snapshot build and text queries returned something.
If you have a complete, minimal example of load-query lifecycle that
would be most useful.
Andy
Starting fuseki (jena-fuseki-0.2.8-20130618.075236-28-server.jar) with an empty
index directory, for a very short time, it looks like this:
-rw-r--r--. 1 root root 45 Jun 20 13:46 segments_1
-rw-r--r--. 1 root root 0 Jun 20 13:46 write.lock
and then it stays like this:
-rw-r--r--. 1 root root 45 Jun 20 13:46 segments_1
-rw-r--r--. 1 root root 20 Jun 20 13:46 segments.gen
Text queries yield an empty result, while standard sparql queries work.
I can't figure out what could be wrong with my config:
## ---------------------------------------------------------------
## Read-only TDB dataset (only read services enabled).
<#service_stw_combined> rdf:type fuseki:Service ;
rdfs:label "STW combined TDB Service (R)" ;
fuseki:name "stw_combined" ;
fuseki:serviceQuery "query" ;
fuseki:serviceQuery "sparql" ;
##fuseki:serviceUpdate "update" ;
fuseki:serviceReadGraphStore "data" ;
fuseki:serviceReadGraphStore "get" ;
fuseki:dataset :stw_combined ;
.
:stw_combined rdf:type text:TextDataset ;
text:dataset <#stw> ;
text:index <#stwIndex> ;
.
<#stw> rdf:type tdb:DatasetTDB ;
tdb:location "/opt/thes/var/stw/latest/tdb" ;
##tdb:unionDefaultGraph true ;
.
<#stwIndex> a text:TextIndexLucene ;
text:directory <file:/opt/thes/var/stw/latest/tdb_lucene> ;
text:entityMap <#entMap> ;
.
<#entMap> a text:EntityMap ;
text:entityField "uri" ;
text:defaultField "text" ; ## Must be defined in the text:map
text:map (
# skos:prefLabel
[ text:field "text" ; text:predicate skos:prefLabel ]
# skos:altLabel
[ text:field "text" ; text:predicate skos:altLabel ]
# skos:hiddenLabel
[ text:field "text" ; text:predicate skos:hiddenLabel ]
) .
Help would be much appreciated.
Cheers, Joachim