private File getOntologyDocumentFromProjectAndRevision(ProjectId projectId, RevisionNumber revisionNumber) throws IOException, OWLOntologyStorageException {
OWLAPIProjectDocumentStore store = OWLAPIProjectDocumentStore.getProjectDocumentStore(projectId);
File ontologyDocument = File.createTempFile("BioPortalOntology", ".zip");
BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(ontologyDocument));
store.exportProjectRevision(revisionNumber, bos, DownloadFormat.getDefaultFormat());
bos.close();
return ontologyDocument;
}
public void uploadToBioPortal(String bioportalRestAPIBase) throws IOException {