OWLInAboxTranslator { public OWLOntology translate() throws OWLOntologyCreationException { OWLOntology targetOntology = ontology.getOWLOntologyManager().createOntology(); return translateInto(targetOntology); } OWLInAboxTranslator(OWLOntology ontology); boolean isPreserveObjectPropertyIRIs(); void setPreserveObjectPropertyIRIs(boolean isPreserveObjectPropertyIRIs); OWLOntology translate(); OWLOntology translateInto(OWLOntology targetOntology);  }
@Test public void testTranslate() throws Exception { ParserWrapper pw = new ParserWrapper(); OWLOntology o = pw.parseOWL(getResourceIRIString("mooncat/shadow-tbox-test.owl")); OWLInAboxTranslator t = new OWLInAboxTranslator(o); OWLOntology abox = t.translate(); o.getOWLOntologyManager().saveOntology(abox, new TurtleDocumentFormat(), new FileOutputStream("target/shadow-abox.ttl")); }