|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.uzh.ifi.attempto.acewiki.core.DummyReasoner
public class DummyReasoner
This dummy class is a reasoner without reasoning features.
Constructor Summary | |
---|---|
DummyReasoner()
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DummyReasoner()
Method Detail |
---|
public void init(Ontology ontology)
AceWikiReasoner
init
in interface AceWikiReasoner
ontology
- The ontology object.public java.lang.String getReasonerName()
AceWikiReasoner
getReasonerName
in interface AceWikiReasoner
public java.lang.String getReasonerVersion()
AceWikiReasoner
getReasonerVersion
in interface AceWikiReasoner
public java.lang.String getReasonerType()
AceWikiReasoner
getReasonerType
in interface AceWikiReasoner
public java.util.Map<java.lang.String,java.lang.String> getInfo()
AceWikiReasoner
getInfo
in interface AceWikiReasoner
public void load()
AceWikiReasoner
load
in interface AceWikiReasoner
public void loadElement(OntologyElement element)
AceWikiReasoner
loadElement
in interface AceWikiReasoner
element
- The ontology element.public void unloadElement(OntologyElement element)
AceWikiReasoner
unloadElement
in interface AceWikiReasoner
element
- The ontology element.public void flushElements()
AceWikiReasoner
flushElements
in interface AceWikiReasoner
public java.util.List<Concept> getConcepts(Individual ind)
AceWikiReasoner
getConcepts
in interface AceWikiReasoner
ind
- The individual.
public java.util.List<Individual> getIndividuals(Concept concept)
AceWikiReasoner
getIndividuals
in interface AceWikiReasoner
concept
- The concept.
public java.util.List<Concept> getSuperConcepts(Concept concept)
AceWikiReasoner
getSuperConcepts
in interface AceWikiReasoner
concept
- The concept for which all super-concepts should be returned.
public java.util.List<Concept> getSubConcepts(Concept concept)
AceWikiReasoner
getSubConcepts
in interface AceWikiReasoner
concept
- The concept for which all sub-concepts should be returned.
public java.util.List<AnswerElement> getAnswer(Question question)
AceWikiReasoner
getAnswer
in interface AceWikiReasoner
question
- The question to be answered.
public boolean isConsistent()
AceWikiReasoner
isConsistent
in interface AceWikiReasoner
public boolean isSatisfiable(Concept concept)
AceWikiReasoner
isSatisfiable
in interface AceWikiReasoner
concept
- The concept.
public void loadSentence(Sentence sentence)
AceWikiReasoner
loadSentence
in interface AceWikiReasoner
sentence
- The sentence.public void unloadSentence(Sentence sentence)
AceWikiReasoner
unloadSentence
in interface AceWikiReasoner
sentence
- The sentence.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |