Class Question
java.lang.Object
org.aksw.qa.commons.datastructure.Question
- All Implemented Interfaces:
IQuestion
- Direct Known Subclasses:
Qald7Question
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionQuestion()The attribute answerAsQALDJSON stores the information as defined by the link: https://github.com/dice-group/gerbil/wiki/Question-Answering#web-service-interface -
Method Summary
Modifier and TypeMethodDescriptionorg.json.simple.JSONObjectgetGoldenAnswers(String lang)getId()getSparqlQuery(String lang)voidsetAggregation(Boolean aggregation)voidsetAnswerAsQALDJSON(org.json.simple.JSONObject json)voidsetAnswerType(String answerType)voidsetGoldenAnswers(String lang, Set<String> goldenAnswers)voidsetGoldenAnswers(Set<String> goldenAnswers)voidvoidvoidsetLanguageToKeywords(Map<String,List<String>> languageToKeywords)voidsetLanguageToQuestion(Map<String,String> languageToQuestion)voidsetOnlydbo(Boolean onlydbo)voidsetOutOfScope(Boolean outOfScope)voidsetPseudoSparqlQuery(String pseudoSparqlQuery)voidsetSparqlQuery(String sparqlQuery)voidsetSparqlQuery(String lang, String sparqlQuery)voidtoString()
-
Field Details
-
id
-
answerType
-
pseudoSparqlQuery
-
sparqlQuery
-
aggregation
-
onlydbo
-
outOfScope
-
hybrid
-
languageToQuestion
-
languageToKeywords
-
goldenAnswers
-
answerAsQALDJSON
private org.json.simple.JSONObject answerAsQALDJSON
-
-
Constructor Details
-
Question
public Question()The attribute answerAsQALDJSON stores the information as defined by the link: https://github.com/dice-group/gerbil/wiki/Question-Answering#web-service-interface
-
-
Method Details
-
toString
-
setValue
-
getAnswerType
- Specified by:
getAnswerTypein interfaceIQuestion
-
setAnswerType
- Specified by:
setAnswerTypein interfaceIQuestion
-
getPseudoSparqlQuery
- Specified by:
getPseudoSparqlQueryin interfaceIQuestion
-
setPseudoSparqlQuery
- Specified by:
setPseudoSparqlQueryin interfaceIQuestion
-
getSparqlQuery
- Specified by:
getSparqlQueryin interfaceIQuestion
-
getSparqlQuery
-
setSparqlQuery
- Specified by:
setSparqlQueryin interfaceIQuestion
-
setSparqlQuery
-
getAggregation
- Specified by:
getAggregationin interfaceIQuestion
-
setAggregation
- Specified by:
setAggregationin interfaceIQuestion
-
getOnlydbo
- Specified by:
getOnlydboin interfaceIQuestion
-
setOnlydbo
- Specified by:
setOnlydboin interfaceIQuestion
-
getOutOfScope
- Specified by:
getOutOfScopein interfaceIQuestion
-
setOutOfScope
- Specified by:
setOutOfScopein interfaceIQuestion
-
getHybrid
-
setHybrid
-
getLanguageToQuestion
- Specified by:
getLanguageToQuestionin interfaceIQuestion
-
setLanguageToQuestion
- Specified by:
setLanguageToQuestionin interfaceIQuestion
-
getLanguageToKeywords
- Specified by:
getLanguageToKeywordsin interfaceIQuestion
-
setLanguageToKeywords
- Specified by:
setLanguageToKeywordsin interfaceIQuestion
-
getGoldenAnswers
- Specified by:
getGoldenAnswersin interfaceIQuestion
-
getGoldenAnswers
-
setGoldenAnswers
- Specified by:
setGoldenAnswersin interfaceIQuestion
-
setGoldenAnswers
-
setAnswerAsQALDJSON
public void setAnswerAsQALDJSON(org.json.simple.JSONObject json) -
getAnswerAsQALDJSON
public org.json.simple.JSONObject getAnswerAsQALDJSON() -
getId
-
setId
-