org.semanticweb.HermiT
Class Reasoner

java.lang.Object
  extended by org.semanticweb.HermiT.Reasoner
All Implemented Interfaces:
java.io.Serializable, org.semanticweb.owlapi.reasoner.OWLReasoner

public class Reasoner
extends java.lang.Object
implements org.semanticweb.owlapi.reasoner.OWLReasoner, java.io.Serializable

Answers queries about the logical implications of a particular knowledge base. A Reasoner is associated with a single knowledge base, which is "loaded" when the reasoner is constructed. By default a full classification of all atomic terms in the knowledge base is also performed at this time (which can take quite a while for large or complex ontologies), but this behavior can be disabled as a part of the Reasoner configuration. Internal details of the loading and reasoning algorithms can be configured in the Reasoner constructor and do not change over the lifetime of the Reasoner object---internal data structures and caches are optimized for a particular configuration. By default, HermiT will use the set of options which provide optimal performance.

See Also:
Serialized Form

Nested Class Summary
static class Reasoner.ProtegeReasonerFactory
           
static class Reasoner.ReasonerFactory
           
 
Field Summary
protected  ClassificationManager<AtomicConcept> m_atomicConceptClassificationManager
           
protected  Hierarchy<AtomicConcept> m_atomicConceptHierarchy
           
protected  Configuration m_configuration
           
protected  ClassificationManager<Role> m_dataRoleClassificationManager
           
protected  Hierarchy<Role> m_dataRoleHierarchy
           
protected  DLOntology m_dlOntology
           
protected  org.semanticweb.owlapi.model.OWLDataFactory m_factory
           
protected  InterruptFlag m_interruptFlag
           
protected  ClassificationManager<Role> m_objectRoleClassificationManager
           
protected  Hierarchy<Role> m_objectRoleHierarchy
           
protected  Prefixes m_prefixes
           
protected  org.semanticweb.owlapi.reasoner.ReasonerProgressMonitor m_progressMonitor
           
protected  java.util.Map<AtomicConcept,java.util.Set<Individual>> m_realization
           
protected  Tableau m_tableau
           
 
Constructor Summary
Reasoner()
          Creates a new reasoner instance with standard parameters for blocking, expansion strategy etc.
Reasoner(Configuration configuration)
          Creates a new reasoner instance with the parameters for blocking, expansion strategy etc as specified in the given configuration object.
Reasoner(Configuration configuration, DLOntology dlOntology)
          This is mainly an internal method.
Reasoner(Configuration configuration, org.semanticweb.owlapi.model.OWLOntologyManager ontologyManger, org.semanticweb.owlapi.model.OWLOntology ontology)
          Creates a new reasoner object with the parameters for blocking, expansion strategy etc as specified in the given configuration object.
Reasoner(Configuration configuration, org.semanticweb.owlapi.model.OWLOntologyManager ontologyManger, org.semanticweb.owlapi.model.OWLOntology ontology, org.semanticweb.owlapi.reasoner.ReasonerProgressMonitor progressMonitor)
          Creates a new reasoner object with the parameters for blocking, expansion strategy etc as specified in the given configuration object.
Reasoner(Configuration configuration, org.semanticweb.owlapi.model.OWLOntologyManager ontologyManager, org.semanticweb.owlapi.model.OWLOntology ontology, java.util.Set<DescriptionGraph> descriptionGraphs, org.semanticweb.owlapi.reasoner.ReasonerProgressMonitor progressMonitor)
          Creates a new reasoner object loaded with the given ontology and the given description graphs.
Reasoner(org.semanticweb.owlapi.model.OWLOntologyManager ontologyManger, org.semanticweb.owlapi.model.OWLOntology ontology)
          Creates a new reasoner object with standard parameters for blocking, expansion strategy etc.
 
Method Summary
protected static void addIRI(java.lang.String uri, java.util.Set<java.lang.String> prefixIRIs)
           
 boolean areDataPropertiesClassified()
           
 boolean areObjectPropertiesClassified()
           
protected  org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLClass> atomicConceptNodesToOWLAPI(java.util.Collection<HierarchyNode<AtomicConcept>> nodes)
           
protected  org.semanticweb.owlapi.reasoner.Node<org.semanticweb.owlapi.model.OWLClass> atomicConceptsToOWLAPI(java.util.Collection<AtomicConcept> concepts)
           
 void classify()
           
 void classifyDataProperties()
          Builds the data property hierarchy.
 void classifyObjectProperties()
          Builds the object property hierarchy.
protected static ClassificationManager<AtomicConcept> createAtomicConceptClassificationManager(Reasoner reasoner)
           
protected static ClassificationManager<Role> createDataRoleClassificationManager(Reasoner reasoner)
           
protected static ClassificationManager<Role> createObjectRoleClassificationManager(Reasoner reasoner)
           
protected static Prefixes createPrefixes(DLOntology dlOntology)
           
protected static Tableau createTableau(InterruptFlag interruptFlag, Configuration config, DLOntology dlOntology, Prefixes prefixes)
           
protected static
<K,V> java.util.Map<K,V>
createUnion(java.util.Map<K,V> map1, java.util.Map<K,V> map2)
           
protected static
<T> java.util.Set<T>
createUnion(java.util.Set<T> set1, java.util.Set<T> set2)
           
protected  org.semanticweb.owlapi.reasoner.Node<org.semanticweb.owlapi.model.OWLDataProperty> dataPropertiesToOWLAPI(java.util.Collection<Role> dataProperties)
           
protected  org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLDataProperty> dataPropertyNodesToOWLAPI(java.util.Collection<HierarchyNode<Role>> nodes)
           
 void dispose()
           
protected  java.lang.Boolean entailsDatatypeDefinition(org.semanticweb.owlapi.model.OWLDatatypeDefinitionAxiom axiom)
           
protected static DLOntology extendDLOntology(Configuration config, Prefixes prefixes, java.lang.String resultingOntologyIRI, DLOntology originalDLOntology, org.semanticweb.owlapi.model.OWLOntologyManager ontologyManager, org.semanticweb.owlapi.model.OWLAxiom... additionalAxioms)
           
 void flush()
           
 org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLClass> getAncestorClasses(org.semanticweb.owlapi.model.OWLClassExpression classExpression)
           
 org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLDataProperty> getAncestorDataProperties(org.semanticweb.owlapi.model.OWLDataProperty property)
           
 org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLObjectProperty> getAncestorObjectProperties(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
           
 java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLObjectPropertyExpression>> getAncestorObjectPropertyExpressions(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
           
 org.semanticweb.owlapi.reasoner.Node<org.semanticweb.owlapi.model.OWLClass> getBottomClassNode()
           
 org.semanticweb.owlapi.reasoner.Node<org.semanticweb.owlapi.model.OWLDataProperty> getBottomDataPropertyNode()
           
 org.semanticweb.owlapi.reasoner.Node<org.semanticweb.owlapi.model.OWLObjectProperty> getBottomObjectPropertyNode()
           
 org.semanticweb.owlapi.reasoner.BufferingMode getBufferingMode()
           
 Configuration getConfiguration()
           
protected static org.semanticweb.owlapi.model.OWLDataProperty getDataProperty(org.semanticweb.owlapi.model.OWLDataFactory factory, AtomicRole atomicRole)
           
 org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLClass> getDataPropertyDomains(org.semanticweb.owlapi.model.OWLDataProperty property, boolean direct)
           
 java.util.Set<org.semanticweb.owlapi.model.OWLLiteral> getDataPropertyValues(org.semanticweb.owlapi.model.OWLNamedIndividual namedIndividual, org.semanticweb.owlapi.model.OWLDataProperty property)
           
 org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLClass> getDescendantClasses(org.semanticweb.owlapi.model.OWLClassExpression classExpression)
           
 org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLDataProperty> getDescendantDataProperties(org.semanticweb.owlapi.model.OWLDataProperty property)
           
 org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLObjectProperty> getDescendantObjectProperties(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
           
 java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLObjectPropertyExpression>> getDescendantObjectPropertyExpressions(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
           
 org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLNamedIndividual> getDifferentIndividuals(org.semanticweb.owlapi.model.OWLNamedIndividual namedIndividual)
           
protected  java.util.Set<HierarchyNode<AtomicConcept>> getDirectSuperConceptNodes(Individual individual)
           
 org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLClass> getDisjointClasses(org.semanticweb.owlapi.model.OWLClassExpression classExpression, boolean direct)
           
 org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLDataProperty> getDisjointDataProperties(org.semanticweb.owlapi.model.OWLDataPropertyExpression propertyExpression, boolean direct)
           
 org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLObjectProperty> getDisjointObjectProperties(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression, boolean direct)
           
 DLOntology getDLOntology()
           
 org.semanticweb.owlapi.reasoner.Node<org.semanticweb.owlapi.model.OWLClass> getEquivalentClasses(org.semanticweb.owlapi.model.OWLClassExpression classExpression)
           
 org.semanticweb.owlapi.reasoner.Node<org.semanticweb.owlapi.model.OWLDataProperty> getEquivalentDataProperties(org.semanticweb.owlapi.model.OWLDataProperty property)
           
 org.semanticweb.owlapi.reasoner.Node<org.semanticweb.owlapi.model.OWLObjectProperty> getEquivalentObjectProperties(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
           
 java.util.Set<org.semanticweb.owlapi.model.OWLObjectPropertyExpression> getEquivalentObjectPropertyExpressions(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
           
 org.semanticweb.owlapi.reasoner.FreshEntityPolicy getFreshEntityPolicy()
           
protected  HierarchyNode<AtomicConcept> getHierarchyNode(AtomicConcept atomicConcept)
           
protected  HierarchyNode<AtomicConcept> getHierarchyNode(org.semanticweb.owlapi.model.OWLClassExpression description)
           
protected  HierarchyNode<Role> getHierarchyNode(org.semanticweb.owlapi.model.OWLDataProperty property)
           
protected  HierarchyNode<Role> getHierarchyNode(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
           
protected  HierarchyNode<Role> getHierarchyNodeDataRole(Role role)
           
protected  HierarchyNode<Role> getHierarchyNodeObjectRole(Role role)
           
 org.semanticweb.owlapi.reasoner.IndividualNodeSetPolicy getIndividualNodeSetPolicy()
           
 org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLNamedIndividual> getInstances(org.semanticweb.owlapi.model.OWLClassExpression classExpression, boolean direct)
           
 org.semanticweb.owlapi.reasoner.Node<org.semanticweb.owlapi.model.OWLObjectProperty> getInverseObjectProperties(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
           
protected static org.semanticweb.owlapi.model.OWLObjectProperty getObjectProperty(org.semanticweb.owlapi.model.OWLDataFactory factory, AtomicRole atomicRole)
           
 org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLClass> getObjectPropertyDomains(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression, boolean direct)
           
protected static org.semanticweb.owlapi.model.OWLObjectPropertyExpression getObjectPropertyExpression(org.semanticweb.owlapi.model.OWLDataFactory factory, Role role)
           
 org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLClass> getObjectPropertyRanges(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression, boolean direct)
           
 org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLNamedIndividual> getObjectPropertyValues(org.semanticweb.owlapi.model.OWLNamedIndividual namedIndividual, org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
           
 java.util.Set<org.semanticweb.owlapi.model.OWLAxiom> getPendingAxiomAdditions()
           
 java.util.Set<org.semanticweb.owlapi.model.OWLAxiom> getPendingAxiomRemovals()
           
 java.util.List<org.semanticweb.owlapi.model.OWLOntologyChange> getPendingChanges()
           
 Prefixes getPrefixes()
           
protected static java.lang.String getPrefixForIndex(int prefixIndex)
           
 java.lang.String getReasonerName()
           
 org.semanticweb.owlapi.util.Version getReasonerVersion()
           
 org.semanticweb.owlapi.model.OWLOntology getRootOntology()
           
protected  org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLNamedIndividual> getSameAsInstances(org.semanticweb.owlapi.model.OWLNamedIndividual namedIndividual)
           
 org.semanticweb.owlapi.reasoner.Node<org.semanticweb.owlapi.model.OWLNamedIndividual> getSameIndividuals(org.semanticweb.owlapi.model.OWLNamedIndividual namedIndividual)
           
 org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLClass> getSubClasses(org.semanticweb.owlapi.model.OWLClassExpression classExpression, boolean direct)
           
protected  java.util.Set<HierarchyNode<AtomicConcept>> getSubClassNodes(org.semanticweb.owlapi.model.OWLClassExpression classExpression, boolean direct, boolean inclusive)
           
 org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLDataProperty> getSubDataProperties(org.semanticweb.owlapi.model.OWLDataProperty property, boolean direct)
           
protected  java.util.Set<HierarchyNode<Role>> getSubDataPropertyNodes(org.semanticweb.owlapi.model.OWLDataProperty property, boolean direct, boolean inclusive)
           
 org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLObjectProperty> getSubObjectProperties(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression, boolean direct)
           
 java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLObjectPropertyExpression>> getSubObjectPropertyExpressions(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression, boolean direct)
           
protected  java.util.Set<HierarchyNode<Role>> getSubObjectPropertyNodes(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression, boolean direct, boolean inclusive)
           
 org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLClass> getSuperClasses(org.semanticweb.owlapi.model.OWLClassExpression classExpression, boolean direct)
           
protected  java.util.Set<HierarchyNode<AtomicConcept>> getSuperClassNodes(org.semanticweb.owlapi.model.OWLClassExpression classExpression, boolean direct, boolean inclusive)
           
 org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLDataProperty> getSuperDataProperties(org.semanticweb.owlapi.model.OWLDataProperty property, boolean direct)
           
protected  java.util.Set<HierarchyNode<Role>> getSuperDataPropertyNodes(org.semanticweb.owlapi.model.OWLDataProperty property, boolean direct, boolean inclusive)
           
 org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLObjectProperty> getSuperObjectProperties(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression, boolean direct)
           
 java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLObjectPropertyExpression>> getSuperObjectPropertyExpressions(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression, boolean direct)
           
protected  java.util.Set<HierarchyNode<Role>> getSuperObjectPropertyNodes(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression, boolean direct, boolean inclusive)
           
 Tableau getTableau()
          Returns the tableau of this reasoner.
 Tableau getTableau(org.semanticweb.owlapi.model.OWLOntologyManager ontologyManager, org.semanticweb.owlapi.model.OWLAxiom... additionalAxioms)
          A mostly internal method.
 long getTimeOut()
           
 org.semanticweb.owlapi.reasoner.Node<org.semanticweb.owlapi.model.OWLClass> getTopClassNode()
           
 org.semanticweb.owlapi.reasoner.Node<org.semanticweb.owlapi.model.OWLDataProperty> getTopDataPropertyNode()
           
 org.semanticweb.owlapi.reasoner.Node<org.semanticweb.owlapi.model.OWLObjectProperty> getTopObjectPropertyNode()
           
 org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLClass> getTypes(org.semanticweb.owlapi.model.OWLNamedIndividual owlIndividual, boolean direct)
           
 org.semanticweb.owlapi.reasoner.Node<org.semanticweb.owlapi.model.OWLClass> getUnsatisfiableClasses()
           
 boolean hasDataPropertyRelationship(org.semanticweb.owlapi.model.OWLNamedIndividual subject, org.semanticweb.owlapi.model.OWLDataProperty property, org.semanticweb.owlapi.model.OWLLiteral object)
           
protected  java.lang.Boolean hasKey(org.semanticweb.owlapi.model.OWLHasKeyAxiom key)
           
 boolean hasObjectPropertyRelationship(org.semanticweb.owlapi.model.OWLNamedIndividual subject, org.semanticweb.owlapi.model.OWLObjectPropertyExpression property, org.semanticweb.owlapi.model.OWLNamedIndividual object)
           
 boolean hasType(org.semanticweb.owlapi.model.OWLNamedIndividual owlIndividual, org.semanticweb.owlapi.model.OWLClassExpression type, boolean direct)
           
protected  void initOWLAPI(org.semanticweb.owlapi.model.OWLOntology ontology)
           
 void interrupt()
           
 boolean isAsymmetric(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
           
 boolean isClassified()
           
 boolean isConsistent()
           
 boolean isDefined(org.semanticweb.owlapi.model.OWLClass owlClass)
           
 boolean isDefined(org.semanticweb.owlapi.model.OWLDataProperty owlDataProperty)
           
 boolean isDefined(org.semanticweb.owlapi.model.OWLIndividual owlIndividual)
           
 boolean isDefined(org.semanticweb.owlapi.model.OWLObjectProperty owlObjectProperty)
           
 boolean isEntailed(org.semanticweb.owlapi.model.OWLAxiom axiom)
           
 boolean isEntailed(java.util.Set<? extends org.semanticweb.owlapi.model.OWLAxiom> axioms)
           
 boolean isEntailmentCheckingSupported(org.semanticweb.owlapi.model.AxiomType<?> axiomType)
           
 boolean isEquivalentClass(org.semanticweb.owlapi.model.OWLClassExpression classExpression1, org.semanticweb.owlapi.model.OWLClassExpression classExpression2)
           
 boolean isEquivalentDataProperty(org.semanticweb.owlapi.model.OWLDataProperty dataProperty1, org.semanticweb.owlapi.model.OWLDataProperty dataProperty2)
           
 boolean isEquivalentObjectPropertyExpression(org.semanticweb.owlapi.model.OWLObjectPropertyExpression objectPropertyExpression1, org.semanticweb.owlapi.model.OWLObjectPropertyExpression objectPropertyExpression2)
           
 boolean isFunctional(org.semanticweb.owlapi.model.OWLDataProperty property)
           
 boolean isFunctional(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
           
 boolean isInverseFunctional(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
           
 boolean isIrreflexive(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
           
 boolean isRealised()
           
 boolean isReflexive(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
           
 boolean isSatisfiable(org.semanticweb.owlapi.model.OWLClassExpression description)
           
 boolean isSubClassOf(org.semanticweb.owlapi.model.OWLClassExpression subDescription, org.semanticweb.owlapi.model.OWLClassExpression superDescription)
           
 boolean isSubDataPropertyOf(org.semanticweb.owlapi.model.OWLDataProperty subDataProperty, org.semanticweb.owlapi.model.OWLDataProperty superDataProperty)
          Determines if the property chain represented by subPropertyChain is a sub-property of superObjectPropertyExpression.
 boolean isSubObjectPropertyExpressionOf(java.util.List<org.semanticweb.owlapi.model.OWLObjectPropertyExpression> subPropertyChain, org.semanticweb.owlapi.model.OWLObjectPropertyExpression superObjectPropertyExpression)
          Determines if the property chain represented by subPropertyChain is a sub-property of superObjectPropertyExpression.
 boolean isSubObjectPropertyExpressionOf(org.semanticweb.owlapi.model.OWLObjectPropertyExpression subObjectPropertyExpression, org.semanticweb.owlapi.model.OWLObjectPropertyExpression superObjectPropertyExpression)
          Determines if subObjectPropertyExpression is a sub-property of superObjectPropertyExpression.
 boolean isSymmetric(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
           
 boolean isTransitive(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
           
 void loadDLOntology(DLOntology dlOntology)
          Load an ontology in HermiT's internal format.
protected  void loadIndividualsOfNode(HierarchyNode<AtomicConcept> node, java.util.Set<org.semanticweb.owlapi.reasoner.Node<org.semanticweb.owlapi.model.OWLNamedIndividual>> result)
           
 void loadOntology(org.semanticweb.owlapi.model.OWLOntologyManager ontologyManager, org.semanticweb.owlapi.model.OWLOntology ontology, java.util.Set<DescriptionGraph> descriptionGraphs)
          The given ontology and description graphs are loaded into the Reasoner instance.
protected  org.semanticweb.owlapi.reasoner.Node<org.semanticweb.owlapi.model.OWLObjectProperty> objectPropertiesToOWLAPI(java.util.Collection<Role> objectProperties)
           
protected  org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLObjectProperty> objectPropertyNodesToOWLAPI(java.util.Collection<HierarchyNode<Role>> nodes)
           
protected  java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLObjectPropertyExpression>> objectRoleNodesToSetOfSetsOfObjectPropertyExpressions(java.util.Collection<HierarchyNode<Role>> nodes)
           
protected  java.util.Set<org.semanticweb.owlapi.model.OWLObjectPropertyExpression> objectRolesToObjectPropertyExpressions(java.util.Collection<Role> roles)
           
protected  void permanentlyExtendDLOntology(org.semanticweb.owlapi.model.OWLOntologyManager ontologyManager, org.semanticweb.owlapi.model.OWLAxiom... additionalAxioms)
           
 void prepareReasoner()
           
 void printHierarchies(java.io.PrintWriter out, boolean classes, boolean objectProperties, boolean dataProperties)
          Prints the hierarchies into a functional style syntax ontology.
 void realise()
          Compute, for each named class C in the loaded ontology, the instances of C.
protected  void throwFreshEntityExceptionIfNecessary(org.semanticweb.owlapi.model.OWLObject... objects)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_configuration

protected final Configuration m_configuration

m_interruptFlag

protected final InterruptFlag m_interruptFlag

m_factory

protected final org.semanticweb.owlapi.model.OWLDataFactory m_factory

m_progressMonitor

protected final org.semanticweb.owlapi.reasoner.ReasonerProgressMonitor m_progressMonitor

m_dlOntology

protected DLOntology m_dlOntology

m_prefixes

protected Prefixes m_prefixes

m_tableau

protected Tableau m_tableau

m_atomicConceptClassificationManager

protected ClassificationManager<AtomicConcept> m_atomicConceptClassificationManager

m_atomicConceptHierarchy

protected Hierarchy<AtomicConcept> m_atomicConceptHierarchy

m_objectRoleClassificationManager

protected ClassificationManager<Role> m_objectRoleClassificationManager

m_objectRoleHierarchy

protected Hierarchy<Role> m_objectRoleHierarchy

m_dataRoleClassificationManager

protected ClassificationManager<Role> m_dataRoleClassificationManager

m_dataRoleHierarchy

protected Hierarchy<Role> m_dataRoleHierarchy

m_realization

protected java.util.Map<AtomicConcept,java.util.Set<Individual>> m_realization
Constructor Detail

Reasoner

public Reasoner()
Creates a new reasoner instance with standard parameters for blocking, expansion strategy etc.


Reasoner

public Reasoner(Configuration configuration)
Creates a new reasoner instance with the parameters for blocking, expansion strategy etc as specified in the given configuration object. A default configuration can be obtained by just passing new Configuration().

Parameters:
configuration - - a configuration in which parameters can be defined such as the blocking strategy to be used etc

Reasoner

public Reasoner(org.semanticweb.owlapi.model.OWLOntologyManager ontologyManger,
                org.semanticweb.owlapi.model.OWLOntology ontology)
Creates a new reasoner object with standard parameters for blocking, expansion strategy etc. Then the given manager is used to find all required imports for the given ontology and the ontology with the imports is loaded into the reasoner and the data factory of the manager is used to create fresh concepts during the preprocessing phase if necessary.

Parameters:
ontologyManger - - the manager that will be used to determine the required imports for the given ontology
ontology - - the ontology that should be loaded by the reasoner

Reasoner

public Reasoner(Configuration configuration,
                org.semanticweb.owlapi.model.OWLOntologyManager ontologyManger,
                org.semanticweb.owlapi.model.OWLOntology ontology)
Creates a new reasoner object with the parameters for blocking, expansion strategy etc as specified in the given configuration object. A default configuration can be obtained by just passing new Configuration(). Then the given manager is used to find all required imports for the given ontology and the ontology with the imports is loaded into the reasoner and the data factory of the manager is used to create fresh concepts during the preprocessing phase if necessary.

Parameters:
configuration - - a configuration in which parameters can be defined such as the blocking strategy to be used etc
ontologyManger - - the manager that will be used to determine the required imports for the given ontology
ontology - - the ontology that should be loaded by the reasoner

Reasoner

public Reasoner(Configuration configuration,
                org.semanticweb.owlapi.model.OWLOntologyManager ontologyManger,
                org.semanticweb.owlapi.model.OWLOntology ontology,
                org.semanticweb.owlapi.reasoner.ReasonerProgressMonitor progressMonitor)
Creates a new reasoner object with the parameters for blocking, expansion strategy etc as specified in the given configuration object. A default configuration can be obtained by just passing new Configuration(). Then the given manager is used to find all required imports for the given ontology and the ontology with the imports is loaded into the reasoner and the data factory of the manager is used to create fresh concepts during the preprocessing phase if necessary.

Parameters:
configuration - - a configuration in which parameters can be defined such as the blocking strategy to be used etc
ontologyManger - - the manager that will be used to determine the required imports for the given ontology
ontology - - the ontology that should be loaded by the reasoner
progressMonitor - - the progress monitor that is attached to the reasoner to display progress of the classification, if null no monitor is used

Reasoner

public Reasoner(Configuration configuration,
                org.semanticweb.owlapi.model.OWLOntologyManager ontologyManager,
                org.semanticweb.owlapi.model.OWLOntology ontology,
                java.util.Set<DescriptionGraph> descriptionGraphs,
                org.semanticweb.owlapi.reasoner.ReasonerProgressMonitor progressMonitor)
Creates a new reasoner object loaded with the given ontology and the given description graphs. When creating the reasoner, the given configuration determines the parameters for blocking, expansion strategy etc. A default configuration can be obtained by just passing new Configuration(). Then the given manager is used to find all required imports for the given ontology and the ontology with the imports and the description graphs are loaded into the reasoner. The data factory of the manager is used to create fresh concepts during the preprocessing phase if necessary.

Parameters:
configuration - - a configuration in which parameters can be defined such as the blocking strategy to be used etc
ontologyManager - - the manager that will be used to determine the required imports for the given ontology
ontology - - the ontology that should be loaded by the reasoner
descriptionGraphs - - a set of description graphs
progressMonitor - - the progress monitor that is attached to the reasoner to display progress of the classification, if null no monitor is used

Reasoner

public Reasoner(Configuration configuration,
                DLOntology dlOntology)
This is mainly an internal method. Once an ontology is loaded, normalised and clausified, the resulting DLOntology object can be obtained by calling getDLOntology(), saved and reloaded later with this method so that normalisation and clausification is not done again. A default configuration can be obtained by just passing new Configuration().

Parameters:
configuration - - a configuration in which parameters can be defined such as the blocking strategy to be used etc
dlOntology - - an ontology in HermiT's internal ontology format
Method Detail

getPrefixes

public Prefixes getPrefixes()
Returns:
A prefix object that is used to maintain the URI/IRI prefixes of classes, properties etc that are used in the reasoner.

getDLOntology

public DLOntology getDLOntology()
Returns:
An ontology in HermiT's internal format containing all axioms of the ontologies that are loaded in the reasoner.

getConfiguration

public Configuration getConfiguration()
Returns:
A copy of the configuration that is used by this Reasoner instance.

interrupt

public void interrupt()
Specified by:
interrupt in interface org.semanticweb.owlapi.reasoner.OWLReasoner

getTableau

public Tableau getTableau()
Returns the tableau of this reasoner.


loadDLOntology

public void loadDLOntology(DLOntology dlOntology)
Load an ontology in HermiT's internal format. A DLOntology can be obtained from a Reasoner instance after loading an OWLOntology by calling getDLOntology(). The DLOntology contains clauses and facts, obtained after normalisation and clausification on an OWLOntology. The DLOntology also contains a configuration.

Parameters:
dlOntology - - an ontology in HermiT's internal format

loadOntology

public void loadOntology(org.semanticweb.owlapi.model.OWLOntologyManager ontologyManager,
                         org.semanticweb.owlapi.model.OWLOntology ontology,
                         java.util.Set<DescriptionGraph> descriptionGraphs)
The given ontology and description graphs are loaded into the Reasoner instance. Any previously loaded ontologies are overwritten. Then the given manager is used to find all required imports for the given ontology and the ontology with the imports and the description graphs are loaded into the reasoner. The data factory of the manager is used to create fresh concepts during the preprocessing phase if necessary.

Parameters:
ontologyManager - - the manager that will be used to determine the required imports for the given ontology
ontology - - the ontology that should be loaded by the reasoner
descriptionGraphs - - a set of description graphs or null

dispose

public void dispose()
Specified by:
dispose in interface org.semanticweb.owlapi.reasoner.OWLReasoner

isDefined

public boolean isDefined(org.semanticweb.owlapi.model.OWLClass owlClass)
Parameters:
owlClass - - a named OWL Class
Returns:
true if the class occurs in the import closure of the loaded ontology

isDefined

public boolean isDefined(org.semanticweb.owlapi.model.OWLIndividual owlIndividual)
Parameters:
owlIndividual - - a named or anonymous individual
Returns:
true if the given individual occurs in the import closure of the loaded ontology

isDefined

public boolean isDefined(org.semanticweb.owlapi.model.OWLObjectProperty owlObjectProperty)
Parameters:
owlObjectProperty - - a named object property
Returns:
true if the given object property occurs in the import closure of the loaded ontology

isDefined

public boolean isDefined(org.semanticweb.owlapi.model.OWLDataProperty owlDataProperty)
Parameters:
owlDataProperty - - a named data property
Returns:
true if the given data property occurs in the import closure of the loaded ontology

prepareReasoner

public void prepareReasoner()
Specified by:
prepareReasoner in interface org.semanticweb.owlapi.reasoner.OWLReasoner

isConsistent

public boolean isConsistent()
Specified by:
isConsistent in interface org.semanticweb.owlapi.reasoner.OWLReasoner

isEntailmentCheckingSupported

public boolean isEntailmentCheckingSupported(org.semanticweb.owlapi.model.AxiomType<?> axiomType)
Specified by:
isEntailmentCheckingSupported in interface org.semanticweb.owlapi.reasoner.OWLReasoner

isEntailed

public boolean isEntailed(org.semanticweb.owlapi.model.OWLAxiom axiom)
Specified by:
isEntailed in interface org.semanticweb.owlapi.reasoner.OWLReasoner

isEntailed

public boolean isEntailed(java.util.Set<? extends org.semanticweb.owlapi.model.OWLAxiom> axioms)
Specified by:
isEntailed in interface org.semanticweb.owlapi.reasoner.OWLReasoner

entailsDatatypeDefinition

protected java.lang.Boolean entailsDatatypeDefinition(org.semanticweb.owlapi.model.OWLDatatypeDefinitionAxiom axiom)

isClassified

public boolean isClassified()

classify

public void classify()

getTopClassNode

public org.semanticweb.owlapi.reasoner.Node<org.semanticweb.owlapi.model.OWLClass> getTopClassNode()
Specified by:
getTopClassNode in interface org.semanticweb.owlapi.reasoner.OWLReasoner

getBottomClassNode

public org.semanticweb.owlapi.reasoner.Node<org.semanticweb.owlapi.model.OWLClass> getBottomClassNode()
Specified by:
getBottomClassNode in interface org.semanticweb.owlapi.reasoner.OWLReasoner

isSatisfiable

public boolean isSatisfiable(org.semanticweb.owlapi.model.OWLClassExpression description)
Specified by:
isSatisfiable in interface org.semanticweb.owlapi.reasoner.OWLReasoner

isSubClassOf

public boolean isSubClassOf(org.semanticweb.owlapi.model.OWLClassExpression subDescription,
                            org.semanticweb.owlapi.model.OWLClassExpression superDescription)

isEquivalentClass

public boolean isEquivalentClass(org.semanticweb.owlapi.model.OWLClassExpression classExpression1,
                                 org.semanticweb.owlapi.model.OWLClassExpression classExpression2)
Parameters:
classExpression1 - - an OWL class expression
classExpression2 - - an OWL class expression
Returns:
true if classExpression1 and classExpression2 are equivalent

getEquivalentClasses

public org.semanticweb.owlapi.reasoner.Node<org.semanticweb.owlapi.model.OWLClass> getEquivalentClasses(org.semanticweb.owlapi.model.OWLClassExpression classExpression)
Specified by:
getEquivalentClasses in interface org.semanticweb.owlapi.reasoner.OWLReasoner

getSubClassNodes

protected java.util.Set<HierarchyNode<AtomicConcept>> getSubClassNodes(org.semanticweb.owlapi.model.OWLClassExpression classExpression,
                                                                       boolean direct,
                                                                       boolean inclusive)

getSubClasses

public org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLClass> getSubClasses(org.semanticweb.owlapi.model.OWLClassExpression classExpression,
                                                                                                    boolean direct)
Specified by:
getSubClasses in interface org.semanticweb.owlapi.reasoner.OWLReasoner

getDescendantClasses

public org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLClass> getDescendantClasses(org.semanticweb.owlapi.model.OWLClassExpression classExpression)
Parameters:
classExpression - - an OWL class expression
Returns:
a set of Nodes {N1, ..., Nn} such that classes in each node Ni are equivalent to each other and (not necessarily strict) subclasses of classExpression, i.e., if classExpression is a class name, then classExpression is part of the answer

getSuperClassNodes

protected java.util.Set<HierarchyNode<AtomicConcept>> getSuperClassNodes(org.semanticweb.owlapi.model.OWLClassExpression classExpression,
                                                                         boolean direct,
                                                                         boolean inclusive)

getSuperClasses

public org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLClass> getSuperClasses(org.semanticweb.owlapi.model.OWLClassExpression classExpression,
                                                                                                      boolean direct)
Specified by:
getSuperClasses in interface org.semanticweb.owlapi.reasoner.OWLReasoner

getAncestorClasses

public org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLClass> getAncestorClasses(org.semanticweb.owlapi.model.OWLClassExpression classExpression)
Parameters:
classExpression - - an OWL class expression
Returns:
a set of Nodes {N1, ..., Nn} such that classes in each node Ni are equivalent to each other and (not necessarily strict) superclasses of classExpression, i.e., if classExpression is a class name, then classExpression is part of the answer

getUnsatisfiableClasses

public org.semanticweb.owlapi.reasoner.Node<org.semanticweb.owlapi.model.OWLClass> getUnsatisfiableClasses()
Specified by:
getUnsatisfiableClasses in interface org.semanticweb.owlapi.reasoner.OWLReasoner

getDisjointClasses

public org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLClass> getDisjointClasses(org.semanticweb.owlapi.model.OWLClassExpression classExpression,
                                                                                                         boolean direct)
Specified by:
getDisjointClasses in interface org.semanticweb.owlapi.reasoner.OWLReasoner

getHierarchyNode

protected HierarchyNode<AtomicConcept> getHierarchyNode(AtomicConcept atomicConcept)

getHierarchyNode

protected HierarchyNode<AtomicConcept> getHierarchyNode(org.semanticweb.owlapi.model.OWLClassExpression description)

areObjectPropertiesClassified

public boolean areObjectPropertiesClassified()
Returns:
true if the object property hierarchy has been computed and false otherwise

classifyObjectProperties

public void classifyObjectProperties()
Builds the object property hierarchy. With nominals and cardinality restrictions this cannot always been dome by simply building the transitive closure of the asserted object property hierarchy.


getTopObjectPropertyNode

public org.semanticweb.owlapi.reasoner.Node<org.semanticweb.owlapi.model.OWLObjectProperty> getTopObjectPropertyNode()
Specified by:
getTopObjectPropertyNode in interface org.semanticweb.owlapi.reasoner.OWLReasoner

getBottomObjectPropertyNode

public org.semanticweb.owlapi.reasoner.Node<org.semanticweb.owlapi.model.OWLObjectProperty> getBottomObjectPropertyNode()
Specified by:
getBottomObjectPropertyNode in interface org.semanticweb.owlapi.reasoner.OWLReasoner

isSubObjectPropertyExpressionOf

public boolean isSubObjectPropertyExpressionOf(org.semanticweb.owlapi.model.OWLObjectPropertyExpression subObjectPropertyExpression,
                                               org.semanticweb.owlapi.model.OWLObjectPropertyExpression superObjectPropertyExpression)
Determines if subObjectPropertyExpression is a sub-property of superObjectPropertyExpression. HermiT answers true if subObjectPropertyExpression=superObjectPropertyExpression.

Parameters:
subObjectPropertyExpression - - the sub object property expression
superObjectPropertyExpression - - the super object property expression
Returns:
true if whenever a pair related with the property subObjectPropertyExpression is necessarily related with the property superObjectPropertyExpression and false otherwise

isSubObjectPropertyExpressionOf

public boolean isSubObjectPropertyExpressionOf(java.util.List<org.semanticweb.owlapi.model.OWLObjectPropertyExpression> subPropertyChain,
                                               org.semanticweb.owlapi.model.OWLObjectPropertyExpression superObjectPropertyExpression)
Determines if the property chain represented by subPropertyChain is a sub-property of superObjectPropertyExpression.

Parameters:
subPropertyChain - - a list that represents a property chain
superObjectPropertyExpression - - an object property expression
Returns:
if r1, ..., rn is the given chain and r the given super property, then the answer is true if whenever r1(d0, d1), ..., rn(dn-1, dn) holds in a model for some elements d0, ..., dn, then necessarily r(d0, dn) holds and it is false otherwise

isEquivalentObjectPropertyExpression

public boolean isEquivalentObjectPropertyExpression(org.semanticweb.owlapi.model.OWLObjectPropertyExpression objectPropertyExpression1,
                                                    org.semanticweb.owlapi.model.OWLObjectPropertyExpression objectPropertyExpression2)
Parameters:
objectPropertyExpression1 - - an object property expression
objectPropertyExpression2 - - an object property expression
Returns:
true if the extension of objectPropertyExpression1 is the same as the extension of objectPropertyExpression2 in each model of the ontology and false otherwise

getSuperObjectPropertyNodes

protected java.util.Set<HierarchyNode<Role>> getSuperObjectPropertyNodes(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression,
                                                                         boolean direct,
                                                                         boolean inclusive)

getSuperObjectProperties

public org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLObjectProperty> getSuperObjectProperties(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression,
                                                                                                                        boolean direct)
Specified by:
getSuperObjectProperties in interface org.semanticweb.owlapi.reasoner.OWLReasoner

getAncestorObjectProperties

public org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLObjectProperty> getAncestorObjectProperties(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
Parameters:
propertyExpression - - an OWL object property expression (named or inverse)
Returns:
a set of Nodes {N1, ..., Nn} such that object property NAMES in each node Ni are equivalent to each other and (not necessarily strict) super object properties of propertyExpression, i.e., if propertyExpression is a named object property, then propertyExpression is part of the answer

getSuperObjectPropertyExpressions

public java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLObjectPropertyExpression>> getSuperObjectPropertyExpressions(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression,
                                                                                                                                boolean direct)
Parameters:
propertyExpression - - an OWL object property expression (named or inverse)
direct - - if true, then only the strict and direct super object properties EXPRESSIONs are returned otherwise strict but possibly indirect super object property EXPRESSIONs are returned
Returns:
a set of sets {S1, ..., Sn} such that object property EXPRESSIONS in each set Si are equivalent to each other and strict super object properties expressions of propertyExpression, i.e., if propertyExpression is not part of the answer

getAncestorObjectPropertyExpressions

public java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLObjectPropertyExpression>> getAncestorObjectPropertyExpressions(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
Parameters:
propertyExpression - - an OWL object property expression (named or inverse)
Returns:
a set of sets {S1, ..., Sn} such that object property EXPRESSIONs in each set Si are equivalent to each other and (not necessarily strict) super object properties EXPRESSIONS of propertyExpression, i.e., propertyExpression is part of the answer

getSubObjectPropertyNodes

protected java.util.Set<HierarchyNode<Role>> getSubObjectPropertyNodes(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression,
                                                                       boolean direct,
                                                                       boolean inclusive)

getSubObjectProperties

public org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLObjectProperty> getSubObjectProperties(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression,
                                                                                                                      boolean direct)
Specified by:
getSubObjectProperties in interface org.semanticweb.owlapi.reasoner.OWLReasoner

getDescendantObjectProperties

public org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLObjectProperty> getDescendantObjectProperties(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
Parameters:
propertyExpression - - an OWL object property expression (named or inverse)
Returns:
a set of Nodes {N1, ..., Nn} such that object property NAMES in each node Ni are equivalent to each other and (not necessarily strict) sub object properties of propertyExpression, i.e., if propertyExpression is a named object property, then propertyExpression is part of the answer

getSubObjectPropertyExpressions

public java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLObjectPropertyExpression>> getSubObjectPropertyExpressions(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression,
                                                                                                                              boolean direct)

getDescendantObjectPropertyExpressions

public java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLObjectPropertyExpression>> getDescendantObjectPropertyExpressions(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
Parameters:
propertyExpression - - an OWL object property expression (named or inverse)
Returns:
a set of sets {S1, ..., Sn} such that object property EXPRESSIONs in each set Si are equivalent to each other and (not necessarily strict) sub object properties EXPRESSIONS of propertyExpression, i.e., propertyExpression is part of the answer

getEquivalentObjectProperties

public org.semanticweb.owlapi.reasoner.Node<org.semanticweb.owlapi.model.OWLObjectProperty> getEquivalentObjectProperties(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
Specified by:
getEquivalentObjectProperties in interface org.semanticweb.owlapi.reasoner.OWLReasoner

getEquivalentObjectPropertyExpressions

public java.util.Set<org.semanticweb.owlapi.model.OWLObjectPropertyExpression> getEquivalentObjectPropertyExpressions(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
Parameters:
propertyExpression - - an object property expression (named or inverse)
Returns:
a set of object property expressions such that each object property expression ope in the set is equivalent to propertyExpression

getHierarchyNodeObjectRole

protected HierarchyNode<Role> getHierarchyNodeObjectRole(Role role)

getHierarchyNode

protected HierarchyNode<Role> getHierarchyNode(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)

getObjectPropertyDomains

public org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLClass> getObjectPropertyDomains(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression,
                                                                                                               boolean direct)
Specified by:
getObjectPropertyDomains in interface org.semanticweb.owlapi.reasoner.OWLReasoner

getObjectPropertyRanges

public org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLClass> getObjectPropertyRanges(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression,
                                                                                                              boolean direct)
Specified by:
getObjectPropertyRanges in interface org.semanticweb.owlapi.reasoner.OWLReasoner

getInverseObjectProperties

public org.semanticweb.owlapi.reasoner.Node<org.semanticweb.owlapi.model.OWLObjectProperty> getInverseObjectProperties(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
Specified by:
getInverseObjectProperties in interface org.semanticweb.owlapi.reasoner.OWLReasoner

getDisjointObjectProperties

public org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLObjectProperty> getDisjointObjectProperties(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression,
                                                                                                                           boolean direct)
Specified by:
getDisjointObjectProperties in interface org.semanticweb.owlapi.reasoner.OWLReasoner

isFunctional

public boolean isFunctional(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
Parameters:
propertyExpression - - an object property expression
Returns:
true if each individual can have at most one outgoing connection of the specified object property expression

isInverseFunctional

public boolean isInverseFunctional(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
Parameters:
propertyExpression - - an object property expression
Returns:
true if each individual can have at most one incoming connection of the specified object property expression

isIrreflexive

public boolean isIrreflexive(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
Parameters:
propertyExpression - - an object property expression
Returns:
true if the extension of propertyExpression is an irreflexive relation in each model of the loaded ontology

isReflexive

public boolean isReflexive(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
Parameters:
propertyExpression - - an object property expression
Returns:
true if the extension of propertyExpression is a reflexive relation in each model of the loaded ontology

isAsymmetric

public boolean isAsymmetric(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
Parameters:
propertyExpression - - an object property expression
Returns:
true if the extension of propertyExpression is an asymmetric relation in each model of the loaded ontology

isSymmetric

public boolean isSymmetric(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
Parameters:
propertyExpression - - an object property expression
Returns:
true if the extension of propertyExpression is a symmetric relation in each model of the loaded ontology

isTransitive

public boolean isTransitive(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
Parameters:
propertyExpression - - an object property expression
Returns:
true if the extension of propertyExpression is a transitive relation in each model of the loaded ontology

areDataPropertiesClassified

public boolean areDataPropertiesClassified()
Returns:
true if the data property hierarchy has been computed and false otherwise

classifyDataProperties

public void classifyDataProperties()
Builds the data property hierarchy.


getTopDataPropertyNode

public org.semanticweb.owlapi.reasoner.Node<org.semanticweb.owlapi.model.OWLDataProperty> getTopDataPropertyNode()
Specified by:
getTopDataPropertyNode in interface org.semanticweb.owlapi.reasoner.OWLReasoner

getBottomDataPropertyNode

public org.semanticweb.owlapi.reasoner.Node<org.semanticweb.owlapi.model.OWLDataProperty> getBottomDataPropertyNode()
Specified by:
getBottomDataPropertyNode in interface org.semanticweb.owlapi.reasoner.OWLReasoner

isSubDataPropertyOf

public boolean isSubDataPropertyOf(org.semanticweb.owlapi.model.OWLDataProperty subDataProperty,
                                   org.semanticweb.owlapi.model.OWLDataProperty superDataProperty)
Determines if the property chain represented by subPropertyChain is a sub-property of superObjectPropertyExpression.

Parameters:
subDataProperty - - a data property
superDataProperty - - a data property
Returns:
true if whenever a pair related with the property subDataProperty is necessarily related with the property superDataProperty and false otherwise

isEquivalentDataProperty

public boolean isEquivalentDataProperty(org.semanticweb.owlapi.model.OWLDataProperty dataProperty1,
                                        org.semanticweb.owlapi.model.OWLDataProperty dataProperty2)
Parameters:
dataProperty1 - - a data property
dataProperty2 - - a data property
Returns:
true if the extension of dataProperty1 is the same as the extension of dataProperty2 in each model of the ontology and false otherwise

getSuperDataPropertyNodes

protected java.util.Set<HierarchyNode<Role>> getSuperDataPropertyNodes(org.semanticweb.owlapi.model.OWLDataProperty property,
                                                                       boolean direct,
                                                                       boolean inclusive)

getSuperDataProperties

public org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLDataProperty> getSuperDataProperties(org.semanticweb.owlapi.model.OWLDataProperty property,
                                                                                                                    boolean direct)
Specified by:
getSuperDataProperties in interface org.semanticweb.owlapi.reasoner.OWLReasoner

getAncestorDataProperties

public org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLDataProperty> getAncestorDataProperties(org.semanticweb.owlapi.model.OWLDataProperty property)
Parameters:
property - - an OWL data property
Returns:
a set of Nodes {N1, ..., Nn} such that data properties in each node Ni are equivalent to each other and (not necessarily strict) super data properties of property, i.e., property is part of the answer

getSubDataPropertyNodes

protected java.util.Set<HierarchyNode<Role>> getSubDataPropertyNodes(org.semanticweb.owlapi.model.OWLDataProperty property,
                                                                     boolean direct,
                                                                     boolean inclusive)

getSubDataProperties

public org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLDataProperty> getSubDataProperties(org.semanticweb.owlapi.model.OWLDataProperty property,
                                                                                                                  boolean direct)
Specified by:
getSubDataProperties in interface org.semanticweb.owlapi.reasoner.OWLReasoner

getDescendantDataProperties

public org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLDataProperty> getDescendantDataProperties(org.semanticweb.owlapi.model.OWLDataProperty property)
Parameters:
property - - an OWL data property
Returns:
a set of Nodes {N1, ..., Nn} such that data properties in each node Ni are equivalent to each other and (not necessarily strict) sub data properties of property, i.e., property is part of the answer

getEquivalentDataProperties

public org.semanticweb.owlapi.reasoner.Node<org.semanticweb.owlapi.model.OWLDataProperty> getEquivalentDataProperties(org.semanticweb.owlapi.model.OWLDataProperty property)
Specified by:
getEquivalentDataProperties in interface org.semanticweb.owlapi.reasoner.OWLReasoner

getHierarchyNodeDataRole

protected HierarchyNode<Role> getHierarchyNodeDataRole(Role role)

getHierarchyNode

protected HierarchyNode<Role> getHierarchyNode(org.semanticweb.owlapi.model.OWLDataProperty property)

throwFreshEntityExceptionIfNecessary

protected void throwFreshEntityExceptionIfNecessary(org.semanticweb.owlapi.model.OWLObject... objects)

getDataPropertyDomains

public org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLClass> getDataPropertyDomains(org.semanticweb.owlapi.model.OWLDataProperty property,
                                                                                                             boolean direct)
Specified by:
getDataPropertyDomains in interface org.semanticweb.owlapi.reasoner.OWLReasoner

getDataPropertyValues

public java.util.Set<org.semanticweb.owlapi.model.OWLLiteral> getDataPropertyValues(org.semanticweb.owlapi.model.OWLNamedIndividual namedIndividual,
                                                                                    org.semanticweb.owlapi.model.OWLDataProperty property)
Specified by:
getDataPropertyValues in interface org.semanticweb.owlapi.reasoner.OWLReasoner

getDisjointDataProperties

public org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLDataProperty> getDisjointDataProperties(org.semanticweb.owlapi.model.OWLDataPropertyExpression propertyExpression,
                                                                                                                       boolean direct)
Specified by:
getDisjointDataProperties in interface org.semanticweb.owlapi.reasoner.OWLReasoner

isFunctional

public boolean isFunctional(org.semanticweb.owlapi.model.OWLDataProperty property)
Parameters:
property - - a data property
Returns:
true if each individual can have at most one outgoing connection of the specified data property

isRealised

public boolean isRealised()
Returns:
true if instances of the named classes in the loaded ontology have been computed

realise

public void realise()
Compute, for each named class C in the loaded ontology, the instances of C.


getDirectSuperConceptNodes

protected java.util.Set<HierarchyNode<AtomicConcept>> getDirectSuperConceptNodes(Individual individual)

getSameIndividuals

public org.semanticweb.owlapi.reasoner.Node<org.semanticweb.owlapi.model.OWLNamedIndividual> getSameIndividuals(org.semanticweb.owlapi.model.OWLNamedIndividual namedIndividual)
Specified by:
getSameIndividuals in interface org.semanticweb.owlapi.reasoner.OWLReasoner

getDifferentIndividuals

public org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLNamedIndividual> getDifferentIndividuals(org.semanticweb.owlapi.model.OWLNamedIndividual namedIndividual)
Specified by:
getDifferentIndividuals in interface org.semanticweb.owlapi.reasoner.OWLReasoner

getTypes

public org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLClass> getTypes(org.semanticweb.owlapi.model.OWLNamedIndividual owlIndividual,
                                                                                               boolean direct)
Specified by:
getTypes in interface org.semanticweb.owlapi.reasoner.OWLReasoner

hasType

public boolean hasType(org.semanticweb.owlapi.model.OWLNamedIndividual owlIndividual,
                       org.semanticweb.owlapi.model.OWLClassExpression type,
                       boolean direct)
Parameters:
owlIndividual - - an OWL named individual
type - - an OWL class expression
direct - - true if only most specific classes should be considered and false if also indirect types should be considered
Returns:
true if owlIndividual is an instance of the class type and either direct is false or there is no class C such that owlIndividual is an instance of C and C is a subclass of type

getInstances

public org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLNamedIndividual> getInstances(org.semanticweb.owlapi.model.OWLClassExpression classExpression,
                                                                                                             boolean direct)
Specified by:
getInstances in interface org.semanticweb.owlapi.reasoner.OWLReasoner

getSameAsInstances

protected org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLNamedIndividual> getSameAsInstances(org.semanticweb.owlapi.model.OWLNamedIndividual namedIndividual)

loadIndividualsOfNode

protected void loadIndividualsOfNode(HierarchyNode<AtomicConcept> node,
                                     java.util.Set<org.semanticweb.owlapi.reasoner.Node<org.semanticweb.owlapi.model.OWLNamedIndividual>> result)

getObjectPropertyValues

public org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLNamedIndividual> getObjectPropertyValues(org.semanticweb.owlapi.model.OWLNamedIndividual namedIndividual,
                                                                                                                        org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
Specified by:
getObjectPropertyValues in interface org.semanticweb.owlapi.reasoner.OWLReasoner

hasObjectPropertyRelationship

public boolean hasObjectPropertyRelationship(org.semanticweb.owlapi.model.OWLNamedIndividual subject,
                                             org.semanticweb.owlapi.model.OWLObjectPropertyExpression property,
                                             org.semanticweb.owlapi.model.OWLNamedIndividual object)
Parameters:
subject - - a named OWL individual
property - - an OWL object property expression
object - - a named OWL individual
Returns:
true if the pair (subject, object) is an instance of property in each model of the loaded ontology

hasDataPropertyRelationship

public boolean hasDataPropertyRelationship(org.semanticweb.owlapi.model.OWLNamedIndividual subject,
                                           org.semanticweb.owlapi.model.OWLDataProperty property,
                                           org.semanticweb.owlapi.model.OWLLiteral object)
Parameters:
subject - - a named OWL individual
property - - an OWL object property expression
object - - an OWL data literal
Returns:
true if the pair (subject, object) is an instance of property in each model of the loaded ontology

hasKey

protected java.lang.Boolean hasKey(org.semanticweb.owlapi.model.OWLHasKeyAxiom key)

getTableau

public Tableau getTableau(org.semanticweb.owlapi.model.OWLOntologyManager ontologyManager,
                          org.semanticweb.owlapi.model.OWLAxiom... additionalAxioms)
                   throws java.lang.IllegalArgumentException
A mostly internal method. Can be used to retrieve a tableau for axioms in the given ontology manager plus an additional set of axioms.

Parameters:
ontologyManager - - the manager is assumed to contain the axioms to which the given additional axioms are to be added
additionalAxioms - - a list of additional axioms that should be included in the tableau
Returns:
a tableau containing rules for the normalised axioms, this tableau is not permanent in the reasoner, i.e., it does not overwrite the originally created tableau
Throws:
java.lang.IllegalArgumentException - - if the axioms lead to non-admissible clauses, some configuration parameters are incompatible or other such errors

createTableau

protected static Tableau createTableau(InterruptFlag interruptFlag,
                                       Configuration config,
                                       DLOntology dlOntology,
                                       Prefixes prefixes)
                                throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

createAtomicConceptClassificationManager

protected static ClassificationManager<AtomicConcept> createAtomicConceptClassificationManager(Reasoner reasoner)

createObjectRoleClassificationManager

protected static ClassificationManager<Role> createObjectRoleClassificationManager(Reasoner reasoner)

createDataRoleClassificationManager

protected static ClassificationManager<Role> createDataRoleClassificationManager(Reasoner reasoner)

extendDLOntology

protected static DLOntology extendDLOntology(Configuration config,
                                             Prefixes prefixes,
                                             java.lang.String resultingOntologyIRI,
                                             DLOntology originalDLOntology,
                                             org.semanticweb.owlapi.model.OWLOntologyManager ontologyManager,
                                             org.semanticweb.owlapi.model.OWLAxiom... additionalAxioms)
                                      throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

permanentlyExtendDLOntology

protected void permanentlyExtendDLOntology(org.semanticweb.owlapi.model.OWLOntologyManager ontologyManager,
                                           org.semanticweb.owlapi.model.OWLAxiom... additionalAxioms)
                                    throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

createUnion

protected static <T> java.util.Set<T> createUnion(java.util.Set<T> set1,
                                                  java.util.Set<T> set2)

createUnion

protected static <K,V> java.util.Map<K,V> createUnion(java.util.Map<K,V> map1,
                                                      java.util.Map<K,V> map2)

getObjectProperty

protected static org.semanticweb.owlapi.model.OWLObjectProperty getObjectProperty(org.semanticweb.owlapi.model.OWLDataFactory factory,
                                                                                  AtomicRole atomicRole)

getObjectPropertyExpression

protected static org.semanticweb.owlapi.model.OWLObjectPropertyExpression getObjectPropertyExpression(org.semanticweb.owlapi.model.OWLDataFactory factory,
                                                                                                      Role role)

getDataProperty

protected static org.semanticweb.owlapi.model.OWLDataProperty getDataProperty(org.semanticweb.owlapi.model.OWLDataFactory factory,
                                                                              AtomicRole atomicRole)

createPrefixes

protected static Prefixes createPrefixes(DLOntology dlOntology)

getPrefixForIndex

protected static java.lang.String getPrefixForIndex(int prefixIndex)

addIRI

protected static void addIRI(java.lang.String uri,
                             java.util.Set<java.lang.String> prefixIRIs)

printHierarchies

public void printHierarchies(java.io.PrintWriter out,
                             boolean classes,
                             boolean objectProperties,
                             boolean dataProperties)
Prints the hierarchies into a functional style syntax ontology.

Parameters:
out - - the printwriter that is used to output the hierarchies
classes - - if true, the class hierarchy is printed
objectProperties - - if true, the object property hierarchy is printed
dataProperties - - if true, the data property hierarchy is printed

atomicConceptsToOWLAPI

protected org.semanticweb.owlapi.reasoner.Node<org.semanticweb.owlapi.model.OWLClass> atomicConceptsToOWLAPI(java.util.Collection<AtomicConcept> concepts)

atomicConceptNodesToOWLAPI

protected org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLClass> atomicConceptNodesToOWLAPI(java.util.Collection<HierarchyNode<AtomicConcept>> nodes)

dataPropertiesToOWLAPI

protected org.semanticweb.owlapi.reasoner.Node<org.semanticweb.owlapi.model.OWLDataProperty> dataPropertiesToOWLAPI(java.util.Collection<Role> dataProperties)

dataPropertyNodesToOWLAPI

protected org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLDataProperty> dataPropertyNodesToOWLAPI(java.util.Collection<HierarchyNode<Role>> nodes)

objectPropertiesToOWLAPI

protected org.semanticweb.owlapi.reasoner.Node<org.semanticweb.owlapi.model.OWLObjectProperty> objectPropertiesToOWLAPI(java.util.Collection<Role> objectProperties)

objectPropertyNodesToOWLAPI

protected org.semanticweb.owlapi.reasoner.NodeSet<org.semanticweb.owlapi.model.OWLObjectProperty> objectPropertyNodesToOWLAPI(java.util.Collection<HierarchyNode<Role>> nodes)

objectRolesToObjectPropertyExpressions

protected java.util.Set<org.semanticweb.owlapi.model.OWLObjectPropertyExpression> objectRolesToObjectPropertyExpressions(java.util.Collection<Role> roles)

objectRoleNodesToSetOfSetsOfObjectPropertyExpressions

protected java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLObjectPropertyExpression>> objectRoleNodesToSetOfSetsOfObjectPropertyExpressions(java.util.Collection<HierarchyNode<Role>> nodes)

getTimeOut

public long getTimeOut()
Specified by:
getTimeOut in interface org.semanticweb.owlapi.reasoner.OWLReasoner

getRootOntology

public org.semanticweb.owlapi.model.OWLOntology getRootOntology()
Specified by:
getRootOntology in interface org.semanticweb.owlapi.reasoner.OWLReasoner

flush

public void flush()
Specified by:
flush in interface org.semanticweb.owlapi.reasoner.OWLReasoner

getBufferingMode

public org.semanticweb.owlapi.reasoner.BufferingMode getBufferingMode()
Specified by:
getBufferingMode in interface org.semanticweb.owlapi.reasoner.OWLReasoner

getPendingAxiomAdditions

public java.util.Set<org.semanticweb.owlapi.model.OWLAxiom> getPendingAxiomAdditions()
Specified by:
getPendingAxiomAdditions in interface org.semanticweb.owlapi.reasoner.OWLReasoner

getPendingAxiomRemovals

public java.util.Set<org.semanticweb.owlapi.model.OWLAxiom> getPendingAxiomRemovals()
Specified by:
getPendingAxiomRemovals in interface org.semanticweb.owlapi.reasoner.OWLReasoner

getPendingChanges

public java.util.List<org.semanticweb.owlapi.model.OWLOntologyChange> getPendingChanges()
Specified by:
getPendingChanges in interface org.semanticweb.owlapi.reasoner.OWLReasoner

initOWLAPI

protected void initOWLAPI(org.semanticweb.owlapi.model.OWLOntology ontology)

getIndividualNodeSetPolicy

public org.semanticweb.owlapi.reasoner.IndividualNodeSetPolicy getIndividualNodeSetPolicy()
Specified by:
getIndividualNodeSetPolicy in interface org.semanticweb.owlapi.reasoner.OWLReasoner

getFreshEntityPolicy

public org.semanticweb.owlapi.reasoner.FreshEntityPolicy getFreshEntityPolicy()
Specified by:
getFreshEntityPolicy in interface org.semanticweb.owlapi.reasoner.OWLReasoner

getReasonerName

public java.lang.String getReasonerName()
Specified by:
getReasonerName in interface org.semanticweb.owlapi.reasoner.OWLReasoner

getReasonerVersion

public org.semanticweb.owlapi.util.Version getReasonerVersion()
Specified by:
getReasonerVersion in interface org.semanticweb.owlapi.reasoner.OWLReasoner