Package org.semanticweb.owlapi.util
Class InferredOntologyGenerator
java.lang.Object
org.semanticweb.owlapi.util.InferredOntologyGenerator
Generates an ontology based on inferred axioms which are essentially supplied by a reasoner. The
generator can be configured with
InferredAxiomGenerator
s which generate specific kinds of
axioms e.g. subclass axioms.- Since:
- 2.1.0
- Author:
- Matthew Horridge, The University Of Manchester, Bio-Health Informatics Group
-
Constructor Summary
ConstructorsConstructorDescriptionInferredOntologyGenerator
(OWLReasoner reasoner) InferredOntologyGenerator
(OWLReasoner reasoner, List<InferredAxiomGenerator<? extends OWLAxiom>> axiomGenerators) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addGenerator
(InferredAxiomGenerator<?> generator) Adds a generator if it isn't already in the list of generators.void
fillOntology
(OWLDataFactory df, OWLOntology ontology) Adds 'inferred axioms' to an ontology using the generators that have been registered with thisInferredAxiomGenerator
.void
removeGenerator
(InferredAxiomGenerator<?> generator) Removes a generator.
-
Constructor Details
-
InferredOntologyGenerator
public InferredOntologyGenerator(OWLReasoner reasoner, List<InferredAxiomGenerator<? extends OWLAxiom>> axiomGenerators) - Parameters:
reasoner
- the reasoner to useaxiomGenerators
- the axiom generators to use
-
InferredOntologyGenerator
- Parameters:
reasoner
- the reasoner to use
-
-
Method Details
-
getAxiomGenerators
- Returns:
- the axiom generators
-
addGenerator
Adds a generator if it isn't already in the list of generators.- Parameters:
generator
- The generator to be added.
-
removeGenerator
Removes a generator.- Parameters:
generator
- the generator to be removed
-
fillOntology
Adds 'inferred axioms' to an ontology using the generators that have been registered with thisInferredAxiomGenerator
.- Parameters:
df
- data factory.ontology
- The ontology which the inferred axioms will be added to- Throws:
OWLOntologyChangeException
- If there was a problem adding the inferred axioms to the specified ontology.
-