forked from D-Net/dnet-hadoop
removed the inverse of the Citing relation
This commit is contained in:
parent
12cd179d2d
commit
86fe886c1a
|
@ -114,10 +114,10 @@ public class CreateActionSetSparkJob implements Serializable {
|
||||||
|
|
||||||
if (!citing.equals(cited)) {
|
if (!citing.equals(cited)) {
|
||||||
relationList
|
relationList
|
||||||
.addAll(
|
.add(
|
||||||
getRelations(
|
getRelation(
|
||||||
citing,
|
citing,
|
||||||
cited));
|
cited, ModelConstants.CITES));
|
||||||
|
|
||||||
if (duplicate && value.getCiting().endsWith(".refs")) {
|
if (duplicate && value.getCiting().endsWith(".refs")) {
|
||||||
citing = ID_PREFIX + IdentifierFactory
|
citing = ID_PREFIX + IdentifierFactory
|
||||||
|
@ -125,7 +125,7 @@ public class CreateActionSetSparkJob implements Serializable {
|
||||||
CleaningFunctions
|
CleaningFunctions
|
||||||
.normalizePidValue(
|
.normalizePidValue(
|
||||||
"doi", value.getCiting().substring(0, value.getCiting().indexOf(".refs"))));
|
"doi", value.getCiting().substring(0, value.getCiting().indexOf(".refs"))));
|
||||||
relationList.addAll(getRelations(citing, cited));
|
relationList.add(getRelation(citing, cited, ModelConstants.CITES));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue