Examples of exportProjectRevision()


Examples of edu.stanford.bmir.protege.web.server.owlapi.OWLAPIProjectDocumentStore.exportProjectRevision()

   
    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 {
View Full Code Here

Examples of edu.stanford.bmir.protege.web.server.owlapi.OWLAPIProjectDocumentStore.exportProjectRevision()

            setFileName(response);
            if(revision.isHead()) {
                documentStore.exportProject(outputStream, format);
            }
            else {
                documentStore.exportProjectRevision(revision, outputStream, format);
            }

        }
        catch (OWLOntologyStorageException e) {
            e.printStackTrace();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.