From 38c82b032e2498e41725127680abec144fe7ca85 Mon Sep 17 00:00:00 2001 From: Claudio Atzori Date: Mon, 6 Dec 2021 10:31:30 +0100 Subject: [PATCH] Added helper method to lookup for inverse relations regardless of the upper/lower case in the relation encoding --- src/main/java/eu/dnetlib/dhp/schema/common/ModelSupport.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/dnetlib/dhp/schema/common/ModelSupport.java b/src/main/java/eu/dnetlib/dhp/schema/common/ModelSupport.java index 5899319..1aa0d8f 100644 --- a/src/main/java/eu/dnetlib/dhp/schema/common/ModelSupport.java +++ b/src/main/java/eu/dnetlib/dhp/schema/common/ModelSupport.java @@ -163,7 +163,7 @@ public class ModelSupport { * @param encoding * @return the relation inverse descriptor, throws @IllegalArgumentException when not found. */ - public RelationInverse findInverse(String encoding) { + public static RelationInverse findInverse(String encoding) { return ModelSupport.relationInverseMap .entrySet() .stream()