Compare commits

...

42 Commits

Author SHA1 Message Date
dimitrispie 22eaf211e8 Last commit 2024-01-17 18:02:33 +02:00
dimitrispie 6b247524a8 Changes in usage stats update wf 2023-02-20 11:49:08 +02:00
dimitrispie 566e2459a8 Workflow usage-stats-update created 2023-01-13 15:21:04 +02:00
dimitrispie 733abdffe3 Changes for Episciences journal 2023-01-13 15:06:08 +02:00
dimitrispie 7a7eb30a3f Changes 05012023 2023-01-05 10:37:33 +02:00
dimitrispie 0654343479 Added usage-stats-promote 2023-01-05 10:36:32 +02:00
dimitrispie fc40a4ddf7 Changes 03112022 2022-11-03 15:55:27 +02:00
dimitrispie 26f5a5209c Commit 13/12/2022 2021-12-13 13:17:01 +02:00
dimitrispie dbb12314fe Merge remote-tracking branch 'upstream/master' into usage-stats-export-wf-v2 2021-12-13 12:02:24 +02:00
Claudio Atzori c1b6ae47cd cleaning workflow assigns the proper default instance type when a value could not be cleaned using the vocabularies 2021-12-09 16:47:41 +01:00
dimitrispie 195111119e Merge remote-tracking branch 'upstream/master' into usage-stats-export-wf-v2 2021-11-29 08:21:32 +02:00
dimitrispie 2036f8247c Update createIndicatorsTablesSprint2.sql 2021-07-24 09:40:46 +03:00
dimitrispie 3d42652c44 Update createIndicatorsTablesSprint1.sql 2021-07-23 15:33:10 +03:00
dimitrispie 264939a01a Update createIndicatorsTablesSprint2.sql 2021-07-23 14:23:04 +03:00
dimitrispie dd1098255e Commit project counts 2021-07-23 13:07:11 +03:00
dimitrispie cdf11c8465 Commit Sprint1 Sprint2 2021-07-21 15:53:17 +03:00
dimitrispie 553880f3f1 Commit Indicators Sprint1 2021-07-20 10:17:29 +03:00
dimitrispie bc40663b61 Update createIndicatorsTables.sql 2021-06-22 14:15:32 +03:00
dimitrispie 6418208d57 Update createIndicatorsTables.sql 2021-06-22 10:44:41 +03:00
dimitrispie 50cda834bd Update createIndicatorsTables.sql 2021-06-22 09:37:00 +03:00
dimitrispie bb2ef1b74d Merge remote-tracking branch 'upstream/master' into usage-stats-export-wf-v2 2021-06-22 09:32:46 +03:00
dimitrispie 2cd0514397 Update createIndicatorsTables.sql 2021-06-22 09:26:49 +03:00
Miriam Baglioni 59c36eb185 check if pid is null (to avoid NullPointerException) 2021-06-21 10:41:47 +02:00
Claudio Atzori 6b8c357381 removed extra whitespace at the end of the file 2021-06-18 16:08:45 +02:00
Claudio Atzori c0d2b62e46 [doiboost] added missing implicit Encoder 2021-06-18 15:57:41 +02:00
Claudio Atzori a3948c1f6e cleanup old doiboost workflows 2021-06-18 15:14:08 +02:00
Claudio Atzori fddbc8364e Merge branch 'alessia.bardi-datepicker' 2021-06-17 09:24:46 +02:00
Alessia Bardi 6208b04f1d smarter DatePicker for ISO dates on dateofacceptance 2021-06-16 14:56:26 +02:00
Sandro La Bruzzo 9ca438d9b1 imported from branch stable_ids generation of Actionset datacite 2021-06-10 14:59:45 +02:00
Sandro La Bruzzo 42ff7a5665 some fix to the pom to compile scala 2021-06-10 14:31:06 +02:00
Sandro La Bruzzo ebe6aa6d38 implemented datacite transformation also on master 2021-06-10 10:52:36 +02:00
dimitrispie da1f123d7b Add indicators wf 2021-06-04 16:36:35 +03:00
dimitrispie c90dd653c2 Commit datasets changes 2021-06-04 16:25:58 +03:00
Dimitris 6cb4cbb75e Changes to logger.info 2021-06-04 16:25:58 +03:00
Dimitris 1e06815cdb Added Datasets from Datacite WF 2021-06-04 16:25:50 +03:00
dimitrispie 4125b71661 Add B2Share 2021-06-04 15:58:33 +03:00
dimitrispie 533bde3228 Commit datasets changes 2021-06-04 15:58:33 +03:00
Dimitris ac5b7f89b5 Changes to logger.info 2021-06-04 15:58:33 +03:00
Dimitris b081e01dad Added Datasets from Datacite WF 2021-06-04 15:58:22 +03:00
Claudio Atzori a4cfabdbc6 Merge pull request 'master' (#111) from antonis.lempesis/dnet-hadoop:master into master
Reviewed-on: D-Net/dnet-hadoop#111
2021-05-28 14:09:12 +02:00
Claudio Atzori 338327171d integrating pull #109, H2020Classification 2021-05-27 11:57:01 +02:00
Claudio Atzori 6cbda49112 more pervasive use of constants from ModelConstants, especially for ORCID 2021-05-26 18:13:04 +02:00
1661 changed files with 16672 additions and 572 deletions

4
.gitignore vendored Normal file → Executable file
View File

@ -25,6 +25,10 @@
/build
spark-warehouse
/**/job-override.properties
<<<<<<< HEAD
/**/*.log
=======
/**/*.log
/**/.factorypath
>>>>>>> upstream/master

0
LICENSE Normal file → Executable file
View File

0
README.md Normal file → Executable file
View File

0
dhp-build/dhp-build-assembly-resources/README.markdown Normal file → Executable file
View File

0
dhp-build/dhp-build-assembly-resources/pom.xml Normal file → Executable file
View File

View File

0
dhp-build/dhp-build-properties-maven-plugin/pom.xml Normal file → Executable file
View File

0
dhp-build/dhp-code-style/pom.xml Normal file → Executable file
View File

View File

View File

0
dhp-build/dhp-code-style/src/site/site.xml Normal file → Executable file
View File

0
dhp-build/pom.xml Normal file → Executable file
View File

0
dhp-build/src/site/site.xml Normal file → Executable file
View File

0
dhp-common/pom.xml Normal file → Executable file
View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

@ -120,9 +120,17 @@ public class AuthorMerger {
}
public static String pidToComparableString(StructuredProperty pid) {
<<<<<<< HEAD
if (pid == null)
return "";
return (pid.getQualifier() != null
? pid.getQualifier().getClassid() != null ? pid.getQualifier().getClassid().toLowerCase() : ""
: "")
=======
final String classid = pid.getQualifier().getClassid() != null ? pid.getQualifier().getClassid().toLowerCase()
: "";
return (pid.getQualifier() != null ? classid : "")
>>>>>>> upstream/master
+ (pid.getValue() != null ? pid.getValue().toLowerCase() : "");
}

View File

@ -16,6 +16,8 @@ import com.github.sisyphsu.dateparser.DateParserUtils;
import com.google.common.collect.Lists;
import com.google.common.collect.Sets;
import eu.dnetlib.dhp.common.vocabulary.Vocabulary;
import eu.dnetlib.dhp.common.vocabulary.VocabularyGroup;
import eu.dnetlib.dhp.schema.common.ModelConstants;
import eu.dnetlib.dhp.schema.common.ModelSupport;
import eu.dnetlib.dhp.schema.oaf.*;
@ -115,7 +117,7 @@ public class GraphCleaningFunctions extends CleaningFunctions {
return true;
}
public static <T extends Oaf> T cleanup(T value) {
public static <T extends Oaf> T cleanup(T value, VocabularyGroup vocs) {
if (value instanceof Datasource) {
// nothing to clean here
} else if (value instanceof Project) {
@ -234,6 +236,38 @@ public class GraphCleaningFunctions extends CleaningFunctions {
if (Objects.nonNull(r.getInstance())) {
for (Instance i : r.getInstance()) {
if (!vocs.termExists(ModelConstants.DNET_PUBLICATION_RESOURCE, i.getInstancetype().getClassid())) {
if (r instanceof Publication) {
i
.setInstancetype(
OafMapperUtils
.qualifier(
"0038", "Other literature type", ModelConstants.DNET_PUBLICATION_RESOURCE,
ModelConstants.DNET_PUBLICATION_RESOURCE));
} else if (r instanceof Dataset) {
i
.setInstancetype(
OafMapperUtils
.qualifier(
"0039", "Other dataset type", ModelConstants.DNET_PUBLICATION_RESOURCE,
ModelConstants.DNET_PUBLICATION_RESOURCE));
} else if (r instanceof Software) {
i
.setInstancetype(
OafMapperUtils
.qualifier(
"0040", "Other software type", ModelConstants.DNET_PUBLICATION_RESOURCE,
ModelConstants.DNET_PUBLICATION_RESOURCE));
} else if (r instanceof OtherResearchProduct) {
i
.setInstancetype(
OafMapperUtils
.qualifier(
"0020", "Other ORP type", ModelConstants.DNET_PUBLICATION_RESOURCE,
ModelConstants.DNET_PUBLICATION_RESOURCE));
}
}
if (Objects.nonNull(i.getPid())) {
i.setPid(processPidCleaning(i.getPid()));
}

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

Some files were not shown because too many files have changed in this diff Show More