Re: SPARQL query for matching exact phrase in elastic search

2021-01-18 Thread Andy Seaborne
On 18/01/2021 15:41, Deepali Singhavi wrote: Hi, Below is the response I am getting after running curl command for my index.

Re: SPARQL query for matching exact phrase in elastic search

2021-01-18 Thread Deepali Singhavi
Hi, Below is the response I am getting after running curl command for my index.

Re: SPARQL query for matching exact phrase in elastic search

2021-01-18 Thread Andy Seaborne
On 18/01/2021 04:38, Deepali Singhavi wrote: Hi Andy, Have you got it working use a text based query, that is, using the "query_string" member in JSON,direct to the ES API? --- No it is still not working. I am configuring ElasticSearch in Jena using a config ttl file. For using ES API can I

Re: SPARQL query for matching exact phrase in elastic search

2021-01-18 Thread Andy Seaborne
On 18/01/2021 04:38, Deepali Singhavi wrote: Hi Andy, Have you got it working use a text based query, that is, using the "query_string" member in JSON,direct to the ES API? --- No it is still not working. I am configuring ElasticSearch in Jena using a config ttl file. For using ES API can I

Re: SPARQL query for matching exact phrase in elastic search

2021-01-18 Thread Deepali Singhavi
Hi Rob, Thank you for your response. Considering this constraint of dotNetRDF we have decided to not use dotnetrdf instead we are directly using ttl file for configuring index and SPARQL query to query them. But in the case of elastic search I am not getting how we can make Match_Phrase to work

Re: SPARQL query for matching exact phrase in elastic search

2021-01-18 Thread Rob Vesse
Also worth noting that historically the .Net ecosystem has massively lagged behind Lucene versions because the Lucene.Net project has been massively under-resourced. dotNetRDF always used to be Lucene 3.0.3 and I think only recently started looking at moving to Lucene 4.8 (which is the

Re: SPARQL query for matching exact phrase in elastic search

2021-01-17 Thread Deepali Singhavi
Hi Andy, Have you got it working use a text based query, that is, using the "query_string" member in JSON,direct to the ES API? --- No it is still not working. I am configuring ElasticSearch in Jena using a config ttl file. For using ES API can I do it from Jena UI using SPARQL or do I need to

Re: SPARQL query for matching exact phrase in elastic search

2021-01-15 Thread Andy Seaborne
On 15/01/2021 12:03, Deepali Singhavi wrote: Hi Andy, This code is in Java and we are working on Dot Net and using Sparql to work with Jena using DotNetRDF library. I can see DotNetRDF is having support for Lucene but not for ElasticSearch. DotNetRDF is a separate project. I have tried

Re: SPARQL query for matching exact phrase in elastic search

2021-01-15 Thread Deepali Singhavi
Hi Andy, This code is in Java and we are working on Dot Net and using Sparql to work with Jena using DotNetRDF library. I can see DotNetRDF is having support for Lucene but not for ElasticSearch. I have tried with multiple documents but not getting how we can modify SPARQL query to use ES

Re: SPARQL query for matching exact phrase in elastic search

2021-01-13 Thread Lorenz Buehmann
that's not gonna work ... text:query:match_phrase is an invalid SPARQL predicate. You can try to put the "match_phrase" into the query string, but I don't think it will work. A "query string query" is used via the ES Java API [1] Syntax can be found online [2] [1]

Re: SPARQL query for matching exact phrase in elastic search

2021-01-12 Thread Deepali Singhavi
Hi Andy, I have gone through the elastic search documentation and I know there is an option of *match_phrase *but I want to know how it will work with SPARQL query. For example I have tried the below query but it is not working so I want to understand the syntax. prefix rdf:

Re: SPARQL query for matching exact phrase in elastic search

2021-01-12 Thread Andy Seaborne
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

SPARQL query for matching exact phrase in elastic search

2021-01-12 Thread Deepali Singhavi
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: prefix