1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package ubic.basecode.ontology.model;
20
21 import java.util.Collection;
22
23
24
25
26 public interface OntologyTerm extends OntologyResource {
27
28 Collection<String> getAlternativeIds();
29
30 Collection<AnnotationProperty> getAnnotations();
31
32
33
34
35
36
37 default Collection<OntologyTerm> getChildren( boolean direct ) {
38 return getChildren( direct, true, false );
39 }
40
41 default Collection<OntologyTerm> getChildren( boolean direct, boolean includeAdditionalProperties ) {
42 return getChildren( direct, includeAdditionalProperties, false );
43 }
44
45
46
47
48
49
50
51 Collection<OntologyTerm> getChildren( boolean direct, boolean includeAdditionalProperties, boolean keepObsoletes );
52
53 String getComment();
54
55 default Collection<OntologyIndividual> getIndividuals() {
56 return getIndividuals( true );
57 }
58
59 Collection<OntologyIndividual> getIndividuals( boolean direct );
60
61 String getLocalName();
62
63 Object getModel();
64
65
66
67
68
69
70
71 default Collection<OntologyTerm> getParents( boolean direct ) {
72 return getParents( direct, true, false );
73 }
74
75 default Collection<OntologyTerm> getParents( boolean direct, boolean includeAdditionalProperties ) {
76 return getParents( direct, includeAdditionalProperties, false );
77 }
78
79 Collection<OntologyTerm> getParents( boolean direct, boolean includeAdditionalProperties, boolean keepObsoletes );
80
81 Collection<OntologyRestriction> getRestrictions();
82
83
84
85
86 @Deprecated
87 String getTerm();
88
89 boolean isRoot();
90
91
92
93
94
95
96 @Deprecated
97 boolean isTermObsolete();
98 }