On 27/02/15 14:07, Charles Abela wrote:
Hi,
I've managed to configure and run jena-fuseki. I used the
config-tdb-text.ttl and created a lucene index over the books.ttl example
(7 properties were indexed). However when I execute the query
PREFIX text: <http://jena.apache.org/text#>
PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX book: <http://example.org/book/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?s
{ ?s dc:title ?x .
?s text:query (dc:title 'Harry') ;
}
no tuples are returned.
I've configured <#entMap> as follows:
How is the assembler connecting the dataset to the text index?
<#entMap> a text:EntityMap ;
text:entityField "uri" ;
text:defaultField "text" ; ## Should be defined in the
text:map.
text:map (
[ text:field "text" ;
text:predicate dc:title;
text:analyzer [
a text:StandardAnalyzer ;
text:stopWords ("a" "an" "and" "but")
]
]
) .
am I on the right track here?
Yes
am I missing or doing something wrong?
Not obviously to me.
thanks in advance
Try some debugging: these queries will poke into the database:
SELECT ?s { ?s dc:title ?x }
SELECT ?s { ?s text:query ('Harry') }
SELECT ?s { ?s text:query (dc:title 'Harry') }
Andy