Class OWLObjectTransformer<T>

java.lang.Object
org.semanticweb.owlapi.util.OWLObjectTransformer<T>
Type Parameters:
T - type to transform

public class OWLObjectTransformer<T> extends Object
Transform axioms by rewriting parts of them.
Since:
4.1.4
Author:
Ignazio
  • 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 rebuild
      transformer - the transformer to apply
      df - data factory to use for changes
      witness - witness class for the transformer
  • Method Details

    • change

      public List<AxiomChangeData> change(OWLObject o)
      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

      public List<OWLOntologyChange> change(OWLOntology ontology)
      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.