public class EquivalentClassReasoning extends Object
All the pieces that are needed to perform reasoning on equivalent classes in an OWLOntology
Constructor and Description |
---|
EquivalentClassReasoning(org.semanticweb.owlapi.model.OWLOntology ontology,
org.semanticweb.owlapi.reasoner.OWLReasoner reasoner,
EquivalentClassReasoningMode mode)
Creates a new instance that will reason over the given ontology with the strategy specified by
the EquivalentClassReasoningMode.
|
Modifier and Type | Method and Description |
---|---|
void |
logReport(org.slf4j.Logger logger)
Uses the provided logger to print out the results of the reasoning operation.
|
boolean |
reason()
Uses the reasoner to find all equivalent classes in the ontology, and then adds the axioms that
are not allowed the the list of failed axioms.
|
public EquivalentClassReasoning(org.semanticweb.owlapi.model.OWLOntology ontology, org.semanticweb.owlapi.reasoner.OWLReasoner reasoner, EquivalentClassReasoningMode mode)
ontology
- OWLOntology to reason equivalence classes overreasoner
- OWLReasoner that will reason over the ontologymode
- One of ALL, NONE, or ASSERTED_ONLY, representing a strategy to deal with found
equivalent classespublic boolean reason()
public void logReport(org.slf4j.Logger logger)
logger
- an SLF4J logger instanceCopyright © 2015–2020. All rights reserved.