1
|
package eu.dnetlib.data.mapreduce.hbase.openorgs;
|
2
|
|
3
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
4
|
import com.fasterxml.jackson.core.JsonProcessingException;
|
5
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
6
|
|
7
|
public class Similarity {
|
8
|
|
9
|
private static final ObjectMapper objectMapper = new ObjectMapper();
|
10
|
|
11
|
@JsonProperty("local_id")
|
12
|
private String openOrgID;
|
13
|
|
14
|
@JsonProperty("oa_id")
|
15
|
private String openaireId;
|
16
|
|
17
|
@JsonProperty("oa_original_id")
|
18
|
private String openaireOriginalId;
|
19
|
|
20
|
@JsonProperty("oa_name")
|
21
|
private String name;
|
22
|
|
23
|
@JsonProperty("oa_acronym")
|
24
|
private String acronym;
|
25
|
|
26
|
@JsonProperty("oa_country")
|
27
|
private String country;
|
28
|
|
29
|
@JsonProperty("oa_url")
|
30
|
private String url;
|
31
|
|
32
|
@JsonProperty("oa_collectedfrom")
|
33
|
private String collectedFrom;
|
34
|
|
35
|
public String getOpenOrgID() {
|
36
|
return openOrgID;
|
37
|
}
|
38
|
|
39
|
public void setOpenOrgID(final String openOrgID) {
|
40
|
this.openOrgID = openOrgID;
|
41
|
}
|
42
|
|
43
|
public String getOpenaireId() {
|
44
|
return openaireId;
|
45
|
}
|
46
|
|
47
|
public void setOpenaireId(final String openaireId) {
|
48
|
this.openaireId = openaireId;
|
49
|
}
|
50
|
|
51
|
public String getOpenaireOriginalId() {
|
52
|
return openaireOriginalId;
|
53
|
}
|
54
|
|
55
|
public void setOpenaireOriginalId(final String openaireOriginalId) {
|
56
|
this.openaireOriginalId = openaireOriginalId;
|
57
|
}
|
58
|
|
59
|
public String getName() {
|
60
|
return name;
|
61
|
}
|
62
|
|
63
|
public void setName(final String name) {
|
64
|
this.name = name;
|
65
|
}
|
66
|
|
67
|
public String getAcronym() {
|
68
|
return acronym;
|
69
|
}
|
70
|
|
71
|
public void setAcronym(final String acronym) {
|
72
|
this.acronym = acronym;
|
73
|
}
|
74
|
|
75
|
public String getCountry() {
|
76
|
return country;
|
77
|
}
|
78
|
|
79
|
public void setCountry(final String country) {
|
80
|
this.country = country;
|
81
|
}
|
82
|
|
83
|
public String getUrl() {
|
84
|
return url;
|
85
|
}
|
86
|
|
87
|
public void setUrl(final String url) {
|
88
|
this.url = url;
|
89
|
}
|
90
|
|
91
|
public String getCollectedFrom() {
|
92
|
return collectedFrom;
|
93
|
}
|
94
|
|
95
|
public void setCollectedFrom(final String collectedFrom) {
|
96
|
this.collectedFrom = collectedFrom;
|
97
|
}
|
98
|
|
99
|
public String toJson() throws JsonProcessingException {
|
100
|
return objectMapper.writeValueAsString(this);
|
101
|
}
|
102
|
|
103
|
public byte[] toJsonBytes() throws JsonProcessingException {
|
104
|
return objectMapper.writeValueAsBytes(this);
|
105
|
}
|
106
|
}
|