WDAqua / Qanary

Qanary a methodology to construct and share resources to build QA systems
56 stars 25 forks source link

Extend methods for creating SPARQL insert queries #265

Closed heinpa closed 5 months ago

heinpa commented 6 months ago

#366

Add new methods for creating SPARQL INSERT queries to the QanaryTripleStoreConnector, as they are used by QAnswer QB and QBE components.

Specifically:

Extend AnnotationOfAnswerSPARQL to include an index. This way, information about the order of generated query candidates is preserved (relevant for QAnswer, for example).

heinpa commented 6 months ago

This also fixes a wrong variable name that caused an error when trying to retrieve a question translation from the triplestore. See https://github.com/WDAqua/Qanary/pull/265/files#diff-623f6eff8921404af0385dcfd4208c5908ce1d06ce3c73f49c7e99ddebc4f2faR452

Perevalov commented 5 months ago

@anbo-de could you take a look into this PR?