Check the documentation for Lucene and ElasticSearch. jena-text passes the text query straight through.

On 12/01/2021 13:32, Deepali Singhavi wrote:
Hi,

I am trying to match exact phrases using SPARQL but for Lucene it is working but not for Elastic search. Do I need to make any changes to make it work for ES.I have attached my sample ttl file and below is the query

Query:
prefix rdf:   <http://www.w3.org/1999/02/22-rdf-syntax-ns# <http://www.w3.org/1999/02/22-rdf-syntax-ns#>> prefix star:   <http://stardog.com/tutorial/ <http://stardog.com/tutorial/>>
PREFIX text: <http://jena.apache.org/text# <http://jena.apache.org/text#>>
select ?subject ?object
from <urn:music>
WHERE {
?subject text:query (star:description "\"rock band Queen\"") .
?subject star:description  ?object .
}

Please let me know if any other information is required from my side.

Regards,
Deepali

Reply via email to