From 7aed048eec60931574f4be117aed63086cf31dfa Mon Sep 17 00:00:00 2001 From: Claudio Atzori Date: Wed, 12 Jun 2024 16:03:51 +0200 Subject: [PATCH 1/8] added person entity to the internal graph model --- .../dhp/schema/common/ModelConstants.java | 17 +++ .../eu/dnetlib/dhp/schema/oaf/Person.java | 138 ++++++++++++++++++ .../dnetlib/dhp/schema/oaf/PersonTopic.java | 52 +++++++ 3 files changed, 207 insertions(+) create mode 100644 src/main/java/eu/dnetlib/dhp/schema/oaf/Person.java create mode 100644 src/main/java/eu/dnetlib/dhp/schema/oaf/PersonTopic.java diff --git a/src/main/java/eu/dnetlib/dhp/schema/common/ModelConstants.java b/src/main/java/eu/dnetlib/dhp/schema/common/ModelConstants.java index 5373015..ff7c7c7 100644 --- a/src/main/java/eu/dnetlib/dhp/schema/common/ModelConstants.java +++ b/src/main/java/eu/dnetlib/dhp/schema/common/ModelConstants.java @@ -190,6 +190,23 @@ public class ModelConstants { public static final String UNKNOWN = "UNKNOWN"; public static final String NOT_AVAILABLE = "not available"; + public static final String RESULT_PERSON_RELTYPE = "resultPerson"; // relType + public static final String RESULT_PERSON_SUBRELTYPE = "authorship"; // subreltype + public static final String RESULT_PERSON_HASAUTHORED = "hasAuthored"; // relclass + + public static final String PERSON_PERSON_RELTYPE = "personPerson"; // relType + public static final String PERSON_PERSON_SUBRELTYPE = "coAuthorship"; // subreltype + public static final String PERSON_PERSON_HASCOAUTHORED = "hasCoAuthor"; // relclass + + public static final String PROJECT_PERSON_RELTYPE = "projectPerson"; // relType + public static final String PROJECT_PERSON_SUBRELTYPE = "participation"; // subreltype + public static final String PROJECT_PERSON_PARTICIPATES = "participatesToProject"; // relclass + + // author affiliations are intended to be characterised by a start and an end date + public static final String ORG_PERSON_RELTYPE = "organizationPerson"; // relType + public static final String ORG_PERSON_SUBRELTYPE = "affiliation"; // subreltype + public static final String ORG_PERSON_PARTICIPATES = "isAffiliatedWith"; // relclass + public static final Qualifier PUBLICATION_DEFAULT_RESULTTYPE = qualifier( PUBLICATION_RESULTTYPE_CLASSID, PUBLICATION_RESULTTYPE_CLASSID, DNET_RESULT_TYPOLOGIES, DNET_RESULT_TYPOLOGIES); diff --git a/src/main/java/eu/dnetlib/dhp/schema/oaf/Person.java b/src/main/java/eu/dnetlib/dhp/schema/oaf/Person.java new file mode 100644 index 0000000..a24bff4 --- /dev/null +++ b/src/main/java/eu/dnetlib/dhp/schema/oaf/Person.java @@ -0,0 +1,138 @@ +package eu.dnetlib.dhp.schema.oaf; + +import java.io.Serializable; +import java.util.List; + +public class Person implements Serializable { + + private static final long serialVersionUID = -2366333710489222265L; + + private String id; + + private String givenName; + + private String familyName; + + private List alternativeNames; + + private String biography; + + private List subject; + + private List collectedfrom; + + private List pid; + + private String dateofcollection; + + /** + * The Measures. + */ + private List indicator; + + /** + * The Context. + */ + private List context; + + private Boolean consent; + + public Person() { + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getGivenName() { + return givenName; + } + + public void setGivenName(String givenName) { + this.givenName = givenName; + } + + public String getFamilyName() { + return familyName; + } + + public void setFamilyName(String familyName) { + this.familyName = familyName; + } + + public List getAlternativeNames() { + return alternativeNames; + } + + public void setAlternativeNames(List alternativeNames) { + this.alternativeNames = alternativeNames; + } + + public String getBiography() { + return biography; + } + + public void setBiography(String biography) { + this.biography = biography; + } + + public List getSubject() { + return subject; + } + + public void setSubject(List subject) { + this.subject = subject; + } + + public List getCollectedfrom() { + return collectedfrom; + } + + public void setCollectedfrom(List collectedfrom) { + this.collectedfrom = collectedfrom; + } + + public List getPid() { + return pid; + } + + public void setPid(List pid) { + this.pid = pid; + } + + public String getDateofcollection() { + return dateofcollection; + } + + public void setDateofcollection(String dateofcollection) { + this.dateofcollection = dateofcollection; + } + + public List getIndicator() { + return indicator; + } + + public void setIndicator(List indicator) { + this.indicator = indicator; + } + + public List getContext() { + return context; + } + + public void setContext(List context) { + this.context = context; + } + + public Boolean getConsent() { + return consent; + } + + public void setConsent(Boolean consent) { + this.consent = consent; + } +} diff --git a/src/main/java/eu/dnetlib/dhp/schema/oaf/PersonTopic.java b/src/main/java/eu/dnetlib/dhp/schema/oaf/PersonTopic.java new file mode 100644 index 0000000..ac9dbac --- /dev/null +++ b/src/main/java/eu/dnetlib/dhp/schema/oaf/PersonTopic.java @@ -0,0 +1,52 @@ +package eu.dnetlib.dhp.schema.oaf; + +import java.io.Serializable; +import java.time.Year; + +public class PersonTopic implements Serializable { + + private static final long serialVersionUID = 102011326860637199L; + + private String value; + + private String schema; + + private Year fromYear; + + private Year toYear; + + public PersonTopic() { + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + public String getSchema() { + return schema; + } + + public void setSchema(String schema) { + this.schema = schema; + } + + public Year getFromYear() { + return fromYear; + } + + public void setFromYear(Year fromYear) { + this.fromYear = fromYear; + } + + public Year getToYear() { + return toYear; + } + + public void setToYear(Year toYear) { + this.toYear = toYear; + } +} From 7bd21aa475b817fc21df70daafbeae01b652a0c1 Mon Sep 17 00:00:00 2001 From: Claudio Atzori Date: Wed, 12 Jun 2024 16:36:48 +0200 Subject: [PATCH 2/8] added Person.originalId --- src/main/java/eu/dnetlib/dhp/schema/oaf/Person.java | 10 ++++++++++ src/main/java/eu/dnetlib/dhp/schema/solr/Person.java | 2 ++ .../java/eu/dnetlib/dhp/schema/solr/PersonTopic.java | 2 ++ 3 files changed, 14 insertions(+) create mode 100644 src/main/java/eu/dnetlib/dhp/schema/solr/Person.java create mode 100644 src/main/java/eu/dnetlib/dhp/schema/solr/PersonTopic.java diff --git a/src/main/java/eu/dnetlib/dhp/schema/oaf/Person.java b/src/main/java/eu/dnetlib/dhp/schema/oaf/Person.java index a24bff4..95dfe17 100644 --- a/src/main/java/eu/dnetlib/dhp/schema/oaf/Person.java +++ b/src/main/java/eu/dnetlib/dhp/schema/oaf/Person.java @@ -9,6 +9,8 @@ public class Person implements Serializable { private String id; + private List originalId; + private String givenName; private String familyName; @@ -48,6 +50,14 @@ public class Person implements Serializable { this.id = id; } + public List getOriginalId() { + return originalId; + } + + public void setOriginalId(List originalId) { + this.originalId = originalId; + } + public String getGivenName() { return givenName; } diff --git a/src/main/java/eu/dnetlib/dhp/schema/solr/Person.java b/src/main/java/eu/dnetlib/dhp/schema/solr/Person.java new file mode 100644 index 0000000..cdcf79d --- /dev/null +++ b/src/main/java/eu/dnetlib/dhp/schema/solr/Person.java @@ -0,0 +1,2 @@ +package eu.dnetlib.dhp.schema.solr;public class Person { +} diff --git a/src/main/java/eu/dnetlib/dhp/schema/solr/PersonTopic.java b/src/main/java/eu/dnetlib/dhp/schema/solr/PersonTopic.java new file mode 100644 index 0000000..4b91bde --- /dev/null +++ b/src/main/java/eu/dnetlib/dhp/schema/solr/PersonTopic.java @@ -0,0 +1,2 @@ +package eu.dnetlib.dhp.schema.solr;public class PersonTopic { +} From a620d3ff21e4d44a2125bbe8b2098edbc70a7fd6 Mon Sep 17 00:00:00 2001 From: Claudio Atzori Date: Wed, 12 Jun 2024 16:37:21 +0200 Subject: [PATCH 3/8] added person entity to the Solr record model --- .../eu/dnetlib/dhp/schema/solr/Person.java | 113 +++++++++++++++++- .../dnetlib/dhp/schema/solr/PersonTopic.java | 61 +++++++++- .../dnetlib/dhp/schema/solr/RecordType.java | 3 +- .../dnetlib/dhp/schema/solr/SolrRecord.java | 10 ++ 4 files changed, 184 insertions(+), 3 deletions(-) diff --git a/src/main/java/eu/dnetlib/dhp/schema/solr/Person.java b/src/main/java/eu/dnetlib/dhp/schema/solr/Person.java index cdcf79d..e4d1c57 100644 --- a/src/main/java/eu/dnetlib/dhp/schema/solr/Person.java +++ b/src/main/java/eu/dnetlib/dhp/schema/solr/Person.java @@ -1,2 +1,113 @@ -package eu.dnetlib.dhp.schema.solr;public class Person { +package eu.dnetlib.dhp.schema.solr; + +import java.io.Serializable; +import java.util.List; + +public class Person implements Serializable { + + private static final long serialVersionUID = 3923041787040187202L; + + private String givenName; + + private String familyName; + + private List alternativeNames; + + private String biography; + + private List subject; + + /** + * The Measures. + */ + private List indicator; + + /** + * The Context. + */ + private List context; + + private Boolean consent; + + public static Person newInstance(String givenName, String familyName, List alternativeNames, String biography, List subject, List indicator, List context, Boolean consent) { + final Person p = new Person(); + + p.setGivenName(givenName); + p.setFamilyName(familyName); + p.setAlternativeNames(alternativeNames); + p.setBiography(biography); + p.setSubject(subject); + p.setIndicator(indicator); + p.setContext(context); + p.setConsent(consent); + + return p; + } + + public Person() { + } + + public String getGivenName() { + return givenName; + } + + public void setGivenName(String givenName) { + this.givenName = givenName; + } + + public String getFamilyName() { + return familyName; + } + + public void setFamilyName(String familyName) { + this.familyName = familyName; + } + + public List getAlternativeNames() { + return alternativeNames; + } + + public void setAlternativeNames(List alternativeNames) { + this.alternativeNames = alternativeNames; + } + + public String getBiography() { + return biography; + } + + public void setBiography(String biography) { + this.biography = biography; + } + + public List getSubject() { + return subject; + } + + public void setSubject(List subject) { + this.subject = subject; + } + + public List getIndicator() { + return indicator; + } + + public void setIndicator(List indicator) { + this.indicator = indicator; + } + + public List getContext() { + return context; + } + + public void setContext(List context) { + this.context = context; + } + + public Boolean getConsent() { + return consent; + } + + public void setConsent(Boolean consent) { + this.consent = consent; + } } diff --git a/src/main/java/eu/dnetlib/dhp/schema/solr/PersonTopic.java b/src/main/java/eu/dnetlib/dhp/schema/solr/PersonTopic.java index 4b91bde..2115e34 100644 --- a/src/main/java/eu/dnetlib/dhp/schema/solr/PersonTopic.java +++ b/src/main/java/eu/dnetlib/dhp/schema/solr/PersonTopic.java @@ -1,2 +1,61 @@ -package eu.dnetlib.dhp.schema.solr;public class PersonTopic { +package eu.dnetlib.dhp.schema.solr; + +import java.io.Serializable; +import java.time.Year; + +public class PersonTopic implements Serializable { + + private static final long serialVersionUID = 6866697695308782412L; + + private String value; + + private String schema; + + private Year fromYear; + + private Year toYear; + + public static PersonTopic newInstance(String value, String schema, Year fromYear, Year toYear) { + final PersonTopic personTopic = new PersonTopic(); + personTopic.setValue(value); + personTopic.setSchema(schema); + personTopic.setFromYear(fromYear); + personTopic.setToYear(toYear); + return personTopic; + } + + public PersonTopic() { + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + public String getSchema() { + return schema; + } + + public void setSchema(String schema) { + this.schema = schema; + } + + public Year getFromYear() { + return fromYear; + } + + public void setFromYear(Year fromYear) { + this.fromYear = fromYear; + } + + public Year getToYear() { + return toYear; + } + + public void setToYear(Year toYear) { + this.toYear = toYear; + } } diff --git a/src/main/java/eu/dnetlib/dhp/schema/solr/RecordType.java b/src/main/java/eu/dnetlib/dhp/schema/solr/RecordType.java index 1f4b13e..39900b3 100644 --- a/src/main/java/eu/dnetlib/dhp/schema/solr/RecordType.java +++ b/src/main/java/eu/dnetlib/dhp/schema/solr/RecordType.java @@ -9,6 +9,7 @@ public enum RecordType implements Serializable { software, datasource, organization, - project; + project, + person; } diff --git a/src/main/java/eu/dnetlib/dhp/schema/solr/SolrRecord.java b/src/main/java/eu/dnetlib/dhp/schema/solr/SolrRecord.java index 5879af9..ae8779e 100644 --- a/src/main/java/eu/dnetlib/dhp/schema/solr/SolrRecord.java +++ b/src/main/java/eu/dnetlib/dhp/schema/solr/SolrRecord.java @@ -30,6 +30,8 @@ public class SolrRecord implements Serializable { private Organization organization; + private Person person; + private List links; public SolrRecordHeader getHeader() { @@ -112,6 +114,14 @@ public class SolrRecord implements Serializable { this.organization = organization; } + public Person getPerson() { + return person; + } + + public void setPerson(Person person) { + this.person = person; + } + public List getLinks() { return links; } From bcbcba399d26785591bff1ed4ea4c5398cca7c28 Mon Sep 17 00:00:00 2001 From: Miriam Baglioni Date: Wed, 3 Jul 2024 14:10:30 +0200 Subject: [PATCH 4/8] [Person] - --- .../dhp/schema/action/AtomicAction.java | 2 +- .../dnetlib/dhp/schema/common/EntityType.java | 4 +-- .../dhp/schema/common/MainEntityType.java | 2 +- .../dhp/schema/common/ModelSupport.java | 8 ++++- .../eu/dnetlib/dhp/schema/oaf/Person.java | 7 +++-- .../java/eu/dnetlib/dhp/schema/oaf/Pid.java | 31 +++++++++++++++++++ 6 files changed, 46 insertions(+), 8 deletions(-) create mode 100644 src/main/java/eu/dnetlib/dhp/schema/oaf/Pid.java diff --git a/src/main/java/eu/dnetlib/dhp/schema/action/AtomicAction.java b/src/main/java/eu/dnetlib/dhp/schema/action/AtomicAction.java index 84b22c8..2e83f84 100644 --- a/src/main/java/eu/dnetlib/dhp/schema/action/AtomicAction.java +++ b/src/main/java/eu/dnetlib/dhp/schema/action/AtomicAction.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import eu.dnetlib.dhp.schema.oaf.Oaf; @JsonDeserialize(using = AtomicActionDeserializer.class) -public class AtomicAction implements Serializable { +public class AtomicAction implements Serializable { private Class clazz; 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 54f30cf..13ef3b9 100644 --- a/src/main/java/eu/dnetlib/dhp/schema/common/EntityType.java +++ b/src/main/java/eu/dnetlib/dhp/schema/common/EntityType.java @@ -5,7 +5,7 @@ import eu.dnetlib.dhp.schema.oaf.OafEntity; /** Actual entity types in the Graph */ public enum EntityType { - publication, dataset, otherresearchproduct, software, datasource, organization, project; + publication, dataset, otherresearchproduct, software, datasource, organization, project, person; /** * Resolves the EntityType, given the relative class name @@ -14,7 +14,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/MainEntityType.java b/src/main/java/eu/dnetlib/dhp/schema/common/MainEntityType.java index cda8ba4..36f355c 100644 --- a/src/main/java/eu/dnetlib/dhp/schema/common/MainEntityType.java +++ b/src/main/java/eu/dnetlib/dhp/schema/common/MainEntityType.java @@ -3,5 +3,5 @@ package eu.dnetlib.dhp.schema.common; /** Main entity types in the Graph */ public enum MainEntityType { - result, datasource, organization, project + result, datasource, organization, project, person } 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 c7a24b6..e5c2959 100644 --- a/src/main/java/eu/dnetlib/dhp/schema/common/ModelSupport.java +++ b/src/main/java/eu/dnetlib/dhp/schema/common/ModelSupport.java @@ -36,6 +36,7 @@ public class ModelSupport { entityMapping.put(EntityType.datasource, MainEntityType.datasource); entityMapping.put(EntityType.organization, MainEntityType.organization); entityMapping.put(EntityType.project, MainEntityType.project); + entityMapping.put(EntityType.person, MainEntityType.person); } /** @@ -51,6 +52,7 @@ public class ModelSupport { entityTypes.put(EntityType.otherresearchproduct, OtherResearchProduct.class); entityTypes.put(EntityType.software, Software.class); entityTypes.put(EntityType.publication, Publication.class); + entityTypes.put(EntityType.person, Person.class); } public static final Map oafTypes = Maps.newHashMap(); @@ -64,6 +66,7 @@ public class ModelSupport { oafTypes.put("software", Software.class); oafTypes.put("publication", Publication.class); oafTypes.put("relation", Relation.class); + oafTypes.put("person", Person.class); } public static final Map idPrefixMap = Maps.newHashMap(); @@ -76,6 +79,7 @@ public class ModelSupport { idPrefixMap.put(OtherResearchProduct.class, "50"); idPrefixMap.put(Software.class, "50"); idPrefixMap.put(Publication.class, "50"); + idPrefixMap.put(Person.class, "30"); } public static final Map entityIdPrefix = Maps.newHashMap(); @@ -85,6 +89,7 @@ public class ModelSupport { entityIdPrefix.put("organization", "20"); entityIdPrefix.put("project", "40"); entityIdPrefix.put("result", "50"); + entityIdPrefix.put("person", "30"); } public static final Map idPrefixEntity = Maps.newHashMap(); @@ -92,6 +97,7 @@ public class ModelSupport { static { idPrefixEntity.put("10", "datasource"); idPrefixEntity.put("20", "organization"); + idPrefixEntity.put("30", "person"); idPrefixEntity.put("40", "project"); idPrefixEntity.put("50", "result"); } @@ -206,7 +212,7 @@ public class ModelSupport { private ModelSupport() { } - public static String getIdPrefix(Class clazz) { + public static String getIdPrefix(Class clazz) { return idPrefixMap.get(clazz); } diff --git a/src/main/java/eu/dnetlib/dhp/schema/oaf/Person.java b/src/main/java/eu/dnetlib/dhp/schema/oaf/Person.java index 95dfe17..1538f04 100644 --- a/src/main/java/eu/dnetlib/dhp/schema/oaf/Person.java +++ b/src/main/java/eu/dnetlib/dhp/schema/oaf/Person.java @@ -23,7 +23,7 @@ public class Person implements Serializable { private List collectedfrom; - private List pid; + private List pid; private String dateofcollection; @@ -106,11 +106,12 @@ public class Person implements Serializable { this.collectedfrom = collectedfrom; } - public List getPid() { + + public List getPid() { return pid; } - public void setPid(List pid) { + public void setPid(List pid) { this.pid = pid; } diff --git a/src/main/java/eu/dnetlib/dhp/schema/oaf/Pid.java b/src/main/java/eu/dnetlib/dhp/schema/oaf/Pid.java new file mode 100644 index 0000000..d2ef428 --- /dev/null +++ b/src/main/java/eu/dnetlib/dhp/schema/oaf/Pid.java @@ -0,0 +1,31 @@ +package eu.dnetlib.dhp.schema.oaf; + +import java.io.Serializable; + +public class Pid implements Serializable { + private String schema; + private String value; + + public String getSchema() { + return schema; + } + + public void setSchema(String schema) { + this.schema = schema; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + public static Pid newInstance(String schema, String value){ + Pid pid = new Pid(); + pid.schema = schema; + pid.value = value; + return pid; + } +} From 50d4db8b04b1aeb599b48f1e56122224c532c75d Mon Sep 17 00:00:00 2001 From: Miriam Baglioni Date: Wed, 3 Jul 2024 15:44:35 +0200 Subject: [PATCH 5/8] [Person] removed the extentions to Oaf for atomicAction serializer and deserializer --- src/main/java/eu/dnetlib/dhp/schema/action/AtomicAction.java | 2 +- .../eu/dnetlib/dhp/schema/action/AtomicActionDeserializer.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/eu/dnetlib/dhp/schema/action/AtomicAction.java b/src/main/java/eu/dnetlib/dhp/schema/action/AtomicAction.java index 2e83f84..5e98976 100644 --- a/src/main/java/eu/dnetlib/dhp/schema/action/AtomicAction.java +++ b/src/main/java/eu/dnetlib/dhp/schema/action/AtomicAction.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import eu.dnetlib.dhp.schema.oaf.Oaf; @JsonDeserialize(using = AtomicActionDeserializer.class) -public class AtomicAction implements Serializable { +public class AtomicAction implements Serializable { private Class clazz; diff --git a/src/main/java/eu/dnetlib/dhp/schema/action/AtomicActionDeserializer.java b/src/main/java/eu/dnetlib/dhp/schema/action/AtomicActionDeserializer.java index 628d8fe..ab04e92 100644 --- a/src/main/java/eu/dnetlib/dhp/schema/action/AtomicActionDeserializer.java +++ b/src/main/java/eu/dnetlib/dhp/schema/action/AtomicActionDeserializer.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.databind.ObjectMapper; import eu.dnetlib.dhp.schema.oaf.Oaf; -public class AtomicActionDeserializer extends JsonDeserializer> { +public class AtomicActionDeserializer extends JsonDeserializer> { @Override @SuppressWarnings("unchecked") From 59b942b2a85e5b94cd93f8a71be61374c086ad42 Mon Sep 17 00:00:00 2001 From: Claudio Atzori Date: Wed, 17 Jul 2024 11:44:54 +0200 Subject: [PATCH 6/8] 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); } From 1e8e4c9becf83b3b6e1be924db6ccb4c145779f6 Mon Sep 17 00:00:00 2001 From: Claudio Atzori Date: Wed, 17 Jul 2024 11:45:45 +0200 Subject: [PATCH 7/8] bumped version --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index a967b78..3c3452c 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ eu.dnetlib.dhp dhp-schemas jar - 6.1.3-SNAPSHOT + 6.1.4-SNAPSHOT From f4a16cee5257f6401e8dde62a3957c0d5dab529f Mon Sep 17 00:00:00 2001 From: Claudio Atzori Date: Wed, 17 Jul 2024 11:50:27 +0200 Subject: [PATCH 8/8] updated changelog --- CHANGES.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index f6e6283..695c624 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -4,7 +4,8 @@ | **Version** | **Changes** | **Readiness** | |-------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------| -| 6.1.3 | [Graph model]
  • Updated Solr JSON payload model classes
| beta | +| 7.0.0 | [Graph model]
  • Introduced Person entity and its relations: authorship, coauthorship, affiliation
  • Updated Solr JSON payload model classes
| beta | +| 6.1.3 | [Graph model]
  • Updated Solr JSON payload model classes
| production | | 6.1.1 | [Graph model]
  • Introduced constants used in the DOIBoost dismission.
| production | | 6.1.0 | [Graph model]
  • Introduced model classes to provide a JSON representation of records embedding information from the related entities.
| production | | 5.17.3 | [Graph model]
  • added result level textual field to store the transformative agreement information.
| production |