use of org.semanticweb.owlapi.io.StringDocumentTarget in project stanbol by apache.
the class OntologyImportUtils method printOntology.
@Deprecated
public static void printOntology(OWLOntology o, PrintStream printer) {
OWLOntologyManager mgr = OWLManager.createOWLOntologyManager();
StringDocumentTarget tgt = new StringDocumentTarget();
try {
mgr.saveOntology(o, new RDFXMLOntologyFormat(), tgt);
} catch (OWLOntologyStorageException e) {
e.printStackTrace(printer);
}
printer.println(tgt.toString());
}
Aggregations