EOSC COntext Tagging #231

Merged
claudio.atzori merged 11 commits from eosc_context_tagging into beta 2022-07-26 09:20:54 +02:00

This PR regards the addition of the eosc context to results hostedby datasources registered in the eosc. At the moment the collectedfrom information is not taken into consideration.

The first step is a query at the database to collect the master (deduplicate representative) of the eosc datasources (those with namespace prefix starting with eosc) to create a correspondence (datasource id, master openaireid).

Then the master openaireid is used to search in the result.instance[].hostedby element, i.e. the datasource hosting the research product among each of its instances.

When one is found equal to the master for the datasources registered in the eosc, then the tag is added among the result.context[] if not already present.

This PR regards the addition of the eosc context to results hostedby datasources registered in the eosc. At the moment the collectedfrom information is not taken into consideration. The first step is a query at the database to collect the master (deduplicate representative) of the eosc datasources (those with namespace prefix starting with eosc) to create a correspondence (datasource id, master openaireid). Then the **master openaireid** is used to search in the `result.instance[].hostedby` element, i.e. the datasource hosting the research product among each of its instances. When one is found equal to the master for the datasources registered in the eosc, then the tag is added among the `result.context[]` if not already present.
miriam.baglioni added the
enhancement
label 2022-07-25 14:31:50 +02:00
alessia.bardi was assigned by miriam.baglioni 2022-07-25 14:31:50 +02:00
claudio.atzori was assigned by miriam.baglioni 2022-07-25 14:31:51 +02:00
miriam.baglioni added 10 commits 2022-07-25 14:31:53 +02:00
miriam.baglioni added 1 commit 2022-07-25 15:45:28 +02:00
claudio.atzori merged commit c03e20be39 into beta 2022-07-26 09:20:54 +02:00
Sign in to join this conversation.
No description provided.