From 9e722aa1efa32aeafe23083d967814d13f3de9e8 Mon Sep 17 00:00:00 2001 From: "miriam.baglioni" Date: Wed, 29 Jul 2020 18:00:08 +0200 Subject: [PATCH] - --- .../dnetlib/dhp/oa/graph/dump/graph/Constants.java | 2 +- .../dhp/oa/graph/dump/graph/DumpGraphEntities.java | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/graph/Constants.java b/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/graph/Constants.java index 41eb172de8..9fd8f70484 100644 --- a/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/graph/Constants.java +++ b/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/graph/Constants.java @@ -27,5 +27,5 @@ public class Constants implements Serializable { public static final String HARVESTED = "Harvested"; public static final String DEFAULT_TRUST = "0.9"; - public static final String FUNDER_DS = "entityregistry::projects"; + // public static final String FUNDER_DS = "entityregistry::projects"; } diff --git a/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/graph/DumpGraphEntities.java b/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/graph/DumpGraphEntities.java index 58c8e73682..81b83e54f7 100644 --- a/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/graph/DumpGraphEntities.java +++ b/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/graph/DumpGraphEntities.java @@ -103,13 +103,13 @@ public class DumpGraphEntities implements Serializable { private static Datasource mapDatasource(eu.dnetlib.dhp.schema.oaf.Datasource d) { Datasource datasource = new Datasource(); - Optional odstype = Optional.ofNullable(d.getDatasourcetype()); - - if(odstype.isPresent()){ - if (odstype.get().getClassid().equals(Constants.FUNDER_DS)){ - return null; - } - } +// Optional odstype = Optional.ofNullable(d.getDatasourcetype()); +// +// if(odstype.isPresent()){ +// if (odstype.get().getClassid().equals(Constants.FUNDER_DS)){ +// return null; +// } +// } datasource.setId(d.getId());