-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update QB QAnswer Wrapper for new QAnswer API Remove redundant functionality and exclusively return (and annotate) SPARQL result query candidates, alongside a possibly enhanced text question. Split SPARQL INSERT annotations for ImprovedQuestion and AnswerSPARQL. * update QBE QAnswer wrapper to use new QAnswer API * small changes to README files
- Loading branch information
Showing
15 changed files
with
228 additions
and
324 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 13 additions & 5 deletions
18
.../main/java/eu/wdaqua/qanary/component/qanswer/qb/messages/QAnswerQanaryWrapperResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,28 @@ | ||
package eu.wdaqua.qanary.component.qanswer.qb.messages; | ||
|
||
import java.util.List; | ||
|
||
public class QAnswerQanaryWrapperResult { | ||
|
||
private final QAnswerResult result; | ||
private final String sparqlQuery; | ||
private final String sparqlImprovedQuestion; | ||
private final List<String> sparqlQueryCandidates; | ||
|
||
public QAnswerQanaryWrapperResult(QAnswerResult result, String sparqQuery) { | ||
public QAnswerQanaryWrapperResult(QAnswerResult result, String sparqlImprovedQuestion, List<String> sparqlQueryCandidates) { | ||
this.result = result; | ||
this.sparqlQuery = sparqQuery; | ||
this.sparqlImprovedQuestion = sparqlImprovedQuestion; | ||
this.sparqlQueryCandidates = sparqlQueryCandidates; | ||
} | ||
|
||
public QAnswerResult getResult() { | ||
return result; | ||
} | ||
|
||
public String getSparqlQuery() { | ||
return sparqlQuery; | ||
public String getSparqlImprovedQuestion() { | ||
return sparqlImprovedQuestion; | ||
} | ||
|
||
public List<String> getSparqlQueryCandidates() { | ||
return sparqlQueryCandidates; | ||
} | ||
} |
Oops, something went wrong.