TemplatedTransformer { public Set<OWLOntologyChange> tr() { Set<OWLOntologyChange> chgs = new HashSet<OWLOntologyChange>(); for (Mapping m : getMappings()) { chgs.addAll(tr(m)); } return chgs; } TemplatedTransformer(OWLOntology o); Set<Mapping> getMappings(); Set<OWLOntologyChange> tr(); Set<OWLOntologyChange> tr(Mapping m); Set<OWLOntologyChange> tr(OWLOntology o, Mapping m); Set<OWLOntologyChange> tr(OWLAxiom inAxiom, Mapping m); BindingSet unifyAll(OWLClassExpression inExpr, OWLClassExpression templateExpr, Set<IRI> vars); BindingSet unify(OWLClassExpression inExpr, OWLClassExpression templateExpr, Set<IRI> vars);  }
@Test public void testTr() throws Exception { CatalogXmlIRIMapper m = new CatalogXmlIRIMapper("src/test/resources/catalog-v001.xml"); ParserWrapper p = new ParserWrapper(); OWLOntology owlOntology = p.parse(getResourceIRIString("test-tr.owl")); TemplatedTransformer tt = new TemplatedTransformer(owlOntology); Set<OWLOntologyChange> chgs = tt.tr(); for (OWLOntologyChange chg : chgs) { LOG.info(chg); } assertNotNull(owlOntology); }