forked from biolink/biolink-model
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAttribute.java
More file actions
445 lines (408 loc) · 13.4 KB
/
Attribute.java
File metadata and controls
445 lines (408 loc) · 13.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
/**
* Attribute
* <p>
* A property or characteristic of an entity. For example, an apple may have properties such as color, shape, age, crispiness. An environmental sample may have attributes such as depth, lat, long, material.
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"category",
"description",
"full_name",
"has_attribute_type",
"has_qualitative_value",
"has_quantitative_value",
"id",
"interacts_with",
"iri",
"name",
"node_property",
"related_to",
"subclass_of",
"synonym",
"systematic_synonym"
})
public class Attribute {
/**
* Name of the high level ontology class in which this entity is categorized. Corresponds to the label for the biolink entity type class. In a neo4j database this MAY correspond to the neo4j label tag
* (Required)
*
*/
@JsonProperty("category")
@JsonPropertyDescription("Name of the high level ontology class in which this entity is categorized. Corresponds to the label for the biolink entity type class. In a neo4j database this MAY correspond to the neo4j label tag")
private List<String> category = new ArrayList<String>();
/**
* a human-readable description of a thing
*
*/
@JsonProperty("description")
@JsonPropertyDescription("a human-readable description of a thing")
private String description;
/**
* a long-form human readable name for a thing
*
*/
@JsonProperty("full_name")
@JsonPropertyDescription("a long-form human readable name for a thing")
private String fullName;
/**
* connects an attribute to a class that describes it
*
*/
@JsonProperty("has_attribute_type")
@JsonPropertyDescription("connects an attribute to a class that describes it")
private String hasAttributeType;
/**
* connects an attribute to a value
*
*/
@JsonProperty("has_qualitative_value")
@JsonPropertyDescription("connects an attribute to a value")
private String hasQualitativeValue;
/**
* connects an attribute to a value
*
*/
@JsonProperty("has_quantitative_value")
@JsonPropertyDescription("connects an attribute to a value")
private List<String> hasQuantitativeValue = new ArrayList<String>();
/**
* A unique identifier for a thing. Must be either a CURIE shorthand for a URI or a complete URI
* (Required)
*
*/
@JsonProperty("id")
@JsonPropertyDescription("A unique identifier for a thing. Must be either a CURIE shorthand for a URI or a complete URI")
private String id;
/**
* holds between any two entities that directly or indirectly interact with each other
*
*/
@JsonProperty("interacts_with")
@JsonPropertyDescription("holds between any two entities that directly or indirectly interact with each other")
private List<String> interactsWith = new ArrayList<String>();
/**
* An IRI for the node. This is determined by the id using expansion rules.
*
*/
@JsonProperty("iri")
@JsonPropertyDescription("An IRI for the node. This is determined by the id using expansion rules.")
private String iri;
/**
* A human-readable name for a thing
* (Required)
*
*/
@JsonProperty("name")
@JsonPropertyDescription("A human-readable name for a thing")
private String name;
/**
* A grouping for any property that holds between a node and a value
*
*/
@JsonProperty("node_property")
@JsonPropertyDescription("A grouping for any property that holds between a node and a value")
private String nodeProperty;
/**
* A relationship that is asserted between two named things
*
*/
@JsonProperty("related_to")
@JsonPropertyDescription("A relationship that is asserted between two named things")
private List<String> relatedTo = new ArrayList<String>();
/**
* holds between two classes where the domain class is a specialization of the range class
*
*/
@JsonProperty("subclass_of")
@JsonPropertyDescription("holds between two classes where the domain class is a specialization of the range class")
private List<String> subclassOf = new ArrayList<String>();
/**
* Alternate human-readable names for a thing
*
*/
@JsonProperty("synonym")
@JsonPropertyDescription("Alternate human-readable names for a thing")
private List<String> synonym = new ArrayList<String>();
/**
* more commonly used for gene symbols in yeast
*
*/
@JsonProperty("systematic_synonym")
@JsonPropertyDescription("more commonly used for gene symbols in yeast")
private List<String> systematicSynonym = new ArrayList<String>();
/**
* Name of the high level ontology class in which this entity is categorized. Corresponds to the label for the biolink entity type class. In a neo4j database this MAY correspond to the neo4j label tag
* (Required)
*
*/
@JsonProperty("category")
public List<String> getCategory() {
return category;
}
/**
* Name of the high level ontology class in which this entity is categorized. Corresponds to the label for the biolink entity type class. In a neo4j database this MAY correspond to the neo4j label tag
* (Required)
*
*/
@JsonProperty("category")
public void setCategory(List<String> category) {
this.category = category;
}
/**
* a human-readable description of a thing
*
*/
@JsonProperty("description")
public String getDescription() {
return description;
}
/**
* a human-readable description of a thing
*
*/
@JsonProperty("description")
public void setDescription(String description) {
this.description = description;
}
/**
* a long-form human readable name for a thing
*
*/
@JsonProperty("full_name")
public String getFullName() {
return fullName;
}
/**
* a long-form human readable name for a thing
*
*/
@JsonProperty("full_name")
public void setFullName(String fullName) {
this.fullName = fullName;
}
/**
* connects an attribute to a class that describes it
*
*/
@JsonProperty("has_attribute_type")
public String getHasAttributeType() {
return hasAttributeType;
}
/**
* connects an attribute to a class that describes it
*
*/
@JsonProperty("has_attribute_type")
public void setHasAttributeType(String hasAttributeType) {
this.hasAttributeType = hasAttributeType;
}
/**
* connects an attribute to a value
*
*/
@JsonProperty("has_qualitative_value")
public String getHasQualitativeValue() {
return hasQualitativeValue;
}
/**
* connects an attribute to a value
*
*/
@JsonProperty("has_qualitative_value")
public void setHasQualitativeValue(String hasQualitativeValue) {
this.hasQualitativeValue = hasQualitativeValue;
}
/**
* connects an attribute to a value
*
*/
@JsonProperty("has_quantitative_value")
public List<String> getHasQuantitativeValue() {
return hasQuantitativeValue;
}
/**
* connects an attribute to a value
*
*/
@JsonProperty("has_quantitative_value")
public void setHasQuantitativeValue(List<String> hasQuantitativeValue) {
this.hasQuantitativeValue = hasQuantitativeValue;
}
/**
* A unique identifier for a thing. Must be either a CURIE shorthand for a URI or a complete URI
* (Required)
*
*/
@JsonProperty("id")
public String getId() {
return id;
}
/**
* A unique identifier for a thing. Must be either a CURIE shorthand for a URI or a complete URI
* (Required)
*
*/
@JsonProperty("id")
public void setId(String id) {
this.id = id;
}
/**
* holds between any two entities that directly or indirectly interact with each other
*
*/
@JsonProperty("interacts_with")
public List<String> getInteractsWith() {
return interactsWith;
}
/**
* holds between any two entities that directly or indirectly interact with each other
*
*/
@JsonProperty("interacts_with")
public void setInteractsWith(List<String> interactsWith) {
this.interactsWith = interactsWith;
}
/**
* An IRI for the node. This is determined by the id using expansion rules.
*
*/
@JsonProperty("iri")
public String getIri() {
return iri;
}
/**
* An IRI for the node. This is determined by the id using expansion rules.
*
*/
@JsonProperty("iri")
public void setIri(String iri) {
this.iri = iri;
}
/**
* A human-readable name for a thing
* (Required)
*
*/
@JsonProperty("name")
public String getName() {
return name;
}
/**
* A human-readable name for a thing
* (Required)
*
*/
@JsonProperty("name")
public void setName(String name) {
this.name = name;
}
/**
* A grouping for any property that holds between a node and a value
*
*/
@JsonProperty("node_property")
public String getNodeProperty() {
return nodeProperty;
}
/**
* A grouping for any property that holds between a node and a value
*
*/
@JsonProperty("node_property")
public void setNodeProperty(String nodeProperty) {
this.nodeProperty = nodeProperty;
}
/**
* A relationship that is asserted between two named things
*
*/
@JsonProperty("related_to")
public List<String> getRelatedTo() {
return relatedTo;
}
/**
* A relationship that is asserted between two named things
*
*/
@JsonProperty("related_to")
public void setRelatedTo(List<String> relatedTo) {
this.relatedTo = relatedTo;
}
/**
* holds between two classes where the domain class is a specialization of the range class
*
*/
@JsonProperty("subclass_of")
public List<String> getSubclassOf() {
return subclassOf;
}
/**
* holds between two classes where the domain class is a specialization of the range class
*
*/
@JsonProperty("subclass_of")
public void setSubclassOf(List<String> subclassOf) {
this.subclassOf = subclassOf;
}
/**
* Alternate human-readable names for a thing
*
*/
@JsonProperty("synonym")
public List<String> getSynonym() {
return synonym;
}
/**
* Alternate human-readable names for a thing
*
*/
@JsonProperty("synonym")
public void setSynonym(List<String> synonym) {
this.synonym = synonym;
}
/**
* more commonly used for gene symbols in yeast
*
*/
@JsonProperty("systematic_synonym")
public List<String> getSystematicSynonym() {
return systematicSynonym;
}
/**
* more commonly used for gene symbols in yeast
*
*/
@JsonProperty("systematic_synonym")
public void setSystematicSynonym(List<String> systematicSynonym) {
this.systematicSynonym = systematicSynonym;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("category", category).append("description", description).append("fullName", fullName).append("hasAttributeType", hasAttributeType).append("hasQualitativeValue", hasQualitativeValue).append("hasQuantitativeValue", hasQuantitativeValue).append("id", id).append("interactsWith", interactsWith).append("iri", iri).append("name", name).append("nodeProperty", nodeProperty).append("relatedTo", relatedTo).append("subclassOf", subclassOf).append("synonym", synonym).append("systematicSynonym", systematicSynonym).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(hasQuantitativeValue).append(iri).append(nodeProperty).append(systematicSynonym).append(description).append(fullName).append(relatedTo).append(interactsWith).append(synonym).append(subclassOf).append(name).append(hasAttributeType).append(id).append(category).append(hasQualitativeValue).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof Attribute) == false) {
return false;
}
Attribute rhs = ((Attribute) other);
return new EqualsBuilder().append(hasQuantitativeValue, rhs.hasQuantitativeValue).append(iri, rhs.iri).append(nodeProperty, rhs.nodeProperty).append(systematicSynonym, rhs.systematicSynonym).append(description, rhs.description).append(fullName, rhs.fullName).append(relatedTo, rhs.relatedTo).append(interactsWith, rhs.interactsWith).append(synonym, rhs.synonym).append(subclassOf, rhs.subclassOf).append(name, rhs.name).append(hasAttributeType, rhs.hasAttributeType).append(id, rhs.id).append(category, rhs.category).append(hasQualitativeValue, rhs.hasQualitativeValue).isEquals();
}
}