Adding H2020 Classification, topic code and topic description to H2020 projects #46

Merged
claudio.atzori merged 59 commits from miriam.baglioni/dnet-hadoop:h2020classification into master 2020-10-05 14:14:39 +02:00

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 variable of type H2020Classification List. The model of the H2020Classification is the following :

    "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"
    }
    ]

    • H2020topicdescription of type String and
    • H2020topiccode of type String. The model of the H2020Classification is the following:
  • Removed :

    • H2020Programme variable of type H2020Programme that has been inserted in the H2020Classification definition
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 variable of type H2020Classification List. The model of the H2020Classification is the following : "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" } ] - H2020topicdescription of type String and - H2020topiccode of type String. The model of the H2020Classification is the following: * Removed : - H2020Programme variable of type H2020Programme that has been inserted in the H2020Classification definition
claudio.atzori added the
enhancement
label 2020-10-01 17:05:20 +02:00
claudio.atzori self-assigned this 2020-10-01 17:05:25 +02:00
claudio.atzori reviewed 2020-10-01 17:07:18 +02:00
@ -0,0 +2,4 @@
package eu.dnetlib.dhp.schema.dump.oaf.graph;
import java.io.Serializable;

Consider adding some javadoc

Consider adding some javadoc

LGTM

LGTM
claudio.atzori reviewed 2020-10-01 17:08:12 +02:00
@ -0,0 +3,4 @@
import java.io.Serializable;
import java.util.Objects;

Consider adding some javadoc

Consider adding some javadoc

LGTM

LGTM
claudio.atzori reviewed 2020-10-01 17:11:30 +02:00
@ -63,3 +61,3 @@
private Granted granted;
private List<Programme> programme;
// private List<Programme> programme;

please remove unused code lines

please remove unused code lines
miriam.baglioni closed this pull request 2020-10-01 17:18:05 +02:00
miriam.baglioni reopened this pull request 2020-10-01 17:29:36 +02:00
claudio.atzori reviewed 2020-10-01 17:35:31 +02:00
@ -332,3 +352,3 @@
: fundedamount;
programme = mergeLists(programme, p.getProgramme());
// programme = mergeLists(programme, p.getProgramme());

please remove unused code lines

please remove unused code lines
claudio.atzori reviewed 2020-10-01 17:37:22 +02:00
@ -98,2 +96,4 @@
String[] programme = csvProject.get().getProgramme().split(";");
String topic = csvProject.get().getTopics();
// String topicdescription = Optional

please remove unused code lines

please remove unused code lines
claudio.atzori reviewed 2020-10-01 17:38:25 +02:00
@ -0,0 +79,4 @@
this.writer = new BufferedWriter(new OutputStreamWriter(fsDataOutputStream, StandardCharsets.UTF_8));
this.excelFile = httpConnector.getInputSourceAsStream(fileURL);
;

cleanup needed :)

cleanup needed :)
claudio.atzori requested changes 2020-10-02 11:48:41 +02:00
claudio.atzori left a comment
Owner

Except for some minor changes, looks good to me.

Except for some minor changes, looks good to me.

Adding link to the discussion about the H2020 programmes: #5926

Adding link to the discussion about the H2020 programmes: [#5926](https://issue.openaire.research-infrastructures.eu/issues/5926)
claudio.atzori changed title from WIP: adding H2020 Classification, topic code and topic description to H2020 projects to Adding H2020 Classification, topic code and topic description to H2020 projects 2020-10-05 14:13:49 +02:00
claudio.atzori closed this pull request 2020-10-05 14:14:39 +02:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 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#46
No description provided.