From 743d31be227354f6f041a06ea083988198fe5ab2 Mon Sep 17 00:00:00 2001 From: "miriam.baglioni" Date: Thu, 13 Aug 2020 12:11:22 +0200 Subject: [PATCH] apply changes in https://code-repo.d4science.org/D-Net/dnet-hadoop/pulls/40#issuecomment-1848 --- .../dhp/oa/graph/dump/graph/Extractor.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/graph/Extractor.java b/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/graph/Extractor.java index 7baab2683..3daaed47f 100644 --- a/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/graph/Extractor.java +++ b/dhp-workflows/dhp-graph-mapper/src/main/java/eu/dnetlib/dhp/oa/graph/dump/graph/Extractor.java @@ -1,12 +1,3 @@ -/** - * Creates new Relations (as in eu.dnetlib.dhp.schema.dump.oaf.graph.Relation) from the information in the Entity. - * The new Relations are created for the datasource in the collectedfrom and hostedby elements and for the context - * related to communities and research initiative/infrastructures. - * - * For collectedfrom elements it creates: datasource -> provides -> result and result -> isProvidedBy -> datasource - * For hostedby elements it creates: datasource -> hosts -> result and result -> isHostedBy -> datasource - * For context elements it creates: context <-> isRelatedTo <-> result - */ package eu.dnetlib.dhp.oa.graph.dump.graph; @@ -31,6 +22,15 @@ import eu.dnetlib.dhp.schema.dump.oaf.graph.Relation; import eu.dnetlib.dhp.schema.oaf.KeyValue; import eu.dnetlib.dhp.schema.oaf.Result; +/** + * Creates new Relations (as in eu.dnetlib.dhp.schema.dump.oaf.graph.Relation) from the information in the Entity. + * The new Relations are created for the datasource in the collectedfrom and hostedby elements and for the context + * related to communities and research initiative/infrastructures. + * + * For collectedfrom elements it creates: datasource -> provides -> result and result -> isProvidedBy -> datasource + * For hostedby elements it creates: datasource -> hosts -> result and result -> isHostedBy -> datasource + * For context elements it creates: context <-> isRelatedTo <-> result + */ public class Extractor implements Serializable { public void run(Boolean isSparkSessionManaged,