|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AceWikiReasoner
This is the reasoner interface for AceWiki.
Method Summary | |
---|---|
void |
flushElements()
This method can finalize the loading or unloading of elements. |
java.util.List<AnswerElement> |
getAnswer(Question question)
Should return a list of ontology elements that answer the given question. |
java.util.List<Concept> |
getConcepts(Individual ind)
Should return all concepts the given individual belongs to. |
java.util.List<Individual> |
getIndividuals(Concept concept)
Should return all individuals that belong to the given concept. |
java.util.Map<java.lang.String,java.lang.String> |
getInfo()
This method can return a map of name/value pairs with information about the reasoner. |
java.lang.String |
getReasonerName()
Should return the name of the reasoner. |
java.lang.String |
getReasonerType()
Should return the type of the reasoner. |
java.lang.String |
getReasonerVersion()
Should return the version of the reasoner. |
java.util.List<Concept> |
getSubConcepts(Concept concept)
Should return all the sub-concepts of the given concept. |
java.util.List<Concept> |
getSuperConcepts(Concept concept)
Should return all super-concepts of the given concept. |
void |
init(Ontology ontology)
This is the first method to be called and provides the ontology object. |
boolean |
isConsistent()
Should return true if the ontology is consistent. |
boolean |
isSatisfiable(Concept concept)
Should check if the given concept is satisfiable. |
void |
load()
Loads the reasoner or reasoner interface. |
void |
loadElement(OntologyElement element)
Loads the given ontology element. |
void |
loadSentence(Sentence sentence)
Loads the given sentence. |
void |
unloadElement(OntologyElement element)
Unloads the given ontology element. |
void |
unloadSentence(Sentence sentence)
Unloads the given sentence. |
Method Detail |
---|
void init(Ontology ontology)
ontology
- The ontology object.java.lang.String getReasonerName()
java.lang.String getReasonerVersion()
java.lang.String getReasonerType()
java.util.Map<java.lang.String,java.lang.String> getInfo()
void load()
void loadElement(OntologyElement element)
element
- The ontology element.void unloadElement(OntologyElement element)
element
- The ontology element.void flushElements()
java.util.List<Concept> getConcepts(Individual ind)
ind
- The individual.
java.util.List<Individual> getIndividuals(Concept concept)
concept
- The concept.
java.util.List<Concept> getSuperConcepts(Concept concept)
concept
- The concept for which all super-concepts should be returned.
java.util.List<Concept> getSubConcepts(Concept concept)
concept
- The concept for which all sub-concepts should be returned.
java.util.List<AnswerElement> getAnswer(Question question)
question
- The question to be answered.
boolean isConsistent()
boolean isSatisfiable(Concept concept)
concept
- The concept.
void loadSentence(Sentence sentence)
sentence
- The sentence.void unloadSentence(Sentence sentence)
sentence
- The sentence.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |