Adding H2020 Classification, topic code and topic description to H2020 projects #46
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#46
Loading…
Reference in New Issue
No description provided.
Delete Branch "miriam.baglioni/dnet-hadoop:h2020classification"
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 include the code to update H2020 project information with H2020Classification and h2020 topic code and topic description.
To obtain this update a modification to the model of the Project entity was needed:
Added :
"h2020classification": [
{
"h2020Programme": {
"code": "Programme code",
"description": "programme description"
},
"level1": "classification level 1",
"level2": "classification level 2",
"level3": "classification level 3",
"classification": "entire classification related to the programme code"
}
]
Removed :
@ -0,0 +2,4 @@
package eu.dnetlib.dhp.schema.dump.oaf.graph;
import java.io.Serializable;
Consider adding some javadoc
LGTM
@ -0,0 +3,4 @@
import java.io.Serializable;
import java.util.Objects;
Consider adding some javadoc
LGTM
@ -63,3 +61,3 @@
private Granted granted;
private List<Programme> programme;
// private List<Programme> programme;
please remove unused code lines
@ -332,3 +352,3 @@
: fundedamount;
programme = mergeLists(programme, p.getProgramme());
// programme = mergeLists(programme, p.getProgramme());
please remove unused code lines
@ -98,2 +96,4 @@
String[] programme = csvProject.get().getProgramme().split(";");
String topic = csvProject.get().getTopics();
// String topicdescription = Optional
please remove unused code lines
@ -0,0 +79,4 @@
this.writer = new BufferedWriter(new OutputStreamWriter(fsDataOutputStream, StandardCharsets.UTF_8));
this.excelFile = httpConnector.getInputSourceAsStream(fileURL);
;
cleanup needed :)
Except for some minor changes, looks good to me.
Adding link to the discussion about the H2020 programmes: #5926
WIP: adding H2020 Classification, topic code and topic description to H2020 projectsto Adding H2020 Classification, topic code and topic description to H2020 projects