From 11f1e0f0519b095158b9faf9e5ffac802cf74a25 Mon Sep 17 00:00:00 2001 From: riya24899 <32883387+riya24899@users.noreply.github.com> Date: Sat, 23 May 2020 18:48:38 +0530 Subject: [PATCH 1/3] Update DownloadFormat.java Add support for OBO files --- .../bmir/protege/web/server/download/DownloadFormat.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webprotege-server-core/src/main/java/edu/stanford/bmir/protege/web/server/download/DownloadFormat.java b/webprotege-server-core/src/main/java/edu/stanford/bmir/protege/web/server/download/DownloadFormat.java index 59fb8f59d0..593e75353e 100644 --- a/webprotege-server-core/src/main/java/edu/stanford/bmir/protege/web/server/download/DownloadFormat.java +++ b/webprotege-server-core/src/main/java/edu/stanford/bmir/protege/web/server/download/DownloadFormat.java @@ -19,6 +19,8 @@ public enum DownloadFormat { RDF_TURLE(TurtleDocumentFormat::new, "text/turtle", DownloadFormatExtension.ttl), OWL_XML(OWLXMLDocumentFormat::new, "application/owl+xml", DownloadFormatExtension.owx), + + OBO(OBODocumentFormat::new, "application/octet-stream", DownloadFormatExtebonsion.obo), MANCHESTER(ManchesterSyntaxDocumentFormat::new, "text/owl-manchester", DownloadFormatExtension.omn), From 9b20f8d1a4202cb5fc18e05a52dbfce9411b8cd9 Mon Sep 17 00:00:00 2001 From: riya24899 <32883387+riya24899@users.noreply.github.com> Date: Sat, 23 May 2020 18:52:18 +0530 Subject: [PATCH 2/3] Update DownloadFormatExtension.java Adding functionality for OBO files --- .../protege/web/shared/download/DownloadFormatExtension.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webprotege-shared/src/main/java/edu/stanford/bmir/protege/web/shared/download/DownloadFormatExtension.java b/webprotege-shared/src/main/java/edu/stanford/bmir/protege/web/shared/download/DownloadFormatExtension.java index 0a26171c8c..bbfda77dd5 100644 --- a/webprotege-shared/src/main/java/edu/stanford/bmir/protege/web/shared/download/DownloadFormatExtension.java +++ b/webprotege-shared/src/main/java/edu/stanford/bmir/protege/web/shared/download/DownloadFormatExtension.java @@ -15,6 +15,8 @@ public enum DownloadFormatExtension { owx("OWL/XML"), omn("Manchester OWL Syntax"), + + obo("OBO Syntax"), ofn("Functional OWL Syntax"); From 2d710cf2e3288873e4150dd74915952e5c8e9e17 Mon Sep 17 00:00:00 2001 From: VishalS711 Date: Mon, 25 May 2020 14:37:25 +0100 Subject: [PATCH 3/3] DownloadFormatExtension fixed, OBO supported, XML files fixed --- webprotege-client/pom.xml | 2 +- .../bmir/protege/web/server/download/DownloadFormat.java | 2 +- webprotege-server/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/webprotege-client/pom.xml b/webprotege-client/pom.xml index aa2c48eccd..fe8fcae1d8 100644 --- a/webprotege-client/pom.xml +++ b/webprotege-client/pom.xml @@ -81,7 +81,7 @@ net.sourceforge.owlapi owlapi-gwt - 4.3.2.1-SNAPSHOT + 4.3.2.1 net.sourceforge.owlapi diff --git a/webprotege-server-core/src/main/java/edu/stanford/bmir/protege/web/server/download/DownloadFormat.java b/webprotege-server-core/src/main/java/edu/stanford/bmir/protege/web/server/download/DownloadFormat.java index 593e75353e..95bcd2aff7 100644 --- a/webprotege-server-core/src/main/java/edu/stanford/bmir/protege/web/server/download/DownloadFormat.java +++ b/webprotege-server-core/src/main/java/edu/stanford/bmir/protege/web/server/download/DownloadFormat.java @@ -20,7 +20,7 @@ public enum DownloadFormat { OWL_XML(OWLXMLDocumentFormat::new, "application/owl+xml", DownloadFormatExtension.owx), - OBO(OBODocumentFormat::new, "application/octet-stream", DownloadFormatExtebonsion.obo), + OBO(OBODocumentFormat::new, "application/octet-stream", DownloadFormatExtension.obo), MANCHESTER(ManchesterSyntaxDocumentFormat::new, "text/owl-manchester", DownloadFormatExtension.omn), diff --git a/webprotege-server/pom.xml b/webprotege-server/pom.xml index 949505e617..79732d2c4e 100644 --- a/webprotege-server/pom.xml +++ b/webprotege-server/pom.xml @@ -75,7 +75,7 @@ net.sourceforge.owlapi owlapi-gwt - 4.3.2.1-SNAPSHOT + 4.3.2.1 net.sourceforge.owlapi