public class Question extends Object implements IQuestion
| Modifier and Type | Field and Description |
|---|---|
private Boolean |
aggregation |
private org.json.simple.JSONObject |
answerAsQALDJSON |
private String |
answerType |
private Map<String,Set<String>> |
goldenAnswers |
private Boolean |
hybrid |
private String |
id |
private Map<String,List<String>> |
languageToKeywords |
private Map<String,String> |
languageToQuestion |
private Boolean |
onlydbo |
private Boolean |
outOfScope |
private String |
pseudoSparqlQuery |
private Map<String,String> |
sparqlQuery |
| Constructor and Description |
|---|
Question()
The attribute answerAsQALDJSON stores the information as defined by the link: https://github.com/dice-group/gerbil/wiki/Question-Answering#web-service-interface
|
private String id
private String answerType
private String pseudoSparqlQuery
private Boolean aggregation
private Boolean onlydbo
private Boolean outOfScope
private Boolean hybrid
private org.json.simple.JSONObject answerAsQALDJSON
public Question()
public String toString()
public String getAnswerType()
getAnswerType in interface IQuestionpublic void setAnswerType(String answerType)
setAnswerType in interface IQuestionpublic String getPseudoSparqlQuery()
getPseudoSparqlQuery in interface IQuestionpublic void setPseudoSparqlQuery(String pseudoSparqlQuery)
setPseudoSparqlQuery in interface IQuestionpublic String getSparqlQuery()
getSparqlQuery in interface IQuestionpublic void setSparqlQuery(String sparqlQuery)
setSparqlQuery in interface IQuestionpublic Boolean getAggregation()
getAggregation in interface IQuestionpublic void setAggregation(Boolean aggregation)
setAggregation in interface IQuestionpublic Boolean getOnlydbo()
getOnlydbo in interface IQuestionpublic void setOnlydbo(Boolean onlydbo)
setOnlydbo in interface IQuestionpublic Boolean getOutOfScope()
getOutOfScope in interface IQuestionpublic void setOutOfScope(Boolean outOfScope)
setOutOfScope in interface IQuestionpublic Map<String,String> getLanguageToQuestion()
getLanguageToQuestion in interface IQuestionpublic void setLanguageToQuestion(Map<String,String> languageToQuestion)
setLanguageToQuestion in interface IQuestionpublic Map<String,List<String>> getLanguageToKeywords()
getLanguageToKeywords in interface IQuestionpublic void setLanguageToKeywords(Map<String,List<String>> languageToKeywords)
setLanguageToKeywords in interface IQuestionpublic Set<String> getGoldenAnswers()
getGoldenAnswers in interface IQuestionpublic void setGoldenAnswers(Set<String> goldenAnswers)
setGoldenAnswers in interface IQuestionpublic void setAnswerAsQALDJSON(org.json.simple.JSONObject json)
public org.json.simple.JSONObject getAnswerAsQALDJSON()
Copyright © 2016–2020. All rights reserved.