From db657d79a62dce28623560a77855ab36429412e6 Mon Sep 17 00:00:00 2001 From: "miriam.baglioni" Date: Thu, 13 Oct 2022 11:50:48 +0200 Subject: [PATCH] [Dump] fixed issue on dump of datasource pids --- .../dnetlib/dhp/oa/graph/dump/complete/DumpGraphEntities.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dump/src/main/java/eu/dnetlib/dhp/oa/graph/dump/complete/DumpGraphEntities.java b/dump/src/main/java/eu/dnetlib/dhp/oa/graph/dump/complete/DumpGraphEntities.java index 43a569a..78e4eb8 100644 --- a/dump/src/main/java/eu/dnetlib/dhp/oa/graph/dump/complete/DumpGraphEntities.java +++ b/dump/src/main/java/eu/dnetlib/dhp/oa/graph/dump/complete/DumpGraphEntities.java @@ -126,10 +126,10 @@ public class DumpGraphEntities implements Serializable { Optional .ofNullable(d.getPid()) .ifPresent( - pids -> pids + pids -> datasource.setPid(pids .stream() .map(p -> DatasourcePid.newInstance(p.getQualifier().getClassid(), p.getValue())) - .collect(Collectors.toList())); + .collect(Collectors.toList()))); Optional .ofNullable(d.getDatasourcetype())