1
0
Fork 0

removed the inverse of the Citing relation

This commit is contained in:
Miriam Baglioni 2023-05-15 11:20:51 +02:00
parent 12cd179d2d
commit 86fe886c1a
1 changed files with 4 additions and 4 deletions

View File

@ -114,10 +114,10 @@ public class CreateActionSetSparkJob implements Serializable {
if (!citing.equals(cited)) {
relationList
.addAll(
getRelations(
.add(
getRelation(
citing,
cited));
cited, ModelConstants.CITES));
if (duplicate && value.getCiting().endsWith(".refs")) {
citing = ID_PREFIX + IdentifierFactory
@ -125,7 +125,7 @@ public class CreateActionSetSparkJob implements Serializable {
CleaningFunctions
.normalizePidValue(
"doi", value.getCiting().substring(0, value.getCiting().indexOf(".refs"))));
relationList.addAll(getRelations(citing, cited));
relationList.add(getRelation(citing, cited, ModelConstants.CITES));
}
}