forked from biolink/biolink-model
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAssociation.java
633 lines (582 loc) · 22.2 KB
/
Association.java
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
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
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;
/**
* Association
* <p>
* A typed association between two entities, supported by evidence
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"association_slot",
"association_type",
"change_is_catalyzed_by",
"clinical_modifier_qualifier",
"edge_label",
"frequency_qualifier",
"has_confidence_level",
"has_evidence",
"id",
"negated",
"object",
"onset_qualifier",
"provided_by",
"publications",
"qualifiers",
"quantifier_qualifier",
"relation",
"sequence_variant_qualifier",
"severity_qualifier",
"sex_qualifier",
"stage_qualifier",
"subject"
})
public class Association {
/**
* any slot that relates an association to another entity
*
*/
@JsonProperty("association_slot")
@JsonPropertyDescription("any slot that relates an association to another entity")
private String associationSlot;
/**
* connects an association to the type of association (e.g. gene to phenotype)
*
*/
@JsonProperty("association_type")
@JsonPropertyDescription("connects an association to the type of association (e.g. gene to phenotype)")
private String associationType;
/**
* hyperedge connecting an association between two causally connected entities (for example, two chemical entities, or a chemical entity in that changes location) and the gene product, gene, or complex that enables or catalyzes the change.
*
*/
@JsonProperty("change_is_catalyzed_by")
@JsonPropertyDescription("hyperedge connecting an association between two causally connected entities (for example, two chemical entities, or a chemical entity in that changes location) and the gene product, gene, or complex that enables or catalyzes the change.")
private List<String> changeIsCatalyzedBy = new ArrayList<String>();
/**
* Used to characterize and specify the phenotypic abnormalities defined in the Phenotypic abnormality subontology, with respect to severity, laterality, age of onset, and other aspects
*
*/
@JsonProperty("clinical_modifier_qualifier")
@JsonPropertyDescription("Used to characterize and specify the phenotypic abnormalities defined in the Phenotypic abnormality subontology, with respect to severity, laterality, age of onset, and other aspects")
private String clinicalModifierQualifier;
/**
* A high-level grouping for the relationship type. AKA minimal predicate. This is analogous to category for nodes.
* (Required)
*
*/
@JsonProperty("edge_label")
@JsonPropertyDescription("A high-level grouping for the relationship type. AKA minimal predicate. This is analogous to category for nodes.")
private String edgeLabel;
/**
* a qualifier used in a phenotypic association to state how frequent the phenotype is observed in the subject
*
*/
@JsonProperty("frequency_qualifier")
@JsonPropertyDescription("a qualifier used in a phenotypic association to state how frequent the phenotype is observed in the subject")
private String frequencyQualifier;
/**
* connects an association to a qualitative term denoting the level of confidence
*
*/
@JsonProperty("has_confidence_level")
@JsonPropertyDescription("connects an association to a qualitative term denoting the level of confidence")
private String hasConfidenceLevel;
/**
* connects an association to an instance of supporting evidence
*
*/
@JsonProperty("has_evidence")
@JsonPropertyDescription("connects an association to an instance of supporting evidence")
private String hasEvidence;
/**
* A unique identifier for an association
* (Required)
*
*/
@JsonProperty("id")
@JsonPropertyDescription("A unique identifier for an association")
private String id;
/**
* if set to true, then the association is negated i.e. is not true
*
*/
@JsonProperty("negated")
@JsonPropertyDescription("if set to true, then the association is negated i.e. is not true")
private String negated;
/**
* connects an association to the object of the association. For example, in a gene-to-phenotype association, the gene is subject and phenotype is object.
* (Required)
*
*/
@JsonProperty("object")
@JsonPropertyDescription("connects an association to the object of the association. For example, in a gene-to-phenotype association, the gene is subject and phenotype is object.")
private String object;
/**
* a qualifier used in a phenotypic association to state when the phenotype appears is in the subject
*
*/
@JsonProperty("onset_qualifier")
@JsonPropertyDescription("a qualifier used in a phenotypic association to state when the phenotype appears is in the subject")
private String onsetQualifier;
/**
* connects an association to the agent (person, organization or group) that provided it
*
*/
@JsonProperty("provided_by")
@JsonPropertyDescription("connects an association to the agent (person, organization or group) that provided it")
private String providedBy;
/**
* connects an association to publications supporting the association
*
*/
@JsonProperty("publications")
@JsonPropertyDescription("connects an association to publications supporting the association")
private List<String> publications = new ArrayList<String>();
/**
* connects an association to qualifiers that modify or qualify the meaning of that association
*
*/
@JsonProperty("qualifiers")
@JsonPropertyDescription("connects an association to qualifiers that modify or qualify the meaning of that association")
private List<String> qualifiers = new ArrayList<String>();
/**
* A measurable quantity for the object of the association
*
*/
@JsonProperty("quantifier_qualifier")
@JsonPropertyDescription("A measurable quantity for the object of the association")
private String quantifierQualifier;
/**
* the relationship type by which a subject is connected to an object in an association
* (Required)
*
*/
@JsonProperty("relation")
@JsonPropertyDescription("the relationship type by which a subject is connected to an object in an association")
private String relation;
/**
* a qualifier used in an association where the variant
*
*/
@JsonProperty("sequence_variant_qualifier")
@JsonPropertyDescription("a qualifier used in an association where the variant")
private String sequenceVariantQualifier;
/**
* a qualifier used in a phenotypic association to state how severe the phenotype is in the subject
*
*/
@JsonProperty("severity_qualifier")
@JsonPropertyDescription("a qualifier used in a phenotypic association to state how severe the phenotype is in the subject")
private String severityQualifier;
/**
* a qualifier used in a phenotypic association to state whether the association is specific to a particular sex.
*
*/
@JsonProperty("sex_qualifier")
@JsonPropertyDescription("a qualifier used in a phenotypic association to state whether the association is specific to a particular sex.")
private String sexQualifier;
/**
* stage at which expression takes place
*
*/
@JsonProperty("stage_qualifier")
@JsonPropertyDescription("stage at which expression takes place")
private String stageQualifier;
/**
* connects an association to the subject of the association. For example, in a gene-to-phenotype association, the gene is subject and phenotype is object.
* (Required)
*
*/
@JsonProperty("subject")
@JsonPropertyDescription("connects an association to the subject of the association. For example, in a gene-to-phenotype association, the gene is subject and phenotype is object.")
private String subject;
/**
* any slot that relates an association to another entity
*
*/
@JsonProperty("association_slot")
public String getAssociationSlot() {
return associationSlot;
}
/**
* any slot that relates an association to another entity
*
*/
@JsonProperty("association_slot")
public void setAssociationSlot(String associationSlot) {
this.associationSlot = associationSlot;
}
/**
* connects an association to the type of association (e.g. gene to phenotype)
*
*/
@JsonProperty("association_type")
public String getAssociationType() {
return associationType;
}
/**
* connects an association to the type of association (e.g. gene to phenotype)
*
*/
@JsonProperty("association_type")
public void setAssociationType(String associationType) {
this.associationType = associationType;
}
/**
* hyperedge connecting an association between two causally connected entities (for example, two chemical entities, or a chemical entity in that changes location) and the gene product, gene, or complex that enables or catalyzes the change.
*
*/
@JsonProperty("change_is_catalyzed_by")
public List<String> getChangeIsCatalyzedBy() {
return changeIsCatalyzedBy;
}
/**
* hyperedge connecting an association between two causally connected entities (for example, two chemical entities, or a chemical entity in that changes location) and the gene product, gene, or complex that enables or catalyzes the change.
*
*/
@JsonProperty("change_is_catalyzed_by")
public void setChangeIsCatalyzedBy(List<String> changeIsCatalyzedBy) {
this.changeIsCatalyzedBy = changeIsCatalyzedBy;
}
/**
* Used to characterize and specify the phenotypic abnormalities defined in the Phenotypic abnormality subontology, with respect to severity, laterality, age of onset, and other aspects
*
*/
@JsonProperty("clinical_modifier_qualifier")
public String getClinicalModifierQualifier() {
return clinicalModifierQualifier;
}
/**
* Used to characterize and specify the phenotypic abnormalities defined in the Phenotypic abnormality subontology, with respect to severity, laterality, age of onset, and other aspects
*
*/
@JsonProperty("clinical_modifier_qualifier")
public void setClinicalModifierQualifier(String clinicalModifierQualifier) {
this.clinicalModifierQualifier = clinicalModifierQualifier;
}
/**
* A high-level grouping for the relationship type. AKA minimal predicate. This is analogous to category for nodes.
* (Required)
*
*/
@JsonProperty("edge_label")
public String getEdgeLabel() {
return edgeLabel;
}
/**
* A high-level grouping for the relationship type. AKA minimal predicate. This is analogous to category for nodes.
* (Required)
*
*/
@JsonProperty("edge_label")
public void setEdgeLabel(String edgeLabel) {
this.edgeLabel = edgeLabel;
}
/**
* a qualifier used in a phenotypic association to state how frequent the phenotype is observed in the subject
*
*/
@JsonProperty("frequency_qualifier")
public String getFrequencyQualifier() {
return frequencyQualifier;
}
/**
* a qualifier used in a phenotypic association to state how frequent the phenotype is observed in the subject
*
*/
@JsonProperty("frequency_qualifier")
public void setFrequencyQualifier(String frequencyQualifier) {
this.frequencyQualifier = frequencyQualifier;
}
/**
* connects an association to a qualitative term denoting the level of confidence
*
*/
@JsonProperty("has_confidence_level")
public String getHasConfidenceLevel() {
return hasConfidenceLevel;
}
/**
* connects an association to a qualitative term denoting the level of confidence
*
*/
@JsonProperty("has_confidence_level")
public void setHasConfidenceLevel(String hasConfidenceLevel) {
this.hasConfidenceLevel = hasConfidenceLevel;
}
/**
* connects an association to an instance of supporting evidence
*
*/
@JsonProperty("has_evidence")
public String getHasEvidence() {
return hasEvidence;
}
/**
* connects an association to an instance of supporting evidence
*
*/
@JsonProperty("has_evidence")
public void setHasEvidence(String hasEvidence) {
this.hasEvidence = hasEvidence;
}
/**
* A unique identifier for an association
* (Required)
*
*/
@JsonProperty("id")
public String getId() {
return id;
}
/**
* A unique identifier for an association
* (Required)
*
*/
@JsonProperty("id")
public void setId(String id) {
this.id = id;
}
/**
* if set to true, then the association is negated i.e. is not true
*
*/
@JsonProperty("negated")
public String getNegated() {
return negated;
}
/**
* if set to true, then the association is negated i.e. is not true
*
*/
@JsonProperty("negated")
public void setNegated(String negated) {
this.negated = negated;
}
/**
* connects an association to the object of the association. For example, in a gene-to-phenotype association, the gene is subject and phenotype is object.
* (Required)
*
*/
@JsonProperty("object")
public String getObject() {
return object;
}
/**
* connects an association to the object of the association. For example, in a gene-to-phenotype association, the gene is subject and phenotype is object.
* (Required)
*
*/
@JsonProperty("object")
public void setObject(String object) {
this.object = object;
}
/**
* a qualifier used in a phenotypic association to state when the phenotype appears is in the subject
*
*/
@JsonProperty("onset_qualifier")
public String getOnsetQualifier() {
return onsetQualifier;
}
/**
* a qualifier used in a phenotypic association to state when the phenotype appears is in the subject
*
*/
@JsonProperty("onset_qualifier")
public void setOnsetQualifier(String onsetQualifier) {
this.onsetQualifier = onsetQualifier;
}
/**
* connects an association to the agent (person, organization or group) that provided it
*
*/
@JsonProperty("provided_by")
public String getProvidedBy() {
return providedBy;
}
/**
* connects an association to the agent (person, organization or group) that provided it
*
*/
@JsonProperty("provided_by")
public void setProvidedBy(String providedBy) {
this.providedBy = providedBy;
}
/**
* connects an association to publications supporting the association
*
*/
@JsonProperty("publications")
public List<String> getPublications() {
return publications;
}
/**
* connects an association to publications supporting the association
*
*/
@JsonProperty("publications")
public void setPublications(List<String> publications) {
this.publications = publications;
}
/**
* connects an association to qualifiers that modify or qualify the meaning of that association
*
*/
@JsonProperty("qualifiers")
public List<String> getQualifiers() {
return qualifiers;
}
/**
* connects an association to qualifiers that modify or qualify the meaning of that association
*
*/
@JsonProperty("qualifiers")
public void setQualifiers(List<String> qualifiers) {
this.qualifiers = qualifiers;
}
/**
* A measurable quantity for the object of the association
*
*/
@JsonProperty("quantifier_qualifier")
public String getQuantifierQualifier() {
return quantifierQualifier;
}
/**
* A measurable quantity for the object of the association
*
*/
@JsonProperty("quantifier_qualifier")
public void setQuantifierQualifier(String quantifierQualifier) {
this.quantifierQualifier = quantifierQualifier;
}
/**
* the relationship type by which a subject is connected to an object in an association
* (Required)
*
*/
@JsonProperty("relation")
public String getRelation() {
return relation;
}
/**
* the relationship type by which a subject is connected to an object in an association
* (Required)
*
*/
@JsonProperty("relation")
public void setRelation(String relation) {
this.relation = relation;
}
/**
* a qualifier used in an association where the variant
*
*/
@JsonProperty("sequence_variant_qualifier")
public String getSequenceVariantQualifier() {
return sequenceVariantQualifier;
}
/**
* a qualifier used in an association where the variant
*
*/
@JsonProperty("sequence_variant_qualifier")
public void setSequenceVariantQualifier(String sequenceVariantQualifier) {
this.sequenceVariantQualifier = sequenceVariantQualifier;
}
/**
* a qualifier used in a phenotypic association to state how severe the phenotype is in the subject
*
*/
@JsonProperty("severity_qualifier")
public String getSeverityQualifier() {
return severityQualifier;
}
/**
* a qualifier used in a phenotypic association to state how severe the phenotype is in the subject
*
*/
@JsonProperty("severity_qualifier")
public void setSeverityQualifier(String severityQualifier) {
this.severityQualifier = severityQualifier;
}
/**
* a qualifier used in a phenotypic association to state whether the association is specific to a particular sex.
*
*/
@JsonProperty("sex_qualifier")
public String getSexQualifier() {
return sexQualifier;
}
/**
* a qualifier used in a phenotypic association to state whether the association is specific to a particular sex.
*
*/
@JsonProperty("sex_qualifier")
public void setSexQualifier(String sexQualifier) {
this.sexQualifier = sexQualifier;
}
/**
* stage at which expression takes place
*
*/
@JsonProperty("stage_qualifier")
public String getStageQualifier() {
return stageQualifier;
}
/**
* stage at which expression takes place
*
*/
@JsonProperty("stage_qualifier")
public void setStageQualifier(String stageQualifier) {
this.stageQualifier = stageQualifier;
}
/**
* connects an association to the subject of the association. For example, in a gene-to-phenotype association, the gene is subject and phenotype is object.
* (Required)
*
*/
@JsonProperty("subject")
public String getSubject() {
return subject;
}
/**
* connects an association to the subject of the association. For example, in a gene-to-phenotype association, the gene is subject and phenotype is object.
* (Required)
*
*/
@JsonProperty("subject")
public void setSubject(String subject) {
this.subject = subject;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("associationSlot", associationSlot).append("associationType", associationType).append("changeIsCatalyzedBy", changeIsCatalyzedBy).append("clinicalModifierQualifier", clinicalModifierQualifier).append("edgeLabel", edgeLabel).append("frequencyQualifier", frequencyQualifier).append("hasConfidenceLevel", hasConfidenceLevel).append("hasEvidence", hasEvidence).append("id", id).append("negated", negated).append("object", object).append("onsetQualifier", onsetQualifier).append("providedBy", providedBy).append("publications", publications).append("qualifiers", qualifiers).append("quantifierQualifier", quantifierQualifier).append("relation", relation).append("sequenceVariantQualifier", sequenceVariantQualifier).append("severityQualifier", severityQualifier).append("sexQualifier", sexQualifier).append("stageQualifier", stageQualifier).append("subject", subject).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(providedBy).append(sexQualifier).append(negated).append(associationSlot).append(clinicalModifierQualifier).append(sequenceVariantQualifier).append(subject).append(associationType).append(frequencyQualifier).append(qualifiers).append(relation).append(onsetQualifier).append(severityQualifier).append(stageQualifier).append(hasConfidenceLevel).append(quantifierQualifier).append(changeIsCatalyzedBy).append(hasEvidence).append(edgeLabel).append(id).append(object).append(publications).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof Association) == false) {
return false;
}
Association rhs = ((Association) other);
return new EqualsBuilder().append(providedBy, rhs.providedBy).append(sexQualifier, rhs.sexQualifier).append(negated, rhs.negated).append(associationSlot, rhs.associationSlot).append(clinicalModifierQualifier, rhs.clinicalModifierQualifier).append(sequenceVariantQualifier, rhs.sequenceVariantQualifier).append(subject, rhs.subject).append(associationType, rhs.associationType).append(frequencyQualifier, rhs.frequencyQualifier).append(qualifiers, rhs.qualifiers).append(relation, rhs.relation).append(onsetQualifier, rhs.onsetQualifier).append(severityQualifier, rhs.severityQualifier).append(stageQualifier, rhs.stageQualifier).append(hasConfidenceLevel, rhs.hasConfidenceLevel).append(quantifierQualifier, rhs.quantifierQualifier).append(changeIsCatalyzedBy, rhs.changeIsCatalyzedBy).append(hasEvidence, rhs.hasEvidence).append(edgeLabel, rhs.edgeLabel).append(id, rhs.id).append(object, rhs.object).append(publications, rhs.publications).isEquals();
}
}