diff --git a/CHANGES.md b/CHANGES.md
index 6b0a2ff..9e73eb0 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -2,8 +2,9 @@
## Changelog
-| **Version** | **Changes** | **Readiness** |
-|-------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
+| **Version** | **Changes** | **Readiness** |
+|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
+| 2.12.0 | [Graph model]
- Introducing EOSC Services as datasources
| beta |
| 2.11.33 | [Scholexplorer] - Moved Scholix API Data model into dhp-schemas
- implementation of the compareTo method on Scholix objects and all model properties
- Unit Test to verify that compareTo works on different case
| beta |
| 2.10.31 | [Minor] NPE checks | beta |
| 2.10.30 | [Minor] added comparator for refereed field instances | beta |
diff --git a/pom.xml b/pom.xml
index a69fbfd..ff8ae1e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,8 +5,7 @@
eu.dnetlib.dhp
dhp-schemas
jar
- 2.11.34-SNAPSHOT
-
+ 2.12.0-SNAPSHOT
diff --git a/src/main/java/eu/dnetlib/dhp/schema/oaf/Datasource.java b/src/main/java/eu/dnetlib/dhp/schema/oaf/Datasource.java
index 7e59372..54cfc8a 100644
--- a/src/main/java/eu/dnetlib/dhp/schema/oaf/Datasource.java
+++ b/src/main/java/eu/dnetlib/dhp/schema/oaf/Datasource.java
@@ -11,10 +11,16 @@ public class Datasource extends OafEntity implements Serializable {
*/
private static final long serialVersionUID = 1019089598408414496L;
+ @Deprecated
private Qualifier datasourcetype;
+ @Deprecated
private Qualifier datasourcetypeui;
+ private Qualifier eosctype; // Data Source | Service
+
+ private Qualifier eoscdatasourcetype;
+
private Qualifier openairecompatibility;
private Field officialname;
@@ -40,14 +46,21 @@ public class Datasource extends OafEntity implements Serializable {
private List subjects;
// opendoar specific fields (od*)
+ @Deprecated
private Field odnumberofitems;
+ @Deprecated
private Field odnumberofitemsdate;
+ @Deprecated
private Field odpolicies;
+ @Deprecated
private List> odlanguages;
+ private List languages;
+
+ @Deprecated
private List> odcontenttypes;
private List> accessinfopackage;
@@ -59,8 +72,10 @@ public class Datasource extends OafEntity implements Serializable {
private Field missionstatementurl;
+ @Deprecated
private Field dataprovider;
+ @Deprecated
private Field serviceprovider;
// {open, restricted or closed}
@@ -75,23 +90,24 @@ public class Datasource extends OafEntity implements Serializable {
// {feeRequired, registration, other}
private Field datauploadrestriction;
+ @Deprecated
private Field versioning;
- private Field citationguidelineurl;
+ private Boolean versioncontrol;
- // {yes, no, uknown}
- private Field qualitymanagementkind;
+ private Field citationguidelineurl;
private Field pidsystems;
private Field certificates;
+ @Deprecated
private List policies;
private Journal journal;
// New field for EOSC
- private List providedentitytypes;
+ private List researchentitytypes;
// New field for EOSC
private List providedproducttypes;
@@ -102,18 +118,25 @@ public class Datasource extends OafEntity implements Serializable {
// New field for EOSC
private Boolean thematic;
- // New field for EOSC
- private Boolean knowledgegraph;
-
// New field for EOSC
private List contentpolicies;
+ private String submissionpolicyurl;
+
+ private String preservationpolicyurl;
+
+ private List researchproductaccesspolicies;
+
+ private List researchproductmetadataaccesspolicies;
+
private Boolean consenttermsofuse;
private Boolean fulltextdownload;
private String consenttermsofusedate;
+ private String lastconsenttermsofusedate;
+
public Qualifier getDatasourcetype() {
return datasourcetype;
}
@@ -130,6 +153,22 @@ public class Datasource extends OafEntity implements Serializable {
this.datasourcetypeui = datasourcetypeui;
}
+ public Qualifier getEosctype() {
+ return eosctype;
+ }
+
+ public void setEosctype(Qualifier eosctype) {
+ this.eosctype = eosctype;
+ }
+
+ public Qualifier getEoscdatasourcetype() {
+ return eoscdatasourcetype;
+ }
+
+ public void setEoscdatasourcetype(Qualifier eoscdatasourcetype) {
+ this.eoscdatasourcetype = eoscdatasourcetype;
+ }
+
public Qualifier getOpenairecompatibility() {
return openairecompatibility;
}
@@ -258,6 +297,14 @@ public class Datasource extends OafEntity implements Serializable {
this.odlanguages = odlanguages;
}
+ public List getLanguages() {
+ return languages;
+ }
+
+ public void setLanguages(final List languages) {
+ this.languages = languages;
+ }
+
public List> getOdcontenttypes() {
return odcontenttypes;
}
@@ -354,6 +401,14 @@ public class Datasource extends OafEntity implements Serializable {
this.versioning = versioning;
}
+ public Boolean getVersioncontrol() {
+ return versioncontrol;
+ }
+
+ public void setVersioncontrol(Boolean versioncontrol) {
+ this.versioncontrol = versioncontrol;
+ }
+
public Field getCitationguidelineurl() {
return citationguidelineurl;
}
@@ -362,14 +417,6 @@ public class Datasource extends OafEntity implements Serializable {
this.citationguidelineurl = citationguidelineurl;
}
- public Field getQualitymanagementkind() {
- return qualitymanagementkind;
- }
-
- public void setQualitymanagementkind(final Field qualitymanagementkind) {
- this.qualitymanagementkind = qualitymanagementkind;
- }
-
public Field getPidsystems() {
return pidsystems;
}
@@ -402,12 +449,12 @@ public class Datasource extends OafEntity implements Serializable {
this.journal = journal;
}
- public List getProvidedentitytypes() {
- return providedentitytypes;
+ public List getResearchentitytypes() {
+ return researchentitytypes;
}
- public void setProvidedentitytypes(final List providedentitytypes) {
- this.providedentitytypes = providedentitytypes;
+ public void setResearchentitytypes(final List researchentitytypes) {
+ this.researchentitytypes = researchentitytypes;
}
public List getProvidedproducttypes() {
@@ -434,14 +481,6 @@ public class Datasource extends OafEntity implements Serializable {
this.thematic = thematic;
}
- public Boolean getKnowledgegraph() {
- return knowledgegraph;
- }
-
- public void setKnowledgegraph(final Boolean knowledgegraph) {
- this.knowledgegraph = knowledgegraph;
- }
-
public List getContentpolicies() {
return contentpolicies;
}
@@ -450,19 +489,59 @@ public class Datasource extends OafEntity implements Serializable {
this.contentpolicies = contentpolicies;
}
+ public String getSubmissionpolicyurl() {
+ return submissionpolicyurl;
+ }
+
+ public void setSubmissionpolicyurl(String submissionpolicyurl) {
+ this.submissionpolicyurl = submissionpolicyurl;
+ }
+
+ public String getPreservationpolicyurl() {
+ return preservationpolicyurl;
+ }
+
+ public void setPreservationpolicyurl(String preservationpolicyurl) {
+ this.preservationpolicyurl = preservationpolicyurl;
+ }
+
+ public List getResearchproductaccesspolicies() {
+ return researchproductaccesspolicies;
+ }
+
+ public void setResearchproductaccesspolicies(List researchproductaccesspolicies) {
+ this.researchproductaccesspolicies = researchproductaccesspolicies;
+ }
+
+ public List getResearchproductmetadataaccesspolicies() {
+ return researchproductmetadataaccesspolicies;
+ }
+
+ public void setResearchproductmetadataaccesspolicies(List researchproductmetadataaccesspolicies) {
+ this.researchproductmetadataaccesspolicies = researchproductmetadataaccesspolicies;
+ }
+
public Boolean getConsenttermsofuse() {
return consenttermsofuse;
}
- public void setConsenttermsofuse(Boolean consenttermsofuse) {
+ public void setConsenttermsofuse(final Boolean consenttermsofuse) {
this.consenttermsofuse = consenttermsofuse;
}
+ public String getLastconsenttermsofusedate() {
+ return lastconsenttermsofusedate;
+ }
+
+ public void setLastconsenttermsofusedate(String lastconsenttermsofusedate) {
+ this.lastconsenttermsofusedate = lastconsenttermsofusedate;
+ }
+
public Boolean getFulltextdownload() {
return fulltextdownload;
}
- public void setFulltextdownload(Boolean fulltextdownload) {
+ public void setFulltextdownload(final Boolean fulltextdownload) {
this.fulltextdownload = fulltextdownload;
}
@@ -470,134 +549,13 @@ public class Datasource extends OafEntity implements Serializable {
return consenttermsofusedate;
}
- public void setConsenttermsofusedate(String consenttermsofusedate) {
+ public void setConsenttermsofusedate(final String consenttermsofusedate) {
this.consenttermsofusedate = consenttermsofusedate;
}
@Override
public void mergeFrom(final OafEntity e) {
super.mergeFrom(e);
-
- if (!Datasource.class.isAssignableFrom(e.getClass())) { return; }
-
- final Datasource d = (Datasource) e;
-
- datasourcetype = d.getDatasourcetype() != null && compareTrust(this, e) < 0
- ? d.getDatasourcetype()
- : datasourcetype;
- datasourcetypeui = d.getDatasourcetypeui() != null && compareTrust(this, e) < 0
- ? d.getDatasourcetypeui()
- : datasourcetypeui;
- openairecompatibility = d.getOpenairecompatibility() != null && compareTrust(this, e) < 0
- ? d.getOpenairecompatibility()
- : openairecompatibility;
- officialname = d.getOfficialname() != null && compareTrust(this, e) < 0
- ? d.getOfficialname()
- : officialname;
- englishname = d.getEnglishname() != null && compareTrust(this, e) < 0 ? d.getEnglishname() : officialname;
- websiteurl = d.getWebsiteurl() != null && compareTrust(this, e) < 0 ? d.getWebsiteurl() : websiteurl;
- logourl = d.getLogourl() != null && compareTrust(this, e) < 0 ? d.getLogourl() : getLogourl();
- contactemail = d.getContactemail() != null && compareTrust(this, e) < 0
- ? d.getContactemail()
- : contactemail;
- namespaceprefix = d.getNamespaceprefix() != null && compareTrust(this, e) < 0
- ? d.getNamespaceprefix()
- : namespaceprefix;
- latitude = d.getLatitude() != null && compareTrust(this, e) < 0 ? d.getLatitude() : latitude;
- longitude = d.getLongitude() != null && compareTrust(this, e) < 0 ? d.getLongitude() : longitude;
- dateofvalidation = d.getDateofvalidation() != null && compareTrust(this, e) < 0
- ? d.getDateofvalidation()
- : dateofvalidation;
- description = d.getDescription() != null && compareTrust(this, e) < 0 ? d.getDescription() : description;
- subjects = mergeLists(subjects, d.getSubjects());
-
- // opendoar specific fields (od*)
- odnumberofitems = d.getOdnumberofitems() != null && compareTrust(this, e) < 0
- ? d.getOdnumberofitems()
- : odnumberofitems;
- odnumberofitemsdate = d.getOdnumberofitemsdate() != null && compareTrust(this, e) < 0
- ? d.getOdnumberofitemsdate()
- : odnumberofitemsdate;
- odpolicies = d.getOdpolicies() != null && compareTrust(this, e) < 0 ? d.getOdpolicies() : odpolicies;
- odlanguages = mergeLists(odlanguages, d.getOdlanguages());
- odcontenttypes = mergeLists(odcontenttypes, d.getOdcontenttypes());
- accessinfopackage = mergeLists(accessinfopackage, d.getAccessinfopackage());
-
- // re3data fields
- releasestartdate = d.getReleasestartdate() != null && compareTrust(this, e) < 0
- ? d.getReleasestartdate()
- : releasestartdate;
- releaseenddate = d.getReleaseenddate() != null && compareTrust(this, e) < 0
- ? d.getReleaseenddate()
- : releaseenddate;
- missionstatementurl = d.getMissionstatementurl() != null && compareTrust(this, e) < 0
- ? d.getMissionstatementurl()
- : missionstatementurl;
- dataprovider = d.getDataprovider() != null && compareTrust(this, e) < 0
- ? d.getDataprovider()
- : dataprovider;
- serviceprovider = d.getServiceprovider() != null && compareTrust(this, e) < 0
- ? d.getServiceprovider()
- : serviceprovider;
-
- // {open, restricted or closed}
- databaseaccesstype = d.getDatabaseaccesstype() != null && compareTrust(this, e) < 0
- ? d.getDatabaseaccesstype()
- : databaseaccesstype;
-
- // {open, restricted or closed}
- datauploadtype = d.getDatauploadtype() != null && compareTrust(this, e) < 0
- ? d.getDatauploadtype()
- : datauploadtype;
-
- // {feeRequired, registration, other}
- databaseaccessrestriction = d.getDatabaseaccessrestriction() != null && compareTrust(this, e) < 0
- ? d.getDatabaseaccessrestriction()
- : databaseaccessrestriction;
-
- // {feeRequired, registration, other}
- datauploadrestriction = d.getDatauploadrestriction() != null && compareTrust(this, e) < 0
- ? d.getDatauploadrestriction()
- : datauploadrestriction;
-
- versioning = d.getVersioning() != null && compareTrust(this, e) < 0 ? d.getVersioning() : versioning;
- citationguidelineurl = d.getCitationguidelineurl() != null && compareTrust(this, e) < 0
- ? d.getCitationguidelineurl()
- : citationguidelineurl;
-
- // {yes, no, unknown}
- qualitymanagementkind = d.getQualitymanagementkind() != null && compareTrust(this, e) < 0
- ? d.getQualitymanagementkind()
- : qualitymanagementkind;
- pidsystems = d.getPidsystems() != null && compareTrust(this, e) < 0 ? d.getPidsystems() : pidsystems;
-
- certificates = d.getCertificates() != null && compareTrust(this, e) < 0
- ? d.getCertificates()
- : certificates;
-
- policies = mergeLists(policies, d.getPolicies());
-
- journal = d.getJournal() != null && compareTrust(this, e) < 0 ? d.getJournal() : journal;
-
- providedentitytypes = mergeLists(providedentitytypes, d.getProvidedentitytypes());;
-
- providedproducttypes = mergeLists(providedproducttypes, d.getProvidedproducttypes());;
-
- jurisdiction = d.getJurisdiction() != null && compareTrust(this, e) < 0
- ? d.getJurisdiction()
- : jurisdiction;
-
- thematic = d.getThematic() != null && compareTrust(this, e) < 0
- ? d.getThematic()
- : thematic;
-
- knowledgegraph = d.getKnowledgegraph() != null && compareTrust(this, e) < 0
- ? d.getKnowledgegraph()
- : knowledgegraph;
-
- contentpolicies = mergeLists(contentpolicies, d.getContentpolicies());;
-
- mergeOAFDataInfo(e);
}
}