From c0f305967656bef13e702f346d2a7c9fce8de56d Mon Sep 17 00:00:00 2001 From: "miriam.baglioni" Date: Fri, 24 Jul 2020 17:22:39 +0200 Subject: [PATCH] added needed structures to ModelSupport --- .../java/eu/dnetlib/dhp/schema/common/ModelSupport.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/common/ModelSupport.java b/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/common/ModelSupport.java index 7d8be81ac..b5bca2e93 100644 --- a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/common/ModelSupport.java +++ b/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/common/ModelSupport.java @@ -79,6 +79,15 @@ public class ModelSupport { entityIdPrefix.put("result", "50"); } + public static final Map idPrefixEntity = Maps.newHashMap(); + + static { + idPrefixEntity.put("10", "datasource"); + idPrefixEntity.put("20", "organization"); + idPrefixEntity.put("40", "project"); + idPrefixEntity.put("50", "result"); + } + public static final Map relationInverseMap = Maps.newHashMap(); static {