public class InferredOntologyGenerator extends Object
InferredAxiomGenerator
s which generate specific kinds of
axioms e.g. subclass axioms.Constructor and Description |
---|
InferredOntologyGenerator(OWLReasoner reasoner) |
InferredOntologyGenerator(OWLReasoner reasoner,
List<InferredAxiomGenerator<? extends OWLAxiom>> axiomGenerators) |
Modifier and Type | Method and Description |
---|---|
void |
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
this
InferredAxiomGenerator . |
List<InferredAxiomGenerator<?>> |
getAxiomGenerators() |
void |
removeGenerator(InferredAxiomGenerator<?> generator)
Removes a generator.
|
public InferredOntologyGenerator(@Nonnull OWLReasoner reasoner, @Nonnull List<InferredAxiomGenerator<? extends OWLAxiom>> axiomGenerators)
reasoner
- the reasoner to useaxiomGenerators
- the axiom generators to usepublic InferredOntologyGenerator(@Nonnull OWLReasoner reasoner)
reasoner
- the reasoner to use@Nonnull public List<InferredAxiomGenerator<?>> getAxiomGenerators()
public void addGenerator(@Nonnull InferredAxiomGenerator<?> generator)
generator
- The generator to be added.public void removeGenerator(@Nonnull InferredAxiomGenerator<?> generator)
generator
- the generator to be removedpublic void fillOntology(@Nonnull OWLDataFactory df, @Nonnull OWLOntology ontology)
InferredAxiomGenerator
.df
- data factory.ontology
- The ontology which the inferred axioms will be added toOWLOntologyChangeException
- If there was a problem adding the inferred axioms to the
specified ontology.Copyright © 2020 The University of Manchester. All rights reserved.