EOSC COntext Tagging #231

Merged
claudio.atzori merged 11 commits from eosc_context_tagging into beta 2 years ago
Collaborator

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 2 years ago
alessia.bardi was assigned by miriam.baglioni 2 years ago
claudio.atzori was assigned by miriam.baglioni 2 years ago
miriam.baglioni added 10 commits 2 years ago
miriam.baglioni added 1 commit 2 years ago
claudio.atzori merged commit c03e20be39 into beta 2 years ago
The pull request has been merged as c03e20be39.
You can also view command line instructions.

Step 1:

From your project repository, check out a new branch and test the changes.
git checkout -b eosc_context_tagging beta
git pull origin eosc_context_tagging

Step 2:

Merge the changes and update on Gitea.
git checkout beta
git merge --no-ff eosc_context_tagging
git push origin beta
Sign in to join this conversation.
No reviewers
No Milestone
No project
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: D-Net/dnet-hadoop#231
Loading…
There is no content yet.