public class InferredOntologyGenerator extends Object
InferredAxiomGenerators 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(OWLReasoner reasoner, List<InferredAxiomGenerator<? extends OWLAxiom>> axiomGenerators)
reasoner - the reasoner to useaxiomGenerators - the axiom generators to usepublic InferredOntologyGenerator(OWLReasoner reasoner)
reasoner - the reasoner to usepublic List<InferredAxiomGenerator<?>> getAxiomGenerators()
public void addGenerator(InferredAxiomGenerator<?> generator)
generator - The generator to be added.public void removeGenerator(InferredAxiomGenerator<?> generator)
generator - the generator to be removedpublic void fillOntology(OWLDataFactory df, 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 © 2018 The University of Manchester. All rights reserved.