Package org.semanticweb.owlapi.util
Class OWLObjectTransformer<T>
java.lang.Object
org.semanticweb.owlapi.util.OWLObjectTransformer<T>
- Type Parameters:
T
- type to transform
Transform axioms by rewriting parts of them.
- Since:
- 4.1.4
- Author:
- Ignazio
-
Constructor Summary
ConstructorsConstructorDescriptionOWLObjectTransformer
(Predicate<Object> predicate, Function<T, T> transformer, OWLDataFactory df, Class<T> witness) -
Method Summary
Modifier and TypeMethodDescriptionCreate the required changes for this transformation to be applied to the input.change
(OWLOntology ontology) Create the required changes for this transformation to be applied to the input.
-
Constructor Details
-
OWLObjectTransformer
public OWLObjectTransformer(Predicate<Object> predicate, Function<T, T> transformer, OWLDataFactory df, Class<T> witness) - Parameters:
predicate
- the predicate to match the axioms to rebuildtransformer
- the transformer to applydf
- data factory to use for changeswitness
- witness class for the transformer
-
-
Method Details
-
change
Create the required changes for this transformation to be applied to the input. Note: these are AxiomChangeData changes, not ontology specific changes. There is no requirement for the input to be an ontology or included in an ontology.- Parameters:
o
- object to transform. Must be an axiom or an ontology for the change to be meaningful.- Returns:
- A list of axiom changes that should be applied.
-
change
Create the required changes for this transformation to be applied to the input. These changes are specific to the input ontology.- Parameters:
ontology
- ontology to transform.- Returns:
- A list of changes that should be applied.
-