Compare commits

..

No commits in common. "22eaf211e82931174dc1f34be1bf7fab2feab7ca" and "cd9c51fd7a139cb5b410af8f83ce855c6f49aaee" have entirely different histories.

1661 changed files with 573 additions and 16673 deletions

4
.gitignore vendored Executable file → Normal file
View File

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

0
LICENSE Executable file → Normal file
View File

0
README.md Executable file → Normal file
View File

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

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

View File

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

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

View File

View File

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

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

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

0
dhp-common/pom.xml Executable file → Normal 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,17 +120,9 @@ 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,8 +16,6 @@ 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.*;
@ -117,7 +115,7 @@ public class GraphCleaningFunctions extends CleaningFunctions {
return true;
}
public static <T extends Oaf> T cleanup(T value, VocabularyGroup vocs) {
public static <T extends Oaf> T cleanup(T value) {
if (value instanceof Datasource) {
// nothing to clean here
} else if (value instanceof Project) {
@ -236,38 +234,6 @@ 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