From 59b942b2a85e5b94cd93f8a71be61374c086ad42 Mon Sep 17 00:00:00 2001 From: Claudio Atzori Date: Wed, 17 Jul 2024 11:44:54 +0200 Subject: [PATCH] minor --- src/main/java/eu/dnetlib/dhp/schema/common/EntityType.java | 4 +--- src/main/java/eu/dnetlib/dhp/schema/common/ModelSupport.java | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/eu/dnetlib/dhp/schema/common/EntityType.java b/src/main/java/eu/dnetlib/dhp/schema/common/EntityType.java index 13ef3b9..a7628a5 100644 --- a/src/main/java/eu/dnetlib/dhp/schema/common/EntityType.java +++ b/src/main/java/eu/dnetlib/dhp/schema/common/EntityType.java @@ -1,8 +1,6 @@ package eu.dnetlib.dhp.schema.common; -import eu.dnetlib.dhp.schema.oaf.OafEntity; - /** Actual entity types in the Graph */ public enum EntityType { publication, dataset, otherresearchproduct, software, datasource, organization, project, person; @@ -14,7 +12,7 @@ public enum EntityType { * @param actual OafEntity subclass * @return the EntityType associated to the given class */ - public static EntityType fromClass(Class clazz) { + public static EntityType fromClass(Class clazz) { return EntityType.valueOf(clazz.getSimpleName().toLowerCase()); } 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 e5c2959..e00ef19 100644 --- a/src/main/java/eu/dnetlib/dhp/schema/common/ModelSupport.java +++ b/src/main/java/eu/dnetlib/dhp/schema/common/ModelSupport.java @@ -212,7 +212,7 @@ public class ModelSupport { private ModelSupport() { } - public static String getIdPrefix(Class clazz) { + public static String getIdPrefix(Class clazz) { return idPrefixMap.get(clazz); }