Package org.semanticweb.owlapi.reasoner
Interface OWLReasonerFactory
- All Known Implementing Classes:
StructuralReasonerFactory
public interface OWLReasonerFactory
An OWLReasonerFactory is a point for creating instances of
OWLReasoner
objects. A reasoner
reasons over a set of ontologies that is defined by an ontology and its
imports closure.- Since:
- 3.0.0
- Author:
- Matthew Horridge, The University of Manchester, Information Management Group
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncreateNonBufferingReasoner
(OWLOntology ontology) Creates an OWLReasoner that reasons over the imports closure of the specified ontology.createNonBufferingReasoner
(OWLOntology ontology, OWLReasonerConfiguration config) Creates an OWLReasoner that reasons over the imports closure of the specified ontology.createReasoner
(OWLOntology ontology) Creates a buffering reasoner that reasons over the imports closure of the specified ontology.createReasoner
(OWLOntology ontology, OWLReasonerConfiguration config) Creates a buffering reasoner that reasons over the imports closure of the specified ontology.Gets the name of the reasoner created by this factory.
-
Method Details
-
getReasonerName
String getReasonerName()Gets the name of the reasoner created by this factory.- Returns:
- A string that represents the name of the reasoner created by this factory.
-
createNonBufferingReasoner
Creates an OWLReasoner that reasons over the imports closure of the specified ontology. The reasoner will obtain the imports closure from the ontology manager associated withontology
. The reasoner will listen for ontology changes to the ontologies that it is reasoning over and will always answer queries with respect to the changed ontologies (seeOWLReasoner
for further details).- Parameters:
ontology
- The ontology whose imports closure will be reasoned over by the reasoner that is created.- Returns:
- The reasoner that reasons over the imports closure of the specified ontology. Note that calling this method multiple times with the same manager and ontology will return fresh instances of OWLReasoner.
- Throws:
NullPointerException
- if themanager
orontology
arenull
.
-
createReasoner
Creates a buffering reasoner that reasons over the imports closure of the specified ontology. The reasoner will obtain the imports closure from the ontology manager associated withontology
. The reasoner will listen for ontology changes to the ontologies it is reasoning over but will only answer queries with respect to the changed ontologies when theOWLReasoner.flush()
method is called (seeOWLReasoner
for further details).- Parameters:
ontology
- The ontology whose imports closure will be reasoned over by the reasoner that is created.- Returns:
- The reasoner that reasons over the imports closure of the specified ontology. Note that calling this method multiple times with the same manager and ontology will return fresh instances of OWLReasoner.
- Throws:
NullPointerException
- if themanager
orontology
arenull
.
-
createNonBufferingReasoner
Creates an OWLReasoner that reasons over the imports closure of the specified ontology. The reasoner will obtain the imports closure from the ontology manager associated withontology
. The reasoner will listen for ontology changes to the ontologies that it is reasoning over and will always answer queries with respect to the changed ontologies (seeOWLReasoner
for further details).- Parameters:
ontology
- The ontology whose imports closure will be reasoned over by the reasoner that is created.config
- A configuration object that can be used to customise the setup of the reasoner that will be created by calling this method.- Returns:
- The reasoner that reasons over the imports closure of the specified ontology. Note that calling this method multiple times with the same manager and ontology will return fresh instances of OWLReasoner.
- Throws:
IllegalConfigurationException
- if the configuration object is inappropriate for reasoners created by this factory, or if there is an illegal setting on the configuration.NullPointerException
- if any ofmanager
,ontology
orconfig
arenull
.
-
createReasoner
Creates a buffering reasoner that reasons over the imports closure of the specified ontology. The reasoner will obtain the imports closure from the ontology manager associated withontology
. The reasoner will listen for ontology changes to the ontologies it is reasoning over but will only answer queries with respect to the changed ontologies when theOWLReasoner.flush()
method is called (seeOWLReasoner
for further details).- Parameters:
ontology
- The ontology whose imports closure will be reasoned over by the reasoner that is created.config
- A configuration object that can be used to customise the setup of the reasoner that will be created by calling this method.- Returns:
- The reasoner that reasons over the imports closure of the specified ontology. Note that calling this method multiple times with the same manager and ontology will return fresh instances of OWLReasoner.
- Throws:
IllegalConfigurationException
- if the configuration object is inappropriate for reasoners created by this factory, or if there is an illegal setting on the configuration.NullPointerException
- if any ofmanager
,ontology
orconfig
arenull
.
-