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,