[ENRICHMENT][BETA] Use of community API in enrichment process AND addition to tagging result for communities through projects #359
No reviewers
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
RDGraph
RSAC
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: D-Net/dnet-hadoop#359
Loading…
Reference in New Issue
No description provided.
Delete Branch "propagationapi"
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?
In this PR the use of the IS is replaced by the community APIs in the bulktagging and resulttocommunityfromorganization modules. The code is also refactored.
There is also the addition of a new module resulttocommunityfromproject that associated the result to the community if the result is linked to a project relevant for the community. This will replace the IIS document_referencedProjects in the graph processing. We need to add a new step to the workflow (it could be added at any point in the enrichment pipeline) The parameters are:
sourcePath = the source path
outputPath = the output path
production = true/false If true it will query the communityapis for production, if false the ones for beta
Note: the production parameter has to be added also to the bulktag and resulttocommunityfromorganization steps with the same semantics.
@ -0,0 +14,4 @@
* @Date 06/10/23
*/
public class QueryCommunityAPI {
private static final String PRODUCTION_BASE_URL = "https://services.openaire.eu/openaire/";
It is not a good idea to hardcode the service base urls. Please consider to factor it out as an input parameter: having the possibility to define the API base URL fits well with the definition of a test case where the API server application is mocked locally.
I have changed this. Now we have a parameter baseURL where to specify the URL for production or beta.
It is expected to be "https://services.openaire.eu/openaire/communities/" and the equivalent one for beta "https://beta.services.openaire.eu/openaire/communities/"
Thanks!
[ENRICHMENT]Use of community API in enrichment process AND addition to tagging result for communities through projectsto [ENRICHMENT][BETA] Use of community API in enrichment process AND addition to tagging result for communities through projects