### Question:
OWLAPIToClerezzaConverter { public static org.apache.clerezza.commons.rdf.Graph owlOntologyToClerezzaGraph(OWLOntology ontology) { org.apache.clerezza.commons.rdf.Graph mGraph = null; ByteArrayOutputStream out = new ByteArrayOutputStream(); OWLOntologyManager manager = ontology.getOWLOntologyManager(); try { manager.saveOntology(ontology, new RDFXMLOntologyFormat(), out); ByteArrayInputStream in = new ByteArrayInputStream(out.toByteArray()); ParsingProvider parser = new JenaParserProvider(); mGraph = new SimpleGraph(); parser.parse(mGraph, in, SupportedFormat.RDF_XML, null); } catch (OWLOntologyStorageException e) { log.error("Failed to serialize OWL Ontology " + ontology + "for conversion", e); } return mGraph; } private  OWLAPIToClerezzaConverter(); static List<Triple> owlOntologyToClerezzaTriples(OWLOntology ontology); static org.apache.clerezza.commons.rdf.Graph owlOntologyToClerezzaGraph(OWLOntology ontology); static OWLOntology clerezzaGraphToOWLOntology(org.apache.clerezza.commons.rdf.Graph graph); static OWLOntology clerezzaGraphToOWLOntology(org.apache.clerezza.commons.rdf.Graph graph,
                                                         OWLOntologyManager ontologyManager);  }### Answer:
@Test public void testOWLOntologyToGraph() { Graph mGraph = OWLAPIToClerezzaConverter.owlOntologyToClerezzaGraph(ontology); Iterator<Triple> tripleIt = mGraph.iterator(); while (tripleIt.hasNext()) { Triple triple = tripleIt.next(); log.info(triple.toString()); } }