diff --git a/dhp-workflows/dhp-blacklist/src/main/resources/eu/dnetlib/dhp/blacklist/oozie_app/workflow.xml b/dhp-workflows/dhp-blacklist/src/main/resources/eu/dnetlib/dhp/blacklist/oozie_app/workflow.xml
index 855cac65e..f71c085b2 100644
--- a/dhp-workflows/dhp-blacklist/src/main/resources/eu/dnetlib/dhp/blacklist/oozie_app/workflow.xml
+++ b/dhp-workflows/dhp-blacklist/src/main/resources/eu/dnetlib/dhp/blacklist/oozie_app/workflow.xml
@@ -1,31 +1,38 @@
-
-
- postgresURL
- the url of the postgress server to query
-
-
- postgresUser
- the username to access the postgres db
-
-
- postgresPassword
- the postgres password
-
-
- sourcePath
- the source path
-
-
-
+
+
+ postgresURL
+ the url of the postgress server to query
+
+
+ postgresUser
+ the username to access the postgres db
+
+
+ postgresPassword
+ the postgres password
+
+
+ sourcePath
+ the source path
+
+
+ outputPath
+ the graph output path
+
+
-
- Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]
-
+
-
+
+ Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]
+
+
+
-
+
+
+
@@ -87,12 +94,14 @@
--conf spark.eventLog.dir=${nameNode}${spark2EventLogDir}
--sourcePath${sourcePath}/relation
- --outputPath${workingDir}/relation
+ --outputPath${outputPath}/relation
--hdfsPath${workingDir}/blacklist
--mergesPath${workingDir}/mergesRelation
-
+
+
+
\ No newline at end of file
diff --git a/dhp-workflows/dhp-bulktag/project-default.properties b/dhp-workflows/dhp-bulktag/project-default.properties
deleted file mode 100644
index 84a56f19f..000000000
--- a/dhp-workflows/dhp-bulktag/project-default.properties
+++ /dev/null
@@ -1,7 +0,0 @@
-#sandboxName when not provided explicitly will be generated
-sandboxName=${sandboxName}
-sandboxDir=/user/${dhp.hadoop.frontend.user.name}/${sandboxName}
-workingDir=${sandboxDir}/working_dir
-oozie.wf.application.path = ${nameNode}${sandboxDir}/${oozieAppDir}
-oozieTopWfApplicationPath = ${oozie.wf.application.path}
-
diff --git a/dhp-workflows/dhp-bulktag/pom.xml b/dhp-workflows/dhp-enrichment/pom.xml
similarity index 81%
rename from dhp-workflows/dhp-bulktag/pom.xml
rename to dhp-workflows/dhp-enrichment/pom.xml
index 7c2afa0cc..fe9833e3e 100644
--- a/dhp-workflows/dhp-bulktag/pom.xml
+++ b/dhp-workflows/dhp-enrichment/pom.xml
@@ -9,7 +9,7 @@
4.0.0
- dhp-bulktag
+ dhp-enrichment
@@ -31,6 +31,12 @@
dhp-schemas
${project.version}
+
+ org.apache.spark
+ spark-hive_2.11
+ test
+
+
dom4j
dom4j
@@ -43,23 +49,16 @@
com.jayway.jsonpath
json-path
-
- org.reflections
- reflections
- 0.9.11
- compile
-
-
- com.google.guava
- guava
- 23.3-jre
-
+
io.github.classgraph
classgraph
4.8.71
+
+
+
\ No newline at end of file
diff --git a/dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/PropagationConstant.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/PropagationConstant.java
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/PropagationConstant.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/PropagationConstant.java
diff --git a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/bulktag/SparkBulkTagJob.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/SparkBulkTagJob.java
similarity index 97%
rename from dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/bulktag/SparkBulkTagJob.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/SparkBulkTagJob.java
index e62b4b4fc..e3d74ef3e 100644
--- a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/bulktag/SparkBulkTagJob.java
+++ b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/SparkBulkTagJob.java
@@ -1,10 +1,11 @@
package eu.dnetlib.dhp.bulktag;
-import static eu.dnetlib.dhp.common.SparkSessionSupport.runWithSparkSession;
-
-import java.util.Optional;
-
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.google.gson.Gson;
+import eu.dnetlib.dhp.application.ArgumentApplicationParser;
+import eu.dnetlib.dhp.bulktag.community.*;
+import eu.dnetlib.dhp.schema.oaf.Result;
import org.apache.commons.io.IOUtils;
import org.apache.spark.SparkConf;
import org.apache.spark.api.java.function.MapFunction;
@@ -15,12 +16,9 @@ import org.apache.spark.sql.SparkSession;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import com.fasterxml.jackson.databind.ObjectMapper;
-import com.google.gson.Gson;
+import java.util.Optional;
-import eu.dnetlib.dhp.application.ArgumentApplicationParser;
-import eu.dnetlib.dhp.community.*;
-import eu.dnetlib.dhp.schema.oaf.*;
+import static eu.dnetlib.dhp.common.SparkSessionSupport.runWithSparkSession;
public class SparkBulkTagJob {
diff --git a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/community/Community.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/community/Community.java
similarity index 79%
rename from dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/community/Community.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/community/Community.java
index a73ff4d3e..d492b848e 100644
--- a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/community/Community.java
+++ b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/community/Community.java
@@ -1,15 +1,14 @@
-package eu.dnetlib.dhp.community;
+package eu.dnetlib.dhp.bulktag.community;
+
+import com.google.gson.Gson;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-
-import com.google.gson.Gson;
-
/** Created by miriam on 01/08/2018. */
public class Community implements Serializable {
@@ -17,7 +16,7 @@ public class Community implements Serializable {
private String id;
private List subjects = new ArrayList<>();
- private List datasources = new ArrayList<>();
+ private List providers = new ArrayList<>();
private List zenodoCommunities = new ArrayList<>();
public String toJson() {
@@ -27,7 +26,7 @@ public class Community implements Serializable {
public boolean isValid() {
return !getSubjects().isEmpty()
- || !getDatasources().isEmpty()
+ || !getProviders().isEmpty()
|| !getZenodoCommunities().isEmpty();
}
@@ -47,12 +46,12 @@ public class Community implements Serializable {
this.subjects = subjects;
}
- public List getDatasources() {
- return datasources;
+ public List getProviders() {
+ return providers;
}
- public void setDatasources(List datasources) {
- this.datasources = datasources;
+ public void setProviders(List providers) {
+ this.providers = providers;
}
public List getZenodoCommunities() {
diff --git a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/community/CommunityConfiguration.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/community/CommunityConfiguration.java
similarity index 96%
rename from dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/community/CommunityConfiguration.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/community/CommunityConfiguration.java
index c5bbb66eb..4e5b9fc9f 100644
--- a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/community/CommunityConfiguration.java
+++ b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/community/CommunityConfiguration.java
@@ -1,5 +1,14 @@
-package eu.dnetlib.dhp.community;
+package eu.dnetlib.dhp.bulktag.community;
+
+import com.google.common.collect.Lists;
+import com.google.common.collect.Maps;
+import com.google.gson.Gson;
+import com.google.gson.GsonBuilder;
+import eu.dnetlib.dhp.bulktag.criteria.InterfaceAdapter;
+import eu.dnetlib.dhp.bulktag.criteria.Selection;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
import java.io.Serializable;
import java.util.ArrayList;
@@ -8,17 +17,6 @@ import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-
-import com.google.common.collect.Lists;
-import com.google.common.collect.Maps;
-import com.google.gson.Gson;
-import com.google.gson.GsonBuilder;
-
-import eu.dnetlib.dhp.selectioncriteria.InterfaceAdapter;
-import eu.dnetlib.dhp.selectioncriteria.Selection;
-
/** Created by miriam on 02/08/2018. */
public class CommunityConfiguration implements Serializable {
@@ -84,7 +82,7 @@ public class CommunityConfiguration implements Serializable {
add(sbj.toLowerCase().trim(), p, subjectMap);
}
// get datasources
- for (Datasource d : c.getDatasources()) {
+ for (Provider d : c.getProviders()) {
add(d.getOpenaireId(), new Pair<>(id, d.getSelectionConstraints()), datasourceMap);
}
diff --git a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/community/CommunityConfigurationFactory.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/community/CommunityConfigurationFactory.java
similarity index 86%
rename from dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/community/CommunityConfigurationFactory.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/community/CommunityConfigurationFactory.java
index 508f0663d..dc83497c3 100644
--- a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/community/CommunityConfigurationFactory.java
+++ b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/community/CommunityConfigurationFactory.java
@@ -1,11 +1,14 @@
-package eu.dnetlib.dhp.community;
-
-import java.io.StringReader;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Map;
+package eu.dnetlib.dhp.bulktag.community;
+import com.google.common.collect.Lists;
+import com.google.common.collect.Maps;
+import com.google.gson.Gson;
+import com.google.gson.GsonBuilder;
+import eu.dnetlib.dhp.bulktag.criteria.InterfaceAdapter;
+import eu.dnetlib.dhp.bulktag.criteria.Selection;
+import eu.dnetlib.dhp.bulktag.criteria.VerbResolver;
+import eu.dnetlib.dhp.bulktag.criteria.VerbResolverFactory;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
@@ -14,15 +17,10 @@ import org.dom4j.DocumentException;
import org.dom4j.Node;
import org.dom4j.io.SAXReader;
-import com.google.common.collect.Lists;
-import com.google.common.collect.Maps;
-import com.google.gson.Gson;
-import com.google.gson.GsonBuilder;
-
-import eu.dnetlib.dhp.selectioncriteria.InterfaceAdapter;
-import eu.dnetlib.dhp.selectioncriteria.Selection;
-import eu.dnetlib.dhp.selectioncriteria.VerbResolver;
-import eu.dnetlib.dhp.selectioncriteria.VerbResolverFactory;
+import java.io.StringReader;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
/** Created by miriam on 03/08/2018. */
public class CommunityConfigurationFactory {
@@ -77,7 +75,7 @@ public class CommunityConfigurationFactory {
log.info(String.format("community id: %s", c.getId()));
c.setSubjects(parseSubjects(node));
- c.setDatasources(parseDatasources(node));
+ c.setProviders(parseDatasources(node));
c.setZenodoCommunities(parseZenodoCommunities(node));
return c;
}
@@ -96,17 +94,17 @@ public class CommunityConfigurationFactory {
return subjects;
}
- private static List parseDatasources(final Node node) {
+ private static List parseDatasources(final Node node) {
final List list = node.selectNodes("./datasources/datasource");
- final List datasourceList = new ArrayList<>();
+ final List providerList = new ArrayList<>();
for (Node n : list) {
- Datasource d = new Datasource();
+ Provider d = new Provider();
d.setOpenaireId(n.selectSingleNode("./openaireId").getText());
d.setSelCriteria(n.selectSingleNode("./selcriteria"), resolver);
- datasourceList.add(d);
+ providerList.add(d);
}
- log.info("size of the datasource list " + datasourceList.size());
- return datasourceList;
+ log.info("size of the datasource list " + providerList.size());
+ return providerList;
}
private static List parseZenodoCommunities(final Node node) {
diff --git a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/community/Constraint.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/community/Constraint.java
similarity index 86%
rename from dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/community/Constraint.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/community/Constraint.java
index 54f381d4a..8e28a7a5f 100644
--- a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/community/Constraint.java
+++ b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/community/Constraint.java
@@ -1,12 +1,12 @@
-package eu.dnetlib.dhp.community;
+package eu.dnetlib.dhp.bulktag.community;
+
+import eu.dnetlib.dhp.bulktag.criteria.Selection;
+import eu.dnetlib.dhp.bulktag.criteria.VerbResolver;
import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;
-import eu.dnetlib.dhp.selectioncriteria.Selection;
-import eu.dnetlib.dhp.selectioncriteria.VerbResolver;
-
public class Constraint implements Serializable {
private String verb;
private String field;
diff --git a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/community/Constraints.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/community/Constraints.java
similarity index 94%
rename from dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/community/Constraints.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/community/Constraints.java
index af095c513..eace3bc35 100644
--- a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/community/Constraints.java
+++ b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/community/Constraints.java
@@ -1,5 +1,11 @@
-package eu.dnetlib.dhp.community;
+package eu.dnetlib.dhp.bulktag.community;
+
+import com.google.gson.Gson;
+import com.google.gson.reflect.TypeToken;
+import eu.dnetlib.dhp.bulktag.criteria.VerbResolver;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;
@@ -8,14 +14,6 @@ import java.util.Collection;
import java.util.List;
import java.util.Map;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-
-import com.google.gson.Gson;
-import com.google.gson.reflect.TypeToken;
-
-import eu.dnetlib.dhp.selectioncriteria.VerbResolver;
-
/** Created by miriam on 02/08/2018. */
public class Constraints implements Serializable {
private static final Log log = LogFactory.getLog(Constraints.class);
diff --git a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/community/Pair.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/community/Pair.java
similarity index 92%
rename from dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/community/Pair.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/community/Pair.java
index 01cd3ce22..1130a0770 100644
--- a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/community/Pair.java
+++ b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/community/Pair.java
@@ -1,10 +1,10 @@
-package eu.dnetlib.dhp.community;
-
-import java.io.Serializable;
+package eu.dnetlib.dhp.bulktag.community;
import com.google.gson.Gson;
+import java.io.Serializable;
+
/** Created by miriam on 03/08/2018. */
public class Pair implements Serializable {
private A fst;
diff --git a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/community/ProtoMap.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/community/ProtoMap.java
similarity index 80%
rename from dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/community/ProtoMap.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/community/ProtoMap.java
index d48dce2c6..fd7481719 100644
--- a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/community/ProtoMap.java
+++ b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/community/ProtoMap.java
@@ -1,5 +1,5 @@
-package eu.dnetlib.dhp.community;
+package eu.dnetlib.dhp.bulktag.community;
import java.io.Serializable;
import java.util.HashMap;
diff --git a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/community/Datasource.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/community/Provider.java
similarity index 86%
rename from dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/community/Datasource.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/community/Provider.java
index a3d343087..c4362610e 100644
--- a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/community/Datasource.java
+++ b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/community/Provider.java
@@ -1,19 +1,17 @@
-package eu.dnetlib.dhp.community;
-
-import java.io.Serializable;
+package eu.dnetlib.dhp.bulktag.community;
+import com.google.gson.Gson;
+import eu.dnetlib.dhp.bulktag.criteria.VerbResolver;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.dom4j.Node;
-import com.google.gson.Gson;
-
-import eu.dnetlib.dhp.selectioncriteria.VerbResolver;
+import java.io.Serializable;
/** Created by miriam on 01/08/2018. */
-public class Datasource implements Serializable {
- private static final Log log = LogFactory.getLog(Datasource.class);
+public class Provider implements Serializable {
+ private static final Log log = LogFactory.getLog(Provider.class);
private String openaireId;
diff --git a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/community/QueryInformationSystem.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/community/QueryInformationSystem.java
similarity index 98%
rename from dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/community/QueryInformationSystem.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/community/QueryInformationSystem.java
index 2c18392c7..43eb40940 100644
--- a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/community/QueryInformationSystem.java
+++ b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/community/QueryInformationSystem.java
@@ -1,15 +1,13 @@
-package eu.dnetlib.dhp.community;
-
-import java.util.List;
-
-import org.dom4j.DocumentException;
+package eu.dnetlib.dhp.bulktag.community;
import com.google.common.base.Joiner;
-
import eu.dnetlib.dhp.utils.ISLookupClientFactory;
import eu.dnetlib.enabling.is.lookup.rmi.ISLookUpException;
import eu.dnetlib.enabling.is.lookup.rmi.ISLookUpService;
+import org.dom4j.DocumentException;
+
+import java.util.List;
public class QueryInformationSystem {
private static final String XQUERY = "for $x in collection('/db/DRIVER/ContextDSResources/ContextDSResourceType') "
diff --git a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/community/ResultTagger.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/community/ResultTagger.java
similarity index 94%
rename from dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/community/ResultTagger.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/community/ResultTagger.java
index eb531c6b1..fd4f5497a 100644
--- a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/community/ResultTagger.java
+++ b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/community/ResultTagger.java
@@ -1,20 +1,19 @@
-package eu.dnetlib.dhp.community;
+package eu.dnetlib.dhp.bulktag.community;
-import static eu.dnetlib.dhp.community.TagginConstants.*;
+import com.google.gson.Gson;
+import com.jayway.jsonpath.DocumentContext;
+import com.jayway.jsonpath.JsonPath;
+import eu.dnetlib.dhp.schema.oaf.*;
+import org.apache.commons.lang3.StringUtils;
import java.io.Serializable;
import java.util.*;
import java.util.stream.Collectors;
import java.util.stream.Stream;
-import org.apache.commons.lang3.StringUtils;
-
-import com.google.gson.Gson;
-import com.jayway.jsonpath.DocumentContext;
-import com.jayway.jsonpath.JsonPath;
-
-import eu.dnetlib.dhp.schema.oaf.*;
+import static eu.dnetlib.dhp.bulktag.community.TaggingConstants.*;
+import static eu.dnetlib.dhp.schema.common.ModelConstants.*;
/** Created by miriam on 02/08/2018. */
public class ResultTagger implements Serializable {
@@ -51,7 +50,7 @@ public class ResultTagger implements Serializable {
}
public R enrichContextCriteria(
- final R result, final CommunityConfiguration conf, final Map criteria) {
+ final R result, final CommunityConfiguration conf, final Map criteria) {
// }
// public Result enrichContextCriteria(final Result result, final CommunityConfiguration
@@ -239,8 +238,8 @@ public class ResultTagger implements Serializable {
Qualifier pa = new Qualifier();
pa.setClassid(inference_class_id);
pa.setClassname(inference_class_name);
- pa.setSchemeid(DNET_SCHEMA_ID);
- pa.setSchemename(DNET_SCHEMA_NAME);
+ pa.setSchemeid(DNET_PROVENANCE_ACTIONS);
+ pa.setSchemename(DNET_PROVENANCE_ACTIONS);
return pa;
}
}
diff --git a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/community/SelectionConstraints.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/community/SelectionConstraints.java
similarity index 91%
rename from dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/community/SelectionConstraints.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/community/SelectionConstraints.java
index 802e2f5d6..28674d9ef 100644
--- a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/community/SelectionConstraints.java
+++ b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/community/SelectionConstraints.java
@@ -1,5 +1,9 @@
-package eu.dnetlib.dhp.community;
+package eu.dnetlib.dhp.bulktag.community;
+
+import com.google.gson.Gson;
+import com.google.gson.reflect.TypeToken;
+import eu.dnetlib.dhp.bulktag.criteria.VerbResolver;
import java.io.Serializable;
import java.lang.reflect.Type;
@@ -7,11 +11,6 @@ import java.util.Collection;
import java.util.List;
import java.util.Map;
-import com.google.gson.Gson;
-import com.google.gson.reflect.TypeToken;
-
-import eu.dnetlib.dhp.selectioncriteria.VerbResolver;
-
public class SelectionConstraints implements Serializable {
private List criteria;
diff --git a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/community/TagginConstants.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/community/TaggingConstants.java
similarity index 66%
rename from dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/community/TagginConstants.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/community/TaggingConstants.java
index 92d37d089..3cdc7c941 100644
--- a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/community/TagginConstants.java
+++ b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/community/TaggingConstants.java
@@ -1,20 +1,14 @@
-package eu.dnetlib.dhp.community;
+package eu.dnetlib.dhp.bulktag.community;
-public class TagginConstants {
+public class TaggingConstants {
public static final String BULKTAG_DATA_INFO_TYPE = "bulktagging";
- public static final String DNET_SCHEMA_NAME = "dnet:provenanceActions";
- public static final String DNET_SCHEMA_ID = "dnet:provenanceActions";
-
public static final String CLASS_ID_SUBJECT = "community:subject";
public static final String CLASS_ID_DATASOURCE = "community:datasource";
public static final String CLASS_ID_CZENODO = "community:zenodocommunity";
- public static final String SCHEMA_ID = "dnet:provenanceActions";
- public static final String COUNTER_GROUP = "Bulk Tagging";
-
public static final String ZENODO_COMMUNITY_INDICATOR = "zenodo.org/communities/";
public static final String CLASS_NAME_BULKTAG_SUBJECT = "Bulktagging for Community - Subject";
diff --git a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/community/ZenodoCommunity.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/community/ZenodoCommunity.java
similarity index 95%
rename from dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/community/ZenodoCommunity.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/community/ZenodoCommunity.java
index e1492f6a5..eb0577ffc 100644
--- a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/community/ZenodoCommunity.java
+++ b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/community/ZenodoCommunity.java
@@ -1,11 +1,10 @@
-package eu.dnetlib.dhp.community;
-
-import java.io.Serializable;
-
-import org.dom4j.Node;
+package eu.dnetlib.dhp.bulktag.community;
import com.google.gson.Gson;
+import org.dom4j.Node;
+
+import java.io.Serializable;
/** Created by miriam on 01/08/2018. */
public class ZenodoCommunity implements Serializable {
diff --git a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/selectioncriteria/ContainsVerb.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/criteria/ContainsVerb.java
similarity index 91%
rename from dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/selectioncriteria/ContainsVerb.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/criteria/ContainsVerb.java
index a6ef2d908..496630fa3 100644
--- a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/selectioncriteria/ContainsVerb.java
+++ b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/criteria/ContainsVerb.java
@@ -1,5 +1,5 @@
-package eu.dnetlib.dhp.selectioncriteria;
+package eu.dnetlib.dhp.bulktag.criteria;
import java.io.Serializable;
diff --git a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/selectioncriteria/ContainsVerbIgnoreCase.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/criteria/ContainsVerbIgnoreCase.java
similarity index 92%
rename from dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/selectioncriteria/ContainsVerbIgnoreCase.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/criteria/ContainsVerbIgnoreCase.java
index b8b0262e9..a4a6f5663 100644
--- a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/selectioncriteria/ContainsVerbIgnoreCase.java
+++ b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/criteria/ContainsVerbIgnoreCase.java
@@ -1,5 +1,5 @@
-package eu.dnetlib.dhp.selectioncriteria;
+package eu.dnetlib.dhp.bulktag.criteria;
import java.io.Serializable;
diff --git a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/selectioncriteria/EqualVerb.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/criteria/EqualVerb.java
similarity index 91%
rename from dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/selectioncriteria/EqualVerb.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/criteria/EqualVerb.java
index 3f17a6bb3..b9088d012 100644
--- a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/selectioncriteria/EqualVerb.java
+++ b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/criteria/EqualVerb.java
@@ -1,5 +1,5 @@
-package eu.dnetlib.dhp.selectioncriteria;
+package eu.dnetlib.dhp.bulktag.criteria;
import java.io.Serializable;
diff --git a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/selectioncriteria/EqualVerbIgnoreCase.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/criteria/EqualVerbIgnoreCase.java
similarity index 91%
rename from dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/selectioncriteria/EqualVerbIgnoreCase.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/criteria/EqualVerbIgnoreCase.java
index 934406859..c5f0ce070 100644
--- a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/selectioncriteria/EqualVerbIgnoreCase.java
+++ b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/criteria/EqualVerbIgnoreCase.java
@@ -1,5 +1,5 @@
-package eu.dnetlib.dhp.selectioncriteria;
+package eu.dnetlib.dhp.bulktag.criteria;
import java.io.Serializable;
diff --git a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/selectioncriteria/InterfaceAdapter.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/criteria/InterfaceAdapter.java
similarity index 96%
rename from dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/selectioncriteria/InterfaceAdapter.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/criteria/InterfaceAdapter.java
index 9ef3bd60c..2bc1ab3cf 100644
--- a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/selectioncriteria/InterfaceAdapter.java
+++ b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/criteria/InterfaceAdapter.java
@@ -1,10 +1,10 @@
-package eu.dnetlib.dhp.selectioncriteria;
-
-import java.lang.reflect.Type;
+package eu.dnetlib.dhp.bulktag.criteria;
import com.google.gson.*;
+import java.lang.reflect.Type;
+
public class InterfaceAdapter implements JsonSerializer, JsonDeserializer {
private static final String CLASSNAME = "CLASSNAME";
diff --git a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/selectioncriteria/NotContainsVerb.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/criteria/NotContainsVerb.java
similarity index 91%
rename from dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/selectioncriteria/NotContainsVerb.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/criteria/NotContainsVerb.java
index eb83b256e..03ec9804b 100644
--- a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/selectioncriteria/NotContainsVerb.java
+++ b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/criteria/NotContainsVerb.java
@@ -1,5 +1,5 @@
-package eu.dnetlib.dhp.selectioncriteria;
+package eu.dnetlib.dhp.bulktag.criteria;
import java.io.Serializable;
diff --git a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/selectioncriteria/NotContainsVerbIgnoreCase.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/criteria/NotContainsVerbIgnoreCase.java
similarity index 92%
rename from dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/selectioncriteria/NotContainsVerbIgnoreCase.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/criteria/NotContainsVerbIgnoreCase.java
index fab3efef3..b21be83f0 100644
--- a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/selectioncriteria/NotContainsVerbIgnoreCase.java
+++ b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/criteria/NotContainsVerbIgnoreCase.java
@@ -1,5 +1,5 @@
-package eu.dnetlib.dhp.selectioncriteria;
+package eu.dnetlib.dhp.bulktag.criteria;
import java.io.Serializable;
diff --git a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/selectioncriteria/NotEqualVerb.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/criteria/NotEqualVerb.java
similarity index 91%
rename from dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/selectioncriteria/NotEqualVerb.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/criteria/NotEqualVerb.java
index 2311c2987..86bf00012 100644
--- a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/selectioncriteria/NotEqualVerb.java
+++ b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/criteria/NotEqualVerb.java
@@ -1,5 +1,5 @@
-package eu.dnetlib.dhp.selectioncriteria;
+package eu.dnetlib.dhp.bulktag.criteria;
import java.io.Serializable;
diff --git a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/selectioncriteria/NotEqualVerbIgnoreCase.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/criteria/NotEqualVerbIgnoreCase.java
similarity index 92%
rename from dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/selectioncriteria/NotEqualVerbIgnoreCase.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/criteria/NotEqualVerbIgnoreCase.java
index de2f682a5..c6958a641 100644
--- a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/selectioncriteria/NotEqualVerbIgnoreCase.java
+++ b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/criteria/NotEqualVerbIgnoreCase.java
@@ -1,5 +1,5 @@
-package eu.dnetlib.dhp.selectioncriteria;
+package eu.dnetlib.dhp.bulktag.criteria;
import java.io.Serializable;
diff --git a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/selectioncriteria/Selection.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/criteria/Selection.java
similarity index 60%
rename from dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/selectioncriteria/Selection.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/criteria/Selection.java
index b488bda01..ec9fb716d 100644
--- a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/selectioncriteria/Selection.java
+++ b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/criteria/Selection.java
@@ -1,5 +1,5 @@
-package eu.dnetlib.dhp.selectioncriteria;
+package eu.dnetlib.dhp.bulktag.criteria;
public interface Selection {
diff --git a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/selectioncriteria/VerbClass.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/criteria/VerbClass.java
similarity index 86%
rename from dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/selectioncriteria/VerbClass.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/criteria/VerbClass.java
index d467f934f..5b35919bd 100644
--- a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/selectioncriteria/VerbClass.java
+++ b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/criteria/VerbClass.java
@@ -1,5 +1,5 @@
-package eu.dnetlib.dhp.selectioncriteria;
+package eu.dnetlib.dhp.bulktag.criteria;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
diff --git a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/selectioncriteria/VerbResolver.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/criteria/VerbResolver.java
similarity index 97%
rename from dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/selectioncriteria/VerbResolver.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/criteria/VerbResolver.java
index 6a8ceebc3..19d6c4615 100644
--- a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/selectioncriteria/VerbResolver.java
+++ b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/criteria/VerbResolver.java
@@ -1,16 +1,16 @@
-package eu.dnetlib.dhp.selectioncriteria;
-
-import java.io.Serializable;
-import java.lang.reflect.InvocationTargetException;
-import java.util.Map;
-import java.util.stream.Collectors;
+package eu.dnetlib.dhp.bulktag.criteria;
import io.github.classgraph.ClassGraph;
import io.github.classgraph.ClassInfo;
import io.github.classgraph.ClassInfoList;
import io.github.classgraph.ScanResult;
+import java.io.Serializable;
+import java.lang.reflect.InvocationTargetException;
+import java.util.Map;
+import java.util.stream.Collectors;
+
public class VerbResolver implements Serializable {
private Map> map = null; // = new HashMap<>();
private final ClassGraph classgraph = new ClassGraph();
diff --git a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/selectioncriteria/VerbResolverFactory.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/criteria/VerbResolverFactory.java
similarity index 73%
rename from dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/selectioncriteria/VerbResolverFactory.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/criteria/VerbResolverFactory.java
index 58bf60d42..0bb801999 100644
--- a/dhp-workflows/dhp-bulktag/src/main/java/eu/dnetlib/dhp/selectioncriteria/VerbResolverFactory.java
+++ b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/bulktag/criteria/VerbResolverFactory.java
@@ -1,5 +1,5 @@
-package eu.dnetlib.dhp.selectioncriteria;
+package eu.dnetlib.dhp.bulktag.criteria;
public class VerbResolverFactory {
diff --git a/dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/countrypropagation/CountrySbs.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/countrypropagation/CountrySbs.java
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/countrypropagation/CountrySbs.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/countrypropagation/CountrySbs.java
diff --git a/dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/countrypropagation/DatasourceCountry.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/countrypropagation/DatasourceCountry.java
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/countrypropagation/DatasourceCountry.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/countrypropagation/DatasourceCountry.java
diff --git a/dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/countrypropagation/PrepareDatasourceCountryAssociation.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/countrypropagation/PrepareDatasourceCountryAssociation.java
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/countrypropagation/PrepareDatasourceCountryAssociation.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/countrypropagation/PrepareDatasourceCountryAssociation.java
diff --git a/dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/countrypropagation/PrepareResultCountrySet.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/countrypropagation/PrepareResultCountrySet.java
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/countrypropagation/PrepareResultCountrySet.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/countrypropagation/PrepareResultCountrySet.java
diff --git a/dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/countrypropagation/ResultCountrySet.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/countrypropagation/ResultCountrySet.java
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/countrypropagation/ResultCountrySet.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/countrypropagation/ResultCountrySet.java
diff --git a/dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/countrypropagation/SparkCountryPropagationJob.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/countrypropagation/SparkCountryPropagationJob.java
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/countrypropagation/SparkCountryPropagationJob.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/countrypropagation/SparkCountryPropagationJob.java
diff --git a/dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/orcidtoresultfromsemrel/AutoritativeAuthor.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/orcidtoresultfromsemrel/AutoritativeAuthor.java
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/orcidtoresultfromsemrel/AutoritativeAuthor.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/orcidtoresultfromsemrel/AutoritativeAuthor.java
diff --git a/dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/orcidtoresultfromsemrel/PrepareResultOrcidAssociationStep1.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/orcidtoresultfromsemrel/PrepareResultOrcidAssociationStep1.java
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/orcidtoresultfromsemrel/PrepareResultOrcidAssociationStep1.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/orcidtoresultfromsemrel/PrepareResultOrcidAssociationStep1.java
diff --git a/dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/orcidtoresultfromsemrel/PrepareResultOrcidAssociationStep2.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/orcidtoresultfromsemrel/PrepareResultOrcidAssociationStep2.java
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/orcidtoresultfromsemrel/PrepareResultOrcidAssociationStep2.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/orcidtoresultfromsemrel/PrepareResultOrcidAssociationStep2.java
diff --git a/dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/orcidtoresultfromsemrel/ResultOrcidList.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/orcidtoresultfromsemrel/ResultOrcidList.java
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/orcidtoresultfromsemrel/ResultOrcidList.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/orcidtoresultfromsemrel/ResultOrcidList.java
diff --git a/dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/orcidtoresultfromsemrel/SparkOrcidToResultFromSemRelJob.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/orcidtoresultfromsemrel/SparkOrcidToResultFromSemRelJob.java
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/orcidtoresultfromsemrel/SparkOrcidToResultFromSemRelJob.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/orcidtoresultfromsemrel/SparkOrcidToResultFromSemRelJob.java
diff --git a/dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/projecttoresult/PrepareProjectResultsAssociation.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/projecttoresult/PrepareProjectResultsAssociation.java
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/projecttoresult/PrepareProjectResultsAssociation.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/projecttoresult/PrepareProjectResultsAssociation.java
diff --git a/dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/projecttoresult/ResultProjectSet.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/projecttoresult/ResultProjectSet.java
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/projecttoresult/ResultProjectSet.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/projecttoresult/ResultProjectSet.java
diff --git a/dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/projecttoresult/SparkResultToProjectThroughSemRelJob.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/projecttoresult/SparkResultToProjectThroughSemRelJob.java
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/projecttoresult/SparkResultToProjectThroughSemRelJob.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/projecttoresult/SparkResultToProjectThroughSemRelJob.java
diff --git a/dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/resulttocommunityfromorganization/OrganizationMap.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/resulttocommunityfromorganization/OrganizationMap.java
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/resulttocommunityfromorganization/OrganizationMap.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/resulttocommunityfromorganization/OrganizationMap.java
diff --git a/dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/resulttocommunityfromorganization/PrepareResultCommunitySet.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/resulttocommunityfromorganization/PrepareResultCommunitySet.java
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/resulttocommunityfromorganization/PrepareResultCommunitySet.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/resulttocommunityfromorganization/PrepareResultCommunitySet.java
diff --git a/dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/resulttocommunityfromorganization/ResultCommunityList.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/resulttocommunityfromorganization/ResultCommunityList.java
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/resulttocommunityfromorganization/ResultCommunityList.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/resulttocommunityfromorganization/ResultCommunityList.java
diff --git a/dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/resulttocommunityfromorganization/ResultOrganizations.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/resulttocommunityfromorganization/ResultOrganizations.java
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/resulttocommunityfromorganization/ResultOrganizations.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/resulttocommunityfromorganization/ResultOrganizations.java
diff --git a/dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/resulttocommunityfromorganization/SparkResultToCommunityFromOrganizationJob.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/resulttocommunityfromorganization/SparkResultToCommunityFromOrganizationJob.java
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/resulttocommunityfromorganization/SparkResultToCommunityFromOrganizationJob.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/resulttocommunityfromorganization/SparkResultToCommunityFromOrganizationJob.java
diff --git a/dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/resulttocommunityfromsemrel/PrepareResultCommunitySetStep1.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/resulttocommunityfromsemrel/PrepareResultCommunitySetStep1.java
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/resulttocommunityfromsemrel/PrepareResultCommunitySetStep1.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/resulttocommunityfromsemrel/PrepareResultCommunitySetStep1.java
diff --git a/dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/resulttocommunityfromsemrel/PrepareResultCommunitySetStep2.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/resulttocommunityfromsemrel/PrepareResultCommunitySetStep2.java
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/resulttocommunityfromsemrel/PrepareResultCommunitySetStep2.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/resulttocommunityfromsemrel/PrepareResultCommunitySetStep2.java
diff --git a/dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/resulttocommunityfromsemrel/SparkResultToCommunityThroughSemRelJob.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/resulttocommunityfromsemrel/SparkResultToCommunityThroughSemRelJob.java
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/resulttocommunityfromsemrel/SparkResultToCommunityThroughSemRelJob.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/resulttocommunityfromsemrel/SparkResultToCommunityThroughSemRelJob.java
diff --git a/dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/DatasourceOrganization.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/DatasourceOrganization.java
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/DatasourceOrganization.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/DatasourceOrganization.java
diff --git a/dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/PrepareResultInstRepoAssociation.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/PrepareResultInstRepoAssociation.java
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/PrepareResultInstRepoAssociation.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/PrepareResultInstRepoAssociation.java
diff --git a/dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/ResultOrganizationSet.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/ResultOrganizationSet.java
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/ResultOrganizationSet.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/ResultOrganizationSet.java
diff --git a/dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/SparkResultToOrganizationFromIstRepoJob.java b/dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/SparkResultToOrganizationFromIstRepoJob.java
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/java/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/SparkResultToOrganizationFromIstRepoJob.java
rename to dhp-workflows/dhp-enrichment/src/main/java/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/SparkResultToOrganizationFromIstRepoJob.java
diff --git a/dhp-workflows/dhp-bulktag/src/main/resources/eu/dnetlib/dhp/bulktag/input_bulkTag_parameters.json b/dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/bulktag/input_bulkTag_parameters.json
similarity index 100%
rename from dhp-workflows/dhp-bulktag/src/main/resources/eu/dnetlib/dhp/bulktag/input_bulkTag_parameters.json
rename to dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/bulktag/input_bulkTag_parameters.json
diff --git a/dhp-workflows/dhp-bulktag/src/main/resources/eu/dnetlib/dhp/bulktag/oozie_app/config-default.xml b/dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/bulktag/oozie_app/config-default.xml
similarity index 100%
rename from dhp-workflows/dhp-bulktag/src/main/resources/eu/dnetlib/dhp/bulktag/oozie_app/config-default.xml
rename to dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/bulktag/oozie_app/config-default.xml
diff --git a/dhp-workflows/dhp-bulktag/src/main/resources/eu/dnetlib/dhp/bulktag/oozie_app/workflow.xml b/dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/bulktag/oozie_app/workflow.xml
similarity index 100%
rename from dhp-workflows/dhp-bulktag/src/main/resources/eu/dnetlib/dhp/bulktag/oozie_app/workflow.xml
rename to dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/bulktag/oozie_app/workflow.xml
diff --git a/dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/countrypropagation/input_countrypropagation_parameters.json b/dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/countrypropagation/input_countrypropagation_parameters.json
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/countrypropagation/input_countrypropagation_parameters.json
rename to dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/countrypropagation/input_countrypropagation_parameters.json
diff --git a/dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/countrypropagation/input_prepareassoc_parameters.json b/dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/countrypropagation/input_prepareassoc_parameters.json
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/countrypropagation/input_prepareassoc_parameters.json
rename to dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/countrypropagation/input_prepareassoc_parameters.json
diff --git a/dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/countrypropagation/input_prepareresultcountry_parameters.json b/dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/countrypropagation/input_prepareresultcountry_parameters.json
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/countrypropagation/input_prepareresultcountry_parameters.json
rename to dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/countrypropagation/input_prepareresultcountry_parameters.json
diff --git a/dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/countrypropagation/oozie_app/config-default.xml b/dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/countrypropagation/oozie_app/config-default.xml
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/countrypropagation/oozie_app/config-default.xml
rename to dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/countrypropagation/oozie_app/config-default.xml
diff --git a/dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/countrypropagation/oozie_app/workflow.xml b/dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/countrypropagation/oozie_app/workflow.xml
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/countrypropagation/oozie_app/workflow.xml
rename to dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/countrypropagation/oozie_app/workflow.xml
diff --git a/dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/orcidtoresultfromsemrel/input_orcidtoresult_parameters.json b/dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/orcidtoresultfromsemrel/input_orcidtoresult_parameters.json
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/orcidtoresultfromsemrel/input_orcidtoresult_parameters.json
rename to dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/orcidtoresultfromsemrel/input_orcidtoresult_parameters.json
diff --git a/dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/orcidtoresultfromsemrel/input_prepareorcidtoresult_parameters.json b/dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/orcidtoresultfromsemrel/input_prepareorcidtoresult_parameters.json
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/orcidtoresultfromsemrel/input_prepareorcidtoresult_parameters.json
rename to dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/orcidtoresultfromsemrel/input_prepareorcidtoresult_parameters.json
diff --git a/dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/orcidtoresultfromsemrel/input_prepareorcidtoresult_parameters2.json b/dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/orcidtoresultfromsemrel/input_prepareorcidtoresult_parameters2.json
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/orcidtoresultfromsemrel/input_prepareorcidtoresult_parameters2.json
rename to dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/orcidtoresultfromsemrel/input_prepareorcidtoresult_parameters2.json
diff --git a/dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/orcidtoresultfromsemrel/oozie_app/config-default.xml b/dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/orcidtoresultfromsemrel/oozie_app/config-default.xml
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/orcidtoresultfromsemrel/oozie_app/config-default.xml
rename to dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/orcidtoresultfromsemrel/oozie_app/config-default.xml
diff --git a/dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/orcidtoresultfromsemrel/oozie_app/workflow.xml b/dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/orcidtoresultfromsemrel/oozie_app/workflow.xml
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/orcidtoresultfromsemrel/oozie_app/workflow.xml
rename to dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/orcidtoresultfromsemrel/oozie_app/workflow.xml
diff --git a/dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/projecttoresult/input_prepareprojecttoresult_parameters.json b/dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/projecttoresult/input_prepareprojecttoresult_parameters.json
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/projecttoresult/input_prepareprojecttoresult_parameters.json
rename to dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/projecttoresult/input_prepareprojecttoresult_parameters.json
diff --git a/dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/projecttoresult/input_projecttoresult_parameters.json b/dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/projecttoresult/input_projecttoresult_parameters.json
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/projecttoresult/input_projecttoresult_parameters.json
rename to dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/projecttoresult/input_projecttoresult_parameters.json
diff --git a/dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/projecttoresult/oozie_app/config-default.xml b/dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/projecttoresult/oozie_app/config-default.xml
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/projecttoresult/oozie_app/config-default.xml
rename to dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/projecttoresult/oozie_app/config-default.xml
diff --git a/dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/projecttoresult/oozie_app/workflow.xml b/dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/projecttoresult/oozie_app/workflow.xml
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/projecttoresult/oozie_app/workflow.xml
rename to dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/projecttoresult/oozie_app/workflow.xml
diff --git a/dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/resulttocommunityfromorganization/input_communitytoresult_parameters.json b/dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/resulttocommunityfromorganization/input_communitytoresult_parameters.json
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/resulttocommunityfromorganization/input_communitytoresult_parameters.json
rename to dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/resulttocommunityfromorganization/input_communitytoresult_parameters.json
diff --git a/dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/resulttocommunityfromorganization/input_preparecommunitytoresult_parameters.json b/dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/resulttocommunityfromorganization/input_preparecommunitytoresult_parameters.json
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/resulttocommunityfromorganization/input_preparecommunitytoresult_parameters.json
rename to dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/resulttocommunityfromorganization/input_preparecommunitytoresult_parameters.json
diff --git a/dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/resulttocommunityfromorganization/oozie_app/config-default.xml b/dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/resulttocommunityfromorganization/oozie_app/config-default.xml
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/resulttocommunityfromorganization/oozie_app/config-default.xml
rename to dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/resulttocommunityfromorganization/oozie_app/config-default.xml
diff --git a/dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/resulttocommunityfromorganization/oozie_app/workflow.xml b/dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/resulttocommunityfromorganization/oozie_app/workflow.xml
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/resulttocommunityfromorganization/oozie_app/workflow.xml
rename to dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/resulttocommunityfromorganization/oozie_app/workflow.xml
diff --git a/dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/resulttocommunityfromsemrel/input_communitytoresult_parameters.json b/dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/resulttocommunityfromsemrel/input_communitytoresult_parameters.json
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/resulttocommunityfromsemrel/input_communitytoresult_parameters.json
rename to dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/resulttocommunityfromsemrel/input_communitytoresult_parameters.json
diff --git a/dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/resulttocommunityfromsemrel/input_preparecommunitytoresult2_parameters.json b/dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/resulttocommunityfromsemrel/input_preparecommunitytoresult2_parameters.json
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/resulttocommunityfromsemrel/input_preparecommunitytoresult2_parameters.json
rename to dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/resulttocommunityfromsemrel/input_preparecommunitytoresult2_parameters.json
diff --git a/dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/resulttocommunityfromsemrel/input_preparecommunitytoresult_parameters.json b/dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/resulttocommunityfromsemrel/input_preparecommunitytoresult_parameters.json
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/resulttocommunityfromsemrel/input_preparecommunitytoresult_parameters.json
rename to dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/resulttocommunityfromsemrel/input_preparecommunitytoresult_parameters.json
diff --git a/dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/resulttocommunityfromsemrel/oozie_app/config-default.xml b/dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/resulttocommunityfromsemrel/oozie_app/config-default.xml
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/resulttocommunityfromsemrel/oozie_app/config-default.xml
rename to dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/resulttocommunityfromsemrel/oozie_app/config-default.xml
diff --git a/dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/resulttocommunityfromsemrel/oozie_app/workflow.xml b/dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/resulttocommunityfromsemrel/oozie_app/workflow.xml
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/resulttocommunityfromsemrel/oozie_app/workflow.xml
rename to dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/resulttocommunityfromsemrel/oozie_app/workflow.xml
diff --git a/dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/input_prepareresultorg_parameters.json b/dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/input_prepareresultorg_parameters.json
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/input_prepareresultorg_parameters.json
rename to dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/input_prepareresultorg_parameters.json
diff --git a/dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/input_propagationresulaffiliationfrominstrepo_parameters.json b/dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/input_propagationresulaffiliationfrominstrepo_parameters.json
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/input_propagationresulaffiliationfrominstrepo_parameters.json
rename to dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/input_propagationresulaffiliationfrominstrepo_parameters.json
diff --git a/dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/oozie_app/config-default.xml b/dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/oozie_app/config-default.xml
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/oozie_app/config-default.xml
rename to dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/oozie_app/config-default.xml
diff --git a/dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/oozie_app/workflow.xml b/dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/oozie_app/workflow.xml
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/main/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/oozie_app/workflow.xml
rename to dhp-workflows/dhp-enrichment/src/main/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/oozie_app/workflow.xml
diff --git a/dhp-workflows/dhp-bulktag/src/test/java/eu/dnetlib/dhp/BulkTagJobTest.java b/dhp-workflows/dhp-enrichment/src/test/java/eu/dnetlib/dhp/bulktag/BulkTagJobTest.java
similarity index 71%
rename from dhp-workflows/dhp-bulktag/src/test/java/eu/dnetlib/dhp/BulkTagJobTest.java
rename to dhp-workflows/dhp-enrichment/src/test/java/eu/dnetlib/dhp/bulktag/BulkTagJobTest.java
index 75ecb0298..f20678f7b 100644
--- a/dhp-workflows/dhp-bulktag/src/test/java/eu/dnetlib/dhp/BulkTagJobTest.java
+++ b/dhp-workflows/dhp-enrichment/src/test/java/eu/dnetlib/dhp/bulktag/BulkTagJobTest.java
@@ -1,13 +1,13 @@
-package eu.dnetlib.dhp;
-
-import static eu.dnetlib.dhp.community.TagginConstants.ZENODO_COMMUNITY_INDICATOR;
-
-import java.io.IOException;
-import java.nio.file.Files;
-import java.nio.file.Path;
+package eu.dnetlib.dhp.bulktag;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import eu.dnetlib.dhp.schema.oaf.Dataset;
+import eu.dnetlib.dhp.schema.oaf.OtherResearchProduct;
+import eu.dnetlib.dhp.schema.oaf.Publication;
+import eu.dnetlib.dhp.schema.oaf.Software;
import org.apache.commons.io.FileUtils;
+import org.apache.commons.io.IOUtils;
import org.apache.spark.SparkConf;
import org.apache.spark.api.java.JavaRDD;
import org.apache.spark.api.java.JavaSparkContext;
@@ -18,37 +18,44 @@ import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
-import org.mortbay.util.IO;
+
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import com.fasterxml.jackson.databind.ObjectMapper;
+import java.io.IOException;
+import java.nio.file.Files;
+import java.nio.file.Path;
-import eu.dnetlib.dhp.bulktag.SparkBulkTagJob;
-import eu.dnetlib.dhp.schema.oaf.Dataset;
-import eu.dnetlib.dhp.schema.oaf.OtherResearchProduct;
-import eu.dnetlib.dhp.schema.oaf.Publication;
-import eu.dnetlib.dhp.schema.oaf.Software;
+import static eu.dnetlib.dhp.bulktag.community.TaggingConstants.ZENODO_COMMUNITY_INDICATOR;
public class BulkTagJobTest {
+
private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();
- private static final ClassLoader cl = eu.dnetlib.dhp.BulkTagJobTest.class.getClassLoader();
+ public static final String MOCK_IS_LOOK_UP_URL = "BASEURL:8280/is/services/isLookUp";
+
+ public static final String pathMap =
+ "{ \"author\" : \"$['author'][*]['fullname']\","
+ + " \"title\" : \"$['title'][*]['value']\","
+ + " \"orcid\" : \"$['author'][*]['pid'][*][?(@['key']=='ORCID')]['value']\","
+ + " \"contributor\" : \"$['contributor'][*]['value']\","
+ + " \"description\" : \"$['description'][*]['value']\"}";
private static SparkSession spark;
private static Path workingDir;
- private static final Logger log = LoggerFactory.getLogger(eu.dnetlib.dhp.BulkTagJobTest.class);
+
+ private static final Logger log = LoggerFactory.getLogger(BulkTagJobTest.class);
private static String taggingConf = "";
static {
try {
- taggingConf = IO
+ taggingConf = IOUtils
.toString(
BulkTagJobTest.class
.getResourceAsStream(
- "/eu/dnetlib/dhp/communityconfiguration/tagging_conf.xml"));
+ "/eu/dnetlib/dhp/bulktag/communityconfiguration/tagging_conf.xml"));
} catch (IOException e) {
e.printStackTrace();
}
@@ -56,11 +63,11 @@ public class BulkTagJobTest {
@BeforeAll
public static void beforeAll() throws IOException {
- workingDir = Files.createTempDirectory(eu.dnetlib.dhp.BulkTagJobTest.class.getSimpleName());
+ workingDir = Files.createTempDirectory(BulkTagJobTest.class.getSimpleName());
log.info("using work dir {}", workingDir);
SparkConf conf = new SparkConf();
- conf.setAppName(eu.dnetlib.dhp.BulkTagJobTest.class.getSimpleName());
+ conf.setAppName(BulkTagJobTest.class.getSimpleName());
conf.setMaster("local[*]");
conf.set("spark.driver.host", "localhost");
@@ -84,34 +91,21 @@ public class BulkTagJobTest {
@Test
public void noUpdatesTest() throws Exception {
+ final String pathMap = BulkTagJobTest.pathMap;
SparkBulkTagJob
.main(
new String[] {
- "-isTest",
- Boolean.TRUE.toString(),
- "-isSparkSessionManaged",
- Boolean.FALSE.toString(),
- "-sourcePath",
- getClass().getResource("/eu/dnetlib/dhp/sample/dataset/no_updates").getPath(),
- "-taggingConf",
- taggingConf,
- "-resultTableName",
- "eu.dnetlib.dhp.schema.oaf.Dataset",
- "-outputPath",
- workingDir.toString() + "/dataset",
- "-isLookUpUrl",
- "http://beta.services.openaire.eu:8280/is/services/isLookUp",
- "-pathMap",
- "{ \"author\" : \"$['author'][*]['fullname']\","
- + " \"title\" : \"$['title'][*]['value']\","
- + " \"orcid\" : \"$['author'][*]['pid'][*][?(@['key']=='ORCID')]['value']\","
- + " \"contributor\" : \"$['contributor'][*]['value']\","
- + " \"description\" : \"$['description'][*]['value']\"}"
- // "-preparedInfoPath",
- // getClass().getResource("/eu/dnetlib/dhp/resulttocommunityfromsemrel/preparedInfo").getPath()
+ "-isTest", Boolean.TRUE.toString(),
+ "-isSparkSessionManaged", Boolean.FALSE.toString(),
+ "-sourcePath", getClass().getResource("/eu/dnetlib/dhp/bulktag/sample/dataset/no_updates").getPath(),
+ "-taggingConf", taggingConf,
+ "-resultTableName", "eu.dnetlib.dhp.schema.oaf.Dataset",
+ "-outputPath", workingDir.toString() + "/dataset",
+ "-isLookUpUrl", MOCK_IS_LOOK_UP_URL,
+ "-pathMap", pathMap
});
- final JavaSparkContext sc = new JavaSparkContext(spark.sparkContext());
+ final JavaSparkContext sc = JavaSparkContext.fromSparkContext(spark.sparkContext());
JavaRDD tmp = sc
.textFile(workingDir.toString() + "/dataset")
@@ -134,34 +128,24 @@ public class BulkTagJobTest {
@Test
public void bulktagBySubjectNoPreviousContextTest() throws Exception {
+ final String sourcePath = getClass()
+ .getResource("/eu/dnetlib/dhp/bulktag/sample/dataset/update_subject/nocontext")
+ .getPath();
+ final String pathMap = BulkTagJobTest.pathMap;
SparkBulkTagJob
.main(
new String[] {
- "-isTest",
- Boolean.TRUE.toString(),
- "-isSparkSessionManaged",
- Boolean.FALSE.toString(),
- "-sourcePath",
- getClass()
- .getResource("/eu/dnetlib/dhp/sample/dataset/update_subject/nocontext")
- .getPath(),
- "-taggingConf",
- taggingConf,
- "-resultTableName",
- "eu.dnetlib.dhp.schema.oaf.Dataset",
- "-outputPath",
- workingDir.toString() + "/dataset",
- "-isLookUpUrl",
- "http://beta.services.openaire.eu:8280/is/services/isLookUp",
- "-pathMap",
- "{ \"author\" : \"$['author'][*]['fullname']\","
- + " \"title\" : \"$['title'][*]['value']\","
- + " \"orcid\" : \"$['author'][*]['pid'][*][?(@['key']=='ORCID')]['value']\","
- + " \"contributor\" : \"$['contributor'][*]['value']\","
- + " \"description\" : \"$['description'][*]['value']\"}"
+ "-isTest", Boolean.TRUE.toString(),
+ "-isSparkSessionManaged", Boolean.FALSE.toString(),
+ "-sourcePath", sourcePath,
+ "-taggingConf", taggingConf,
+ "-resultTableName", "eu.dnetlib.dhp.schema.oaf.Dataset",
+ "-outputPath", workingDir.toString() + "/dataset",
+ "-isLookUpUrl", MOCK_IS_LOOK_UP_URL,
+ "-pathMap", pathMap
});
- final JavaSparkContext sc = new JavaSparkContext(spark.sparkContext());
+ final JavaSparkContext sc = JavaSparkContext.fromSparkContext(spark.sparkContext());
JavaRDD tmp = sc
.textFile(workingDir.toString() + "/dataset")
@@ -240,32 +224,22 @@ public class BulkTagJobTest {
@Test
public void bulktagBySubjectPreviousContextNoProvenanceTest() throws Exception {
+ final String sourcePath = getClass()
+ .getResource(
+ "/eu/dnetlib/dhp/bulktag/sample/dataset/update_subject/contextnoprovenance")
+ .getPath();
+ final String pathMap = BulkTagJobTest.pathMap;
SparkBulkTagJob
.main(
new String[] {
- "-isTest",
- Boolean.TRUE.toString(),
- "-isSparkSessionManaged",
- Boolean.FALSE.toString(),
- "-sourcePath",
- getClass()
- .getResource(
- "/eu/dnetlib/dhp/sample/dataset/update_subject/contextnoprovenance")
- .getPath(),
- "-taggingConf",
- taggingConf,
- "-resultTableName",
- "eu.dnetlib.dhp.schema.oaf.Dataset",
- "-outputPath",
- workingDir.toString() + "/dataset",
- "-isLookUpUrl",
- "http://beta.services.openaire.eu:8280/is/services/isLookUp",
- "-pathMap",
- "{ \"author\" : \"$['author'][*]['fullname']\","
- + " \"title\" : \"$['title'][*]['value']\","
- + " \"orcid\" : \"$['author'][*]['pid'][*][?(@['key']=='ORCID')]['value']\","
- + " \"contributor\" : \"$['contributor'][*]['value']\","
- + " \"description\" : \"$['description'][*]['value']\"}"
+ "-isTest", Boolean.TRUE.toString(),
+ "-isSparkSessionManaged", Boolean.FALSE.toString(),
+ "-sourcePath", sourcePath,
+ "-taggingConf", taggingConf,
+ "-resultTableName", "eu.dnetlib.dhp.schema.oaf.Dataset",
+ "-outputPath", workingDir.toString() + "/dataset",
+ "-isLookUpUrl", MOCK_IS_LOOK_UP_URL,
+ "-pathMap", pathMap
});
final JavaSparkContext sc = new JavaSparkContext(spark.sparkContext());
@@ -332,34 +306,23 @@ public class BulkTagJobTest {
@Test
public void bulktagByDatasourceTest() throws Exception {
+ final String sourcePath = getClass()
+ .getResource("/eu/dnetlib/dhp/bulktag/sample/publication/update_datasource")
+ .getPath();
SparkBulkTagJob
.main(
new String[] {
- "-isTest",
- Boolean.TRUE.toString(),
- "-isSparkSessionManaged",
- Boolean.FALSE.toString(),
- "-sourcePath",
- getClass()
- .getResource("/eu/dnetlib/dhp/sample/publication/update_datasource")
- .getPath(),
- "-taggingConf",
- taggingConf,
- "-resultTableName",
- "eu.dnetlib.dhp.schema.oaf.Publication",
- "-outputPath",
- workingDir.toString() + "/publication",
- "-isLookUpUrl",
- "http://beta.services.openaire.eu:8280/is/services/isLookUp",
- "-pathMap",
- "{ \"author\" : \"$['author'][*]['fullname']\","
- + " \"title\" : \"$['title'][*]['value']\","
- + " \"orcid\" : \"$['author'][*]['pid'][*][?(@['key']=='ORCID')]['value']\","
- + " \"contributor\" : \"$['contributor'][*]['value']\","
- + " \"description\" : \"$['description'][*]['value']\"}"
+ "-isTest", Boolean.TRUE.toString(),
+ "-isSparkSessionManaged", Boolean.FALSE.toString(),
+ "-sourcePath", sourcePath,
+ "-taggingConf", taggingConf,
+ "-resultTableName", "eu.dnetlib.dhp.schema.oaf.Publication",
+ "-outputPath", workingDir.toString() + "/publication",
+ "-isLookUpUrl", MOCK_IS_LOOK_UP_URL,
+ "-pathMap", pathMap
});
- final JavaSparkContext sc = new JavaSparkContext(spark.sparkContext());
+ final JavaSparkContext sc = JavaSparkContext.fromSparkContext(spark.sparkContext());
JavaRDD tmp = sc
.textFile(workingDir.toString() + "/publication")
@@ -415,35 +378,24 @@ public class BulkTagJobTest {
@Test
public void bulktagByZenodoCommunityTest() throws Exception {
+ final String sourcePath = getClass()
+ .getResource(
+ "/eu/dnetlib/dhp/bulktag/sample/otherresearchproduct/update_zenodocommunity")
+ .getPath();
SparkBulkTagJob
.main(
new String[] {
- "-isTest",
- Boolean.TRUE.toString(),
- "-isSparkSessionManaged",
- Boolean.FALSE.toString(),
- "-sourcePath",
- getClass()
- .getResource(
- "/eu/dnetlib/dhp/sample/otherresearchproduct/update_zenodocommunity")
- .getPath(),
- "-taggingConf",
- taggingConf,
- "-resultTableName",
- "eu.dnetlib.dhp.schema.oaf.OtherResearchProduct",
- "-outputPath",
- workingDir.toString() + "/orp",
- "-isLookUpUrl",
- "http://beta.services.openaire.eu:8280/is/services/isLookUp",
- "-pathMap",
- "{ \"author\" : \"$['author'][*]['fullname']\","
- + " \"title\" : \"$['title'][*]['value']\","
- + " \"orcid\" : \"$['author'][*]['pid'][*][?(@['key']=='ORCID')]['value']\","
- + " \"contributor\" : \"$['contributor'][*]['value']\","
- + " \"description\" : \"$['description'][*]['value']\"}"
+ "-isTest", Boolean.TRUE.toString(),
+ "-isSparkSessionManaged", Boolean.FALSE.toString(),
+ "-sourcePath", sourcePath,
+ "-taggingConf", taggingConf,
+ "-resultTableName", "eu.dnetlib.dhp.schema.oaf.OtherResearchProduct",
+ "-outputPath", workingDir.toString() + "/orp",
+ "-isLookUpUrl", MOCK_IS_LOOK_UP_URL,
+ "-pathMap", pathMap
});
- final JavaSparkContext sc = new JavaSparkContext(spark.sparkContext());
+ final JavaSparkContext sc = JavaSparkContext.fromSparkContext(spark.sparkContext());
JavaRDD tmp = sc
.textFile(workingDir.toString() + "/orp")
@@ -548,34 +500,23 @@ public class BulkTagJobTest {
@Test
public void bulktagBySubjectDatasourceTest() throws Exception {
+ final String sourcePath = getClass()
+ .getResource("/eu/dnetlib/dhp/bulktag/sample/dataset/update_subject_datasource")
+ .getPath();
SparkBulkTagJob
.main(
new String[] {
- "-isTest",
- Boolean.TRUE.toString(),
- "-isSparkSessionManaged",
- Boolean.FALSE.toString(),
- "-sourcePath",
- getClass()
- .getResource("/eu/dnetlib/dhp/sample/dataset/update_subject_datasource")
- .getPath(),
- "-taggingConf",
- taggingConf,
- "-resultTableName",
- "eu.dnetlib.dhp.schema.oaf.Dataset",
- "-outputPath",
- workingDir.toString() + "/dataset",
- "-isLookUpUrl",
- "http://beta.services.openaire.eu:8280/is/services/isLookUp",
- "-pathMap",
- "{ \"author\" : \"$['author'][*]['fullname']\","
- + " \"title\" : \"$['title'][*]['value']\","
- + " \"orcid\" : \"$['author'][*]['pid'][*][?(@['key']=='ORCID')]['value']\","
- + " \"contributor\" : \"$['contributor'][*]['value']\","
- + " \"description\" : \"$['description'][*]['value']\"}"
+ "-isTest", Boolean.TRUE.toString(),
+ "-isSparkSessionManaged", Boolean.FALSE.toString(),
+ "-sourcePath", sourcePath,
+ "-taggingConf", taggingConf,
+ "-resultTableName", "eu.dnetlib.dhp.schema.oaf.Dataset",
+ "-outputPath", workingDir.toString() + "/dataset",
+ "-isLookUpUrl", MOCK_IS_LOOK_UP_URL,
+ "-pathMap", pathMap
});
- final JavaSparkContext sc = new JavaSparkContext(spark.sparkContext());
+ final JavaSparkContext sc = JavaSparkContext.fromSparkContext(spark.sparkContext());
JavaRDD tmp = sc
.textFile(workingDir.toString() + "/dataset")
@@ -691,29 +632,17 @@ public class BulkTagJobTest {
SparkBulkTagJob
.main(
new String[] {
- "-isTest",
- Boolean.TRUE.toString(),
- "-isSparkSessionManaged",
- Boolean.FALSE.toString(),
- "-sourcePath",
- getClass().getResource("/eu/dnetlib/dhp/sample/software/").getPath(),
- "-taggingConf",
- taggingConf,
- "-resultTableName",
- "eu.dnetlib.dhp.schema.oaf.Software",
- "-outputPath",
- workingDir.toString() + "/software",
- "-isLookUpUrl",
- "http://beta.services.openaire.eu:8280/is/services/isLookUp",
- "-pathMap",
- "{ \"author\" : \"$['author'][*]['fullname']\","
- + " \"title\" : \"$['title'][*]['value']\","
- + " \"orcid\" : \"$['author'][*]['pid'][*][?(@['key']=='ORCID')]['value']\","
- + " \"contributor\" : \"$['contributor'][*]['value']\","
- + " \"description\" : \"$['description'][*]['value']\"}"
+ "-isTest", Boolean.TRUE.toString(),
+ "-isSparkSessionManaged", Boolean.FALSE.toString(),
+ "-sourcePath", getClass().getResource("/eu/dnetlib/dhp/bulktag/sample/software/").getPath(),
+ "-taggingConf", taggingConf,
+ "-resultTableName", "eu.dnetlib.dhp.schema.oaf.Software",
+ "-outputPath", workingDir.toString() + "/software",
+ "-isLookUpUrl", MOCK_IS_LOOK_UP_URL,
+ "-pathMap", pathMap
});
- final JavaSparkContext sc = new JavaSparkContext(spark.sparkContext());
+ final JavaSparkContext sc = JavaSparkContext.fromSparkContext(spark.sparkContext());
JavaRDD tmp = sc
.textFile(workingDir.toString() + "/software")
@@ -796,35 +725,24 @@ public class BulkTagJobTest {
@Test
public void bulktagDatasourcewithConstraintsTest() throws Exception {
+ final String sourcePath = getClass()
+ .getResource(
+ "/eu/dnetlib/dhp/bulktag/sample/dataset/update_datasourcewithconstraints")
+ .getPath();
SparkBulkTagJob
.main(
new String[] {
- "-isTest",
- Boolean.TRUE.toString(),
- "-isSparkSessionManaged",
- Boolean.FALSE.toString(),
- "-sourcePath",
- getClass()
- .getResource(
- "/eu/dnetlib/dhp/sample/dataset/update_datasourcewithconstraints")
- .getPath(),
- "-taggingConf",
- taggingConf,
- "-resultTableName",
- "eu.dnetlib.dhp.schema.oaf.Dataset",
- "-outputPath",
- workingDir.toString() + "/dataset",
- "-isLookUpUrl",
- "http://beta.services.openaire.eu:8280/is/services/isLookUp",
- "-pathMap",
- "{ \"author\" : \"$['author'][*]['fullname']\","
- + " \"title\" : \"$['title'][*]['value']\","
- + " \"orcid\" : \"$['author'][*]['pid'][*][?(@['key']=='ORCID')]['value']\","
- + " \"contributor\" : \"$['contributor'][*]['value']\","
- + " \"description\" : \"$['description'][*]['value']\"}"
+ "-isTest", Boolean.TRUE.toString(),
+ "-isSparkSessionManaged", Boolean.FALSE.toString(),
+ "-sourcePath", sourcePath,
+ "-taggingConf", taggingConf,
+ "-resultTableName", "eu.dnetlib.dhp.schema.oaf.Dataset",
+ "-outputPath", workingDir.toString() + "/dataset",
+ "-isLookUpUrl", MOCK_IS_LOOK_UP_URL,
+ "-pathMap", pathMap
});
- final JavaSparkContext sc = new JavaSparkContext(spark.sparkContext());
+ final JavaSparkContext sc = JavaSparkContext.fromSparkContext(spark.sparkContext());
JavaRDD tmp = sc
.textFile(workingDir.toString() + "/dataset")
diff --git a/dhp-workflows/dhp-bulktag/src/test/java/eu/dnetlib/dhp/CommunityConfigurationFactoryTest.java b/dhp-workflows/dhp-enrichment/src/test/java/eu/dnetlib/dhp/bulktag/CommunityConfigurationFactoryTest.java
similarity index 93%
rename from dhp-workflows/dhp-bulktag/src/test/java/eu/dnetlib/dhp/CommunityConfigurationFactoryTest.java
rename to dhp-workflows/dhp-enrichment/src/test/java/eu/dnetlib/dhp/bulktag/CommunityConfigurationFactoryTest.java
index 3aae9ebee..056c3345c 100644
--- a/dhp-workflows/dhp-bulktag/src/test/java/eu/dnetlib/dhp/CommunityConfigurationFactoryTest.java
+++ b/dhp-workflows/dhp-enrichment/src/test/java/eu/dnetlib/dhp/bulktag/CommunityConfigurationFactoryTest.java
@@ -1,23 +1,21 @@
-package eu.dnetlib.dhp;
-
-import java.io.IOException;
-import java.lang.reflect.InvocationTargetException;
-import java.util.*;
+package eu.dnetlib.dhp.bulktag;
+import com.google.gson.Gson;
+import eu.dnetlib.dhp.bulktag.community.CommunityConfiguration;
+import eu.dnetlib.dhp.bulktag.community.CommunityConfigurationFactory;
+import eu.dnetlib.dhp.bulktag.community.Constraint;
+import eu.dnetlib.dhp.bulktag.community.SelectionConstraints;
+import eu.dnetlib.dhp.bulktag.criteria.VerbResolver;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.StringUtils;
import org.dom4j.DocumentException;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
-import com.google.gson.Gson;
-
-import eu.dnetlib.dhp.community.CommunityConfiguration;
-import eu.dnetlib.dhp.community.CommunityConfigurationFactory;
-import eu.dnetlib.dhp.community.Constraint;
-import eu.dnetlib.dhp.community.SelectionConstraints;
-import eu.dnetlib.dhp.selectioncriteria.VerbResolver;
+import java.io.IOException;
+import java.lang.reflect.InvocationTargetException;
+import java.util.*;
/** Created by miriam on 03/08/2018. */
public class CommunityConfigurationFactoryTest {
diff --git a/dhp-workflows/dhp-propagation/src/test/java/eu/dnetlib/dhp/countrypropagation/CountryPropagationJobTest.java b/dhp-workflows/dhp-enrichment/src/test/java/eu/dnetlib/dhp/countrypropagation/CountryPropagationJobTest.java
similarity index 81%
rename from dhp-workflows/dhp-propagation/src/test/java/eu/dnetlib/dhp/countrypropagation/CountryPropagationJobTest.java
rename to dhp-workflows/dhp-enrichment/src/test/java/eu/dnetlib/dhp/countrypropagation/CountryPropagationJobTest.java
index 2370d5e6c..b62238089 100644
--- a/dhp-workflows/dhp-propagation/src/test/java/eu/dnetlib/dhp/countrypropagation/CountryPropagationJobTest.java
+++ b/dhp-workflows/dhp-enrichment/src/test/java/eu/dnetlib/dhp/countrypropagation/CountryPropagationJobTest.java
@@ -5,12 +5,15 @@ import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.ArrayList;
+import java.util.Iterator;
import java.util.List;
import org.apache.commons.io.FileUtils;
import org.apache.spark.SparkConf;
import org.apache.spark.api.java.JavaRDD;
import org.apache.spark.api.java.JavaSparkContext;
+import org.apache.spark.api.java.function.FlatMapFunction;
+import org.apache.spark.api.java.function.MapFunction;
import org.apache.spark.sql.*;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.Assertions;
@@ -26,12 +29,11 @@ import eu.dnetlib.dhp.schema.oaf.Software;
import scala.Tuple2;
public class CountryPropagationJobTest {
+
private static final Logger log = LoggerFactory.getLogger(CountryPropagationJobTest.class);
private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();
- private static final ClassLoader cl = CountryPropagationJobTest.class.getClassLoader();
-
private static SparkSession spark;
private static Path workingDir;
@@ -101,8 +103,8 @@ public class CountryPropagationJobTest {
Assertions.assertEquals(0, verificationDs.filter("size(country) > 2").count());
Dataset countryExploded = verificationDs
- .flatMap(row -> row.getCountry().iterator(), Encoders.bean(Country.class))
- .map(c -> c.getClassid(), Encoders.STRING());
+ .flatMap((FlatMapFunction) row -> row.getCountry().iterator(), Encoders.bean(Country.class))
+ .map((MapFunction) c -> c.getClassid(), Encoders.STRING());
Assertions.assertEquals(9, countryExploded.count());
@@ -115,20 +117,18 @@ public class CountryPropagationJobTest {
Assertions.assertEquals(2, countryExploded.filter("value = 'JP'").count());
Dataset> countryExplodedWithCountryclassid = verificationDs
- .flatMap(
- row -> {
- List> prova = new ArrayList();
- List country_list = row.getCountry();
- country_list
- .stream()
- .forEach(
+ .flatMap((FlatMapFunction>) row -> {
+ List> prova = new ArrayList();
+ List country_list = row.getCountry();
+ country_list
+ .stream()
+ .forEach(
c -> prova
.add(
new Tuple2<>(
row.getId(), c.getClassid())));
- return prova.iterator();
- },
- Encoders.tuple(Encoders.STRING(), Encoders.STRING()));
+ return prova.iterator();
+ }, Encoders.tuple(Encoders.STRING(), Encoders.STRING()));
Assertions.assertEquals(9, countryExplodedWithCountryclassid.count());
@@ -178,20 +178,20 @@ public class CountryPropagationJobTest {
Dataset> countryExplodedWithCountryclassname = verificationDs
.flatMap(
- row -> {
- List> prova = new ArrayList();
- List country_list = row.getCountry();
- country_list
- .stream()
- .forEach(
- c -> prova
- .add(
- new Tuple2<>(
- row.getId(),
- c.getClassname())));
- return prova.iterator();
- },
- Encoders.tuple(Encoders.STRING(), Encoders.STRING()));
+ (FlatMapFunction>) row -> {
+ List> prova = new ArrayList();
+ List country_list = row.getCountry();
+ country_list
+ .stream()
+ .forEach(
+ c -> prova
+ .add(
+ new Tuple2<>(
+ row.getId(),
+ c.getClassname())));
+ return prova.iterator();
+ },
+ Encoders.tuple(Encoders.STRING(), Encoders.STRING()));
countryExplodedWithCountryclassname.show(false);
Assertions
@@ -239,22 +239,22 @@ public class CountryPropagationJobTest {
Dataset> countryExplodedWithCountryProvenance = verificationDs
.flatMap(
- row -> {
- List> prova = new ArrayList();
- List country_list = row.getCountry();
- country_list
- .stream()
- .forEach(
- c -> prova
- .add(
- new Tuple2<>(
- row.getId(),
- c
- .getDataInfo()
- .getInferenceprovenance())));
- return prova.iterator();
- },
- Encoders.tuple(Encoders.STRING(), Encoders.STRING()));
+ (FlatMapFunction>) row -> {
+ List> prova = new ArrayList();
+ List country_list = row.getCountry();
+ country_list
+ .stream()
+ .forEach(
+ c -> prova
+ .add(
+ new Tuple2<>(
+ row.getId(),
+ c
+ .getDataInfo()
+ .getInferenceprovenance())));
+ return prova.iterator();
+ },
+ Encoders.tuple(Encoders.STRING(), Encoders.STRING()));
Assertions
.assertEquals(
diff --git a/dhp-workflows/dhp-propagation/src/test/java/eu/dnetlib/dhp/orcidtoresultfromsemrel/OrcidPropagationJobTest.java b/dhp-workflows/dhp-enrichment/src/test/java/eu/dnetlib/dhp/orcidtoresultfromsemrel/OrcidPropagationJobTest.java
similarity index 98%
rename from dhp-workflows/dhp-propagation/src/test/java/eu/dnetlib/dhp/orcidtoresultfromsemrel/OrcidPropagationJobTest.java
rename to dhp-workflows/dhp-enrichment/src/test/java/eu/dnetlib/dhp/orcidtoresultfromsemrel/OrcidPropagationJobTest.java
index 0b0ec62d1..edd2e7ba7 100644
--- a/dhp-workflows/dhp-propagation/src/test/java/eu/dnetlib/dhp/orcidtoresultfromsemrel/OrcidPropagationJobTest.java
+++ b/dhp-workflows/dhp-enrichment/src/test/java/eu/dnetlib/dhp/orcidtoresultfromsemrel/OrcidPropagationJobTest.java
@@ -29,8 +29,6 @@ public class OrcidPropagationJobTest {
private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();
- private static final ClassLoader cl = OrcidPropagationJobTest.class.getClassLoader();
-
private static SparkSession spark;
private static Path workingDir;
diff --git a/dhp-workflows/dhp-propagation/src/test/java/eu/dnetlib/dhp/projecttoresult/ProjectPropagationJobTest.java b/dhp-workflows/dhp-enrichment/src/test/java/eu/dnetlib/dhp/projecttoresult/ProjectPropagationJobTest.java
similarity index 62%
rename from dhp-workflows/dhp-propagation/src/test/java/eu/dnetlib/dhp/projecttoresult/ProjectPropagationJobTest.java
rename to dhp-workflows/dhp-enrichment/src/test/java/eu/dnetlib/dhp/projecttoresult/ProjectPropagationJobTest.java
index 7ed26b6b2..ff63753b8 100644
--- a/dhp-workflows/dhp-propagation/src/test/java/eu/dnetlib/dhp/projecttoresult/ProjectPropagationJobTest.java
+++ b/dhp-workflows/dhp-enrichment/src/test/java/eu/dnetlib/dhp/projecttoresult/ProjectPropagationJobTest.java
@@ -9,6 +9,7 @@ import org.apache.commons.io.FileUtils;
import org.apache.spark.SparkConf;
import org.apache.spark.api.java.JavaRDD;
import org.apache.spark.api.java.JavaSparkContext;
+import org.apache.spark.api.java.function.FilterFunction;
import org.apache.spark.sql.Dataset;
import org.apache.spark.sql.Encoders;
import org.apache.spark.sql.SparkSession;
@@ -29,8 +30,6 @@ public class ProjectPropagationJobTest {
private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();
- private static final ClassLoader cl = ProjectPropagationJobTest.class.getClassLoader();
-
private static SparkSession spark;
private static Path workingDir;
@@ -72,34 +71,26 @@ public class ProjectPropagationJobTest {
@Test
public void NoUpdateTest() throws Exception {
- SparkResultToProjectThroughSemRelJob
- .main(
+ final String potentialUpdateDate = getClass()
+ .getResource(
+ "/eu/dnetlib/dhp/projecttoresult/preparedInfo/noupdates/potentialUpdates")
+ .getPath();
+ final String alreadyLinkedPath = getClass()
+ .getResource(
+ "/eu/dnetlib/dhp/projecttoresult/preparedInfo/alreadyLinked")
+ .getPath();
+ SparkResultToProjectThroughSemRelJob.main(
new String[] {
- "-isTest",
- Boolean.TRUE.toString(),
- "-isSparkSessionManaged",
- Boolean.FALSE.toString(),
- // "-sourcePath",
- // getClass().getResource("/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/sample/relation").getPath(),
- "-hive_metastore_uris",
- "",
- "-saveGraph",
- "true",
- "-outputPath",
- workingDir.toString() + "/relation",
- "-potentialUpdatePath",
- getClass()
- .getResource(
- "/eu/dnetlib/dhp/projecttoresult/preparedInfo/noupdates/potentialUpdates")
- .getPath(),
- "-alreadyLinkedPath",
- getClass()
- .getResource(
- "/eu/dnetlib/dhp/projecttoresult/preparedInfo/alreadyLinked")
- .getPath(),
+ "-isTest", Boolean.TRUE.toString(),
+ "-isSparkSessionManaged", Boolean.FALSE.toString(),
+ "-hive_metastore_uris", "",
+ "-saveGraph", "true",
+ "-outputPath", workingDir.toString() + "/relation",
+ "-potentialUpdatePath", potentialUpdateDate,
+ "-alreadyLinkedPath", alreadyLinkedPath,
});
- final JavaSparkContext sc = new JavaSparkContext(spark.sparkContext());
+ final JavaSparkContext sc = JavaSparkContext.fromSparkContext(spark.sparkContext());
JavaRDD tmp = sc
.textFile(workingDir.toString() + "/relation")
@@ -115,34 +106,26 @@ public class ProjectPropagationJobTest {
*/
@Test
public void UpdateTenTest() throws Exception {
- SparkResultToProjectThroughSemRelJob
- .main(
+ final String potentialUpdatePath = getClass()
+ .getResource(
+ "/eu/dnetlib/dhp/projecttoresult/preparedInfo/tenupdates/potentialUpdates")
+ .getPath();
+ final String alreadyLinkedPath = getClass()
+ .getResource(
+ "/eu/dnetlib/dhp/projecttoresult/preparedInfo/alreadyLinked")
+ .getPath();
+ SparkResultToProjectThroughSemRelJob.main(
new String[] {
- "-isTest",
- Boolean.TRUE.toString(),
- "-isSparkSessionManaged",
- Boolean.FALSE.toString(),
- // "-sourcePath",
- // getClass().getResource("/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/sample/relation").getPath(),
- "-hive_metastore_uris",
- "",
- "-saveGraph",
- "true",
- "-outputPath",
- workingDir.toString() + "/relation",
- "-potentialUpdatePath",
- getClass()
- .getResource(
- "/eu/dnetlib/dhp/projecttoresult/preparedInfo/tenupdates/potentialUpdates")
- .getPath(),
- "-alreadyLinkedPath",
- getClass()
- .getResource(
- "/eu/dnetlib/dhp/projecttoresult/preparedInfo/alreadyLinked")
- .getPath(),
+ "-isTest", Boolean.TRUE.toString(),
+ "-isSparkSessionManaged", Boolean.FALSE.toString(),
+ "-hive_metastore_uris", "",
+ "-saveGraph", "true",
+ "-outputPath", workingDir.toString() + "/relation",
+ "-potentialUpdatePath", potentialUpdatePath,
+ "-alreadyLinkedPath", alreadyLinkedPath,
});
- final JavaSparkContext sc = new JavaSparkContext(spark.sparkContext());
+ final JavaSparkContext sc = JavaSparkContext.fromSparkContext(spark.sparkContext());
JavaRDD tmp = sc
.textFile(workingDir.toString() + "/relation")
@@ -160,18 +143,18 @@ public class ProjectPropagationJobTest {
.assertEquals(
5,
verificationDs
- .filter(
- r -> r.getSource().substring(0, 2).equals("50")
- && r.getTarget().substring(0, 2).equals("40")
+ .filter((FilterFunction) r ->
+ r.getSource().startsWith("50")
+ && r.getTarget().startsWith("40")
&& r.getRelClass().equals("isProducedBy"))
.count());
Assertions
.assertEquals(
5,
verificationDs
- .filter(
- r -> r.getSource().substring(0, 2).equals("40")
- && r.getTarget().substring(0, 2).equals("50")
+ .filter((FilterFunction) r ->
+ r.getSource().startsWith("40")
+ && r.getTarget().startsWith("50")
&& r.getRelClass().equals("produces"))
.count());
@@ -194,34 +177,26 @@ public class ProjectPropagationJobTest {
*/
@Test
public void UpdateMixTest() throws Exception {
- SparkResultToProjectThroughSemRelJob
- .main(
+ final String potentialUpdatepath = getClass()
+ .getResource(
+ "/eu/dnetlib/dhp/projecttoresult/preparedInfo/updatesmixed/potentialUpdates")
+ .getPath();
+ final String alreadyLinkedPath = getClass()
+ .getResource(
+ "/eu/dnetlib/dhp/projecttoresult/preparedInfo/alreadyLinked")
+ .getPath();
+ SparkResultToProjectThroughSemRelJob.main(
new String[] {
- "-isTest",
- Boolean.TRUE.toString(),
- "-isSparkSessionManaged",
- Boolean.FALSE.toString(),
- // "-sourcePath",
- // getClass().getResource("/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/sample/relation").getPath(),
- "-hive_metastore_uris",
- "",
- "-saveGraph",
- "true",
- "-outputPath",
- workingDir.toString() + "/relation",
- "-potentialUpdatePath",
- getClass()
- .getResource(
- "/eu/dnetlib/dhp/projecttoresult/preparedInfo/updatesmixed/potentialUpdates")
- .getPath(),
- "-alreadyLinkedPath",
- getClass()
- .getResource(
- "/eu/dnetlib/dhp/projecttoresult/preparedInfo/alreadyLinked")
- .getPath(),
+ "-isTest", Boolean.TRUE.toString(),
+ "-isSparkSessionManaged", Boolean.FALSE.toString(),
+ "-hive_metastore_uris", "",
+ "-saveGraph", "true",
+ "-outputPath", workingDir.toString() + "/relation",
+ "-potentialUpdatePath", potentialUpdatepath,
+ "-alreadyLinkedPath", alreadyLinkedPath,
});
- final JavaSparkContext sc = new JavaSparkContext(spark.sparkContext());
+ final JavaSparkContext sc = JavaSparkContext.fromSparkContext(spark.sparkContext());
JavaRDD tmp = sc
.textFile(workingDir.toString() + "/relation")
@@ -242,18 +217,18 @@ public class ProjectPropagationJobTest {
.assertEquals(
4,
verificationDs
- .filter(
- r -> r.getSource().substring(0, 2).equals("50")
- && r.getTarget().substring(0, 2).equals("40")
+ .filter((FilterFunction) r ->
+ r.getSource().startsWith("50")
+ && r.getTarget().startsWith("40")
&& r.getRelClass().equals("isProducedBy"))
.count());
Assertions
.assertEquals(
4,
verificationDs
- .filter(
- r -> r.getSource().substring(0, 2).equals("40")
- && r.getTarget().substring(0, 2).equals("50")
+ .filter((FilterFunction) r ->
+ r.getSource().startsWith("40")
+ && r.getTarget().startsWith("50")
&& r.getRelClass().equals("produces"))
.count());
diff --git a/dhp-workflows/dhp-propagation/src/test/java/eu/dnetlib/dhp/resulttocommunityfromorganization/ResultToCommunityJobTest.java b/dhp-workflows/dhp-enrichment/src/test/java/eu/dnetlib/dhp/resulttocommunityfromorganization/ResultToCommunityJobTest.java
similarity index 88%
rename from dhp-workflows/dhp-propagation/src/test/java/eu/dnetlib/dhp/resulttocommunityfromorganization/ResultToCommunityJobTest.java
rename to dhp-workflows/dhp-enrichment/src/test/java/eu/dnetlib/dhp/resulttocommunityfromorganization/ResultToCommunityJobTest.java
index ba8fb0831..20b20d4ed 100644
--- a/dhp-workflows/dhp-propagation/src/test/java/eu/dnetlib/dhp/resulttocommunityfromorganization/ResultToCommunityJobTest.java
+++ b/dhp-workflows/dhp-enrichment/src/test/java/eu/dnetlib/dhp/resulttocommunityfromorganization/ResultToCommunityJobTest.java
@@ -32,8 +32,6 @@ public class ResultToCommunityJobTest {
private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();
- private static final ClassLoader cl = ResultToCommunityJobTest.class.getClassLoader();
-
private static SparkSession spark;
private static Path workingDir;
@@ -68,33 +66,24 @@ public class ResultToCommunityJobTest {
@Test
public void testSparkResultToCommunityFromOrganizationJob() throws Exception {
- SparkResultToCommunityFromOrganizationJob
- .main(
+ final String preparedInfoPath = getClass()
+ .getResource("/eu/dnetlib/dhp/resulttocommunityfromorganization/preparedInfo")
+ .getPath();
+ SparkResultToCommunityFromOrganizationJob.main(
new String[] {
- "-isTest",
- Boolean.TRUE.toString(),
- "-isSparkSessionManaged",
- Boolean.FALSE.toString(),
- "-sourcePath",
- getClass()
+ "-isTest", Boolean.TRUE.toString(),
+ "-isSparkSessionManaged", Boolean.FALSE.toString(),
+ "-sourcePath", getClass()
.getResource("/eu/dnetlib/dhp/resulttocommunityfromorganization/sample")
.getPath(),
- "-hive_metastore_uris",
- "",
- "-saveGraph",
- "true",
- "-resultTableName",
- "eu.dnetlib.dhp.schema.oaf.Dataset",
- "-outputPath",
- workingDir.toString() + "/dataset",
- "-preparedInfoPath",
- getClass()
- .getResource(
- "/eu/dnetlib/dhp/resulttocommunityfromorganization/preparedInfo")
- .getPath()
+ "-hive_metastore_uris", "",
+ "-saveGraph", "true",
+ "-resultTableName", "eu.dnetlib.dhp.schema.oaf.Dataset",
+ "-outputPath", workingDir.toString() + "/dataset",
+ "-preparedInfoPath", preparedInfoPath
});
- final JavaSparkContext sc = new JavaSparkContext(spark.sparkContext());
+ final JavaSparkContext sc = JavaSparkContext.fromSparkContext(spark.sparkContext());
JavaRDD tmp = sc
.textFile(workingDir.toString() + "/dataset")
@@ -217,13 +206,6 @@ public class ResultToCommunityJobTest {
.get(0)
.getString(0));
- /*
- * {"communityList":["euromarine","mes"],"resultId":"50|doajarticles::8d817039a63710fcf97e30f14662c6c8"}
- * "context" ["id": euromarine] updates = 1
- * {"communityList":["euromarine","mes"],"resultId":"50|doajarticles::3c98f0632f1875b4979e552ba3aa01e6"} context
- * = [ni, euromarine] updates = 1
- */
-
query = "select id, MyT.id community "
+ "from dataset "
+ "lateral view explode(context) c as MyT "
diff --git a/dhp-workflows/dhp-propagation/src/test/java/eu/dnetlib/dhp/resulttocommunityfromsemrel/ResultToCommunityJobTest.java b/dhp-workflows/dhp-enrichment/src/test/java/eu/dnetlib/dhp/resulttocommunityfromsemrel/ResultToCommunityJobTest.java
similarity index 88%
rename from dhp-workflows/dhp-propagation/src/test/java/eu/dnetlib/dhp/resulttocommunityfromsemrel/ResultToCommunityJobTest.java
rename to dhp-workflows/dhp-enrichment/src/test/java/eu/dnetlib/dhp/resulttocommunityfromsemrel/ResultToCommunityJobTest.java
index 13941b4a3..a8e1ab841 100644
--- a/dhp-workflows/dhp-propagation/src/test/java/eu/dnetlib/dhp/resulttocommunityfromsemrel/ResultToCommunityJobTest.java
+++ b/dhp-workflows/dhp-enrichment/src/test/java/eu/dnetlib/dhp/resulttocommunityfromsemrel/ResultToCommunityJobTest.java
@@ -29,32 +29,21 @@ import eu.dnetlib.dhp.schema.oaf.Dataset;
public class ResultToCommunityJobTest {
- private static final Logger log = LoggerFactory
- .getLogger(
- eu.dnetlib.dhp.resulttocommunityfromsemrel.ResultToCommunityJobTest.class);
+ private static final Logger log = LoggerFactory.getLogger(ResultToCommunityJobTest.class);
private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();
- private static final ClassLoader cl = eu.dnetlib.dhp.resulttocommunityfromsemrel.ResultToCommunityJobTest.class
- .getClassLoader();
-
private static SparkSession spark;
private static Path workingDir;
@BeforeAll
public static void beforeAll() throws IOException {
- workingDir = Files
- .createTempDirectory(
- eu.dnetlib.dhp.resulttocommunityfromsemrel.ResultToCommunityJobTest.class
- .getSimpleName());
+ workingDir = Files.createTempDirectory(ResultToCommunityJobTest.class.getSimpleName());
log.info("using work dir {}", workingDir);
SparkConf conf = new SparkConf();
- conf
- .setAppName(
- eu.dnetlib.dhp.resulttocommunityfromsemrel.ResultToCommunityJobTest.class
- .getSimpleName());
+ conf.setAppName(ResultToCommunityJobTest.class.getSimpleName());
conf.setMaster("local[*]");
conf.set("spark.driver.host", "localhost");
@@ -65,7 +54,7 @@ public class ResultToCommunityJobTest {
spark = SparkSession
.builder()
- .appName(OrcidPropagationJobTest.class.getSimpleName())
+ .appName(ResultToCommunityJobTest.class.getSimpleName())
.config(conf)
.getOrCreate();
}
@@ -83,22 +72,18 @@ public class ResultToCommunityJobTest {
new String[] {
"-isTest", Boolean.TRUE.toString(),
"-isSparkSessionManaged", Boolean.FALSE.toString(),
- "-sourcePath",
- getClass()
- .getResource(
- "/eu/dnetlib/dhp/resulttocommunityfromsemrel/sample")
+ "-sourcePath", getClass()
+ .getResource("/eu/dnetlib/dhp/resulttocommunityfromsemrel/sample")
.getPath(),
"-hive_metastore_uris", "",
"-resultTableName", "eu.dnetlib.dhp.schema.oaf.Dataset",
"-outputPath", workingDir.toString() + "/dataset",
- "-preparedInfoPath",
- getClass()
- .getResource(
- "/eu/dnetlib/dhp/resulttocommunityfromsemrel/preparedInfo")
+ "-preparedInfoPath", getClass()
+ .getResource("/eu/dnetlib/dhp/resulttocommunityfromsemrel/preparedInfo")
.getPath()
});
- final JavaSparkContext sc = new JavaSparkContext(spark.sparkContext());
+ final JavaSparkContext sc = JavaSparkContext.fromSparkContext(spark.sparkContext());
JavaRDD tmp = sc
.textFile(workingDir.toString() + "/dataset")
diff --git a/dhp-workflows/dhp-propagation/src/test/java/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/Result2OrganizationJobTest.java b/dhp-workflows/dhp-enrichment/src/test/java/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/ResultToOrganizationJobTest.java
similarity index 61%
rename from dhp-workflows/dhp-propagation/src/test/java/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/Result2OrganizationJobTest.java
rename to dhp-workflows/dhp-enrichment/src/test/java/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/ResultToOrganizationJobTest.java
index e7adb260e..30be118d1 100644
--- a/dhp-workflows/dhp-propagation/src/test/java/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/Result2OrganizationJobTest.java
+++ b/dhp-workflows/dhp-enrichment/src/test/java/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/ResultToOrganizationJobTest.java
@@ -23,23 +23,19 @@ import com.fasterxml.jackson.databind.ObjectMapper;
import eu.dnetlib.dhp.schema.oaf.Relation;
-public class Result2OrganizationJobTest {
+public class ResultToOrganizationJobTest {
- private static final Logger log = LoggerFactory.getLogger(Result2OrganizationJobTest.class);
+ private static final Logger log = LoggerFactory.getLogger(ResultToOrganizationJobTest.class);
private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();
- private static final ClassLoader cl = Result2OrganizationJobTest.class.getClassLoader();
-
private static SparkSession spark;
private static Path workingDir;
@BeforeAll
public static void beforeAll() throws IOException {
- workingDir = Files
- .createTempDirectory(
- SparkResultToOrganizationFromIstRepoJob.class.getSimpleName());
+ workingDir = Files.createTempDirectory(SparkResultToOrganizationFromIstRepoJob.class.getSimpleName());
log.info("using work dir {}", workingDir);
SparkConf conf = new SparkConf();
@@ -72,40 +68,29 @@ public class Result2OrganizationJobTest {
*/
@Test
public void NoUpdateTest() throws Exception {
- SparkResultToOrganizationFromIstRepoJob
- .main(
+ final String sourcePath = getClass()
+ .getResource("/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/sample/noupdate_updatenomix")
+ .getPath();
+ final String datasourceOrganizationPath = getClass()
+ .getResource("/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/noupdate/preparedInfo/datasourceOrganization")
+ .getPath();
+ final String alreadyLinkedPath = getClass()
+ .getResource("/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/noupdate/preparedInfo/alreadyLinked")
+ .getPath();
+ SparkResultToOrganizationFromIstRepoJob.main(
new String[] {
- "-isTest",
- Boolean.TRUE.toString(),
- "-isSparkSessionManaged",
- Boolean.FALSE.toString(),
- "-sourcePath",
- getClass()
- .getResource(
- "/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/sample/noupdate_updatenomix")
- .getPath(),
- "-hive_metastore_uris",
- "",
- "-resultTableName",
- "eu.dnetlib.dhp.schema.oaf.Software",
-
- "-saveGraph",
- "true",
- "-outputPath",
- workingDir.toString() + "/relation",
- "-datasourceOrganizationPath",
- getClass()
- .getResource(
- "/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/noupdate/preparedInfo/datasourceOrganization")
- .getPath(),
- "-alreadyLinkedPath",
- getClass()
- .getResource(
- "/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/noupdate/preparedInfo/alreadyLinked")
- .getPath(),
+ "-isTest", Boolean.TRUE.toString(),
+ "-isSparkSessionManaged", Boolean.FALSE.toString(),
+ "-sourcePath", sourcePath,
+ "-hive_metastore_uris", "",
+ "-resultTableName", "eu.dnetlib.dhp.schema.oaf.Software",
+ "-saveGraph", "true",
+ "-outputPath", workingDir.toString() + "/relation",
+ "-datasourceOrganizationPath", datasourceOrganizationPath,
+ "-alreadyLinkedPath", alreadyLinkedPath,
});
- final JavaSparkContext sc = new JavaSparkContext(spark.sparkContext());
+ final JavaSparkContext sc = JavaSparkContext.fromSparkContext(spark.sparkContext());
JavaRDD tmp = sc
.textFile(workingDir.toString() + "/relation")
@@ -123,40 +108,29 @@ public class Result2OrganizationJobTest {
*/
@Test
public void UpdateNoMixTest() throws Exception {
- SparkResultToOrganizationFromIstRepoJob
- .main(
+ final String sourcePath = getClass()
+ .getResource("/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/sample/noupdate_updatenomix")
+ .getPath();
+ final String datasourceOrganizationPath = getClass()
+ .getResource("/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/updatenomix/preparedInfo/datasourceOrganization")
+ .getPath();
+ final String alreadyLinkedPath = getClass()
+ .getResource("/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/updatenomix/preparedInfo/alreadyLinked")
+ .getPath();
+ SparkResultToOrganizationFromIstRepoJob.main(
new String[] {
- "-isTest",
- Boolean.TRUE.toString(),
- "-isSparkSessionManaged",
- Boolean.FALSE.toString(),
- "-sourcePath",
- getClass()
- .getResource(
- "/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/sample/noupdate_updatenomix")
- .getPath(),
- "-hive_metastore_uris",
- "",
- "-resultTableName",
- "eu.dnetlib.dhp.schema.oaf.Software",
-
- "-saveGraph",
- "true",
- "-outputPath",
- workingDir.toString() + "/relation",
- "-datasourceOrganizationPath",
- getClass()
- .getResource(
- "/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/updatenomix/preparedInfo/datasourceOrganization")
- .getPath(),
- "-alreadyLinkedPath",
- getClass()
- .getResource(
- "/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/updatenomix/preparedInfo/alreadyLinked")
- .getPath(),
+ "-isTest", Boolean.TRUE.toString(),
+ "-isSparkSessionManaged", Boolean.FALSE.toString(),
+ "-sourcePath", sourcePath,
+ "-hive_metastore_uris", "",
+ "-resultTableName", "eu.dnetlib.dhp.schema.oaf.Software",
+ "-saveGraph", "true",
+ "-outputPath", workingDir.toString() + "/relation",
+ "-datasourceOrganizationPath", datasourceOrganizationPath,
+ "-alreadyLinkedPath", alreadyLinkedPath,
});
- final JavaSparkContext sc = new JavaSparkContext(spark.sparkContext());
+ final JavaSparkContext sc = JavaSparkContext.fromSparkContext(spark.sparkContext());
JavaRDD tmp = sc
.textFile(workingDir.toString() + "/relation")
@@ -197,40 +171,29 @@ public class Result2OrganizationJobTest {
@Test
public void UpdateMixTest() throws Exception {
- SparkResultToOrganizationFromIstRepoJob
- .main(
+ final String sourcePath = getClass()
+ .getResource("/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/sample/updatemix")
+ .getPath();
+ final String datasourceOrganizationPath = getClass()
+ .getResource("/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/updatemix/preparedInfo/datasourceOrganization")
+ .getPath();
+ final String alreadyLinkedPath = getClass()
+ .getResource("/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/updatemix/preparedInfo/alreadyLinked")
+ .getPath();
+ SparkResultToOrganizationFromIstRepoJob.main(
new String[] {
- "-isTest",
- Boolean.TRUE.toString(),
- "-isSparkSessionManaged",
- Boolean.FALSE.toString(),
- "-sourcePath",
- getClass()
- .getResource(
- "/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/sample/updatemix")
- .getPath(),
- "-hive_metastore_uris",
- "",
- "-resultTableName",
- "eu.dnetlib.dhp.schema.oaf.Software",
-
- "-saveGraph",
- "true",
- "-outputPath",
- workingDir.toString() + "/relation",
- "-datasourceOrganizationPath",
- getClass()
- .getResource(
- "/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/updatemix/preparedInfo/datasourceOrganization")
- .getPath(),
- "-alreadyLinkedPath",
- getClass()
- .getResource(
- "/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/updatemix/preparedInfo/alreadyLinked")
- .getPath(),
+ "-isTest", Boolean.TRUE.toString(),
+ "-isSparkSessionManaged", Boolean.FALSE.toString(),
+ "-sourcePath", sourcePath,
+ "-hive_metastore_uris", "",
+ "-resultTableName", "eu.dnetlib.dhp.schema.oaf.Software",
+ "-saveGraph", "true",
+ "-outputPath", workingDir.toString() + "/relation",
+ "-datasourceOrganizationPath", datasourceOrganizationPath,
+ "-alreadyLinkedPath", alreadyLinkedPath,
});
- final JavaSparkContext sc = new JavaSparkContext(spark.sparkContext());
+ final JavaSparkContext sc = JavaSparkContext.fromSparkContext(spark.sparkContext());
JavaRDD tmp = sc
.textFile(workingDir.toString() + "/relation")
diff --git a/dhp-workflows/dhp-bulktag/src/test/resources/eu/dnetlib/dhp/communityconfiguration/community_configuration.json b/dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/bulktag/communityconfiguration/community_configuration.json
similarity index 100%
rename from dhp-workflows/dhp-bulktag/src/test/resources/eu/dnetlib/dhp/communityconfiguration/community_configuration.json
rename to dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/bulktag/communityconfiguration/community_configuration.json
diff --git a/dhp-workflows/dhp-bulktag/src/test/resources/eu/dnetlib/dhp/communityconfiguration/community_configuration.xml b/dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/bulktag/communityconfiguration/community_configuration.xml
similarity index 95%
rename from dhp-workflows/dhp-bulktag/src/test/resources/eu/dnetlib/dhp/communityconfiguration/community_configuration.xml
rename to dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/bulktag/communityconfiguration/community_configuration.xml
index 8fec18593..e2cc41063 100644
--- a/dhp-workflows/dhp-bulktag/src/test/resources/eu/dnetlib/dhp/communityconfiguration/community_configuration.xml
+++ b/dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/bulktag/communityconfiguration/community_configuration.xml
@@ -2,17 +2,17 @@
-
+
-
+
-
+
@@ -35,7 +35,7 @@
SDG9 - Industry innovation and infrastructure
SDG16 - Peace justice and strong institutions
-
+
123
@@ -45,12 +45,12 @@
-
+
-
+
@@ -74,7 +74,7 @@
brain magnetic resonance imaging
brain abnormalities
-
+
re3data_____::5b9bf9171d92df854cf3c520692e9122
@@ -95,7 +95,7 @@
doajarticles::0c0e74daa5d95504eade9c81ebbd5b8a
-
+
@@ -106,12 +106,12 @@
aqua
sea
-
+
re3data_____::9633d1e8c4309c833c2c442abeb0cfeb
-
+
@@ -134,7 +134,7 @@
food distribution
forestry
-
+
opendoar____::1a551829d50f1400b0dab21fdd969c04
@@ -159,18 +159,18 @@
opendoar____::87ae6fb631f7c8a627e8e28785d9992d
-
+
oac_clarin
-
+
re3data_____::a507cdacc5bbcc08761c92185dee5cab
-
+
\ No newline at end of file
diff --git a/dhp-workflows/dhp-bulktag/src/test/resources/eu/dnetlib/dhp/communityconfiguration/community_configuration_selcrit.json b/dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/bulktag/communityconfiguration/community_configuration_selcrit.json
similarity index 100%
rename from dhp-workflows/dhp-bulktag/src/test/resources/eu/dnetlib/dhp/communityconfiguration/community_configuration_selcrit.json
rename to dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/bulktag/communityconfiguration/community_configuration_selcrit.json
diff --git a/dhp-workflows/dhp-bulktag/src/test/resources/eu/dnetlib/dhp/communityconfiguration/community_configuration_selcrit.xml b/dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/bulktag/communityconfiguration/community_configuration_selcrit.xml
similarity index 95%
rename from dhp-workflows/dhp-bulktag/src/test/resources/eu/dnetlib/dhp/communityconfiguration/community_configuration_selcrit.xml
rename to dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/bulktag/communityconfiguration/community_configuration_selcrit.xml
index ad31e1763..89ace0e5f 100644
--- a/dhp-workflows/dhp-bulktag/src/test/resources/eu/dnetlib/dhp/communityconfiguration/community_configuration_selcrit.xml
+++ b/dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/bulktag/communityconfiguration/community_configuration_selcrit.xml
@@ -2,17 +2,17 @@
-
+
-
+
-
+
@@ -35,7 +35,7 @@
SDG9 - Industry innovation and infrastructure
SDG16 - Peace justice and strong institutions
-
+
123
@@ -45,12 +45,12 @@
-
+
-
+
@@ -74,7 +74,7 @@
brain magnetic resonance imaging
brain abnormalities
-
+
re3data_____::5b9bf9171d92df854cf3c520692e9122
@@ -95,7 +95,7 @@
doajarticles::0c0e74daa5d95504eade9c81ebbd5b8a
-
+
@@ -106,12 +106,12 @@
aqua
sea
-
+
re3data_____::9633d1e8c4309c833c2c442abeb0cfeb
-
+
@@ -134,7 +134,7 @@
food distribution
forestry
-
+
opendoar____::1a551829d50f1400b0dab21fdd969c04
@@ -159,30 +159,30 @@
opendoar____::87ae6fb631f7c8a627e8e28785d9992d
-
+
oac_clarin
-
+
re3data_____::a507cdacc5bbcc08761c92185dee5cab
-
+
oaa_dariah
-
+
openaire____::1cfdb2e14977f31a98e0118283401f32
{"criteria":[{"constraint":[{"verb":"contains","field":"contributor","value":"DARIAH"}]}]}
-
+
dimpo
diff --git a/dhp-workflows/dhp-bulktag/src/test/resources/eu/dnetlib/dhp/communityconfiguration/tagging_conf.json b/dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/bulktag/communityconfiguration/tagging_conf.json
similarity index 100%
rename from dhp-workflows/dhp-bulktag/src/test/resources/eu/dnetlib/dhp/communityconfiguration/tagging_conf.json
rename to dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/bulktag/communityconfiguration/tagging_conf.json
diff --git a/dhp-workflows/dhp-bulktag/src/test/resources/eu/dnetlib/dhp/communityconfiguration/tagging_conf.xml b/dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/bulktag/communityconfiguration/tagging_conf.xml
similarity index 98%
rename from dhp-workflows/dhp-bulktag/src/test/resources/eu/dnetlib/dhp/communityconfiguration/tagging_conf.xml
rename to dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/bulktag/communityconfiguration/tagging_conf.xml
index 4f0d25f34..ec52d4799 100644
--- a/dhp-workflows/dhp-bulktag/src/test/resources/eu/dnetlib/dhp/communityconfiguration/tagging_conf.xml
+++ b/dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/bulktag/communityconfiguration/tagging_conf.xml
@@ -1,7 +1,7 @@
-
+
zenodo
@@ -11,27 +11,27 @@
Result: 2
-
+
Result: 3
-
+
Result: 4
-
+
re3data_____::a507cdacc5bbcc08761c92185dee5cab
-
+
Result: 5
-
+
rda
@@ -59,7 +59,7 @@
SDG9 - Industry innovation and infrastructure
SDG16 - Peace justice and strong institutions
-
+
Result: 7
@@ -132,7 +132,7 @@
architectural
vessels
-
+
re3data_____::9ebe127e5f3a0bf401875690f3bb6b81
@@ -169,7 +169,7 @@
opendoar____::97275a23ca44226c9964043c8462be96
-
+
storm
@@ -275,7 +275,7 @@
Fishing fleet
Aquaculture
-
+
doajarticles::8cec81178926caaca531afbd8eb5d64c
@@ -328,7 +328,7 @@
doajarticles::dd70e44479f0ade25aa106aef3e87a0a
-
+
discardless
@@ -393,7 +393,7 @@
brain magnetic resonance imaging
brain abnormalities
-
+
re3data_____::5b9bf9171d92df854cf3c520692e9122
@@ -418,7 +418,7 @@
rest________::fb1a3d4523c95e63496e3bc7ba36244b
-
+
neuroinformatics
@@ -494,7 +494,7 @@
aqua
sea
-
+
adriplan
@@ -688,7 +688,7 @@
Result: 11
-
+
instruct
@@ -702,7 +702,7 @@
Result: 12
-
+
Result: 13
@@ -726,7 +726,7 @@
food distribution
forestry
-
+
opendoar____::1a551829d50f1400b0dab21fdd969c04
@@ -751,7 +751,7 @@
opendoar____::87ae6fb631f7c8a627e8e28785d9992d
-
+
edenis
@@ -829,7 +829,7 @@
Result: 14
-
+
opendoar____::7e7757b1e12abcb736ab9a754ffb617a
{"criteria":[{"constraint":[{"verb":"contains","field":"contributor","value":"DARIAH"}]}]}
@@ -838,7 +838,7 @@
opendoar____::96da2f590cd7246bbde0051047b0d6f7
{"criteria":[{"constraint":[{"verb":"contains","field":"contributor","value":"DARIAH"}]}]}
-
+
dimpo
@@ -848,12 +848,12 @@
Result: 15
-
+
Result: 16
-
+
Result: 17
@@ -1009,7 +1009,7 @@
Innovative freight delivery systems
urban freight delivery infrastructures
-
+
doajarticles::1c5bdf8fca58937894ad1441cca99b76
@@ -1094,7 +1094,7 @@
doajarticles::fba6191177ede7c51ea1cdf58eae7f8b
-
+
jsdtl
@@ -1156,17 +1156,17 @@
Result: 18
-
+
Result: 19
-
+
Result: 20
-
+
Result: 21
@@ -1179,7 +1179,7 @@
science policy
Policy and Law
-
+
doajarticles::c6f0ed5fa41e98863e7c73501fe4bd6d
@@ -1264,7 +1264,7 @@
doajarticles::7ffc35ac5133da01d421ccf8af5b70bc
-
+
risis
@@ -1287,7 +1287,7 @@
mesh:COVID-19
COVID2019
-
+
opendoar____::358aee4cc897452c00244351e4d91f69
{"criteria":[{"constraint":[{"verb":"contains_ignorecase","field":"title","value":"COVID-19"}]},
@@ -1366,7 +1366,7 @@
re3data_____::978378def740bbf2bfb420de868c460b
{"criteria":[{"constraint":[{"verb":"contains_ignorecase","field":"title","value":"SARS-CoV-2"}]},{"constraint":[{"verb":"contains_ignorecase","field":"title","value":"COVID-19"}]},{"constraint":[{"verb":"contains_ignorecase","field":"title","value":"2019-nCov"}]}]}
-
+
chicago-covid-19
diff --git a/dhp-workflows/dhp-bulktag/src/test/resources/eu/dnetlib/dhp/sample/dataset/no_updates/dataset_10.json.gz b/dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/bulktag/sample/dataset/no_updates/dataset_10.json.gz
similarity index 100%
rename from dhp-workflows/dhp-bulktag/src/test/resources/eu/dnetlib/dhp/sample/dataset/no_updates/dataset_10.json.gz
rename to dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/bulktag/sample/dataset/no_updates/dataset_10.json.gz
diff --git a/dhp-workflows/dhp-bulktag/src/test/resources/eu/dnetlib/dhp/sample/dataset/update_datasourcewithconstraints/dataset_10.json.gz b/dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/bulktag/sample/dataset/update_datasourcewithconstraints/dataset_10.json.gz
similarity index 100%
rename from dhp-workflows/dhp-bulktag/src/test/resources/eu/dnetlib/dhp/sample/dataset/update_datasourcewithconstraints/dataset_10.json.gz
rename to dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/bulktag/sample/dataset/update_datasourcewithconstraints/dataset_10.json.gz
diff --git a/dhp-workflows/dhp-bulktag/src/test/resources/eu/dnetlib/dhp/sample/dataset/update_subject/contextnoprovenance/dataset_10.json.gz b/dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/bulktag/sample/dataset/update_subject/contextnoprovenance/dataset_10.json.gz
similarity index 100%
rename from dhp-workflows/dhp-bulktag/src/test/resources/eu/dnetlib/dhp/sample/dataset/update_subject/contextnoprovenance/dataset_10.json.gz
rename to dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/bulktag/sample/dataset/update_subject/contextnoprovenance/dataset_10.json.gz
diff --git a/dhp-workflows/dhp-bulktag/src/test/resources/eu/dnetlib/dhp/sample/dataset/update_subject/nocontext/dataset_10.json.gz b/dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/bulktag/sample/dataset/update_subject/nocontext/dataset_10.json.gz
similarity index 100%
rename from dhp-workflows/dhp-bulktag/src/test/resources/eu/dnetlib/dhp/sample/dataset/update_subject/nocontext/dataset_10.json.gz
rename to dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/bulktag/sample/dataset/update_subject/nocontext/dataset_10.json.gz
diff --git a/dhp-workflows/dhp-bulktag/src/test/resources/eu/dnetlib/dhp/sample/dataset/update_subject_datasource/dataset_10.json.gz b/dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/bulktag/sample/dataset/update_subject/update_subject_datasource/dataset_10.json.gz
similarity index 100%
rename from dhp-workflows/dhp-bulktag/src/test/resources/eu/dnetlib/dhp/sample/dataset/update_subject_datasource/dataset_10.json.gz
rename to dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/bulktag/sample/dataset/update_subject/update_subject_datasource/dataset_10.json.gz
diff --git a/dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/bulktag/sample/dataset/update_subject_datasource/dataset_10.json.gz b/dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/bulktag/sample/dataset/update_subject_datasource/dataset_10.json.gz
new file mode 100644
index 000000000..fdc76a04c
Binary files /dev/null and b/dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/bulktag/sample/dataset/update_subject_datasource/dataset_10.json.gz differ
diff --git a/dhp-workflows/dhp-bulktag/src/test/resources/eu/dnetlib/dhp/sample/otherresearchproduct/update_zenodocommunity/otherresearchproduct_10.json.gz b/dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/bulktag/sample/otherresearchproduct/update_zenodocommunity/otherresearchproduct_10.json.gz
similarity index 100%
rename from dhp-workflows/dhp-bulktag/src/test/resources/eu/dnetlib/dhp/sample/otherresearchproduct/update_zenodocommunity/otherresearchproduct_10.json.gz
rename to dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/bulktag/sample/otherresearchproduct/update_zenodocommunity/otherresearchproduct_10.json.gz
diff --git a/dhp-workflows/dhp-bulktag/src/test/resources/eu/dnetlib/dhp/sample/publication/update_datasource/publication_10.json.gz b/dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/bulktag/sample/publication/update_datasource/publication_10.json.gz
similarity index 100%
rename from dhp-workflows/dhp-bulktag/src/test/resources/eu/dnetlib/dhp/sample/publication/update_datasource/publication_10.json.gz
rename to dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/bulktag/sample/publication/update_datasource/publication_10.json.gz
diff --git a/dhp-workflows/dhp-bulktag/src/test/resources/eu/dnetlib/dhp/sample/software/software_10.json.gz b/dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/bulktag/sample/software/software_10.json.gz
similarity index 100%
rename from dhp-workflows/dhp-bulktag/src/test/resources/eu/dnetlib/dhp/sample/software/software_10.json.gz
rename to dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/bulktag/sample/software/software_10.json.gz
diff --git a/dhp-workflows/dhp-propagation/src/test/resources/eu/dnetlib/dhp/countrypropagation/preparedInfo/preparedInfo.json.gz b/dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/countrypropagation/preparedInfo/preparedInfo.json.gz
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/test/resources/eu/dnetlib/dhp/countrypropagation/preparedInfo/preparedInfo.json.gz
rename to dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/countrypropagation/preparedInfo/preparedInfo.json.gz
diff --git a/dhp-workflows/dhp-propagation/src/test/resources/eu/dnetlib/dhp/countrypropagation/sample/software/software_10.json.gz b/dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/countrypropagation/sample/software/software_10.json.gz
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/test/resources/eu/dnetlib/dhp/countrypropagation/sample/software/software_10.json.gz
rename to dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/countrypropagation/sample/software/software_10.json.gz
diff --git a/dhp-workflows/dhp-propagation/src/test/resources/eu/dnetlib/dhp/orcidtoresultfromsemrel/preparedInfo/mergedOrcidAssoc/mergedOrcid_17.json.gz b/dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/orcidtoresultfromsemrel/preparedInfo/mergedOrcidAssoc/mergedOrcid_17.json.gz
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/test/resources/eu/dnetlib/dhp/orcidtoresultfromsemrel/preparedInfo/mergedOrcidAssoc/mergedOrcid_17.json.gz
rename to dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/orcidtoresultfromsemrel/preparedInfo/mergedOrcidAssoc/mergedOrcid_17.json.gz
diff --git a/dhp-workflows/dhp-propagation/src/test/resources/eu/dnetlib/dhp/orcidtoresultfromsemrel/sample/noupdate/dataset_10.json.gz b/dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/orcidtoresultfromsemrel/sample/noupdate/dataset_10.json.gz
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/test/resources/eu/dnetlib/dhp/orcidtoresultfromsemrel/sample/noupdate/dataset_10.json.gz
rename to dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/orcidtoresultfromsemrel/sample/noupdate/dataset_10.json.gz
diff --git a/dhp-workflows/dhp-propagation/src/test/resources/eu/dnetlib/dhp/orcidtoresultfromsemrel/sample/oneupdate/dataset_10.json.gz b/dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/orcidtoresultfromsemrel/sample/oneupdate/dataset_10.json.gz
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/test/resources/eu/dnetlib/dhp/orcidtoresultfromsemrel/sample/oneupdate/dataset_10.json.gz
rename to dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/orcidtoresultfromsemrel/sample/oneupdate/dataset_10.json.gz
diff --git a/dhp-workflows/dhp-propagation/src/test/resources/eu/dnetlib/dhp/orcidtoresultfromsemrel/sample/twoupdates/dataset_10.json.gz b/dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/orcidtoresultfromsemrel/sample/twoupdates/dataset_10.json.gz
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/test/resources/eu/dnetlib/dhp/orcidtoresultfromsemrel/sample/twoupdates/dataset_10.json.gz
rename to dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/orcidtoresultfromsemrel/sample/twoupdates/dataset_10.json.gz
diff --git a/dhp-workflows/dhp-propagation/src/test/resources/eu/dnetlib/dhp/projecttoresult/preparedInfo/alreadyLinked/alreadyLinked.json.gz b/dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/projecttoresult/preparedInfo/alreadyLinked/alreadyLinked.json.gz
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/test/resources/eu/dnetlib/dhp/projecttoresult/preparedInfo/alreadyLinked/alreadyLinked.json.gz
rename to dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/projecttoresult/preparedInfo/alreadyLinked/alreadyLinked.json.gz
diff --git a/dhp-workflows/dhp-propagation/src/test/resources/eu/dnetlib/dhp/projecttoresult/preparedInfo/noupdates/potentialUpdates/potentialUpdates.json.gz b/dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/projecttoresult/preparedInfo/noupdates/potentialUpdates/potentialUpdates.json.gz
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/test/resources/eu/dnetlib/dhp/projecttoresult/preparedInfo/noupdates/potentialUpdates/potentialUpdates.json.gz
rename to dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/projecttoresult/preparedInfo/noupdates/potentialUpdates/potentialUpdates.json.gz
diff --git a/dhp-workflows/dhp-propagation/src/test/resources/eu/dnetlib/dhp/projecttoresult/preparedInfo/tenupdates/potentialUpdates/potentialUpdates.json.gz b/dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/projecttoresult/preparedInfo/tenupdates/potentialUpdates/potentialUpdates.json.gz
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/test/resources/eu/dnetlib/dhp/projecttoresult/preparedInfo/tenupdates/potentialUpdates/potentialUpdates.json.gz
rename to dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/projecttoresult/preparedInfo/tenupdates/potentialUpdates/potentialUpdates.json.gz
diff --git a/dhp-workflows/dhp-propagation/src/test/resources/eu/dnetlib/dhp/projecttoresult/preparedInfo/updatesmixed/potentialUpdates/potentialUpdates.json.gz b/dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/projecttoresult/preparedInfo/updatesmixed/potentialUpdates/potentialUpdates.json.gz
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/test/resources/eu/dnetlib/dhp/projecttoresult/preparedInfo/updatesmixed/potentialUpdates/potentialUpdates.json.gz
rename to dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/projecttoresult/preparedInfo/updatesmixed/potentialUpdates/potentialUpdates.json.gz
diff --git a/dhp-workflows/dhp-propagation/src/test/resources/eu/dnetlib/dhp/resulttocommunityfromorganization/preparedInfo/resultCommunityList.json.gz b/dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/resulttocommunityfromorganization/preparedInfo/resultCommunityList.json.gz
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/test/resources/eu/dnetlib/dhp/resulttocommunityfromorganization/preparedInfo/resultCommunityList.json.gz
rename to dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/resulttocommunityfromorganization/preparedInfo/resultCommunityList.json.gz
diff --git a/dhp-workflows/dhp-propagation/src/test/resources/eu/dnetlib/dhp/resulttocommunityfromorganization/sample/dataset_10.json.gz b/dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/resulttocommunityfromorganization/sample/dataset_10.json.gz
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/test/resources/eu/dnetlib/dhp/resulttocommunityfromorganization/sample/dataset_10.json.gz
rename to dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/resulttocommunityfromorganization/sample/dataset_10.json.gz
diff --git a/dhp-workflows/dhp-propagation/src/test/resources/eu/dnetlib/dhp/resulttocommunityfromsemrel/preparedInfo/mergedResultCommunityList.json.gz b/dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/resulttocommunityfromsemrel/preparedInfo/mergedResultCommunityList.json.gz
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/test/resources/eu/dnetlib/dhp/resulttocommunityfromsemrel/preparedInfo/mergedResultCommunityList.json.gz
rename to dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/resulttocommunityfromsemrel/preparedInfo/mergedResultCommunityList.json.gz
diff --git a/dhp-workflows/dhp-propagation/src/test/resources/eu/dnetlib/dhp/resulttocommunityfromsemrel/sample/dataset_10.json.gz b/dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/resulttocommunityfromsemrel/sample/dataset_10.json.gz
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/test/resources/eu/dnetlib/dhp/resulttocommunityfromsemrel/sample/dataset_10.json.gz
rename to dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/resulttocommunityfromsemrel/sample/dataset_10.json.gz
diff --git a/dhp-workflows/dhp-propagation/src/test/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/noupdate/preparedInfo/alreadyLinked/alreadyLinked_20.json.gz b/dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/noupdate/preparedInfo/alreadyLinked/alreadyLinked_20.json.gz
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/test/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/noupdate/preparedInfo/alreadyLinked/alreadyLinked_20.json.gz
rename to dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/noupdate/preparedInfo/alreadyLinked/alreadyLinked_20.json.gz
diff --git a/dhp-workflows/dhp-propagation/src/test/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/noupdate/preparedInfo/datasourceOrganization/datasourceOrganization_28.json.gz b/dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/noupdate/preparedInfo/datasourceOrganization/datasourceOrganization_28.json.gz
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/test/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/noupdate/preparedInfo/datasourceOrganization/datasourceOrganization_28.json.gz
rename to dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/noupdate/preparedInfo/datasourceOrganization/datasourceOrganization_28.json.gz
diff --git a/dhp-workflows/dhp-propagation/src/test/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/sample/noupdate_updatenomix/software_10.json.gz b/dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/sample/noupdate_updatenomix/software_10.json.gz
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/test/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/sample/noupdate_updatenomix/software_10.json.gz
rename to dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/sample/noupdate_updatenomix/software_10.json.gz
diff --git a/dhp-workflows/dhp-propagation/src/test/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/sample/updatemix/software_10.json.gz b/dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/sample/updatemix/software_10.json.gz
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/test/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/sample/updatemix/software_10.json.gz
rename to dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/sample/updatemix/software_10.json.gz
diff --git a/dhp-workflows/dhp-propagation/src/test/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/updatemix/preparedInfo/alreadyLinked/alreadyLinked_20.json.gz b/dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/updatemix/preparedInfo/alreadyLinked/alreadyLinked_20.json.gz
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/test/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/updatemix/preparedInfo/alreadyLinked/alreadyLinked_20.json.gz
rename to dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/updatemix/preparedInfo/alreadyLinked/alreadyLinked_20.json.gz
diff --git a/dhp-workflows/dhp-propagation/src/test/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/updatemix/preparedInfo/datasourceOrganization/datasourceOrganization_28.json.gz b/dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/updatemix/preparedInfo/datasourceOrganization/datasourceOrganization_28.json.gz
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/test/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/updatemix/preparedInfo/datasourceOrganization/datasourceOrganization_28.json.gz
rename to dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/updatemix/preparedInfo/datasourceOrganization/datasourceOrganization_28.json.gz
diff --git a/dhp-workflows/dhp-propagation/src/test/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/updatenomix/preparedInfo/alreadyLinked/alreadyLinked_20.json.gz b/dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/updatenomix/preparedInfo/alreadyLinked/alreadyLinked_20.json.gz
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/test/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/updatenomix/preparedInfo/alreadyLinked/alreadyLinked_20.json.gz
rename to dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/updatenomix/preparedInfo/alreadyLinked/alreadyLinked_20.json.gz
diff --git a/dhp-workflows/dhp-propagation/src/test/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/updatenomix/preparedInfo/datasourceOrganization/datasourceOrganization_28.json.gz b/dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/updatenomix/preparedInfo/datasourceOrganization/datasourceOrganization_28.json.gz
similarity index 100%
rename from dhp-workflows/dhp-propagation/src/test/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/updatenomix/preparedInfo/datasourceOrganization/datasourceOrganization_28.json.gz
rename to dhp-workflows/dhp-enrichment/src/test/resources/eu/dnetlib/dhp/resulttoorganizationfrominstrepo/updatenomix/preparedInfo/datasourceOrganization/datasourceOrganization_28.json.gz
diff --git a/dhp-workflows/dhp-propagation/pom.xml b/dhp-workflows/dhp-propagation/pom.xml
deleted file mode 100644
index 9492fa7c5..000000000
--- a/dhp-workflows/dhp-propagation/pom.xml
+++ /dev/null
@@ -1,43 +0,0 @@
-
-
-
- dhp-workflows
- eu.dnetlib.dhp
- 1.2.1-SNAPSHOT
-
- 4.0.0
-
- dhp-propagation
-
-
-
- org.apache.spark
- spark-core_2.11
-
-
- org.apache.spark
- spark-sql_2.11
-
-
-
- eu.dnetlib.dhp
- dhp-common
- ${project.version}
-
-
- eu.dnetlib.dhp
- dhp-schemas
- ${project.version}
-
-
- org.apache.spark
- spark-hive_2.11
- test
-
-
-
-
-
-
\ No newline at end of file
diff --git a/dhp-workflows/dhp-worfklow-profiles/src/main/resources/eu/dnetlib/dhp/wf/profiles/provision.xml b/dhp-workflows/dhp-worfklow-profiles/src/main/resources/eu/dnetlib/dhp/wf/profiles/provision.xml
index 0467e618f..f99ea7aed 100644
--- a/dhp-workflows/dhp-worfklow-profiles/src/main/resources/eu/dnetlib/dhp/wf/profiles/provision.xml
+++ b/dhp-workflows/dhp-worfklow-profiles/src/main/resources/eu/dnetlib/dhp/wf/profiles/provision.xml
@@ -482,7 +482,7 @@
- marks as belonging to communities the result collected from datasources related to the organizations specified in the organizationCommunityMap
+ marks as belonging to communities the result collected from providers related to the organizations specified in the organizationCommunityMap
executeOozieJob
IIS
diff --git a/dhp-workflows/pom.xml b/dhp-workflows/pom.xml
index badd8ca8a..271c66939 100644
--- a/dhp-workflows/pom.xml
+++ b/dhp-workflows/pom.xml
@@ -22,8 +22,7 @@
dhp-actionmanager
dhp-graph-mapper
dhp-dedup-openaire
- dhp-bulktag
- dhp-propagation
+ dhp-enrichment
dhp-graph-provision
dhp-dedup-scholexplorer
dhp-graph-provision-scholexplorer