* If it works, just add all the triples to a TripleCollection, but no, we don't want to store that
* change.
*/
ByteArrayOutputStream out = new ByteArrayOutputStream();
SerializingProvider serializingProvider = new JenaSerializerProvider();
serializingProvider.serialize(out, graph, SupportedFormat.RDF_XML);
ByteArrayInputStream in = new ByteArrayInputStream(out.toByteArray());
OWLOntology ontology = null;
try {
ontology = ontologyManager.loadOntologyFromOntologyDocument(in);
} catch (OWLOntologyAlreadyExistsException e) {