Class SemanticLocalityModuleExtractor
java.lang.Object
org.semanticweb.owlapi.modularity.locality.LocalityModuleExtractor
org.semanticweb.owlapi.modularity.locality.SemanticLocalityModuleExtractor
- All Implemented Interfaces:
ModuleExtractor
Class to extract modules based on semantic locality.
- Author:
- Marc Robin Nolte
-
Constructor Summary
ConstructorsConstructorDescriptionSemanticLocalityModuleExtractor
(LocalityClass localityClass, Stream<OWLAxiom> axiomBase, OWLOntologyManager ontologyManager, OWLReasonerFactory reasonerFactory) Instantiates a newSemanticLocalityEvaluator
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Disposes the reasoner and the empty ontology that is used to check whether axioms are tautologies via callingOWLReasoner.dispose()
.Methods inherited from class org.semanticweb.owlapi.modularity.locality.LocalityModuleExtractor
axiomBase, containsAxiom, extract, getLocalityClass
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.semanticweb.owlapi.modularity.ModuleExtractor
everyModuleContains, extract, extract, extractAsOntology, globals, noModuleContains, tautologies
-
Constructor Details
-
SemanticLocalityModuleExtractor
public SemanticLocalityModuleExtractor(LocalityClass localityClass, Stream<OWLAxiom> axiomBase, OWLOntologyManager ontologyManager, OWLReasonerFactory reasonerFactory) Instantiates a newSemanticLocalityEvaluator
.- Parameters:
localityClass
- TheLocalityClass
to useaxiomBase
- The axiom base of the newSemanticLocalityModuleExtractor
ontologyManager
- The manager that should be used to instantiate anOWLReasoner
reasonerFactory
- The factory that should be used to instantiate anOWLReasoner
-
-
Method Details
-
dispose
public void dispose()Disposes the reasoner and the empty ontology that is used to check whether axioms are tautologies via callingOWLReasoner.dispose()
. Must be called after this SemanticLocalityModuleExtractor is no longer used to free resources that are allocated by the reasoner and the ontology.
-