diff --git a/dhp-common/pom.xml b/dhp-common/pom.xml
index b295bc1f1..4b5a8f2cc 100644
--- a/dhp-common/pom.xml
+++ b/dhp-common/pom.xml
@@ -6,7 +6,7 @@
eu.dnetlib.dhpdhp1.2.4-SNAPSHOT
- ../
+ ../pom.xmldhp-common
@@ -101,7 +101,6 @@
eu.dnetlib.dhpdhp-schemas
- ${project.version}
diff --git a/dhp-common/src/main/java/eu/dnetlib/data/mdstore/manager/common/model/MDStore.java b/dhp-common/src/main/java/eu/dnetlib/data/mdstore/manager/common/model/MDStore.java
deleted file mode 100644
index 68fc024af..000000000
--- a/dhp-common/src/main/java/eu/dnetlib/data/mdstore/manager/common/model/MDStore.java
+++ /dev/null
@@ -1,119 +0,0 @@
-
-package eu.dnetlib.data.mdstore.manager.common.model;
-
-import java.io.Serializable;
-import java.util.UUID;
-
-import javax.persistence.Column;
-import javax.persistence.Entity;
-import javax.persistence.Id;
-import javax.persistence.Table;
-
-@Entity
-@Table(name = "mdstores")
-public class MDStore implements Serializable {
-
- /** */
- private static final long serialVersionUID = 3160530489149700055L;
-
- @Id
- @Column(name = "id")
- private String id;
-
- @Column(name = "format")
- private String format;
-
- @Column(name = "layout")
- private String layout;
-
- @Column(name = "interpretation")
- private String interpretation;
-
- @Column(name = "datasource_name")
- private String datasourceName;
-
- @Column(name = "datasource_id")
- private String datasourceId;
-
- @Column(name = "api_id")
- private String apiId;
-
- public String getId() {
- return id;
- }
-
- public void setId(final String id) {
- this.id = id;
- }
-
- public String getFormat() {
- return format;
- }
-
- public void setFormat(final String format) {
- this.format = format;
- }
-
- public String getLayout() {
- return layout;
- }
-
- public void setLayout(final String layout) {
- this.layout = layout;
- }
-
- public String getInterpretation() {
- return interpretation;
- }
-
- public void setInterpretation(final String interpretation) {
- this.interpretation = interpretation;
- }
-
- public String getDatasourceName() {
- return datasourceName;
- }
-
- public void setDatasourceName(final String datasourceName) {
- this.datasourceName = datasourceName;
- }
-
- public String getDatasourceId() {
- return datasourceId;
- }
-
- public void setDatasourceId(final String datasourceId) {
- this.datasourceId = datasourceId;
- }
-
- public String getApiId() {
- return apiId;
- }
-
- public void setApiId(final String apiId) {
- this.apiId = apiId;
- }
-
- public static MDStore newInstance(
- final String format, final String layout, final String interpretation) {
- return newInstance(format, layout, interpretation, null, null, null);
- }
-
- public static MDStore newInstance(
- final String format,
- final String layout,
- final String interpretation,
- final String dsName,
- final String dsId,
- final String apiId) {
- final MDStore md = new MDStore();
- md.setId("md-" + UUID.randomUUID());
- md.setFormat(format);
- md.setLayout(layout);
- md.setInterpretation(interpretation);
- md.setDatasourceName(dsName);
- md.setDatasourceId(dsId);
- md.setApiId(apiId);
- return md;
- }
-}
diff --git a/dhp-common/src/main/java/eu/dnetlib/data/mdstore/manager/common/model/MDStoreCurrentVersion.java b/dhp-common/src/main/java/eu/dnetlib/data/mdstore/manager/common/model/MDStoreCurrentVersion.java
deleted file mode 100644
index f74ab39be..000000000
--- a/dhp-common/src/main/java/eu/dnetlib/data/mdstore/manager/common/model/MDStoreCurrentVersion.java
+++ /dev/null
@@ -1,51 +0,0 @@
-
-package eu.dnetlib.data.mdstore.manager.common.model;
-
-import java.io.Serializable;
-
-import javax.persistence.Column;
-import javax.persistence.Entity;
-import javax.persistence.Id;
-import javax.persistence.Table;
-
-@Entity
-@Table(name = "mdstore_current_versions")
-public class MDStoreCurrentVersion implements Serializable {
-
- /** */
- private static final long serialVersionUID = -4757725888593745773L;
-
- @Id
- @Column(name = "mdstore")
- private String mdstore;
-
- @Column(name = "current_version")
- private String currentVersion;
-
- public String getMdstore() {
- return mdstore;
- }
-
- public void setMdstore(final String mdstore) {
- this.mdstore = mdstore;
- }
-
- public String getCurrentVersion() {
- return currentVersion;
- }
-
- public void setCurrentVersion(final String currentVersion) {
- this.currentVersion = currentVersion;
- }
-
- public static MDStoreCurrentVersion newInstance(final String mdId, final String versionId) {
- final MDStoreCurrentVersion cv = new MDStoreCurrentVersion();
- cv.setMdstore(mdId);
- cv.setCurrentVersion(versionId);
- return cv;
- }
-
- public static MDStoreCurrentVersion newInstance(final MDStoreVersion v) {
- return newInstance(v.getMdstore(), v.getId());
- }
-}
diff --git a/dhp-common/src/main/java/eu/dnetlib/data/mdstore/manager/common/model/MDStoreVersion.java b/dhp-common/src/main/java/eu/dnetlib/data/mdstore/manager/common/model/MDStoreVersion.java
deleted file mode 100644
index 7ef24f191..000000000
--- a/dhp-common/src/main/java/eu/dnetlib/data/mdstore/manager/common/model/MDStoreVersion.java
+++ /dev/null
@@ -1,99 +0,0 @@
-
-package eu.dnetlib.data.mdstore.manager.common.model;
-
-import java.io.Serializable;
-import java.util.Date;
-
-import javax.persistence.Column;
-import javax.persistence.Entity;
-import javax.persistence.Id;
-import javax.persistence.Table;
-import javax.persistence.Temporal;
-import javax.persistence.TemporalType;
-
-@Entity
-@Table(name = "mdstore_versions")
-public class MDStoreVersion implements Serializable {
-
- /** */
- private static final long serialVersionUID = -4763494442274298339L;
-
- @Id
- @Column(name = "id")
- private String id;
-
- @Column(name = "mdstore")
- private String mdstore;
-
- @Column(name = "writing")
- private boolean writing;
-
- @Column(name = "readcount")
- private int readCount = 0;
-
- @Column(name = "lastupdate")
- @Temporal(TemporalType.TIMESTAMP)
- private Date lastUpdate;
-
- @Column(name = "size")
- private long size = 0;
-
- public static MDStoreVersion newInstance(final String mdId, final boolean writing) {
- final MDStoreVersion t = new MDStoreVersion();
- t.setId(mdId + "-" + new Date().getTime());
- t.setMdstore(mdId);
- t.setLastUpdate(null);
- t.setWriting(writing);
- t.setReadCount(0);
- t.setSize(0);
- return t;
- }
-
- public String getId() {
- return id;
- }
-
- public void setId(final String id) {
- this.id = id;
- }
-
- public String getMdstore() {
- return mdstore;
- }
-
- public void setMdstore(final String mdstore) {
- this.mdstore = mdstore;
- }
-
- public boolean isWriting() {
- return writing;
- }
-
- public void setWriting(final boolean writing) {
- this.writing = writing;
- }
-
- public int getReadCount() {
- return readCount;
- }
-
- public void setReadCount(final int readCount) {
- this.readCount = readCount;
- }
-
- public Date getLastUpdate() {
- return lastUpdate;
- }
-
- public void setLastUpdate(final Date lastUpdate) {
- this.lastUpdate = lastUpdate;
- }
-
- public long getSize() {
- return size;
- }
-
- public void setSize(final long size) {
- this.size = size;
- }
-}
diff --git a/dhp-common/src/main/java/eu/dnetlib/data/mdstore/manager/common/model/MDStoreWithInfo.java b/dhp-common/src/main/java/eu/dnetlib/data/mdstore/manager/common/model/MDStoreWithInfo.java
deleted file mode 100644
index 438359241..000000000
--- a/dhp-common/src/main/java/eu/dnetlib/data/mdstore/manager/common/model/MDStoreWithInfo.java
+++ /dev/null
@@ -1,143 +0,0 @@
-
-package eu.dnetlib.data.mdstore.manager.common.model;
-
-import java.io.Serializable;
-import java.util.Date;
-
-import javax.persistence.Column;
-import javax.persistence.Entity;
-import javax.persistence.Id;
-import javax.persistence.Table;
-import javax.persistence.Temporal;
-import javax.persistence.TemporalType;
-
-@Entity
-@Table(name = "mdstores_with_info")
-public class MDStoreWithInfo implements Serializable {
-
- /** */
- private static final long serialVersionUID = -8445784770687571492L;
-
- @Id
- @Column(name = "id")
- private String id;
-
- @Column(name = "format")
- private String format;
-
- @Column(name = "layout")
- private String layout;
-
- @Column(name = "interpretation")
- private String interpretation;
-
- @Column(name = "datasource_name")
- private String datasourceName;
-
- @Column(name = "datasource_id")
- private String datasourceId;
-
- @Column(name = "api_id")
- private String apiId;
-
- @Column(name = "current_version")
- private String currentVersion;
-
- @Column(name = "lastupdate")
- @Temporal(TemporalType.TIMESTAMP)
- private Date lastUpdate;
-
- @Column(name = "size")
- private long size = 0;
-
- @Column(name = "n_versions")
- private long numberOfVersions = 0;
-
- public String getId() {
- return id;
- }
-
- public void setId(final String id) {
- this.id = id;
- }
-
- public String getFormat() {
- return format;
- }
-
- public void setFormat(final String format) {
- this.format = format;
- }
-
- public String getLayout() {
- return layout;
- }
-
- public void setLayout(final String layout) {
- this.layout = layout;
- }
-
- public String getInterpretation() {
- return interpretation;
- }
-
- public void setInterpretation(final String interpretation) {
- this.interpretation = interpretation;
- }
-
- public String getDatasourceName() {
- return datasourceName;
- }
-
- public void setDatasourceName(final String datasourceName) {
- this.datasourceName = datasourceName;
- }
-
- public String getDatasourceId() {
- return datasourceId;
- }
-
- public void setDatasourceId(final String datasourceId) {
- this.datasourceId = datasourceId;
- }
-
- public String getApiId() {
- return apiId;
- }
-
- public void setApiId(final String apiId) {
- this.apiId = apiId;
- }
-
- public String getCurrentVersion() {
- return currentVersion;
- }
-
- public void setCurrentVersion(final String currentVersion) {
- this.currentVersion = currentVersion;
- }
-
- public Date getLastUpdate() {
- return lastUpdate;
- }
-
- public void setLastUpdate(final Date lastUpdate) {
- this.lastUpdate = lastUpdate;
- }
-
- public long getSize() {
- return size;
- }
-
- public void setSize(final long size) {
- this.size = size;
- }
-
- public long getNumberOfVersions() {
- return numberOfVersions;
- }
-
- public void setNumberOfVersions(final long numberOfVersions) {
- this.numberOfVersions = numberOfVersions;
- }
-}
diff --git a/dhp-common/src/main/java/eu/dnetlib/dhp/schema/oaf/OafMapperUtils.java b/dhp-common/src/main/java/eu/dnetlib/dhp/schema/oaf/OafMapperUtils.java
index 4a66f91dc..19be8b9e4 100644
--- a/dhp-common/src/main/java/eu/dnetlib/dhp/schema/oaf/OafMapperUtils.java
+++ b/dhp-common/src/main/java/eu/dnetlib/dhp/schema/oaf/OafMapperUtils.java
@@ -13,6 +13,8 @@ import java.util.stream.Collectors;
import org.apache.commons.lang3.StringUtils;
+import com.google.common.base.Joiner;
+
import eu.dnetlib.dhp.schema.common.ModelSupport;
import eu.dnetlib.dhp.utils.DHPUtils;
@@ -183,7 +185,8 @@ public class OafMapperUtils {
final String issnOnline,
final String issnLinking,
final DataInfo dataInfo) {
- return journal(
+
+ return hasIssn(issnPrinted, issnOnline, issnLinking) ? journal(
name,
issnPrinted,
issnOnline,
@@ -195,7 +198,7 @@ public class OafMapperUtils {
null,
null,
null,
- dataInfo);
+ dataInfo) : null;
}
public static Journal journal(
@@ -212,10 +215,7 @@ public class OafMapperUtils {
final String conferencedate,
final DataInfo dataInfo) {
- if (StringUtils.isNotBlank(name)
- || StringUtils.isNotBlank(issnPrinted)
- || StringUtils.isNotBlank(issnOnline)
- || StringUtils.isNotBlank(issnLinking)) {
+ if (StringUtils.isNotBlank(name) || hasIssn(issnPrinted, issnOnline, issnLinking)) {
final Journal j = new Journal();
j.setName(name);
j.setIssnPrinted(issnPrinted);
@@ -235,6 +235,12 @@ public class OafMapperUtils {
}
}
+ private static boolean hasIssn(String issnPrinted, String issnOnline, String issnLinking) {
+ return StringUtils.isNotBlank(issnPrinted)
+ || StringUtils.isNotBlank(issnOnline)
+ || StringUtils.isNotBlank(issnLinking);
+ }
+
public static DataInfo dataInfo(
final Boolean deletedbyinference,
final String inferenceprovenance,
diff --git a/dhp-common/src/main/java/eu/dnetlib/dhp/utils/ISLookupClientFactory.java b/dhp-common/src/main/java/eu/dnetlib/dhp/utils/ISLookupClientFactory.java
index 9552eb2b3..9af390f9c 100644
--- a/dhp-common/src/main/java/eu/dnetlib/dhp/utils/ISLookupClientFactory.java
+++ b/dhp-common/src/main/java/eu/dnetlib/dhp/utils/ISLookupClientFactory.java
@@ -1,11 +1,11 @@
package eu.dnetlib.dhp.utils;
-import java.util.Map;
-
-import javax.xml.ws.BindingProvider;
-
+import org.apache.cxf.endpoint.Client;
+import org.apache.cxf.frontend.ClientProxy;
import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;
+import org.apache.cxf.transport.http.HTTPConduit;
+import org.apache.cxf.transports.http.configuration.HTTPClientPolicy;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -31,20 +31,23 @@ public class ISLookupClientFactory {
final T service = (T) jaxWsProxyFactory.create();
- if (service instanceof BindingProvider) {
+ Client client = ClientProxy.getClient(service);
+ if (client != null) {
+ HTTPConduit conduit = (HTTPConduit) client.getConduit();
+ HTTPClientPolicy policy = new HTTPClientPolicy();
+
log
.info(
- "setting timeouts for {} to requestTimeout: {}, connectTimeout: {}",
- BindingProvider.class.getName(), requestTimeout, connectTimeout);
+ String
+ .format(
+ "setting connectTimeout to %s, requestTimeout to %s for service %s",
+ connectTimeout,
+ requestTimeout,
+ clazz.getCanonicalName()));
- Map requestContext = ((BindingProvider) service).getRequestContext();
-
- requestContext.put("com.sun.xml.internal.ws.request.timeout", requestTimeout);
- requestContext.put("com.sun.xml.internal.ws.connect.timeout", connectTimeout);
- requestContext.put("com.sun.xml.ws.request.timeout", requestTimeout);
- requestContext.put("com.sun.xml.ws.connect.timeout", connectTimeout);
- requestContext.put("javax.xml.ws.client.receiveTimeout", requestTimeout);
- requestContext.put("javax.xml.ws.client.connectionTimeout", connectTimeout);
+ policy.setConnectionTimeout(connectTimeout);
+ policy.setReceiveTimeout(requestTimeout);
+ conduit.setClient(policy);
}
return service;
diff --git a/dhp-schemas/README.md b/dhp-schemas/README.md
deleted file mode 100644
index 7431cda42..000000000
--- a/dhp-schemas/README.md
+++ /dev/null
@@ -1,11 +0,0 @@
-Description of the project
---------------------------
-This project defines **object schemas** of the OpenAIRE main entities and the relationships that intercur among them.
-Namely it defines the model for
-
-- **research product (result)** which subclasses in publication, dataset, other research product, software
-- **data source** object describing the data provider (institutional repository, aggregators, cris systems)
-- **organization** research bodies managing a data source or participating to a research project
-- **project** research project
-
-Te serialization of such objects (data store files) are used to pass data between workflow nodes in the processing pipeline.
diff --git a/dhp-schemas/pom.xml b/dhp-schemas/pom.xml
deleted file mode 100644
index 73efeabb4..000000000
--- a/dhp-schemas/pom.xml
+++ /dev/null
@@ -1,73 +0,0 @@
-
-
- 4.0.0
-
-
- eu.dnetlib.dhp
- dhp
- 1.2.4-SNAPSHOT
- ../pom.xml
-
-
- dhp-schemas
- jar
-
- This module contains common schema classes meant to be used across the dnet-hadoop submodules
-
-
-
-
- net.alchim31.maven
- scala-maven-plugin
- 4.0.1
-
-
- scala-compile-first
- initialize
-
- add-source
- compile
-
-
-
- scala-test-compile
- process-test-resources
-
- testCompile
-
-
-
-
- ${scala.version}
-
-
-
-
-
-
-
-
-
- commons-io
- commons-io
-
-
-
- org.apache.commons
- commons-lang3
-
-
-
- com.fasterxml.jackson.core
- jackson-databind
-
-
-
- com.google.guava
- guava
-
-
-
-
-
-
diff --git a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/action/AtomicAction.java b/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/action/AtomicAction.java
deleted file mode 100644
index 84b22c81c..000000000
--- a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/action/AtomicAction.java
+++ /dev/null
@@ -1,40 +0,0 @@
-
-package eu.dnetlib.dhp.schema.action;
-
-import java.io.Serializable;
-
-import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
-
-import eu.dnetlib.dhp.schema.oaf.Oaf;
-
-@JsonDeserialize(using = AtomicActionDeserializer.class)
-public class AtomicAction implements Serializable {
-
- private Class clazz;
-
- private T payload;
-
- public AtomicAction() {
- }
-
- public AtomicAction(Class clazz, T payload) {
- this.clazz = clazz;
- this.payload = payload;
- }
-
- public Class getClazz() {
- return clazz;
- }
-
- public void setClazz(Class clazz) {
- this.clazz = clazz;
- }
-
- public T getPayload() {
- return payload;
- }
-
- public void setPayload(T payload) {
- this.payload = payload;
- }
-}
diff --git a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/action/AtomicActionDeserializer.java b/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/action/AtomicActionDeserializer.java
deleted file mode 100644
index 7b88e9c7e..000000000
--- a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/action/AtomicActionDeserializer.java
+++ /dev/null
@@ -1,32 +0,0 @@
-
-package eu.dnetlib.dhp.schema.action;
-
-import java.io.IOException;
-
-import com.fasterxml.jackson.core.JsonParser;
-import com.fasterxml.jackson.core.JsonProcessingException;
-import com.fasterxml.jackson.databind.DeserializationContext;
-import com.fasterxml.jackson.databind.JsonDeserializer;
-import com.fasterxml.jackson.databind.JsonNode;
-import com.fasterxml.jackson.databind.ObjectMapper;
-
-import eu.dnetlib.dhp.schema.oaf.Oaf;
-
-public class AtomicActionDeserializer extends JsonDeserializer {
-
- @Override
- public Object deserialize(JsonParser jp, DeserializationContext ctxt)
- throws IOException {
- JsonNode node = jp.getCodec().readTree(jp);
- String classTag = node.get("clazz").asText();
- JsonNode payload = node.get("payload");
- ObjectMapper mapper = new ObjectMapper();
-
- try {
- final Class> clazz = Class.forName(classTag);
- return new AtomicAction(clazz, (Oaf) mapper.readValue(payload.toString(), clazz));
- } catch (ClassNotFoundException e) {
- throw new IOException(e);
- }
- }
-}
diff --git a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/common/EntityType.java b/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/common/EntityType.java
deleted file mode 100644
index 54f30cf33..000000000
--- a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/common/EntityType.java
+++ /dev/null
@@ -1,21 +0,0 @@
-
-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;
-
- /**
- * Resolves the EntityType, given the relative class name
- *
- * @param clazz the given class name
- * @param actual OafEntity subclass
- * @return the EntityType associated to the given class
- */
- public static EntityType fromClass(Class clazz) {
-
- return EntityType.valueOf(clazz.getSimpleName().toLowerCase());
- }
-}
diff --git a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/common/LicenseComparator.java b/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/common/LicenseComparator.java
deleted file mode 100644
index db523ad1a..000000000
--- a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/common/LicenseComparator.java
+++ /dev/null
@@ -1,69 +0,0 @@
-
-package eu.dnetlib.dhp.schema.common;
-
-import java.util.Comparator;
-
-import eu.dnetlib.dhp.schema.oaf.Qualifier;
-
-public class LicenseComparator implements Comparator {
-
- @Override
- public int compare(Qualifier left, Qualifier right) {
-
- if (left == null && right == null)
- return 0;
- if (left == null)
- return 1;
- if (right == null)
- return -1;
-
- String lClass = left.getClassid();
- String rClass = right.getClassid();
-
- if (lClass.equals(rClass))
- return 0;
-
- if (lClass.equals("OPEN SOURCE"))
- return -1;
- if (rClass.equals("OPEN SOURCE"))
- return 1;
-
- if (lClass.equals("OPEN"))
- return -1;
- if (rClass.equals("OPEN"))
- return 1;
-
- if (lClass.equals("6MONTHS"))
- return -1;
- if (rClass.equals("6MONTHS"))
- return 1;
-
- if (lClass.equals("12MONTHS"))
- return -1;
- if (rClass.equals("12MONTHS"))
- return 1;
-
- if (lClass.equals("EMBARGO"))
- return -1;
- if (rClass.equals("EMBARGO"))
- return 1;
-
- if (lClass.equals("RESTRICTED"))
- return -1;
- if (rClass.equals("RESTRICTED"))
- return 1;
-
- if (lClass.equals("CLOSED"))
- return -1;
- if (rClass.equals("CLOSED"))
- return 1;
-
- if (lClass.equals("UNKNOWN"))
- return -1;
- if (rClass.equals("UNKNOWN"))
- return 1;
-
- // Else (but unlikely), lexicographical ordering will do.
- return lClass.compareTo(rClass);
- }
-}
diff --git a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/common/MainEntityType.java b/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/common/MainEntityType.java
deleted file mode 100644
index cda8ba484..000000000
--- a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/common/MainEntityType.java
+++ /dev/null
@@ -1,7 +0,0 @@
-
-package eu.dnetlib.dhp.schema.common;
-
-/** Main entity types in the Graph */
-public enum MainEntityType {
- result, datasource, organization, project
-}
diff --git a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/common/ModelConstants.java b/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/common/ModelConstants.java
deleted file mode 100644
index bff92ecf9..000000000
--- a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/common/ModelConstants.java
+++ /dev/null
@@ -1,130 +0,0 @@
-
-package eu.dnetlib.dhp.schema.common;
-
-import eu.dnetlib.dhp.schema.oaf.DataInfo;
-import eu.dnetlib.dhp.schema.oaf.KeyValue;
-import eu.dnetlib.dhp.schema.oaf.Qualifier;
-
-public class ModelConstants {
-
- public static final String ORCID = "orcid";
- public static final String ORCID_PENDING = "orcid_pending";
- public static final String ORCID_CLASSNAME = "Open Researcher and Contributor ID";
-
- public static final String DNET_SUBJECT_TYPOLOGIES = "dnet:subject_classification_typologies";
- public static final String DNET_RESULT_TYPOLOGIES = "dnet:result_typologies";
- public static final String DNET_PUBLICATION_RESOURCE = "dnet:publication_resource";
- public static final String DNET_ACCESS_MODES = "dnet:access_modes";
- public static final String DNET_LANGUAGES = "dnet:languages";
- public static final String DNET_PID_TYPES = "dnet:pid_types";
- public static final String DNET_DATA_CITE_DATE = "dnet:dataCite_date";
- public static final String DNET_DATA_CITE_RESOURCE = "dnet:dataCite_resource";
- public static final String DNET_PROVENANCE_ACTIONS = "dnet:provenanceActions";
- public static final String DNET_COUNTRY_TYPE = "dnet:countries";
- public static final String DNET_REVIEW_LEVELS = "dnet:review_levels";
-
- public static final String SYSIMPORT_CROSSWALK_REPOSITORY = "sysimport:crosswalk:repository";
- public static final String SYSIMPORT_CROSSWALK_ENTITYREGISTRY = "sysimport:crosswalk:entityregistry";
- public static final String USER_CLAIM = "user:claim";
-
- public static final String DATASET_RESULTTYPE_CLASSID = "dataset";
- public static final String PUBLICATION_RESULTTYPE_CLASSID = "publication";
- public static final String SOFTWARE_RESULTTYPE_CLASSID = "software";
- public static final String ORP_RESULTTYPE_CLASSID = "other";
-
- public static final String RESULT_RESULT = "resultResult";
- /**
- * @deprecated Use {@link ModelConstants#RELATIONSHIP} instead.
- */
- @Deprecated
- public static final String PUBLICATION_DATASET = "publicationDataset";
- public static final String IS_RELATED_TO = "isRelatedTo";
- public static final String SUPPLEMENT = "supplement";
- public static final String IS_SUPPLEMENT_TO = "isSupplementTo";
- public static final String IS_SUPPLEMENTED_BY = "isSupplementedBy";
- public static final String PART = "part";
- public static final String IS_PART_OF = "isPartOf";
- public static final String HAS_PARTS = "hasParts";
- public static final String RELATIONSHIP = "relationship";
- public static final String CITATION = "citation";
- public static final String CITES = "cites";
- public static final String IS_CITED_BY = "isCitedBy";
- public static final String REVIEW = "review";
- public static final String REVIEWS = "reviews";
- public static final String IS_REVIEWED_BY = "isReviewedBy";
-
- public static final String RESULT_PROJECT = "resultProject";
- public static final String OUTCOME = "outcome";
- public static final String IS_PRODUCED_BY = "isProducedBy";
- public static final String PRODUCES = "produces";
-
- public static final String DATASOURCE_ORGANIZATION = "datasourceOrganization";
- public static final String PROVISION = "provision";
- public static final String IS_PROVIDED_BY = "isProvidedBy";
- public static final String PROVIDES = "provides";
-
- public static final String PROJECT_ORGANIZATION = "projectOrganization";
- public static final String PARTICIPATION = "participation";
- public static final String HAS_PARTICIPANT = "hasParticipant";
- public static final String IS_PARTICIPANT = "isParticipant";
-
- public static final String RESULT_ORGANIZATION = "resultOrganization";
- public static final String AFFILIATION = "affiliation";
- public static final String IS_AUTHOR_INSTITUTION_OF = "isAuthorInstitutionOf";
- public static final String HAS_AUTHOR_INSTITUTION = "hasAuthorInstitution";
-
- public static final String MERGES = "merges";
-
- public static final String UNKNOWN = "UNKNOWN";
- public static final String NOT_AVAILABLE = "not available";
-
- public static final Qualifier PUBLICATION_DEFAULT_RESULTTYPE = qualifier(
- PUBLICATION_RESULTTYPE_CLASSID, PUBLICATION_RESULTTYPE_CLASSID,
- DNET_RESULT_TYPOLOGIES, DNET_RESULT_TYPOLOGIES);
-
- public static final Qualifier DATASET_DEFAULT_RESULTTYPE = qualifier(
- DATASET_RESULTTYPE_CLASSID, DATASET_RESULTTYPE_CLASSID,
- DNET_RESULT_TYPOLOGIES, DNET_RESULT_TYPOLOGIES);
-
- public static final Qualifier SOFTWARE_DEFAULT_RESULTTYPE = qualifier(
- SOFTWARE_RESULTTYPE_CLASSID, SOFTWARE_RESULTTYPE_CLASSID,
- DNET_RESULT_TYPOLOGIES, DNET_RESULT_TYPOLOGIES);
-
- public static final Qualifier ORP_DEFAULT_RESULTTYPE = qualifier(
- ORP_RESULTTYPE_CLASSID, ORP_RESULTTYPE_CLASSID,
- DNET_RESULT_TYPOLOGIES, DNET_RESULT_TYPOLOGIES);
-
- public static final Qualifier REPOSITORY_PROVENANCE_ACTIONS = qualifier(
- SYSIMPORT_CROSSWALK_REPOSITORY, SYSIMPORT_CROSSWALK_REPOSITORY,
- DNET_PROVENANCE_ACTIONS, DNET_PROVENANCE_ACTIONS);
-
- public static final Qualifier ENTITYREGISTRY_PROVENANCE_ACTION = qualifier(
- SYSIMPORT_CROSSWALK_ENTITYREGISTRY, SYSIMPORT_CROSSWALK_ENTITYREGISTRY,
- DNET_PROVENANCE_ACTIONS, DNET_PROVENANCE_ACTIONS);
-
- public static final KeyValue UNKNOWN_REPOSITORY = keyValue(
- "10|openaire____::55045bd2a65019fd8e6741a755395c8c", "Unknown Repository");
-
- public static final Qualifier UNKNOWN_COUNTRY = qualifier(UNKNOWN, "Unknown", DNET_COUNTRY_TYPE, DNET_COUNTRY_TYPE);
-
- private static Qualifier qualifier(
- final String classid,
- final String classname,
- final String schemeid,
- final String schemename) {
- final Qualifier q = new Qualifier();
- q.setClassid(classid);
- q.setClassname(classname);
- q.setSchemeid(schemeid);
- q.setSchemename(schemename);
- return q;
- }
-
- private static KeyValue keyValue(String key, String value) {
- KeyValue kv = new KeyValue();
- kv.setKey(key);
- kv.setValue(value);
- kv.setDataInfo(new DataInfo());
- return kv;
- }
-}
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
deleted file mode 100644
index a92e11b5a..000000000
--- a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/common/ModelSupport.java
+++ /dev/null
@@ -1,501 +0,0 @@
-
-package eu.dnetlib.dhp.schema.common;
-
-import static com.google.common.base.Preconditions.checkArgument;
-
-import java.text.ParseException;
-import java.text.SimpleDateFormat;
-import java.time.Instant;
-import java.time.format.DateTimeFormatter;
-import java.time.temporal.TemporalAccessor;
-import java.util.Date;
-import java.util.Map;
-import java.util.Objects;
-import java.util.Optional;
-import java.util.function.Function;
-
-import org.apache.commons.lang3.StringUtils;
-
-import com.google.common.collect.Maps;
-
-import eu.dnetlib.dhp.schema.oaf.*;
-
-/** Oaf model utility methods. */
-public class ModelSupport {
-
- /** Defines the mapping between the actual entity type and the main entity type */
- private static Map entityMapping = Maps.newHashMap();
-
- static {
- entityMapping.put(EntityType.publication, MainEntityType.result);
- entityMapping.put(EntityType.dataset, MainEntityType.result);
- entityMapping.put(EntityType.otherresearchproduct, MainEntityType.result);
- entityMapping.put(EntityType.software, MainEntityType.result);
- entityMapping.put(EntityType.datasource, MainEntityType.datasource);
- entityMapping.put(EntityType.organization, MainEntityType.organization);
- entityMapping.put(EntityType.project, MainEntityType.project);
- }
-
- /**
- * Defines the mapping between the actual entity types and the relative classes implementing them
- */
- public static final Map entityTypes = Maps.newHashMap();
-
- static {
- entityTypes.put(EntityType.datasource, Datasource.class);
- entityTypes.put(EntityType.organization, Organization.class);
- entityTypes.put(EntityType.project, Project.class);
- entityTypes.put(EntityType.dataset, Dataset.class);
- entityTypes.put(EntityType.otherresearchproduct, OtherResearchProduct.class);
- entityTypes.put(EntityType.software, Software.class);
- entityTypes.put(EntityType.publication, Publication.class);
- }
-
- public static final Map oafTypes = Maps.newHashMap();
-
- static {
- oafTypes.put("datasource", Datasource.class);
- oafTypes.put("organization", Organization.class);
- oafTypes.put("project", Project.class);
- oafTypes.put("dataset", Dataset.class);
- oafTypes.put("otherresearchproduct", OtherResearchProduct.class);
- oafTypes.put("software", Software.class);
- oafTypes.put("publication", Publication.class);
- oafTypes.put("relation", Relation.class);
- }
-
- public static final Map idPrefixMap = Maps.newHashMap();
-
- static {
- idPrefixMap.put(Datasource.class, "10");
- idPrefixMap.put(Organization.class, "20");
- idPrefixMap.put(Project.class, "40");
- idPrefixMap.put(Dataset.class, "50");
- idPrefixMap.put(OtherResearchProduct.class, "50");
- idPrefixMap.put(Software.class, "50");
- idPrefixMap.put(Publication.class, "50");
- }
-
- public static final Map entityIdPrefix = Maps.newHashMap();
-
- static {
- entityIdPrefix.put("datasource", "10");
- entityIdPrefix.put("organization", "20");
- entityIdPrefix.put("project", "40");
- 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 {
- relationInverseMap
- .put(
- "personResult_authorship_isAuthorOf", new RelationInverse()
- .setRelation("isAuthorOf")
- .setInverse("hasAuthor")
- .setRelType("personResult")
- .setSubReltype("authorship"));
- relationInverseMap
- .put(
- "personResult_authorship_hasAuthor", new RelationInverse()
- .setInverse("isAuthorOf")
- .setRelation("hasAuthor")
- .setRelType("personResult")
- .setSubReltype("authorship"));
- relationInverseMap
- .put(
- "projectOrganization_participation_isParticipant", new RelationInverse()
- .setRelation("isParticipant")
- .setInverse("hasParticipant")
- .setRelType("projectOrganization")
- .setSubReltype("participation"));
- relationInverseMap
- .put(
- "projectOrganization_participation_hasParticipant", new RelationInverse()
- .setInverse("isParticipant")
- .setRelation("hasParticipant")
- .setRelType("projectOrganization")
- .setSubReltype("participation"));
- relationInverseMap
- .put(
- "resultOrganization_affiliation_hasAuthorInstitution", new RelationInverse()
- .setRelation("hasAuthorInstitution")
- .setInverse("isAuthorInstitutionOf")
- .setRelType("resultOrganization")
- .setSubReltype("affiliation"));
- relationInverseMap
- .put(
- "resultOrganization_affiliation_isAuthorInstitutionOf", new RelationInverse()
- .setInverse("hasAuthorInstitution")
- .setRelation("isAuthorInstitutionOf")
- .setRelType("resultOrganization")
- .setSubReltype("affiliation"));
- relationInverseMap
- .put(
- "organizationOrganization_dedup_merges", new RelationInverse()
- .setRelation("merges")
- .setInverse("isMergedIn")
- .setRelType("organizationOrganization")
- .setSubReltype("dedup"));
- relationInverseMap
- .put(
- "organizationOrganization_dedup_isMergedIn", new RelationInverse()
- .setInverse("merges")
- .setRelation("isMergedIn")
- .setRelType("organizationOrganization")
- .setSubReltype("dedup"));
- relationInverseMap
- .put(
- "organizationOrganization_dedupSimilarity_isSimilarTo", new RelationInverse()
- .setInverse("isSimilarTo")
- .setRelation("isSimilarTo")
- .setRelType("organizationOrganization")
- .setSubReltype("dedupSimilarity"));
-
- relationInverseMap
- .put(
- "resultProject_outcome_isProducedBy", new RelationInverse()
- .setRelation("isProducedBy")
- .setInverse("produces")
- .setRelType("resultProject")
- .setSubReltype("outcome"));
- relationInverseMap
- .put(
- "resultProject_outcome_produces", new RelationInverse()
- .setInverse("isProducedBy")
- .setRelation("produces")
- .setRelType("resultProject")
- .setSubReltype("outcome"));
- relationInverseMap
- .put(
- "projectPerson_contactPerson_isContact", new RelationInverse()
- .setRelation("isContact")
- .setInverse("hasContact")
- .setRelType("projectPerson")
- .setSubReltype("contactPerson"));
- relationInverseMap
- .put(
- "projectPerson_contactPerson_hasContact", new RelationInverse()
- .setInverse("isContact")
- .setRelation("hasContact")
- .setRelType("personPerson")
- .setSubReltype("coAuthorship"));
- relationInverseMap
- .put(
- "personPerson_coAuthorship_isCoauthorOf", new RelationInverse()
- .setInverse("isCoAuthorOf")
- .setRelation("isCoAuthorOf")
- .setRelType("personPerson")
- .setSubReltype("coAuthorship"));
- relationInverseMap
- .put(
- "personPerson_dedup_merges", new RelationInverse()
- .setInverse("isMergedIn")
- .setRelation("merges")
- .setRelType("personPerson")
- .setSubReltype("dedup"));
- relationInverseMap
- .put(
- "personPerson_dedup_isMergedIn", new RelationInverse()
- .setInverse("merges")
- .setRelation("isMergedIn")
- .setRelType("personPerson")
- .setSubReltype("dedup"));
- relationInverseMap
- .put(
- "personPerson_dedupSimilarity_isSimilarTo", new RelationInverse()
- .setInverse("isSimilarTo")
- .setRelation("isSimilarTo")
- .setRelType("personPerson")
- .setSubReltype("dedupSimilarity"));
- relationInverseMap
- .put(
- "datasourceOrganization_provision_isProvidedBy", new RelationInverse()
- .setInverse("provides")
- .setRelation("isProvidedBy")
- .setRelType("datasourceOrganization")
- .setSubReltype("provision"));
- relationInverseMap
- .put(
- "datasourceOrganization_provision_provides", new RelationInverse()
- .setInverse("isProvidedBy")
- .setRelation("provides")
- .setRelType("datasourceOrganization")
- .setSubReltype("provision"));
- relationInverseMap
- .put(
- "resultResult_similarity_hasAmongTopNSimilarDocuments", new RelationInverse()
- .setInverse("isAmongTopNSimilarDocuments")
- .setRelation("hasAmongTopNSimilarDocuments")
- .setRelType("resultResult")
- .setSubReltype("similarity"));
- relationInverseMap
- .put(
- "resultResult_similarity_isAmongTopNSimilarDocuments", new RelationInverse()
- .setInverse("hasAmongTopNSimilarDocuments")
- .setRelation("isAmongTopNSimilarDocuments")
- .setRelType("resultResult")
- .setSubReltype("similarity"));
- relationInverseMap
- .put(
- "resultResult_relationship_isRelatedTo", new RelationInverse()
- .setInverse("isRelatedTo")
- .setRelation("isRelatedTo")
- .setRelType("resultResult")
- .setSubReltype("relationship"));
- relationInverseMap
- .put(
- "resultResult_similarity_isAmongTopNSimilarDocuments", new RelationInverse()
- .setInverse("hasAmongTopNSimilarDocuments")
- .setRelation("isAmongTopNSimilarDocuments")
- .setRelType("resultResult")
- .setSubReltype("similarity"));
- relationInverseMap
- .put(
- "resultResult_supplement_isSupplementTo", new RelationInverse()
- .setInverse("isSupplementedBy")
- .setRelation("isSupplementTo")
- .setRelType("resultResult")
- .setSubReltype("supplement"));
- relationInverseMap
- .put(
- "resultResult_supplement_isSupplementedBy", new RelationInverse()
- .setInverse("isSupplementTo")
- .setRelation("isSupplementedBy")
- .setRelType("resultResult")
- .setSubReltype("supplement"));
- relationInverseMap
- .put(
- "resultResult_part_isPartOf", new RelationInverse()
- .setInverse("hasPart")
- .setRelation("isPartOf")
- .setRelType("resultResult")
- .setSubReltype("part"));
- relationInverseMap
- .put(
- "resultResult_part_hasPart", new RelationInverse()
- .setInverse("isPartOf")
- .setRelation("hasPart")
- .setRelType("resultResult")
- .setSubReltype("part"));
- relationInverseMap
- .put(
- "resultResult_dedup_merges", new RelationInverse()
- .setInverse("isMergedIn")
- .setRelation("merges")
- .setRelType("resultResult")
- .setSubReltype("dedup"));
- relationInverseMap
- .put(
- "resultResult_dedup_isMergedIn", new RelationInverse()
- .setInverse("merges")
- .setRelation("isMergedIn")
- .setRelType("resultResult")
- .setSubReltype("dedup"));
- relationInverseMap
- .put(
- "resultResult_dedupSimilarity_isSimilarTo", new RelationInverse()
- .setInverse("isSimilarTo")
- .setRelation("isSimilarTo")
- .setRelType("resultResult")
- .setSubReltype("dedupSimilarity"));
-
- }
-
- private static final String schemeTemplate = "dnet:%s_%s_relations";
-
- private ModelSupport() {
- }
-
- public static String getIdPrefix(Class clazz) {
- return idPrefixMap.get(clazz);
- }
-
- /**
- * Checks subclass-superclass relationship.
- *
- * @param subClazzObject Subclass object instance
- * @param superClazzObject Superclass object instance
- * @param Subclass type
- * @param Superclass type
- * @return True if X is a subclass of Y
- */
- public static Boolean isSubClass(
- X subClazzObject, Y superClazzObject) {
- return isSubClass(subClazzObject.getClass(), superClazzObject.getClass());
- }
-
- /**
- * Checks subclass-superclass relationship.
- *
- * @param subClazzObject Subclass object instance
- * @param superClazz Superclass class
- * @param Subclass type
- * @param Superclass type
- * @return True if X is a subclass of Y
- */
- public static Boolean isSubClass(
- X subClazzObject, Class superClazz) {
- return isSubClass(subClazzObject.getClass(), superClazz);
- }
-
- /**
- * Checks subclass-superclass relationship.
- *
- * @param subClazz Subclass class
- * @param superClazz Superclass class
- * @param Subclass type
- * @param Superclass type
- * @return True if X is a subclass of Y
- */
- public static Boolean isSubClass(
- Class subClazz, Class superClazz) {
- return superClazz.isAssignableFrom(subClazz);
- }
-
- /**
- * Lists all the OAF model classes
- *
- * @param
- * @return
- */
- public static Class[] getOafModelClasses() {
- return new Class[] {
- Author.class,
- Context.class,
- Country.class,
- DataInfo.class,
- Dataset.class,
- Datasource.class,
- ExternalReference.class,
- ExtraInfo.class,
- Field.class,
- GeoLocation.class,
- Instance.class,
- Journal.class,
- KeyValue.class,
- Oaf.class,
- OafEntity.class,
- OAIProvenance.class,
- Organization.class,
- OriginDescription.class,
- OtherResearchProduct.class,
- Project.class,
- Publication.class,
- Qualifier.class,
- Relation.class,
- Result.class,
- Software.class,
- StructuredProperty.class
- };
- }
-
- public static String getMainType(final EntityType type) {
- return entityMapping.get(type).name();
- }
-
- public static boolean isResult(EntityType type) {
- return MainEntityType.result.name().equals(getMainType(type));
- }
-
- public static String getScheme(final String sourceType, final String targetType) {
- return String
- .format(
- schemeTemplate,
- entityMapping.get(EntityType.valueOf(sourceType)).name(),
- entityMapping.get(EntityType.valueOf(targetType)).name());
- }
-
- public static String tableIdentifier(String dbName, String tableName) {
-
- checkArgument(StringUtils.isNotBlank(dbName), "DB name cannot be empty");
- checkArgument(StringUtils.isNotBlank(tableName), "table name cannot be empty");
-
- return String.format("%s.%s", dbName, tableName);
- }
-
- public static String tableIdentifier(String dbName, Class clazz) {
-
- checkArgument(Objects.nonNull(clazz), "clazz is needed to derive the table name, thus cannot be null");
-
- return tableIdentifier(dbName, clazz.getSimpleName().toLowerCase());
- }
-
- public static Function idFn() {
- return x -> {
- if (isSubClass(x, Relation.class)) {
- return idFnForRelation(x);
- }
- return idFnForOafEntity(x);
- };
- }
-
- private static String idFnForRelation(T t) {
- Relation r = (Relation) t;
- return Optional
- .ofNullable(r.getSource())
- .map(
- source -> Optional
- .ofNullable(r.getTarget())
- .map(
- target -> Optional
- .ofNullable(r.getRelType())
- .map(
- relType -> Optional
- .ofNullable(r.getSubRelType())
- .map(
- subRelType -> Optional
- .ofNullable(r.getRelClass())
- .map(
- relClass -> String
- .join(
- source,
- target,
- relType,
- subRelType,
- relClass))
- .orElse(
- String
- .join(
- source,
- target,
- relType,
- subRelType)))
- .orElse(String.join(source, target, relType)))
- .orElse(String.join(source, target)))
- .orElse(source))
- .orElse(null);
- }
-
- private static String idFnForOafEntity(T t) {
- return ((OafEntity) t).getId();
- }
-
- public static String oldest(String dateA, String dateB) throws ParseException {
-
- if (StringUtils.isBlank(dateA)) {
- return dateB;
- }
- if (StringUtils.isBlank(dateB)) {
- return dateA;
- }
- if (StringUtils.isNotBlank(dateA) && StringUtils.isNotBlank(dateB)) {
-
- final Date a = Date.from(Instant.from(DateTimeFormatter.ISO_INSTANT.parse(dateA)));
- final Date b = Date.from(Instant.from(DateTimeFormatter.ISO_INSTANT.parse(dateB)));
-
- return a.before(b) ? dateA : dateB;
- } else {
- return null;
- }
- }
-}
diff --git a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/common/RelationInverse.java b/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/common/RelationInverse.java
deleted file mode 100644
index 4757c637e..000000000
--- a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/common/RelationInverse.java
+++ /dev/null
@@ -1,46 +0,0 @@
-
-package eu.dnetlib.dhp.schema.common;
-
-public class RelationInverse {
- private String relation;
- private String inverse;
- private String relType;
- private String subReltype;
-
- public String getRelType() {
- return relType;
- }
-
- public RelationInverse setRelType(String relType) {
- this.relType = relType;
- return this;
- }
-
- public String getSubReltype() {
- return subReltype;
- }
-
- public RelationInverse setSubReltype(String subReltype) {
- this.subReltype = subReltype;
- return this;
- }
-
- public String getRelation() {
- return relation;
- }
-
- public RelationInverse setRelation(String relation) {
- this.relation = relation;
- return this;
- }
-
- public String getInverse() {
- return inverse;
- }
-
- public RelationInverse setInverse(String inverse) {
- this.inverse = inverse;
- return this;
- }
-
-}
diff --git a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/APC.java b/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/APC.java
deleted file mode 100644
index 7f5dcb397..000000000
--- a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/APC.java
+++ /dev/null
@@ -1,29 +0,0 @@
-
-package eu.dnetlib.dhp.schema.dump.oaf;
-
-import java.io.Serializable;
-
-/**
- * Used to refer to the Article Processing Charge information. Not dumped in this release. It contains two parameters: -
- * currency of type String to store the currency of the APC - amount of type String to stores the charged amount
- */
-public class APC implements Serializable {
- private String currency;
- private String amount;
-
- public String getCurrency() {
- return currency;
- }
-
- public void setCurrency(String currency) {
- this.currency = currency;
- }
-
- public String getAmount() {
- return amount;
- }
-
- public void setAmount(String amount) {
- this.amount = amount;
- }
-}
diff --git a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/AccessRight.java b/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/AccessRight.java
deleted file mode 100644
index f28c544f6..000000000
--- a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/AccessRight.java
+++ /dev/null
@@ -1,31 +0,0 @@
-
-package eu.dnetlib.dhp.schema.dump.oaf;
-
-/**
- * AccessRight. Used to represent the result access rights. It extends the eu.dnet.lib.dhp.schema.dump.oaf.Qualifier
- * element with a parameter scheme of type String to store the scheme. Values for this element are found against the
- * COAR access right scheme. The classid of the element accessright in eu.dnetlib.dhp.schema.oaf.Result is used to get
- * the COAR corresponding code whose value will be used to set the code parameter. The COAR label corresponding to the
- * COAR code will be used to set the label parameter. The scheme value will always be the one referring to the COAR
- * access right scheme
- */
-public class AccessRight extends Qualifier {
-
- private String scheme;
-
- public String getScheme() {
- return scheme;
- }
-
- public void setScheme(String scheme) {
- this.scheme = scheme;
- }
-
- public static AccessRight newInstance(String code, String label, String scheme) {
- AccessRight ar = new AccessRight();
- ar.setCode(code);
- ar.setLabel(label);
- ar.setScheme(scheme);
- return ar;
- }
-}
diff --git a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/Author.java b/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/Author.java
deleted file mode 100644
index 34920bcf7..000000000
--- a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/Author.java
+++ /dev/null
@@ -1,73 +0,0 @@
-
-package eu.dnetlib.dhp.schema.dump.oaf;
-
-import java.io.Serializable;
-import java.util.List;
-
-/**
- * Used to represent the generic author of the result. It has six parameters: - name of type String to store the given
- * name of the author. The value for this parameter corresponds to eu.dnetlib.dhp.schema.oaf.Author name - surname of
- * type String to store the family name of the author. The value for this parameter corresponds to
- * eu.dnetlib.dhp.schema.oaf.Author surname - fullname of type String to store the fullname of the author. The value for
- * this parameter corresponds to eu.dnetlib.dhp.schema.oaf.Author fullname - rank of type Integer to store the rank on
- * the author in the result's authors list. The value for this parameter corresponds to eu.dnetlib.dhp.schema.oaf.Author
- * rank - pid of type eu.dnetlib.dhp.schema.dump.oaf.Pid to store the persistent identifier for the author. For the
- * moment only ORCID identifiers will be dumped. - The id element is instantiated by using the following values in the
- * eu.dnetlib.dhp.schema.oaf.Result pid: * Qualifier.classid for scheme * value for value - The provenance element is
- * instantiated only if the dataInfo is set for the pid in the result to be dumped. The provenance element is
- * instantiated by using the following values in the eu.dnetlib.dhp.schema.oaf.Result pid: *
- * dataInfo.provenanceaction.classname for provenance * dataInfo.trust for trust
- */
-public class Author implements Serializable {
-
- private String fullname;
-
- private String name;
-
- private String surname;
-
- private Integer rank;
-
- private Pid pid;
-
- public String getFullname() {
- return fullname;
- }
-
- public void setFullname(String fullname) {
- this.fullname = fullname;
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public String getSurname() {
- return surname;
- }
-
- public void setSurname(String surname) {
- this.surname = surname;
- }
-
- public Integer getRank() {
- return rank;
- }
-
- public void setRank(Integer rank) {
- this.rank = rank;
- }
-
- public Pid getPid() {
- return pid;
- }
-
- public void setPid(Pid pid) {
- this.pid = pid;
- }
-
-}
diff --git a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/Container.java b/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/Container.java
deleted file mode 100644
index 8699528ca..000000000
--- a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/Container.java
+++ /dev/null
@@ -1,136 +0,0 @@
-
-package eu.dnetlib.dhp.schema.dump.oaf;
-
-import java.io.Serializable;
-import java.util.Objects;
-
-/**
- * To store information about the conference or journal where the result has been presented or published. It contains
- * eleven parameters: - name of type String to store the name of the journal or conference. It corresponds to the
- * parameter name of eu.dnetlib.dhp.schema.oaf.Journal - issnPrinted ot type String to store the journal printed issn.
- * It corresponds to the parameter issnPrinted of eu.dnetlib.dhp.schema.oaf.Journal - issnOnline of type String to store
- * the journal online issn. It corresponds to the parameter issnOnline of eu.dnetlib.dhp.schema.oaf.Journal -
- * issnLinking of type String to store the journal linking issn. It corresponds to the parameter issnLinking of
- * eu.dnetlib.dhp.schema.oaf.Journal - ep of type String to store the end page. It corresponds to the parameter ep of
- * eu.dnetlib.dhp.schema.oaf.Journal - iss of type String to store the journal issue. It corresponds to the parameter
- * iss of eu.dnetlib.dhp.schema.oaf.Journal - sp of type String to store the start page. It corresponds to the parameter
- * sp of eu.dnetlib.dhp.schema.oaf.Journal - vol of type String to store the Volume. It corresponds to the parameter vol
- * of eu.dnetlib.dhp.schema.oaf.Journal - edition of type String to store the edition of the journal or conference
- * proceeding. It corresponds to the parameter edition of eu.dnetlib.dhp.schema.oaf.Journal - conferenceplace of type
- * String to store the place of the conference. It corresponds to the parameter conferenceplace of
- * eu.dnetlib.dhp.schema.oaf.Journal - conferencedate of type String to store the date of the conference. It corresponds
- * to the parameter conferencedate of eu.dnetlib.dhp.schema.oaf.Journal
- */
-public class Container implements Serializable {
-
- private String name;
-
- private String issnPrinted;
-
- private String issnOnline;
-
- private String issnLinking;
-
- private String ep;
-
- private String iss;
-
- private String sp;
-
- private String vol;
-
- private String edition;
-
- private String conferenceplace;
-
- private String conferencedate;
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public String getIssnPrinted() {
- return issnPrinted;
- }
-
- public void setIssnPrinted(String issnPrinted) {
- this.issnPrinted = issnPrinted;
- }
-
- public String getIssnOnline() {
- return issnOnline;
- }
-
- public void setIssnOnline(String issnOnline) {
- this.issnOnline = issnOnline;
- }
-
- public String getIssnLinking() {
- return issnLinking;
- }
-
- public void setIssnLinking(String issnLinking) {
- this.issnLinking = issnLinking;
- }
-
- public String getEp() {
- return ep;
- }
-
- public void setEp(String ep) {
- this.ep = ep;
- }
-
- public String getIss() {
- return iss;
- }
-
- public void setIss(String iss) {
- this.iss = iss;
- }
-
- public String getSp() {
- return sp;
- }
-
- public void setSp(String sp) {
- this.sp = sp;
- }
-
- public String getVol() {
- return vol;
- }
-
- public void setVol(String vol) {
- this.vol = vol;
- }
-
- public String getEdition() {
- return edition;
- }
-
- public void setEdition(String edition) {
- this.edition = edition;
- }
-
- public String getConferenceplace() {
- return conferenceplace;
- }
-
- public void setConferenceplace(String conferenceplace) {
- this.conferenceplace = conferenceplace;
- }
-
- public String getConferencedate() {
- return conferencedate;
- }
-
- public void setConferencedate(String conferencedate) {
- this.conferencedate = conferencedate;
- }
-
-}
diff --git a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/ControlledField.java b/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/ControlledField.java
deleted file mode 100644
index cad7b8b5c..000000000
--- a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/ControlledField.java
+++ /dev/null
@@ -1,38 +0,0 @@
-
-package eu.dnetlib.dhp.schema.dump.oaf;
-
-import java.io.Serializable;
-
-/**
- * To represent the information described by a scheme and a value in that scheme (i.e. pid). It has two parameters: -
- * scheme of type String to store the scheme - value of type String to store the value in that scheme
- */
-public class ControlledField implements Serializable {
- private String scheme;
- private String value;
-
- public String getScheme() {
- return scheme;
- }
-
- public void setScheme(String scheme) {
- this.scheme = scheme;
- }
-
- public String getValue() {
- return value;
- }
-
- public void setValue(String value) {
- this.value = value;
- }
-
- public static ControlledField newInstance(String scheme, String value) {
- ControlledField cf = new ControlledField();
-
- cf.setScheme(scheme);
- cf.setValue(value);
-
- return cf;
- }
-}
diff --git a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/Country.java b/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/Country.java
deleted file mode 100644
index 3ab4d90fe..000000000
--- a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/Country.java
+++ /dev/null
@@ -1,37 +0,0 @@
-
-package eu.dnetlib.dhp.schema.dump.oaf;
-
-/**
- * Represents the country associated to this result. It extends eu.dnetlib.dhp.schema.dump.oaf.Qualifier with a
- * provenance parameter of type eu.dnetlib.dhp.schema.dumo.oaf.Provenance. The country in not mapped if its value in the
- * result reprensented in the internal format is Unknown. The value for this element correspond to: - code corresponds
- * to the classid of eu.dnetlib.dhp.schema.oaf.Country - label corresponds to the classname of
- * eu.dnetlib.dhp.schema.oaf.Country - provenance set only if the dataInfo associated to the Country of the result to be
- * dumped is not null. In this case : - provenance corresponds to dataInfo.provenanceaction.classid (to be modified with
- * datainfo.provenanceaction.classname) - trust corresponds to dataInfo.trust
- */
-public class Country extends Qualifier {
-
- private Provenance provenance;
-
- public Provenance getProvenance() {
- return provenance;
- }
-
- public void setProvenance(Provenance provenance) {
- this.provenance = provenance;
- }
-
- public static Country newInstance(String code, String label, Provenance provenance) {
- Country c = new Country();
- c.setProvenance(provenance);
- c.setCode(code);
- c.setLabel(label);
- return c;
- }
-
- public static Country newInstance(String code, String label, String provenance, String trust) {
- return newInstance(code, label, Provenance.newInstance(provenance, trust));
- }
-
-}
diff --git a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/Funder.java b/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/Funder.java
deleted file mode 100644
index 16cab22cc..000000000
--- a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/Funder.java
+++ /dev/null
@@ -1,36 +0,0 @@
-
-package eu.dnetlib.dhp.schema.dump.oaf;
-
-import java.io.Serializable;
-
-public class Funder implements Serializable {
- private String shortName;
-
- private String name;
-
- private String jurisdiction;
-
- public String getJurisdiction() {
- return jurisdiction;
- }
-
- public void setJurisdiction(String jurisdiction) {
- this.jurisdiction = jurisdiction;
- }
-
- public String getShortName() {
- return shortName;
- }
-
- public void setShortName(String shortName) {
- this.shortName = shortName;
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-}
diff --git a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/GeoLocation.java b/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/GeoLocation.java
deleted file mode 100644
index 6bd891bbd..000000000
--- a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/GeoLocation.java
+++ /dev/null
@@ -1,53 +0,0 @@
-
-package eu.dnetlib.dhp.schema.dump.oaf;
-
-import java.io.Serializable;
-
-import org.apache.commons.lang3.StringUtils;
-
-import com.fasterxml.jackson.annotation.JsonIgnore;
-
-/**
- * Represents the geolocation information. It has three parameters: - point of type String to store the point
- * information. It corresponds to eu.dnetlib.dhp.schema.oaf.GeoLocation point - box ot type String to store the box
- * information. It corresponds to eu.dnetlib.dhp.schema.oaf.GeoLocation box - place of type String to store the place
- * information. It corresponds to eu.dnetlib.dhp.schema.oaf.GeoLocation place
- */
-public class GeoLocation implements Serializable {
-
- private String point;
-
- private String box;
-
- private String place;
-
- public String getPoint() {
- return point;
- }
-
- public void setPoint(String point) {
- this.point = point;
- }
-
- public String getBox() {
- return box;
- }
-
- public void setBox(String box) {
- this.box = box;
- }
-
- public String getPlace() {
- return place;
- }
-
- public void setPlace(String place) {
- this.place = place;
- }
-
- @JsonIgnore
- public boolean isBlank() {
- return StringUtils.isBlank(point) && StringUtils.isBlank(box) && StringUtils.isBlank(place);
- }
-
-}
diff --git a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/Instance.java b/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/Instance.java
deleted file mode 100644
index edc6f28f5..000000000
--- a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/Instance.java
+++ /dev/null
@@ -1,81 +0,0 @@
-
-package eu.dnetlib.dhp.schema.dump.oaf;
-
-import java.io.Serializable;
-import java.util.List;
-
-/**
- * Represents the manifestations (i.e. different versions) of the result. For example: the pre-print and the published
- * versions are two manifestations of the same research result. It has the following parameters: - license of type
- * String to store the license applied to the instance. It corresponds to the value of the licence in the instance to be
- * dumped - accessright of type eu.dnetlib.dhp.schema.dump.oaf.AccessRight to store the accessright of the instance. -
- * type of type String to store the type of the instance as defined in the corresponding dnet vocabulary
- * (dnet:pubication_resource). It corresponds to the instancetype.classname of the instance to be mapped - url of type
- * List list of locations where the instance is accessible. It corresponds to url of the instance to be dumped -
- * publicationdate of type String to store the publication date of the instance ;// dateofacceptance; - refereed of type
- * String to store information abour tthe review status of the instance. Possible values are 'Unknown',
- * 'nonPeerReviewed', 'peerReviewed'. It corresponds to refereed.classname of the instance to be dumped
- */
-public class Instance implements Serializable {
-
- private String license;
-
- private AccessRight accessright;
-
- private String type;
-
- private List url;
-
- private String publicationdate;// dateofacceptance;
-
- private String refereed; // peer-review status
-
- public String getLicense() {
- return license;
- }
-
- public void setLicense(String license) {
- this.license = license;
- }
-
- public AccessRight getAccessright() {
- return accessright;
- }
-
- public void setAccessright(AccessRight accessright) {
- this.accessright = accessright;
- }
-
- public String getType() {
- return type;
- }
-
- public void setType(String type) {
- this.type = type;
- }
-
- public List getUrl() {
- return url;
- }
-
- public void setUrl(List url) {
- this.url = url;
- }
-
- public String getPublicationdate() {
- return publicationdate;
- }
-
- public void setPublicationdate(String publicationdate) {
- this.publicationdate = publicationdate;
- }
-
- public String getRefereed() {
- return refereed;
- }
-
- public void setRefereed(String refereed) {
- this.refereed = refereed;
- }
-
-}
diff --git a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/KeyValue.java b/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/KeyValue.java
deleted file mode 100644
index 849aa4d3c..000000000
--- a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/KeyValue.java
+++ /dev/null
@@ -1,48 +0,0 @@
-
-package eu.dnetlib.dhp.schema.dump.oaf;
-
-import java.io.Serializable;
-
-import org.apache.commons.lang3.StringUtils;
-
-import com.fasterxml.jackson.annotation.JsonIgnore;
-
-/**
- * To represent the information described by a key and a value. It has two parameters: - key to store the key (generally
- * the OpenAIRE id for some entity) - value to store the value (generally the OpenAIRE name for the key)
- */
-public class KeyValue implements Serializable {
-
- private String key;
-
- private String value;
-
- public String getKey() {
- return key;
- }
-
- public void setKey(String key) {
- this.key = key;
- }
-
- public String getValue() {
- return value;
- }
-
- public void setValue(String value) {
- this.value = value;
- }
-
- public static KeyValue newInstance(String key, String value) {
- KeyValue inst = new KeyValue();
- inst.key = key;
- inst.value = value;
- return inst;
- }
-
- @JsonIgnore
- public boolean isBlank() {
- return StringUtils.isBlank(key) && StringUtils.isBlank(value);
- }
-
-}
diff --git a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/Pid.java b/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/Pid.java
deleted file mode 100644
index 786ddb1d7..000000000
--- a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/Pid.java
+++ /dev/null
@@ -1,45 +0,0 @@
-
-package eu.dnetlib.dhp.schema.dump.oaf;
-
-import java.io.Serializable;
-
-/**
- * To represent the generic persistent identifier. It has two parameters: - id of type
- * eu.dnetlib.dhp.schema.dump.oaf.ControlledField to store the scheme and value of the Persistent Identifier. -
- * provenance of type eu.dnetlib.dhp.schema.dump.oaf.Provenance to store the provenance and trust of the information
- */
-public class Pid implements Serializable {
- private ControlledField id;
- private Provenance provenance;
-
- public ControlledField getId() {
- return id;
- }
-
- public void setId(ControlledField pid) {
- this.id = pid;
- }
-
- public Provenance getProvenance() {
- return provenance;
- }
-
- public void setProvenance(Provenance provenance) {
- this.provenance = provenance;
- }
-
- public static Pid newInstance(ControlledField pid, Provenance provenance) {
- Pid p = new Pid();
- p.id = pid;
- p.provenance = provenance;
-
- return p;
- }
-
- public static Pid newInstance(ControlledField pid) {
- Pid p = new Pid();
- p.id = pid;
-
- return p;
- }
-}
diff --git a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/Project.java b/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/Project.java
deleted file mode 100644
index 00cd7a0fb..000000000
--- a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/Project.java
+++ /dev/null
@@ -1,51 +0,0 @@
-
-package eu.dnetlib.dhp.schema.dump.oaf;
-
-import java.io.Serializable;
-
-/**
- * This class to store the common information about the project that will be dumped for community and for the whole
- * graph - private String id to store the id of the project (OpenAIRE id) - private String code to store the grant
- * agreement of the project - private String acronym to store the acronym of the project - private String title to store
- * the tile of the project
- */
-public class Project implements Serializable {
- protected String id;// OpenAIRE id
- protected String code;
-
- protected String acronym;
-
- protected String title;
-
- public String getId() {
- return id;
- }
-
- public void setId(String id) {
- this.id = id;
- }
-
- public String getCode() {
- return code;
- }
-
- public void setCode(String code) {
- this.code = code;
- }
-
- public String getAcronym() {
- return acronym;
- }
-
- public void setAcronym(String acronym) {
- this.acronym = acronym;
- }
-
- public String getTitle() {
- return title;
- }
-
- public void setTitle(String title) {
- this.title = title;
- }
-}
diff --git a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/Provenance.java b/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/Provenance.java
deleted file mode 100644
index 28fb3aaa6..000000000
--- a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/Provenance.java
+++ /dev/null
@@ -1,41 +0,0 @@
-
-package eu.dnetlib.dhp.schema.dump.oaf;
-
-import java.io.Serializable;
-
-/**
- * Indicates the process that produced (or provided) the information, and the trust associated to the information. It
- * has two parameters: - provenance of type String to store the provenance of the information, - trust of type String to
- * store the trust associated to the information
- */
-public class Provenance implements Serializable {
- private String provenance;
- private String trust;
-
- public String getProvenance() {
- return provenance;
- }
-
- public void setProvenance(String provenance) {
- this.provenance = provenance;
- }
-
- public String getTrust() {
- return trust;
- }
-
- public void setTrust(String trust) {
- this.trust = trust;
- }
-
- public static Provenance newInstance(String provenance, String trust) {
- Provenance p = new Provenance();
- p.provenance = provenance;
- p.trust = trust;
- return p;
- }
-
- public String toString() {
- return provenance + trust;
- }
-}
diff --git a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/Qualifier.java b/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/Qualifier.java
deleted file mode 100644
index 348c22b31..000000000
--- a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/Qualifier.java
+++ /dev/null
@@ -1,42 +0,0 @@
-
-package eu.dnetlib.dhp.schema.dump.oaf;
-
-import java.io.Serializable;
-
-import org.apache.commons.lang3.StringUtils;
-
-import com.fasterxml.jackson.annotation.JsonIgnore;
-
-/**
- * To represent the information described by a code and a value It has two parameters: - code to store the code
- * (generally the classid of the eu.dnetlib.dhp.schema.oaf.Qualifier element) - label to store the label (generally the
- * classname of the eu.dnetlib.dhp.schema.oaf.Qualifier element
- */
-public class Qualifier implements Serializable {
-
- private String code; // the classid in the Qualifier
- private String label; // the classname in the Qualifier
-
- public String getCode() {
- return code;
- }
-
- public void setCode(String code) {
- this.code = code;
- }
-
- public String getLabel() {
- return label;
- }
-
- public void setLabel(String label) {
- this.label = label;
- }
-
- public static Qualifier newInstance(String code, String value) {
- Qualifier qualifier = new Qualifier();
- qualifier.setCode(code);
- qualifier.setLabel(value);
- return qualifier;
- }
-}
diff --git a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/Result.java b/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/Result.java
deleted file mode 100644
index 88ab2c334..000000000
--- a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/Result.java
+++ /dev/null
@@ -1,379 +0,0 @@
-
-package eu.dnetlib.dhp.schema.dump.oaf;
-
-import java.io.Serializable;
-import java.util.List;
-
-import eu.dnetlib.dhp.schema.dump.oaf.community.Project;
-
-/**
- * To represent the dumped result. It will be extended in the dump for Research Communities - Research
- * Initiative/Infrastructures. It has the following parameters: - author of type
- * List to describe the authors of a result. For each author in the result
- * represented in the internal model one author in the esternal model is produced. - type of type String to represent
- * the category of the result. Possible values are publication, dataset, software, other. It corresponds to
- * resulttype.classname of the dumped result - language of type eu.dnetlib.dhp.schema.dump.oaf.Qualifier to store
- * information about the language of the result. It is dumped as - code corresponds to language.classid - value
- * corresponds to language.classname - country of type List to store the country
- * list to which the result is associated. For each country in the result respresented in the internal model one country
- * in the external model is produces - subjects of type List to store the subjects for
- * the result. For each subject in the result represented in the internal model one subject in the external model is
- * produced - maintitle of type String to store the main title of the result. It corresponds to the value of the first
- * title in the resul to be dumped having classid equals to "main title" - subtitle of type String to store the subtitle
- * of the result. It corresponds to the value of the first title in the resul to be dumped having classid equals to
- * "subtitle" - description of type List to store the description of the result. It corresponds to the list of
- * description.value in the result represented in the internal model - publicationdate of type String to store the
- * pubblication date. It corresponds to dateofacceptance.value in the result represented in the internal model -
- * publisher of type String to store information about the publisher. It corresponds to publisher.value of the result
- * represented in the intrenal model - embargoenddate of type String to store the embargo end date. It corresponds to
- * embargoenddate.value of the result represented in the internal model - source of type List See definition of
- * Dublin Core field dc:source. It corresponds to the list of source.value in the result represented in the internal
- * model - format of type List It corresponds to the list of format.value in the result represented in the
- * internal model - contributor of type List to represent contributors for this result. It corresponds to the
- * list of contributor.value in the result represented in the internal model - coverage of type String. It corresponds
- * to the list of coverage.value in the result represented in the internal model - bestaccessright of type
- * eu.dnetlib.dhp.schema.dump.oaf.AccessRight to store informatin about the openest access right associated to the
- * manifestations of this research results. It corresponds to the same parameter in the result represented in the
- * internal model - container of type eu.dnetlib.dhp.schema/dump.oaf.Container (only for result of type publication). It
- * corresponds to the parameter journal of the result represented in the internal model - documentationUrl of type
- * List (only for results of type software) to store the URLs to the software documentation. It corresponds to
- * the list of documentationUrl.value of the result represented in the internal model - codeRepositoryUrl of type String
- * (only for results of type software) to store the URL to the repository with the source code. It corresponds to
- * codeRepositoryUrl.value of the result represented in the internal model - programmingLanguage of type String (only
- * for results of type software) to store the programming language. It corresponds to programmingLanguaga.classid of the
- * result represented in the internal model - contactperson of type List (only for results of type other) to
- * store the contact person for this result. It corresponds to the list of contactperson.value of the result represented
- * in the internal model - contactgroup of type List (only for results of type other) to store the information
- * for the contact group. It corresponds to the list of contactgroup.value of the result represented in the internal
- * model - tool of type List (only fro results of type other) to store information about tool useful for the
- * interpretation and/or re-used of the research product. It corresponds to the list of tool.value in the result
- * represented in the internal modelt - size of type String (only for results of type dataset) to store the size of the
- * dataset. It corresponds to size.value in the result represented in the internal model - version of type String (only
- * for results of type dataset) to store the version. It corresponds to version.value of the result represented in the
- * internal model - geolocation fo type List (only for results of type
- * dataset) to store geolocation information. For each geolocation element in the result represented in the internal
- * model a GeoLocation in the external model il produced - id of type String to store the OpenAIRE id of the result. It
- * corresponds to the id of the result represented in the internal model - originalId of type List to store the
- * original ids of the result. It corresponds to the originalId of the result represented in the internal model - pid of
- * type List to store the persistent identifiers for the result. For
- * each pid in the results represented in the internal model one pid in the external model is produced. The value
- * correspondence is: - scheme corresponds to pid.qualifier.classid of the result represented in the internal model -
- * value corresponds to the pid.value of the result represented in the internal model - dateofcollection of type String
- * to store information about the time OpenAIRE collected the record. It corresponds to dateofcollection of the result
- * represented in the internal model - lasteupdatetimestamp of type String to store the timestamp of the last update of
- * the record. It corresponds to lastupdatetimestamp of the resord represented in the internal model
- */
-public class Result implements Serializable {
-
- private List author;
-
- // resulttype allows subclassing results into publications | datasets | software
- private String type; // resulttype
-
- // common fields
- private Qualifier language;
-
- private List country;
-
- private List subjects;
-
- private String maintitle;
-
- private String subtitle;
-
- private List description;
-
- private String publicationdate; // dateofacceptance;
-
- private String publisher;
-
- private String embargoenddate;
-
- private List source;
-
- private List format;
-
- private List contributor;
-
- private List coverage;
-
- private AccessRight bestaccessright;
-
- private Container container;// Journal
-
- private List documentationUrl; // software
-
- private String codeRepositoryUrl; // software
-
- private String programmingLanguage; // software
-
- private List contactperson; // orp
-
- private List contactgroup; // orp
-
- private List tool; // orp
-
- private String size; // dataset
-
- private String version; // dataset
-
- private List geolocation; // dataset
-
- private String id;
-
- private List originalId;
-
- private List pid;
-
- private String dateofcollection;
-
- private Long lastupdatetimestamp;
-
- public Long getLastupdatetimestamp() {
- return lastupdatetimestamp;
- }
-
- public void setLastupdatetimestamp(Long lastupdatetimestamp) {
- this.lastupdatetimestamp = lastupdatetimestamp;
- }
-
- public String getId() {
- return id;
- }
-
- public void setId(String id) {
- this.id = id;
- }
-
- public List getOriginalId() {
- return originalId;
- }
-
- public void setOriginalId(List originalId) {
- this.originalId = originalId;
- }
-
- 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 getAuthor() {
- return author;
- }
-
- public String getType() {
- return type;
- }
-
- public void setType(String type) {
- this.type = type;
- }
-
- public Container getContainer() {
- return container;
- }
-
- public void setContainer(Container container) {
- this.container = container;
- }
-
- public void setAuthor(List author) {
- this.author = author;
- }
-
- public Qualifier getLanguage() {
- return language;
- }
-
- public void setLanguage(Qualifier language) {
- this.language = language;
- }
-
- public List getCountry() {
- return country;
- }
-
- public void setCountry(List country) {
- this.country = country;
- }
-
- public List getSubjects() {
- return subjects;
- }
-
- public void setSubjects(List subjects) {
- this.subjects = subjects;
- }
-
- public String getMaintitle() {
- return maintitle;
- }
-
- public void setMaintitle(String maintitle) {
- this.maintitle = maintitle;
- }
-
- public String getSubtitle() {
- return subtitle;
- }
-
- public void setSubtitle(String subtitle) {
- this.subtitle = subtitle;
- }
-
- public List getDescription() {
- return description;
- }
-
- public void setDescription(List description) {
- this.description = description;
- }
-
- public String getPublicationdate() {
- return publicationdate;
- }
-
- public void setPublicationdate(String publicationdate) {
- this.publicationdate = publicationdate;
- }
-
- public String getPublisher() {
- return publisher;
- }
-
- public void setPublisher(String publisher) {
- this.publisher = publisher;
- }
-
- public String getEmbargoenddate() {
- return embargoenddate;
- }
-
- public void setEmbargoenddate(String embargoenddate) {
- this.embargoenddate = embargoenddate;
- }
-
- public List getSource() {
- return source;
- }
-
- public void setSource(List source) {
- this.source = source;
- }
-
- public List getFormat() {
- return format;
- }
-
- public void setFormat(List format) {
- this.format = format;
- }
-
- public List getContributor() {
- return contributor;
- }
-
- public void setContributor(List contributor) {
- this.contributor = contributor;
- }
-
- public List getCoverage() {
- return coverage;
- }
-
- public void setCoverage(List coverage) {
- this.coverage = coverage;
- }
-
- public AccessRight getBestaccessright() {
- return bestaccessright;
- }
-
- public void setBestaccessright(AccessRight bestaccessright) {
- this.bestaccessright = bestaccessright;
- }
-
- public List getDocumentationUrl() {
- return documentationUrl;
- }
-
- public void setDocumentationUrl(List documentationUrl) {
- this.documentationUrl = documentationUrl;
- }
-
- public String getCodeRepositoryUrl() {
- return codeRepositoryUrl;
- }
-
- public void setCodeRepositoryUrl(String codeRepositoryUrl) {
- this.codeRepositoryUrl = codeRepositoryUrl;
- }
-
- public String getProgrammingLanguage() {
- return programmingLanguage;
- }
-
- public void setProgrammingLanguage(String programmingLanguage) {
- this.programmingLanguage = programmingLanguage;
- }
-
- public List getContactperson() {
- return contactperson;
- }
-
- public void setContactperson(List contactperson) {
- this.contactperson = contactperson;
- }
-
- public List getContactgroup() {
- return contactgroup;
- }
-
- public void setContactgroup(List contactgroup) {
- this.contactgroup = contactgroup;
- }
-
- public List getTool() {
- return tool;
- }
-
- public void setTool(List tool) {
- this.tool = tool;
- }
-
- public String getSize() {
- return size;
- }
-
- public void setSize(String size) {
- this.size = size;
- }
-
- public String getVersion() {
- return version;
- }
-
- public void setVersion(String version) {
- this.version = version;
- }
-
- public List getGeolocation() {
- return geolocation;
- }
-
- public void setGeolocation(List geolocation) {
- this.geolocation = geolocation;
- }
-}
diff --git a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/Subject.java b/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/Subject.java
deleted file mode 100644
index 5c4bbef3c..000000000
--- a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/Subject.java
+++ /dev/null
@@ -1,34 +0,0 @@
-
-package eu.dnetlib.dhp.schema.dump.oaf;
-
-import java.io.Serializable;
-
-/**
- * To represent keywords associated to the result. It has two parameters: - subject of type
- * eu.dnetlib.dhp.schema.dump.oaf.ControlledField to describe the subject. It mapped as: - schema it corresponds to
- * qualifier.classid of the dumped subject - value it corresponds to the subject value - provenance of type
- * eu.dnetlib.dhp.schema.dump.oaf.Provenance to represent the provenance of the subject. It is dumped only if dataInfo
- * is not null. In this case: - provenance corresponds to dataInfo.provenanceaction.classname - trust corresponds to
- * dataInfo.trust
- */
-public class Subject implements Serializable {
- private ControlledField subject;
- private Provenance provenance;
-
- public ControlledField getSubject() {
- return subject;
- }
-
- public void setSubject(ControlledField subject) {
- this.subject = subject;
- }
-
- public Provenance getProvenance() {
- return provenance;
- }
-
- public void setProvenance(Provenance provenance) {
- this.provenance = provenance;
- }
-
-}
diff --git a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/community/CommunityInstance.java b/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/community/CommunityInstance.java
deleted file mode 100644
index 6a605d742..000000000
--- a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/community/CommunityInstance.java
+++ /dev/null
@@ -1,36 +0,0 @@
-
-package eu.dnetlib.dhp.schema.dump.oaf.community;
-
-import eu.dnetlib.dhp.schema.dump.oaf.Instance;
-import eu.dnetlib.dhp.schema.dump.oaf.KeyValue;
-
-/**
- * It extends eu.dnetlib.dhp.dump.oaf.Instance with values related to the community dump. In the Result dump this
- * information is not present because it is dumped as a set of relations between the result and the datasource. -
- * hostedby of type eu.dnetlib.dhp.schema.dump.oaf.KeyValue to store the information about the source from which the
- * instance can be viewed or downloaded. It is mapped against the hostedby parameter of the instance to be dumped and -
- * key corresponds to hostedby.key - value corresponds to hostedby.value - collectedfrom of type
- * eu.dnetlib.dhp.schema.dump.oaf.KeyValue to store the information about the source from which the instance has been
- * collected. It is mapped against the collectedfrom parameter of the instance to be dumped and - key corresponds to
- * collectedfrom.key - value corresponds to collectedfrom.value
- */
-public class CommunityInstance extends Instance {
- private KeyValue hostedby;
- private KeyValue collectedfrom;
-
- public KeyValue getHostedby() {
- return hostedby;
- }
-
- public void setHostedby(KeyValue hostedby) {
- this.hostedby = hostedby;
- }
-
- public KeyValue getCollectedfrom() {
- return collectedfrom;
- }
-
- public void setCollectedfrom(KeyValue collectedfrom) {
- this.collectedfrom = collectedfrom;
- }
-}
diff --git a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/community/CommunityResult.java b/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/community/CommunityResult.java
deleted file mode 100644
index 690a53706..000000000
--- a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/community/CommunityResult.java
+++ /dev/null
@@ -1,63 +0,0 @@
-
-package eu.dnetlib.dhp.schema.dump.oaf.community;
-
-import java.util.List;
-
-import eu.dnetlib.dhp.schema.dump.oaf.KeyValue;
-import eu.dnetlib.dhp.schema.dump.oaf.Result;
-
-/**
- * extends eu.dnetlib.dhp.schema.dump.oaf.Result with the following parameters: - projects of type
- * List to store the list of projects related to the result. The
- * information is added after the result is mapped to the external model - context of type
- * List to store information about the RC RI related to the result.
- * For each context in the result represented in the internal model one context in the external model is produced -
- * collectedfrom of type List to store information about the sources from which
- * the record has been collected. For each collectedfrom in the result represented in the internal model one
- * collectedfrom in the external model is produced - instance of type
- * List to store all the instances associated to the result.
- * It corresponds to the same parameter in the result represented in the internal model
- */
-public class CommunityResult extends Result {
-
- private List projects;
-
- private List context;
-
- protected List collectedfrom;
-
- private List instance;
-
- public List getInstance() {
- return instance;
- }
-
- public void setInstance(List instance) {
- this.instance = instance;
- }
-
- public List getCollectedfrom() {
- return collectedfrom;
- }
-
- public void setCollectedfrom(List collectedfrom) {
- this.collectedfrom = collectedfrom;
- }
-
- public List getProjects() {
- return projects;
- }
-
- public void setProjects(List projects) {
- this.projects = projects;
- }
-
- public List getContext() {
- return context;
- }
-
- public void setContext(List context) {
- this.context = context;
- }
-
-}
diff --git a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/community/Context.java b/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/community/Context.java
deleted file mode 100644
index 3ad692b30..000000000
--- a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/community/Context.java
+++ /dev/null
@@ -1,40 +0,0 @@
-
-package eu.dnetlib.dhp.schema.dump.oaf.community;
-
-import java.util.List;
-import java.util.Objects;
-
-import eu.dnetlib.dhp.schema.dump.oaf.Provenance;
-import eu.dnetlib.dhp.schema.dump.oaf.Qualifier;
-
-/**
- * Reference to a relevant research infrastructure, initiative or community (RI/RC) among those collaborating with
- * OpenAIRE. It extend eu.dnetlib.dhp.shema.dump.oaf.Qualifier with a parameter provenance of type
- * List to store the provenances of the association between the result and
- * the RC/RI. The values for this element correspond to: - code: it corresponds to the id of the context in the result
- * to be mapped. If the context id refers to a RC/RI and contains '::' only the part of the id before the first "::"
- * will be used as value for code - label it corresponds to the label associated to the id. The information id taken
- * from the profile of the RC/RI - provenance it is set only if the dataInfo associated to the contenxt element of the
- * result to be dumped is not null. For each dataInfo one instance of type eu.dnetlib.dhp.schema.dump.oaf.Provenance is
- * instantiated if the element datainfo.provenanceaction is not null. In this case - provenance corresponds to
- * dataInfo.provenanceaction.classname - trust corresponds to dataInfo.trust
- */
-public class Context extends Qualifier {
- private List provenance;
-
- public List getProvenance() {
- return provenance;
- }
-
- public void setProvenance(List provenance) {
- this.provenance = provenance;
- }
-
- @Override
- public int hashCode() {
- String provenance = new String();
- this.provenance.forEach(p -> provenance.concat(p.toString()));
- return Objects.hash(getCode(), getLabel(), provenance);
- }
-
-}
diff --git a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/community/Funder.java b/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/community/Funder.java
deleted file mode 100644
index adb41634a..000000000
--- a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/community/Funder.java
+++ /dev/null
@@ -1,23 +0,0 @@
-
-package eu.dnetlib.dhp.schema.dump.oaf.community;
-
-import java.io.Serializable;
-
-/**
- * To store information about the funder funding the project related to the result. It has the following parameters: -
- * shortName of type String to store the funder short name (e.c. AKA). - name of type String to store the funder name
- * (e.c. Akademy of Finland) - fundingStream of type String to store the funding stream - jurisdiction of type String to
- * store the jurisdiction of the funder
- */
-public class Funder extends eu.dnetlib.dhp.schema.dump.oaf.Funder {
-
- private String fundingStream;
-
- public String getFundingStream() {
- return fundingStream;
- }
-
- public void setFundingStream(String fundingStream) {
- this.fundingStream = fundingStream;
- }
-}
diff --git a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/community/Project.java b/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/community/Project.java
deleted file mode 100644
index 030b565be..000000000
--- a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/community/Project.java
+++ /dev/null
@@ -1,47 +0,0 @@
-
-package eu.dnetlib.dhp.schema.dump.oaf.community;
-
-import java.io.Serializable;
-
-import eu.dnetlib.dhp.schema.dump.oaf.Provenance;
-
-/**
- * To store information about the project related to the result. This information is not directly mapped from the result
- * represented in the internal model because it is not there. The mapped result will be enriched with project
- * information derived by relation between results and projects. Project extends eu.dnetlib.dhp.schema.dump.oaf.Project
- * with the following parameters: - funder of type eu.dnetlib.dhp.schema.dump.oaf.community.Funder to store information
- * about the funder funding the project - provenance of type eu.dnetlib.dhp.schema.dump.oaf.Provenance to store
- * information about the. provenance of the association between the result and the project
- */
-public class Project extends eu.dnetlib.dhp.schema.dump.oaf.Project {
-
- private Funder funder;
-
- private Provenance provenance;
-
- public Provenance getProvenance() {
- return provenance;
- }
-
- public void setProvenance(Provenance provenance) {
- this.provenance = provenance;
- }
-
- public Funder getFunder() {
- return funder;
- }
-
- public void setFunder(Funder funders) {
- this.funder = funders;
- }
-
- public static Project newInstance(String id, String code, String acronym, String title, Funder funder) {
- Project project = new Project();
- project.setAcronym(acronym);
- project.setCode(code);
- project.setFunder(funder);
- project.setId(id);
- project.setTitle(title);
- return project;
- }
-}
diff --git a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/graph/Constants.java b/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/graph/Constants.java
deleted file mode 100644
index 35cc60c1c..000000000
--- a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/graph/Constants.java
+++ /dev/null
@@ -1,21 +0,0 @@
-
-package eu.dnetlib.dhp.schema.dump.oaf.graph;
-
-import java.io.Serializable;
-
-public class Constants implements Serializable {
- // collectedFrom va con isProvidedBy -> becco da ModelSupport
-
- public static final String HOSTED_BY = "isHostedBy";
- public static final String HOSTS = "hosts";
-
- // community result uso isrelatedto
-
- public static final String RESULT_ENTITY = "result";
- public static final String DATASOURCE_ENTITY = "datasource";
- public static final String CONTEXT_ENTITY = "context";
-
- public static final String CONTEXT_ID = "60";
- public static final String CONTEXT_NS_PREFIX = "context____";
-
-}
diff --git a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/graph/Datasource.java b/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/graph/Datasource.java
deleted file mode 100644
index 6b2b7b1ab..000000000
--- a/dhp-schemas/src/main/java/eu/dnetlib/dhp/schema/dump/oaf/graph/Datasource.java
+++ /dev/null
@@ -1,316 +0,0 @@
-
-package eu.dnetlib.dhp.schema.dump.oaf.graph;
-
-import java.io.Serializable;
-import java.util.List;
-
-import eu.dnetlib.dhp.schema.dump.oaf.Container;
-import eu.dnetlib.dhp.schema.dump.oaf.ControlledField;
-import eu.dnetlib.dhp.schema.dump.oaf.KeyValue;
-
-/**
- * To store information about the datasource OpenAIRE collects information from. It contains the following parameters: -
- * id of type String to store the OpenAIRE id for the datasource. It corresponds to the parameter id of the datasource
- * represented in the internal model - originalId of type List to store the list of original ids associated to
- * the datasource. It corresponds to the parameter originalId of the datasource represented in the internal model. The
- * null values are filtered out - pid of type List to store the
- * persistent identifiers for the datasource. For each pid in the datasource represented in the internal model one pid
- * in the external model is produced as : - schema corresponds to pid.qualifier.classid of the datasource represented in
- * the internal model - value corresponds to pid.value of the datasource represented in the internal model -
- * datasourceType of type eu.dnetlib.dhp.schema.dump.oaf.ControlledField to store the datasource type (e.g.
- * pubsrepository::institutional, Institutional Repository) as in the dnet vocabulary dnet:datasource_typologies. It
- * corresponds to datasourcetype of the datasource represented in the internal model and : - code corresponds to
- * datasourcetype.classid - value corresponds to datasourcetype.classname - openairecompatibility of type String to
- * store information about the OpenAIRE compatibility of the ingested results (which guidelines they are compliant to).
- * It corresponds to openairecompatibility.classname of the datasource represented in the internal model - officialname
- * of type Sgtring to store the official name of the datasource. It correspond to officialname.value of the datasource
- * represented in the internal model - englishname of type String to store the English name of the datasource. It
- * corresponds to englishname.value of the datasource represented in the internal model - websiteurl of type String to
- * store the URL of the website of the datasource. It corresponds to websiteurl.value of the datasource represented in
- * the internal model - logourl of type String to store the URL of the logo for the datasource. It corresponds to
- * logourl.value of the datasource represented in the internal model - dateofvalidation of type String to store the data
- * of validation against the guidelines for the datasource records. It corresponds to dateofvalidation.value of the
- * datasource represented in the internal model - description of type String to store the description for the
- * datasource. It corresponds to description.value of the datasource represented in the internal model
- */
-public class Datasource implements Serializable {
-
- private String id; // string
-
- private List originalId; // list string
-
- private List pid; // list
-
- private ControlledField datasourcetype; // value
-
- private String openairecompatibility; // value
-
- private String officialname; // string
-
- private String englishname; // string
-
- private String websiteurl; // string
-
- private String logourl; // string
-
- private String dateofvalidation; // string
-
- private String description; // description
-
- private List subjects; // List
-
- // opendoar specific fields (od*)
-
- private List languages; // odlanguages List
-
- private List contenttypes; // odcontent types List
-
- // re3data fields
- private String releasestartdate; // string
-
- private String releaseenddate; // string
-
- private String missionstatementurl; // string
-
- // {open, restricted or closed}
- private String accessrights; // databaseaccesstype string
-
- // {open, restricted or closed}
- private String uploadrights; // datauploadtype string
-
- // {feeRequired, registration, other}
- private String databaseaccessrestriction; // string
-
- // {feeRequired, registration, other}
- private String datauploadrestriction; // string
-
- private Boolean versioning; // boolean
-
- private String citationguidelineurl; // string
-
- // {yes, no, uknown}
-
- private String pidsystems; // string
-
- private String certificates; // string
-
- private List