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(OWLOntologyManager manager,
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(OWLOntologyManager manager, OWLOntology ontology) throws OWLOntologyChangeException
InferredAxiomGenerator.manager - The manager which can be used to obtain a data factory and
apply changes.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 © 2014 The University of Manchester. All Rights Reserved.