I did not understand your question re the assembler and how it is
connecting the dataset to the index. Can you elaborate pls?
Re the queries I had tried them already. This one

   SELECT ?s { ?s dc:title ?x }

returned fine, while others did not return anything.


On Fri, Feb 27, 2015 at 9:42 PM, Andy Seaborne <[email protected]> wrote:

> 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
>
>
>

Reply via email to