1
0
Fork 0

[Bypass Action Set] used constant DOI instead of "doi"

This commit is contained in:
Miriam Baglioni 2021-11-12 10:56:58 +01:00
parent 881113743f
commit 92d0e18b55
3 changed files with 2 additions and 4 deletions

View File

@ -15,8 +15,6 @@ import eu.dnetlib.dhp.application.ArgumentApplicationParser;
public class Constants { public class Constants {
public static final String UNREOSLVED_PREFIX = "unresolved:";
public static final String UNREOSLVED_POSTFIX_DOI = ":doi";
public static final String DOI = "doi"; public static final String DOI = "doi";
public static final String UPDATE_DATA_INFO_TYPE = "update"; public static final String UPDATE_DATA_INFO_TYPE = "update";

View File

@ -94,7 +94,7 @@ public class PrepareBipFinder implements Serializable {
.map((MapFunction<BipScore, Result>) v -> { .map((MapFunction<BipScore, Result>) v -> {
Result r = new Result(); Result r = new Result();
r.setId(DHPUtils.generateUnresolvedIdentifier(v.getId(), "doi")); r.setId(DHPUtils.generateUnresolvedIdentifier(v.getId(), DOI));
r.setMeasures(getMeasure(v)); r.setMeasures(getMeasure(v));
return r; return r;
}, Encoders.bean(Result.class)) }, Encoders.bean(Result.class))

View File

@ -79,7 +79,7 @@ public class PrepareFOSSparkJob implements Serializable {
}, Encoders.bean(FOSDataModel.class)) }, Encoders.bean(FOSDataModel.class))
.map((MapFunction<FOSDataModel, Result>) value -> { .map((MapFunction<FOSDataModel, Result>) value -> {
Result r = new Result(); Result r = new Result();
r.setId(DHPUtils.generateUnresolvedIdentifier(value.getDoi(), "doi")); r.setId(DHPUtils.generateUnresolvedIdentifier(value.getDoi(), DOI));
r.setSubject(getSubjects(value)); r.setSubject(getSubjects(value));
return r; return r;
}, Encoders.bean(Result.class)) }, Encoders.bean(Result.class))