org.semanticweb.HermiT
Class Reasoner

java.lang.Object
  extended by org.semanticweb.HermiT.Reasoner
All Implemented Interfaces:
java.io.Serializable, org.semanticweb.owlapi.inference.MonitorableOWLReasoner, org.semanticweb.owlapi.inference.OWLClassReasoner, org.semanticweb.owlapi.inference.OWLConsistencyChecker, org.semanticweb.owlapi.inference.OWLIndividualReasoner, org.semanticweb.owlapi.inference.OWLPropertyReasoner, org.semanticweb.owlapi.inference.OWLReasoner, org.semanticweb.owlapi.inference.OWLReasonerBase, org.semanticweb.owlapi.inference.OWLSatisfiabilityChecker

public class Reasoner
extends java.lang.Object
implements org.semanticweb.owlapi.inference.MonitorableOWLReasoner, 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  Hierarchy<AtomicConcept> m_atomicConceptHierarchy
           
protected  ConceptSubsumptionCache m_conceptSubsumptionCache
           
protected  Configuration m_configuration
           
protected  Hierarchy<Role> m_dataRoleHierarchy
           
protected  RoleSubsumptionCache m_dataRoleSubsumptionCache
           
protected  DLOntology m_dlOntology
           
protected  InterruptFlag m_interruptFlag
           
protected  Hierarchy<Role> m_objectRoleHierarchy
           
protected  RoleSubsumptionCache m_objectRoleSubsumptionCache
           
protected  Prefixes m_prefixes
           
protected  org.semanticweb.owlapi.util.ProgressMonitor 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.OWLDataFactory dataFactory, java.util.Set<org.semanticweb.owlapi.model.OWLOntology> importClosure)
          This method is mainly for use of HermiT in Protege.
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 ontologyManager, org.semanticweb.owlapi.model.OWLOntology ontology, java.util.Set<DescriptionGraph> descriptionGraphs)
          Creates a new reasoner object loaded with the given ontology and the given description graphs.
Reasoner(Configuration configuration, java.util.Set<org.semanticweb.owlapi.model.OWLOntology> importClosure)
          This method is mainly for use of HermiT in Protege.
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
<T> void
addInclusion(java.util.Map<T,DeterministicHierarchyBuilder.GraphNode<T>> knownSubsumers, T subElement, T supElement)
           
protected static void addIRI(java.lang.String uri, java.util.Set<java.lang.String> prefixIRIs)
           
 boolean areDataPropertiesClassified()
           
 boolean areObjectPropertiesClassified()
           
protected static java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLClass>> atomicConceptNodesToOWLAPI(java.util.Collection<HierarchyNode<AtomicConcept>> nodes, org.semanticweb.owlapi.model.OWLDataFactory factory)
           
protected static java.util.Set<org.semanticweb.owlapi.model.OWLClass> atomicConceptsToOWLAPI(java.util.Collection<AtomicConcept> atomicConcepts, org.semanticweb.owlapi.model.OWLDataFactory factory)
           
 void classify()
           
 void classifyDataProperties()
          Builds the data property hierarchy.
 void classifyObjectProperties()
          Builds the object property hierarchy.
 void clearOntologies()
           
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 static java.util.Set<org.semanticweb.owlapi.model.OWLDataProperty> dataPropertiesToOWLAPI(java.util.Collection<Role> dataProperties, org.semanticweb.owlapi.model.OWLDataFactory factory)
           
protected static java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLDataProperty>> dataPropertyNodesToOWLAPI(java.util.Collection<HierarchyNode<Role>> nodes, org.semanticweb.owlapi.model.OWLDataFactory factory)
           
 void dispose()
          Same as clearOntologies() in HermiT.
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)
           
protected static java.util.Set<org.semanticweb.owlapi.model.OWLObjectProperty> filterObjectProperties(java.util.Set<org.semanticweb.owlapi.model.OWLObjectPropertyExpression> set)
           
protected static java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLObjectProperty>> filterObjectPropertySets(java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLObjectPropertyExpression>> setOfSets)
           
 java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLClass>> getAncestorClasses(org.semanticweb.owlapi.model.OWLClassExpression classExpression)
           
 java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLDataProperty>> getAncestorProperties(org.semanticweb.owlapi.model.OWLDataProperty property)
          Returns the (direct and indirect) super-properties of the given property including the property itself.
 java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLObjectProperty>> getAncestorProperties(org.semanticweb.owlapi.model.OWLObjectProperty property)
          Deprecated. 
 java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLObjectPropertyExpression>> getAncestorProperties(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
          Returns the super-properties of propertyExpression.
 Configuration getConfiguration()
           
 org.semanticweb.owlapi.model.OWLEntity getCurrentEntity()
          Required for the OWLReasoner interface, but HermiT does not support this method and will throw an UnsupportedOperation exception.
protected static org.semanticweb.owlapi.model.OWLDataProperty getDataProperty(org.semanticweb.owlapi.model.OWLDataFactory factory, AtomicRole atomicRole)
           
 java.util.Map<org.semanticweb.owlapi.model.OWLDataProperty,java.util.Set<org.semanticweb.owlapi.model.OWLLiteral>> getDataPropertyRelationships(org.semanticweb.owlapi.model.OWLNamedIndividual individual)
           
 java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLClass>> getDescendantClasses(org.semanticweb.owlapi.model.OWLClassExpression description)
           
 java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLDataProperty>> getDescendantProperties(org.semanticweb.owlapi.model.OWLDataProperty property)
          Returns the (direct and indirect) sub-properties of the given property including the property itself.
 java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLObjectProperty>> getDescendantProperties(org.semanticweb.owlapi.model.OWLObjectProperty property)
          Deprecated. 
 java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLObjectPropertyExpression>> getDescendantProperties(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
          Returns the sub-properties of propertyExpression.
protected  java.util.Set<HierarchyNode<AtomicConcept>> getDirectSuperConceptNodes(Individual individual)
           
 DLOntology getDLOntology()
           
 java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLClassExpression>> getDomains(org.semanticweb.owlapi.model.OWLDataProperty property)
          Gets the domains of the given data property.
 java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLClassExpression>> getDomains(org.semanticweb.owlapi.model.OWLObjectProperty property)
          Deprecated. 
 java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLClassExpression>> getDomains(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
          Gets the domains of a particular property.
 java.util.Set<org.semanticweb.owlapi.model.OWLClass> getEquivalentClasses(org.semanticweb.owlapi.model.OWLClassExpression classExpression)
           
 java.util.Set<org.semanticweb.owlapi.model.OWLDataProperty> getEquivalentProperties(org.semanticweb.owlapi.model.OWLDataProperty property)
          Returns properties that are equivalent to the given property.
 java.util.Set<org.semanticweb.owlapi.model.OWLObjectProperty> getEquivalentProperties(org.semanticweb.owlapi.model.OWLObjectProperty property)
          Deprecated. 
 java.util.Set<org.semanticweb.owlapi.model.OWLObjectPropertyExpression> getEquivalentProperties(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
          Returns properties that are equivalent to propertyExpression.
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)
           
 java.util.Set<org.semanticweb.owlapi.model.OWLClass> getInconsistentClasses()
          Deprecated. 
 java.util.Set<org.semanticweb.owlapi.model.OWLNamedIndividual> getIndividuals(org.semanticweb.owlapi.model.OWLClassExpression description, boolean direct)
           
 java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLObjectProperty>> getInverseProperties(org.semanticweb.owlapi.model.OWLObjectProperty property)
          Deprecated. 
 java.util.Set<org.semanticweb.owlapi.model.OWLObjectPropertyExpression> getInverseProperties(org.semanticweb.owlapi.model.OWLObjectPropertyExpression property)
           
 java.util.Set<org.semanticweb.owlapi.model.OWLOntology> getLoadedOntologies()
          Required for the OWLReasoner interface, but HermiT does not support this method.
protected static org.semanticweb.owlapi.model.OWLObjectProperty getObjectProperty(org.semanticweb.owlapi.model.OWLDataFactory factory, AtomicRole atomicRole)
           
protected static org.semanticweb.owlapi.model.OWLObjectPropertyExpression getObjectPropertyExpression(org.semanticweb.owlapi.model.OWLDataFactory factory, Role role)
           
 java.util.Map<org.semanticweb.owlapi.model.OWLObjectProperty,java.util.Set<org.semanticweb.owlapi.model.OWLNamedIndividual>> getObjectPropertyRelationships(org.semanticweb.owlapi.model.OWLNamedIndividual individual)
           
 Prefixes getPrefixes()
           
protected static java.lang.String getPrefixForIndex(int prefixIndex)
           
 java.util.Set<org.semanticweb.owlapi.model.OWLDataRange> getRanges(org.semanticweb.owlapi.model.OWLDataProperty property)
          This method is not supported by HermiT and executing it will result in an UnsupportedOperation error.
 java.util.Set<org.semanticweb.owlapi.model.OWLClassExpression> getRanges(org.semanticweb.owlapi.model.OWLObjectProperty property)
          Deprecated. 
 java.util.Set<org.semanticweb.owlapi.model.OWLClassExpression> getRanges(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
          Gets the ranges of the given property.
 java.util.Set<org.semanticweb.owlapi.model.OWLNamedIndividual> getRelatedIndividuals(org.semanticweb.owlapi.model.OWLNamedIndividual subject, org.semanticweb.owlapi.model.OWLObjectPropertyExpression property)
           
 java.util.Set<org.semanticweb.owlapi.model.OWLLiteral> getRelatedValues(org.semanticweb.owlapi.model.OWLNamedIndividual subject, org.semanticweb.owlapi.model.OWLDataPropertyExpression property)
           
 java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLClass>> getSubClasses(org.semanticweb.owlapi.model.OWLClassExpression classExpression)
           
 java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLDataProperty>> getSubProperties(org.semanticweb.owlapi.model.OWLDataProperty property)
          Returns the most specific direct sub-properties of the given property.
 java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLObjectProperty>> getSubProperties(org.semanticweb.owlapi.model.OWLObjectProperty property)
          Deprecated. 
 java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLObjectPropertyExpression>> getSubProperties(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
          Returns the DIRECT sub-properties of propertyExpression.
 java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLClass>> getSuperClasses(org.semanticweb.owlapi.model.OWLClassExpression classExpression)
           
 java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLDataProperty>> getSuperProperties(org.semanticweb.owlapi.model.OWLDataProperty property)
          Returns the most specific direct super-properties of the given property.
 java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLObjectProperty>> getSuperProperties(org.semanticweb.owlapi.model.OWLObjectProperty property)
          Deprecated. 
 java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLObjectPropertyExpression>> getSuperProperties(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
          Returns the DIRECT super-properties of propertyExpression.
 Tableau getTableau()
          Returns the tableau of this reasoner.
 Tableau getTableau(org.semanticweb.owlapi.model.OWLOntologyManager ontologyManager, org.semanticweb.owlapi.model.OWLAxiom... additionalAxioms)
           
 java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLClass>> getTypes(org.semanticweb.owlapi.model.OWLNamedIndividual owlIndividual, boolean direct)
           
 java.util.Set<org.semanticweb.owlapi.model.OWLClass> getUnsatisfiableClasses()
           
 boolean hasDataPropertyRelationship(org.semanticweb.owlapi.model.OWLNamedIndividual subject, org.semanticweb.owlapi.model.OWLDataPropertyExpression property, org.semanticweb.owlapi.model.OWLLiteral object)
           
 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)
           
 void interrupt()
          Set a flag to tell the reasoner to stop whatever it is doing.
 boolean isAntiSymmetric(org.semanticweb.owlapi.model.OWLObjectProperty property)
          Deprecated. 
 boolean isAsymmetric(org.semanticweb.owlapi.model.OWLObjectProperty property)
          Deprecated. 
 boolean isAsymmetric(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
           
 boolean isClassified()
           
 boolean isConsistent()
           
 boolean isConsistent(org.semanticweb.owlapi.model.OWLOntology ignored)
          Deprecated. 
 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 isEquivalentClass(org.semanticweb.owlapi.model.OWLClassExpression description1, org.semanticweb.owlapi.model.OWLClassExpression description2)
           
 boolean isEquivalentProperty(org.semanticweb.owlapi.model.OWLDataProperty dataProperty1, org.semanticweb.owlapi.model.OWLDataProperty dataProperty2)
           
 boolean isEquivalentProperty(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.OWLObjectProperty property)
          Deprecated. 
 boolean isFunctional(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
           
 boolean isInverseFunctional(org.semanticweb.owlapi.model.OWLObjectProperty property)
          Deprecated. 
 boolean isInverseFunctional(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
           
 boolean isIrreflexive(org.semanticweb.owlapi.model.OWLObjectProperty property)
          Deprecated. 
 boolean isIrreflexive(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
           
 boolean isRealised()
           
 boolean isReflexive(org.semanticweb.owlapi.model.OWLObjectProperty property)
          Deprecated. 
 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 isSubPropertyOf(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 isSubPropertyOf(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 isSubPropertyOf(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.OWLObjectProperty property)
          Deprecated. 
 boolean isSymmetric(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
           
 boolean isTransitive(org.semanticweb.owlapi.model.OWLObjectProperty property)
          Deprecated. 
 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.model.OWLNamedIndividual> result, org.semanticweb.owlapi.model.OWLDataFactory factory)
           
 void loadOntologies(org.semanticweb.owlapi.model.OWLDataFactory dataFactory, java.util.Set<org.semanticweb.owlapi.model.OWLOntology> ontologies)
          Loads the specified ontologies.
 void loadOntologies(java.util.Set<org.semanticweb.owlapi.model.OWLOntology> ontologies)
           
 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.
static Reasoner loadReasoner(java.io.File file)
           
static Reasoner loadReasoner(java.io.InputStream inputStream)
           
protected static java.util.Set<org.semanticweb.owlapi.model.OWLObjectPropertyExpression> objectPropertiesToOWLAPI(java.util.Collection<Role> roles, org.semanticweb.owlapi.model.OWLDataFactory factory)
           
protected static java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLObjectPropertyExpression>> objectPropertyNodesToOWLAPI(java.util.Collection<HierarchyNode<Role>> nodes, org.semanticweb.owlapi.model.OWLDataFactory factory)
           
 void printHierarchies(java.io.PrintWriter out, boolean classes, boolean objectProperties, boolean dataProperties)
           
 void realise()
           
 void save(java.io.File file)
           
 void save(java.io.OutputStream outputStream)
           
 void setProgressMonitor(org.semanticweb.owlapi.util.ProgressMonitor progressMonitor)
           
 void unloadOntologies(java.util.Set<org.semanticweb.owlapi.model.OWLOntology> inOntologies)
          Required for the OWLReasoner interface, but HermiT does not support this method.
 
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_dlOntology

protected DLOntology m_dlOntology

m_prefixes

protected Prefixes m_prefixes

m_tableau

protected Tableau m_tableau

m_conceptSubsumptionCache

protected ConceptSubsumptionCache m_conceptSubsumptionCache

m_atomicConceptHierarchy

protected Hierarchy<AtomicConcept> m_atomicConceptHierarchy

m_objectRoleSubsumptionCache

protected RoleSubsumptionCache m_objectRoleSubsumptionCache

m_objectRoleHierarchy

protected Hierarchy<Role> m_objectRoleHierarchy

m_dataRoleSubsumptionCache

protected RoleSubsumptionCache m_dataRoleSubsumptionCache

m_dataRoleHierarchy

protected Hierarchy<Role> m_dataRoleHierarchy

m_realization

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

m_progressMonitor

protected org.semanticweb.owlapi.util.ProgressMonitor m_progressMonitor
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 ontologyManager,
                org.semanticweb.owlapi.model.OWLOntology ontology,
                java.util.Set<DescriptionGraph> descriptionGraphs)
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

Reasoner

public Reasoner(Configuration configuration,
                java.util.Set<org.semanticweb.owlapi.model.OWLOntology> importClosure)
This method is mainly for use of HermiT in Protege. It is assumed that the given set of ontologies contains all the required imports. HermiT will NOT load any imports and only the axioms that are in the given ontologies. A new reasoner object is created and the given ontologies are loaded. 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(). An arbitrary ontology manager and data factory is used in the preprocessing phase.

Parameters:
configuration - - a configuration in which parameters can be defined such as the blocking strategy to be used etc
importClosure - - a set of ontologies that MUST contain all the imports for the ontologies in the set

Reasoner

public Reasoner(Configuration configuration,
                org.semanticweb.owlapi.model.OWLDataFactory dataFactory,
                java.util.Set<org.semanticweb.owlapi.model.OWLOntology> importClosure)
This method is mainly for use of HermiT in Protege. It is assumed that the given set of ontologies contains all the required imports. HermiT will NOT load any imports and only the axioms that are in the given ontologies. A new reasoner object is created and the given ontologies are loaded. When creating the reasoner, the given configuration determines the parameters for blocking, expansion strategy etc. The data factory of the given 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
dataFactory - - the data factory to be used in the preprocessing phase
importClosure - - a set of ontologies that MUST contain all the imports for the ontologies in the set

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()
Set a flag to tell the reasoner to stop whatever it is doing. All operations check from time to time whether this flag is set and if it is, then the current process is aborted.


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

loadOntologies

public void loadOntologies(java.util.Set<org.semanticweb.owlapi.model.OWLOntology> ontologies)
Specified by:
loadOntologies in interface org.semanticweb.owlapi.inference.OWLReasonerBase

loadOntologies

public void loadOntologies(org.semanticweb.owlapi.model.OWLDataFactory dataFactory,
                           java.util.Set<org.semanticweb.owlapi.model.OWLOntology> ontologies)
Loads the specified ontologies. The reasoner will then take into consideration the logical axioms in each ontology. Note that this methods does NOT load any ontologies in the imports closure - all imports must be loaded explicitly.

Parameters:
dataFactory - - the data factory that is used in the preprocessing phase to introduce new concepts if necessary
ontologies - - the ontologies to be loaded (no imports will be loaded)

getLoadedOntologies

public java.util.Set<org.semanticweb.owlapi.model.OWLOntology> getLoadedOntologies()
Required for the OWLReasoner interface, but HermiT does not support this method. All loaded ontologies end up in one set of clauses and we do not keep track of what came from where, so it will throw an UnsupportedOperation exception.

Specified by:
getLoadedOntologies in interface org.semanticweb.owlapi.inference.OWLReasonerBase

unloadOntologies

public void unloadOntologies(java.util.Set<org.semanticweb.owlapi.model.OWLOntology> inOntologies)
Required for the OWLReasoner interface, but HermiT does not support this method. All loaded ontologies end up in one set of clauses and we do not keep track of what came from where, so it will throw an UnsupportedOperation exception.

Specified by:
unloadOntologies in interface org.semanticweb.owlapi.inference.OWLReasonerBase

clearOntologies

public void clearOntologies()
Specified by:
clearOntologies in interface org.semanticweb.owlapi.inference.OWLReasonerBase

dispose

public void dispose()
Same as clearOntologies() in HermiT.

Specified by:
dispose in interface org.semanticweb.owlapi.inference.OWLReasonerBase

getCurrentEntity

public org.semanticweb.owlapi.model.OWLEntity getCurrentEntity()
Required for the OWLReasoner interface, but HermiT does not support this method and will throw an UnsupportedOperation exception.

Specified by:
getCurrentEntity in interface org.semanticweb.owlapi.inference.MonitorableOWLReasoner

setProgressMonitor

public void setProgressMonitor(org.semanticweb.owlapi.util.ProgressMonitor progressMonitor)
Specified by:
setProgressMonitor in interface org.semanticweb.owlapi.inference.MonitorableOWLReasoner

isDefined

public boolean isDefined(org.semanticweb.owlapi.model.OWLClass owlClass)
Specified by:
isDefined in interface org.semanticweb.owlapi.inference.OWLReasonerBase

isDefined

public boolean isDefined(org.semanticweb.owlapi.model.OWLIndividual owlIndividual)
Specified by:
isDefined in interface org.semanticweb.owlapi.inference.OWLReasonerBase

isDefined

public boolean isDefined(org.semanticweb.owlapi.model.OWLObjectProperty owlObjectProperty)
Specified by:
isDefined in interface org.semanticweb.owlapi.inference.OWLReasonerBase

isDefined

public boolean isDefined(org.semanticweb.owlapi.model.OWLDataProperty owlDataProperty)
Specified by:
isDefined in interface org.semanticweb.owlapi.inference.OWLReasonerBase

isConsistent

public boolean isConsistent()
Returns:
true if the loaded ontology (set of axioms) has a model and false otherwise

isConsistent

@Deprecated
public boolean isConsistent(org.semanticweb.owlapi.model.OWLOntology ignored)
Deprecated. 

Deprecated, use isConsistent()

Specified by:
isConsistent in interface org.semanticweb.owlapi.inference.OWLConsistencyChecker

isClassified

public boolean isClassified()
Specified by:
isClassified in interface org.semanticweb.owlapi.inference.OWLReasonerBase

classify

public void classify()
Specified by:
classify in interface org.semanticweb.owlapi.inference.OWLReasonerBase

isSatisfiable

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

isSubClassOf

public boolean isSubClassOf(org.semanticweb.owlapi.model.OWLClassExpression subDescription,
                            org.semanticweb.owlapi.model.OWLClassExpression superDescription)
Specified by:
isSubClassOf in interface org.semanticweb.owlapi.inference.OWLClassReasoner

isEquivalentClass

public boolean isEquivalentClass(org.semanticweb.owlapi.model.OWLClassExpression description1,
                                 org.semanticweb.owlapi.model.OWLClassExpression description2)
Specified by:
isEquivalentClass in interface org.semanticweb.owlapi.inference.OWLClassReasoner

getEquivalentClasses

public java.util.Set<org.semanticweb.owlapi.model.OWLClass> getEquivalentClasses(org.semanticweb.owlapi.model.OWLClassExpression classExpression)
Specified by:
getEquivalentClasses in interface org.semanticweb.owlapi.inference.OWLClassReasoner

getSubClasses

public java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLClass>> getSubClasses(org.semanticweb.owlapi.model.OWLClassExpression classExpression)
Specified by:
getSubClasses in interface org.semanticweb.owlapi.inference.OWLClassReasoner

getSuperClasses

public java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLClass>> getSuperClasses(org.semanticweb.owlapi.model.OWLClassExpression classExpression)
Specified by:
getSuperClasses in interface org.semanticweb.owlapi.inference.OWLClassReasoner

getAncestorClasses

public java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLClass>> getAncestorClasses(org.semanticweb.owlapi.model.OWLClassExpression classExpression)
Specified by:
getAncestorClasses in interface org.semanticweb.owlapi.inference.OWLClassReasoner

getDescendantClasses

public java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLClass>> getDescendantClasses(org.semanticweb.owlapi.model.OWLClassExpression description)
Specified by:
getDescendantClasses in interface org.semanticweb.owlapi.inference.OWLClassReasoner

getInconsistentClasses

@Deprecated
public java.util.Set<org.semanticweb.owlapi.model.OWLClass> getInconsistentClasses()
                                                                            throws org.semanticweb.owlapi.inference.OWLReasonerException
Deprecated. 

Deprecated, use getUnsatisfiableClasses()

Throws:
org.semanticweb.owlapi.inference.OWLReasonerException

getUnsatisfiableClasses

public java.util.Set<org.semanticweb.owlapi.model.OWLClass> getUnsatisfiableClasses()
                                                                             throws org.semanticweb.owlapi.inference.OWLReasonerException
Specified by:
getUnsatisfiableClasses in interface org.semanticweb.owlapi.inference.OWLClassReasoner
Throws:
org.semanticweb.owlapi.inference.OWLReasonerException

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.


isSubPropertyOf

public boolean isSubPropertyOf(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

isSubPropertyOf

public boolean isSubPropertyOf(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

isEquivalentProperty

public boolean isEquivalentProperty(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

getSuperProperties

@Deprecated
public java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLObjectProperty>> getSuperProperties(org.semanticweb.owlapi.model.OWLObjectProperty property)
Deprecated. 

Deprecated, use getSubProperties(OWLObjectPropertyExpression)

Specified by:
getSuperProperties in interface org.semanticweb.owlapi.inference.OWLPropertyReasoner

getSuperProperties

public java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLObjectPropertyExpression>> getSuperProperties(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
Returns the DIRECT super-properties of propertyExpression. For retrieving also indirect super-properties use getAncestorProperties(OWLObjectPropertyExpression).

Parameters:
propertyExpression - - an object property expression
Returns:
a set of sets {S1, ..., Sn} such that all properties in a set Si are equivalent and each set Si contains DIRECT super-properties of propertyExpression
See Also:
getAncestorProperties(OWLObjectPropertyExpression)

getSubProperties

@Deprecated
public java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLObjectProperty>> getSubProperties(org.semanticweb.owlapi.model.OWLObjectProperty property)
Deprecated. 

Deprecated, use getSubProperties(OWLObjectPropertyExpression)

Specified by:
getSubProperties in interface org.semanticweb.owlapi.inference.OWLPropertyReasoner

getSubProperties

public java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLObjectPropertyExpression>> getSubProperties(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
Returns the DIRECT sub-properties of propertyExpression. For retrieving also indirect sub-properties use getDescendantProperties(OWLObjectPropertyExpression).

Parameters:
propertyExpression - - an object property expression
Returns:
a set of sets {S1, ..., Sn} such that all properties in a set Si are equivalent and each set Si contains sub-properties of propertyExpression on a different level of the ancestror hierarchy
See Also:
getDescendantProperties(OWLObjectPropertyExpression)

getAncestorProperties

@Deprecated
public java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLObjectProperty>> getAncestorProperties(org.semanticweb.owlapi.model.OWLObjectProperty property)
Deprecated. 

Deprecated, use getAncestorProperties(OWLObjectPropertyExpression)

Specified by:
getAncestorProperties in interface org.semanticweb.owlapi.inference.OWLPropertyReasoner

getAncestorProperties

public java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLObjectPropertyExpression>> getAncestorProperties(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
Returns the super-properties of propertyExpression.

Parameters:
propertyExpression - - an object property expression
Returns:
a set of sets {S1, ..., Sn} such that all properties in a set Si are equivalent and each set Si contains super-properties of propertyExpression on different levels of the property hierarchy

getDescendantProperties

@Deprecated
public java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLObjectProperty>> getDescendantProperties(org.semanticweb.owlapi.model.OWLObjectProperty property)
Deprecated. 

Deprecated, use getDescendantProperties(OWLObjectPropertyExpression)

Specified by:
getDescendantProperties in interface org.semanticweb.owlapi.inference.OWLPropertyReasoner

getDescendantProperties

public java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLObjectPropertyExpression>> getDescendantProperties(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
Returns the sub-properties of propertyExpression.

Parameters:
propertyExpression - - an object property expression
Returns:
a set of sets {S1, ..., Sn} such that all properties in a set Si are equivalent and each set Si contains sub-properties of propertyExpression on different levels of the property hierarchy

getEquivalentProperties

@Deprecated
public java.util.Set<org.semanticweb.owlapi.model.OWLObjectProperty> getEquivalentProperties(org.semanticweb.owlapi.model.OWLObjectProperty property)
Deprecated. 

Deprecated, use getEquivalentProperties(OWLObjectPropertyExpression)

Specified by:
getEquivalentProperties in interface org.semanticweb.owlapi.inference.OWLPropertyReasoner

getEquivalentProperties

public java.util.Set<org.semanticweb.owlapi.model.OWLObjectPropertyExpression> getEquivalentProperties(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
Returns properties that are equivalent to propertyExpression.

Parameters:
propertyExpression - - an object property expression
Returns:
a set of object property expressions such that all properties in the set are equivalent to propertyExpression

getHierarchyNode

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

getDomains

@Deprecated
public java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLClassExpression>> getDomains(org.semanticweb.owlapi.model.OWLObjectProperty property)
Deprecated. 

use getDomains(OWLObjectPropertyExpression)

Specified by:
getDomains in interface org.semanticweb.owlapi.inference.OWLPropertyReasoner

getDomains

public java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLClassExpression>> getDomains(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
Gets the domains of a particular property. A domain class, A, of a property, P, is a named class such that A is an ancestor of \exists p Top ("p some Thing").

Parameters:
propertyExpression - - The property whose domains are to be retrieved.
Returns:
The domains of the property. A set of sets of (named) equivalence classes.

getRanges

@Deprecated
public java.util.Set<org.semanticweb.owlapi.model.OWLClassExpression> getRanges(org.semanticweb.owlapi.model.OWLObjectProperty property)
Deprecated. 

use getRanges(OWLObjectPropertyExpression)

Specified by:
getRanges in interface org.semanticweb.owlapi.inference.OWLPropertyReasoner

getRanges

public java.util.Set<org.semanticweb.owlapi.model.OWLClassExpression> getRanges(org.semanticweb.owlapi.model.OWLObjectPropertyExpression propertyExpression)
Gets the ranges of the given property. A class A is a range of a property P, if A is a named class such that each P-successor of an individual is necessarily in the extension of A.

Parameters:
propertyExpression - - an object property expression
Returns:
A set of (named) classes such that each class in the set is a range for propertyExpression

getInverseProperties

@Deprecated
public java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLObjectProperty>> getInverseProperties(org.semanticweb.owlapi.model.OWLObjectProperty property)
Deprecated. 

use getInverseProperties(OWLObjectPropertyExpression)

Specified by:
getInverseProperties in interface org.semanticweb.owlapi.inference.OWLPropertyReasoner

getInverseProperties

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

isFunctional

@Deprecated
public boolean isFunctional(org.semanticweb.owlapi.model.OWLObjectProperty property)
Deprecated. 

Deprecated, use isFunctional(OWLObjectPropertyExpression)

Specified by:
isFunctional in interface org.semanticweb.owlapi.inference.OWLPropertyReasoner

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

@Deprecated
public boolean isInverseFunctional(org.semanticweb.owlapi.model.OWLObjectProperty property)
Deprecated. 

Deprecated, use isInverseFunctional(OWLObjectPropertyExpression)

Specified by:
isInverseFunctional in interface org.semanticweb.owlapi.inference.OWLPropertyReasoner

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

@Deprecated
public boolean isIrreflexive(org.semanticweb.owlapi.model.OWLObjectProperty property)
Deprecated. 

Deprecated, use isIrreflexive(OWLObjectPropertyExpression)

Specified by:
isIrreflexive in interface org.semanticweb.owlapi.inference.OWLPropertyReasoner

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

@Deprecated
public boolean isReflexive(org.semanticweb.owlapi.model.OWLObjectProperty property)
Deprecated. 

Deprecated, use isReflexive(OWLObjectPropertyExpression)

Specified by:
isReflexive in interface org.semanticweb.owlapi.inference.OWLPropertyReasoner

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

isAntiSymmetric

@Deprecated
public boolean isAntiSymmetric(org.semanticweb.owlapi.model.OWLObjectProperty property)
                        throws org.semanticweb.owlapi.inference.OWLReasonerException
Deprecated. 

Deprecated, use isAsymmetric(OWLObjectPropertyExpression)

Throws:
org.semanticweb.owlapi.inference.OWLReasonerException

isAsymmetric

@Deprecated
public boolean isAsymmetric(org.semanticweb.owlapi.model.OWLObjectProperty property)
Deprecated. 

Deprecated, use isAsymmetric(OWLObjectPropertyExpression)

Specified by:
isAsymmetric in interface org.semanticweb.owlapi.inference.OWLPropertyReasoner

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

@Deprecated
public boolean isSymmetric(org.semanticweb.owlapi.model.OWLObjectProperty property)
Deprecated. 

Deprecated, use isSymmetric(OWLObjectPropertyExpression)

Specified by:
isSymmetric in interface org.semanticweb.owlapi.inference.OWLPropertyReasoner

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

@Deprecated
public boolean isTransitive(org.semanticweb.owlapi.model.OWLObjectProperty property)
Deprecated. 

Deprecated, use isTransitive(OWLObjectPropertyExpression)

Specified by:
isTransitive in interface org.semanticweb.owlapi.inference.OWLPropertyReasoner

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 trnsitive relation in each model of the loaded ontology

areDataPropertiesClassified

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

classifyDataProperties

public void classifyDataProperties()
Builds the data property hierarchy.


isSubPropertyOf

public boolean isSubPropertyOf(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

isEquivalentProperty

public boolean isEquivalentProperty(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

getSuperProperties

public java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLDataProperty>> getSuperProperties(org.semanticweb.owlapi.model.OWLDataProperty property)
Returns the most specific direct super-properties of the given property.

Specified by:
getSuperProperties in interface org.semanticweb.owlapi.inference.OWLPropertyReasoner
Returns:
a set of sets {S1, ..., Sn} such that the data properties in each set Si are equivalent to each other and all returned data properties are direct/most specific super-properties of the given one

getSubProperties

public java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLDataProperty>> getSubProperties(org.semanticweb.owlapi.model.OWLDataProperty property)
Returns the most specific direct sub-properties of the given property.

Specified by:
getSubProperties in interface org.semanticweb.owlapi.inference.OWLPropertyReasoner
Returns:
a set of sets {S1, ..., Sn} such that the data properties in each set Si are equivalent to each other and all returned data properties are direct/most specific sub-properties of the given one

getAncestorProperties

public java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLDataProperty>> getAncestorProperties(org.semanticweb.owlapi.model.OWLDataProperty property)
Returns the (direct and indirect) super-properties of the given property including the property itself.

Specified by:
getAncestorProperties in interface org.semanticweb.owlapi.inference.OWLPropertyReasoner
Returns:
a set of sets {S1, ..., Sn} such that the data properties in each set Si are equivalent to each other and all returned data properties are super-properties of the given one or equivalent to the given one

getDescendantProperties

public java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLDataProperty>> getDescendantProperties(org.semanticweb.owlapi.model.OWLDataProperty property)
Returns the (direct and indirect) sub-properties of the given property including the property itself.

Specified by:
getDescendantProperties in interface org.semanticweb.owlapi.inference.OWLPropertyReasoner
Returns:
a set of sets {S1, ..., Sn} such that the data properties in each set Si are equivalent to each other and all returned data properties are sub-properties of the given one or equivalent to the given one

getEquivalentProperties

public java.util.Set<org.semanticweb.owlapi.model.OWLDataProperty> getEquivalentProperties(org.semanticweb.owlapi.model.OWLDataProperty property)
Returns properties that are equivalent to the given property.

Specified by:
getEquivalentProperties in interface org.semanticweb.owlapi.inference.OWLPropertyReasoner
Parameters:
property - - a data property
Returns:
a set of data properties such that all properties in the set are equivalent to the given property

getHierarchyNode

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

getDomains

public java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLClassExpression>> getDomains(org.semanticweb.owlapi.model.OWLDataProperty property)
Gets the domains of the given data property. A class A is the domain of a property P, if it is a named class such that A is an ancestor of \exists p Top ("p some Thing").

Specified by:
getDomains in interface org.semanticweb.owlapi.inference.OWLPropertyReasoner
Parameters:
property - - The data property whose domains are to be retrieved.
Returns:
The domains of the property. A set of sets of (named) equivalence classes.

getRanges

public java.util.Set<org.semanticweb.owlapi.model.OWLDataRange> getRanges(org.semanticweb.owlapi.model.OWLDataProperty property)
This method is not supported by HermiT and executing it will result in an UnsupportedOperation error. The method is required to implement the OWLReasoner interface.

Specified by:
getRanges in interface org.semanticweb.owlapi.inference.OWLPropertyReasoner

isFunctional

public boolean isFunctional(org.semanticweb.owlapi.model.OWLDataProperty property)
Specified by:
isFunctional in interface org.semanticweb.owlapi.inference.OWLPropertyReasoner
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()
Specified by:
isRealised in interface org.semanticweb.owlapi.inference.OWLReasonerBase

realise

public void realise()
Specified by:
realise in interface org.semanticweb.owlapi.inference.OWLReasonerBase

getDirectSuperConceptNodes

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

getTypes

public java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLClass>> getTypes(org.semanticweb.owlapi.model.OWLNamedIndividual owlIndividual,
                                                                                    boolean direct)
Specified by:
getTypes in interface org.semanticweb.owlapi.inference.OWLIndividualReasoner

hasType

public boolean hasType(org.semanticweb.owlapi.model.OWLNamedIndividual owlIndividual,
                       org.semanticweb.owlapi.model.OWLClassExpression type,
                       boolean direct)
Specified by:
hasType in interface org.semanticweb.owlapi.inference.OWLIndividualReasoner

getIndividuals

public java.util.Set<org.semanticweb.owlapi.model.OWLNamedIndividual> getIndividuals(org.semanticweb.owlapi.model.OWLClassExpression description,
                                                                                     boolean direct)
Specified by:
getIndividuals in interface org.semanticweb.owlapi.inference.OWLIndividualReasoner

loadIndividualsOfNode

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

getObjectPropertyRelationships

public java.util.Map<org.semanticweb.owlapi.model.OWLObjectProperty,java.util.Set<org.semanticweb.owlapi.model.OWLNamedIndividual>> getObjectPropertyRelationships(org.semanticweb.owlapi.model.OWLNamedIndividual individual)
Specified by:
getObjectPropertyRelationships in interface org.semanticweb.owlapi.inference.OWLIndividualReasoner

getDataPropertyRelationships

public java.util.Map<org.semanticweb.owlapi.model.OWLDataProperty,java.util.Set<org.semanticweb.owlapi.model.OWLLiteral>> getDataPropertyRelationships(org.semanticweb.owlapi.model.OWLNamedIndividual individual)
Specified by:
getDataPropertyRelationships in interface org.semanticweb.owlapi.inference.OWLIndividualReasoner

getRelatedIndividuals

public java.util.Set<org.semanticweb.owlapi.model.OWLNamedIndividual> getRelatedIndividuals(org.semanticweb.owlapi.model.OWLNamedIndividual subject,
                                                                                            org.semanticweb.owlapi.model.OWLObjectPropertyExpression property)
Specified by:
getRelatedIndividuals in interface org.semanticweb.owlapi.inference.OWLIndividualReasoner

getRelatedValues

public java.util.Set<org.semanticweb.owlapi.model.OWLLiteral> getRelatedValues(org.semanticweb.owlapi.model.OWLNamedIndividual subject,
                                                                               org.semanticweb.owlapi.model.OWLDataPropertyExpression property)
Specified by:
getRelatedValues in interface org.semanticweb.owlapi.inference.OWLIndividualReasoner

hasObjectPropertyRelationship

public boolean hasObjectPropertyRelationship(org.semanticweb.owlapi.model.OWLNamedIndividual subject,
                                             org.semanticweb.owlapi.model.OWLObjectPropertyExpression property,
                                             org.semanticweb.owlapi.model.OWLNamedIndividual object)
Specified by:
hasObjectPropertyRelationship in interface org.semanticweb.owlapi.inference.OWLIndividualReasoner

hasDataPropertyRelationship

public boolean hasDataPropertyRelationship(org.semanticweb.owlapi.model.OWLNamedIndividual subject,
                                           org.semanticweb.owlapi.model.OWLDataPropertyExpression property,
                                           org.semanticweb.owlapi.model.OWLLiteral object)
Specified by:
hasDataPropertyRelationship in interface org.semanticweb.owlapi.inference.OWLIndividualReasoner

hasKey

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

entailsDatatypeDefinition

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

getTableau

public Tableau getTableau(org.semanticweb.owlapi.model.OWLOntologyManager ontologyManager,
                          org.semanticweb.owlapi.model.OWLAxiom... additionalAxioms)
                   throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

createTableau

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

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

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)

save

public void save(java.io.File file)
          throws java.io.IOException
Throws:
java.io.IOException

save

public void save(java.io.OutputStream outputStream)
          throws java.io.IOException
Throws:
java.io.IOException

loadReasoner

public static Reasoner loadReasoner(java.io.InputStream inputStream)
                             throws java.io.IOException
Throws:
java.io.IOException

loadReasoner

public static Reasoner loadReasoner(java.io.File file)
                             throws java.io.IOException
Throws:
java.io.IOException

atomicConceptsToOWLAPI

protected static java.util.Set<org.semanticweb.owlapi.model.OWLClass> atomicConceptsToOWLAPI(java.util.Collection<AtomicConcept> atomicConcepts,
                                                                                             org.semanticweb.owlapi.model.OWLDataFactory factory)

atomicConceptNodesToOWLAPI

protected static java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLClass>> atomicConceptNodesToOWLAPI(java.util.Collection<HierarchyNode<AtomicConcept>> nodes,
                                                                                                                org.semanticweb.owlapi.model.OWLDataFactory factory)

objectPropertiesToOWLAPI

protected static java.util.Set<org.semanticweb.owlapi.model.OWLObjectPropertyExpression> objectPropertiesToOWLAPI(java.util.Collection<Role> roles,
                                                                                                                  org.semanticweb.owlapi.model.OWLDataFactory factory)

objectPropertyNodesToOWLAPI

protected static java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLObjectPropertyExpression>> objectPropertyNodesToOWLAPI(java.util.Collection<HierarchyNode<Role>> nodes,
                                                                                                                                    org.semanticweb.owlapi.model.OWLDataFactory factory)

filterObjectProperties

protected static java.util.Set<org.semanticweb.owlapi.model.OWLObjectProperty> filterObjectProperties(java.util.Set<org.semanticweb.owlapi.model.OWLObjectPropertyExpression> set)

filterObjectPropertySets

protected static java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLObjectProperty>> filterObjectPropertySets(java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLObjectPropertyExpression>> setOfSets)

dataPropertiesToOWLAPI

protected static java.util.Set<org.semanticweb.owlapi.model.OWLDataProperty> dataPropertiesToOWLAPI(java.util.Collection<Role> dataProperties,
                                                                                                    org.semanticweb.owlapi.model.OWLDataFactory factory)

dataPropertyNodesToOWLAPI

protected static java.util.Set<java.util.Set<org.semanticweb.owlapi.model.OWLDataProperty>> dataPropertyNodesToOWLAPI(java.util.Collection<HierarchyNode<Role>> nodes,
                                                                                                                      org.semanticweb.owlapi.model.OWLDataFactory factory)

addInclusion

protected static <T> void addInclusion(java.util.Map<T,DeterministicHierarchyBuilder.GraphNode<T>> knownSubsumers,
                                       T subElement,
                                       T supElement)