|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.uzh.ifi.attempto.acewiki.owl.AceWikiOWLReasoner
public class AceWikiOWLReasoner
This is a reasoner implementation that connects to an OWL reasoner. At the moment, it can directly connect to HermiT and Pellet. Additionally, reasoners like FaCT++ can be accessed via the OWLlink interface.
| Constructor Summary | |
|---|---|
AceWikiOWLReasoner()
Creates a new reasoner object. |
|
| Method Summary | |
|---|---|
org.semanticweb.owlapi.model.OWLOntology |
exportOWLOntology(boolean consistent)
Returns a new OWL ontology object representing the full ontology or the consistent part of it. |
void |
flushElements()
This method can finalize the loading or unloading of elements. |
java.util.List<AnswerElement> |
getAnswer(Question q)
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.lang.String |
getGlobalRestrictionsPolicy()
Returns a string representing the policy how to enforce the global restrictions on the axioms in OWL 2. |
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. |
org.semanticweb.owlapi.model.OWLOntologyManager |
getOWLOntologyManager()
Returns the OWL ontology manager. |
org.semanticweb.owlapi.profiles.OWLProfile |
getOWLProfile()
Returns the OWL profile that defines which statements are used for reasoning, or null if the full language of OWL is used. |
java.lang.String |
getOWLProfileName()
Returns the name of the current OWL profile. |
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 s)
Loads the given sentence. |
void |
unloadElement(OntologyElement element)
Unloads the given ontology element. |
void |
unloadSentence(Sentence s)
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 AceWikiOWLReasoner()
| Method Detail |
|---|
public void init(Ontology ontology)
AceWikiReasoner
init in interface AceWikiReasonerontology - The ontology object.public java.util.Map<java.lang.String,java.lang.String> getInfo()
AceWikiReasoner
getInfo in interface AceWikiReasonerpublic java.lang.String getGlobalRestrictionsPolicy()
public org.semanticweb.owlapi.profiles.OWLProfile getOWLProfile()
public java.lang.String getOWLProfileName()
public org.semanticweb.owlapi.model.OWLOntology exportOWLOntology(boolean consistent)
consistent - true if only the consistent part should be exported.
public org.semanticweb.owlapi.model.OWLOntologyManager getOWLOntologyManager()
public java.lang.String getReasonerName()
AceWikiReasoner
getReasonerName in interface AceWikiReasonerpublic java.lang.String getReasonerVersion()
AceWikiReasoner
getReasonerVersion in interface AceWikiReasonerpublic java.lang.String getReasonerType()
AceWikiReasoner
getReasonerType in interface AceWikiReasonerpublic void load()
AceWikiReasoner
load in interface AceWikiReasonerpublic void flushElements()
AceWikiReasoner
flushElements in interface AceWikiReasonerpublic void loadElement(OntologyElement element)
AceWikiReasoner
loadElement in interface AceWikiReasonerelement - The ontology element.public void unloadElement(OntologyElement element)
AceWikiReasoner
unloadElement in interface AceWikiReasonerelement - The ontology element.public java.util.List<Concept> getConcepts(Individual ind)
AceWikiReasoner
getConcepts in interface AceWikiReasonerind - The individual.
public java.util.List<Individual> getIndividuals(Concept concept)
AceWikiReasoner
getIndividuals in interface AceWikiReasonerconcept - The concept.
public java.util.List<Concept> getSuperConcepts(Concept concept)
AceWikiReasoner
getSuperConcepts in interface AceWikiReasonerconcept - The concept for which all super-concepts should be returned.
public java.util.List<Concept> getSubConcepts(Concept concept)
AceWikiReasoner
getSubConcepts in interface AceWikiReasonerconcept - The concept for which all sub-concepts should be returned.
public java.util.List<AnswerElement> getAnswer(Question q)
AceWikiReasoner
getAnswer in interface AceWikiReasonerq - The question to be answered.
public boolean isConsistent()
AceWikiReasoner
isConsistent in interface AceWikiReasonerpublic boolean isSatisfiable(Concept concept)
AceWikiReasoner
isSatisfiable in interface AceWikiReasonerconcept - The concept.
public void loadSentence(Sentence s)
AceWikiReasoner
loadSentence in interface AceWikiReasoners - The sentence.public void unloadSentence(Sentence s)
AceWikiReasoner
unloadSentence in interface AceWikiReasoners - The sentence.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||