EOSC COntext Tagging #231
No reviewers
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
RDGraph
RSAC
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: D-Net/dnet-hadoop#231
Loading…
Reference in New Issue
No description provided.
Delete Branch "eosc_context_tagging"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.