jayeshdesai4520 / chatbot-ng-internal

MIT License
3 stars 0 forks source link

Create a JS method for querying Qanary triplestore #28

Closed Perevalov closed 3 years ago

Perevalov commented 3 years ago
SELECT ?o
FROM GRAPH <graph_id>
WHERE {
 ?s ?p ?o .
}
LIMIT 1
jayeshdesai4520 commented 3 years ago

Hi, @Perevalov why do we want to query Qanary triplestore? what is the purpose of this?

Perevalov commented 3 years ago

Hi, @Perevalov why do we want to query Qanary triplestore? what is the purpose of this?

To retrieve answer text.

jayeshdesai4520 commented 3 years ago

Hi, @Perevalov "https://webengineering.ins.hs-anhalt.de:40159/qanary/query" Credentials "admin", "admin" details are the same as this?

Perevalov commented 3 years ago

Hi, @Perevalov "https://webengineering.ins.hs-anhalt.de:40159/qanary/query" Credentials "admin", "admin" details are the same as this?

Yes.

jayeshdesai4520 commented 3 years ago

Hi, @Perevalov I tried querying DBpedia using https://www.npmjs.com/package/sparql-http-client library, and it's working. so I will change the URL to our and add user and password, can you send the SPARQL query to retrieve the answer?

Perevalov commented 3 years ago

Hi, @Perevalov I tried querying DBpedia using https://www.npmjs.com/package/sparql-http-client library, and it's working. so I will change the URL to our and add user and password, can you send the SPARQL query to retrieve the answer?

Hi @jayeshdesai4520, please, use the sample query from the description now. Make sure that it works. We should discuss with @anbo-de how to write this query properly, as different components store the answer text in different way.

anbo-de commented 3 years ago

@jayeshdesai4520 Please add a link to the part of your implementation.

jayeshdesai4520 commented 3 years ago

Hi, @Perevalov I see you have connected https://webengineering.ins.hs-anhalt.de:40159/qanary/query here https://github.com/dbpedia/chatbot-ng/blob/f3e62d6fcc24276c986820bec615a11ef32edc39/Webhook/intent.js#L572 so I guess this issue is done Thanks.