Closed heinpa closed 5 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
@anbo-de could you take a look into this PR?
#366
Add new methods for creating SPARQL INSERT queries to the
QanaryTripleStoreConnector
, as they are used by QAnswer QB and QBE components.Specifically:
insertAnnotationOfAnswerDataType()
insertAnnotationOfImprovedQuestion()
insertAnnotationOfTypedLiteral()
becomes deprecated, as the exact literal values are not supposed to be annotated. Instead, only the answer JSON is given. It also uses the superclassAnnotationAnswer
, which is discouraged.Extend
AnnotationOfAnswerSPARQL
to include an index. This way, information about the order of generated query candidates is preserved (relevant for QAnswer, for example).