From 21bd57b32e04a6840b52a83b8eb5d12491e9a497 Mon Sep 17 00:00:00 2001
From: Piotr Gawron <piotr.gawron@uni.lu>
Date: Thu, 14 Jun 2018 13:03:01 +0200
Subject: [PATCH] rhea miriam identifiers are handled properly

---
 .../lcsb/mapviewer/model/map/MiriamType.java  | 20 +++++++++++++------
 1 file changed, 14 insertions(+), 6 deletions(-)

diff --git a/model/src/main/java/lcsb/mapviewer/model/map/MiriamType.java b/model/src/main/java/lcsb/mapviewer/model/map/MiriamType.java
index df27800781..910ab16ccb 100644
--- a/model/src/main/java/lcsb/mapviewer/model/map/MiriamType.java
+++ b/model/src/main/java/lcsb/mapviewer/model/map/MiriamType.java
@@ -373,6 +373,14 @@ public enum MiriamType {
       "urn:miriam:refseq", //
       new Class<?>[] { Protein.class, Gene.class, Rna.class }, "MIR:00000039"),
 
+  /**
+   * Rhea: http://www.rhea-db.org/.
+   */
+  RHEA("Rhea", //
+      "http://www.rhea-db.org/", //
+      "urn:miriam:rhea", //
+      new Class<?>[] { Reaction.class }, "MIR:00000082"),
+
   /**
    * SGD: http://www.yeastgenome.org/.
    */
@@ -494,7 +502,7 @@ public enum MiriamType {
   private String commonName;
 
   /**
-   * url to homepage of given resource type.
+   * url to home page of given resource type.
    */
   private String dbHomepage;
 
@@ -504,9 +512,9 @@ public enum MiriamType {
   private String registryIdentifier;
 
   /**
-   * Valid uris to this resource.
+   * Valid URIs to this resource.
    */
-  private List<String> uris = new ArrayList<String>();
+  private List<String> uris = new ArrayList<>();
 
   /**
    * Classes that can be annotated by this resource.
@@ -523,7 +531,7 @@ public enum MiriamType {
    * Constructor that initialize enum object.
    * 
    * @param dbHomePage
-   *          homepage of the resource {@link #dbHomepage}
+   *          home page of the resource {@link #dbHomepage}
    * @param commonName
    *          {@link #commonName}
    * @param uris
@@ -541,7 +549,7 @@ public enum MiriamType {
    * Constructor that initialize enum object.
    * 
    * @param dbHomePage
-   *          homepage of the resource {@link #dbHomepage}
+   *          home page of the resource {@link #dbHomepage}
    * @param commonName
    *          {@link #commonName}
    * @param uris
@@ -573,7 +581,7 @@ public enum MiriamType {
    * Constructor that initialize enum object.
    * 
    * @param dbHomePage
-   *          homepage of the resource {@link #dbHomepage}
+   *          home page of the resource {@link #dbHomepage}
    * @param commonName
    *          {@link #commonName}
    * @param uri
-- 
GitLab