use of org.semanticweb.owlapi.model.OWLOntologyStorageException in project goci by EBISPOT.
the class DefaultGWASOWLPublisher method saveGWASData.
public void saveGWASData(OWLOntology ontology, File outputFile) throws OWLConversionException {
try {
getLog().info("Saving GWAS catalog data...");
OWLOntologyFormat format = new RDFXMLOntologyFormat();
getManager().saveOntology(ontology, format, IRI.create(outputFile));
getLog().info("GWAS catalog data saved ok");
getLog().info("Resulting ontology contains " + ontology.getAxiomCount() + " axioms " + "and is saved at " + outputFile.getAbsolutePath());
} catch (OWLOntologyStorageException e) {
throw new OWLConversionException("Failed to save GWAS data", e);
}
}
Aggregations