|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--uk.ac.man.cs.img.owl.inference.dl.SimpleOWLReasoner
An OWL reasoner that uses a DIG reasoner to do the work.
| Nested Class Summary | |
class |
SimpleOWLReasoner.ExpressivenessOutOfScopeException
|
| Constructor Summary | |
SimpleOWLReasoner(uk.ac.man.cs.img.dig.reasoner.Reasoner digReasoner)
Create a new reasoning object. |
|
| Method Summary | |
Set |
ancestorClassesOf(OWLDescription d)
Returns the collection of all superclasses of the given description. |
Set |
descendantClassesOf(OWLDescription d)
Returns the collection of all subclasses of the given description. |
Set |
equivalentClassesOf(OWLDescription d)
Returns the collection of (named) classes which are equivalent to the given description. |
OWLOntology |
getOntology()
Get the ontology that this reasoner reasons over |
Set |
instancesOf(OWLDescription d1)
Returns all the instances of the given class. |
boolean |
isConsistent()
|
boolean |
isConsistent(OWLDescription d1)
Returns true if the description is consistent (i.e. if it is * possible for there to exist models in which the extension of the class is non-empty. |
boolean |
isEquivalentClass(OWLDescription d1,
OWLDescription d2)
Returns true if d1 is equivalent to d2. |
boolean |
isInstanceOf(OWLIndividual i,
OWLDescription d)
Returns true if the given individual is an instance of the given description |
boolean |
isSubClassOf(OWLDescription d1,
OWLDescription d2)
Returns true if d1 is a subclass of d2. |
static void |
main(String[] args)
|
void |
ontologyChanged(OntologyChange event)
|
void |
setOntology(OWLOntology onto)
Set the ontology that the reasoner knows about. |
Set |
subClassesOf(OWLDescription d)
Returns the collection of (named) most general subclasses of the given description. |
Set |
superClassesOf(OWLDescription d)
Returns the collection of (named) most specific superclasses of the given description. |
void |
tell(String str)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SimpleOWLReasoner(uk.ac.man.cs.img.dig.reasoner.Reasoner digReasoner)
throws OWLException
digReasoner - a Reasoner value| Method Detail |
public void setOntology(OWLOntology onto)
throws OWLException
setOntology in interface OWLReasonerOWLException
public void tell(String str)
throws OWLException
tell in interface ReasonerProxyOWLExceptionpublic OWLOntology getOntology()
OWLReasoner
getOntology in interface OWLReasoner
public boolean isSubClassOf(OWLDescription d1,
OWLDescription d2)
throws OWLException
isSubClassOf in interface OWLClassReasonerOWLException
public boolean isEquivalentClass(OWLDescription d1,
OWLDescription d2)
throws OWLException
isEquivalentClass in interface OWLClassReasonerOWLException
public boolean isConsistent(OWLDescription d1)
throws OWLException
isConsistent in interface OWLClassReasonerOWLException
public boolean isConsistent()
throws OWLException
OWLException
public Set superClassesOf(OWLDescription d)
throws OWLException
superClassesOf in interface OWLClassReasonerOWLException
public Set subClassesOf(OWLDescription d)
throws OWLException
subClassesOf in interface OWLClassReasonerOWLException
public Set ancestorClassesOf(OWLDescription d)
throws OWLException
OWLClassReasoner
ancestorClassesOf in interface OWLClassReasonerOWLException
public Set descendantClassesOf(OWLDescription d)
throws OWLException
OWLClassReasoner
descendantClassesOf in interface OWLClassReasonerOWLException
public Set equivalentClassesOf(OWLDescription d)
throws OWLException
OWLClassReasoner
equivalentClassesOf in interface OWLClassReasonerOWLException
public void ontologyChanged(OntologyChange event)
throws OWLException
ontologyChanged in interface OntologyChangeListenerOWLException
public boolean isInstanceOf(OWLIndividual i,
OWLDescription d)
throws OWLException
OWLIndividualReasoner
isInstanceOf in interface OWLIndividualReasonerOWLException
public Set instancesOf(OWLDescription d1)
throws OWLException
instancesOf in interface OWLIndividualReasonerOWLExceptionpublic static void main(String[] args)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||