remove from the set of relation to be included in the dump also those with relType resultService. It is not possible to extend the removeSet parameter because the relClass is IsRelatedTo

This commit is contained in:
Miriam Baglioni 2024-04-29 18:30:51 +02:00
parent fcec4b4225
commit e0a0dddfac
1 changed files with 2 additions and 1 deletions

View File

@ -82,7 +82,8 @@ public class SparkSelectSubset implements Serializable {
.readPath(spark, inputPath + "/relation", Relation.class)
.filter(
(FilterFunction<Relation>) r -> !r.getDataInfo().getDeletedbyinference()
&& !removeSet.contains(r.getRelClass()));
&& !removeSet.contains(r.getRelClass()) &&
!r.getRelType().equals("resultService"));
Dataset<String> resultIds = Utils
.readPath(spark, outputPath + "/original/publication", Publication.class)