|
|
|
@ -23,13 +23,11 @@ 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
|
|
|
|
|
* 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 {
|
|
|
|
|
|
|
|
|
|