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 javax.annotation.Nullable;
22 import java.util.Collection;
23
24
25
26
27 public interface OntologyTerm extends OntologyResource {
28
29
30
31
32 Collection<String> getAlternativeIds();
33
34
35
36
37 Collection<AnnotationProperty> getAnnotations();
38
39
40
41
42 Collection<AnnotationProperty> getAnnotations( String propertyUri );
43
44
45
46
47 @Nullable
48 AnnotationProperty getAnnotation( String propertyUri );
49
50
51
52
53
54
55 default Collection<OntologyTerm> getChildren( boolean direct ) {
56 return getChildren( direct, true, false );
57 }
58
59 default Collection<OntologyTerm> getChildren( boolean direct, boolean includeAdditionalProperties ) {
60 return getChildren( direct, includeAdditionalProperties, false );
61 }
62
63
64
65
66
67
68
69 Collection<OntologyTerm> getChildren( boolean direct, boolean includeAdditionalProperties, boolean keepObsoletes );
70
71 default Collection<OntologyIndividual> getIndividuals() {
72 return getIndividuals( true );
73 }
74
75 Collection<OntologyIndividual> getIndividuals( boolean direct );
76
77
78
79
80
81
82
83 default Collection<OntologyTerm> getParents( boolean direct ) {
84 return getParents( direct, true, false );
85 }
86
87 default Collection<OntologyTerm> getParents( boolean direct, boolean includeAdditionalProperties ) {
88 return getParents( direct, includeAdditionalProperties, false );
89 }
90
91 Collection<OntologyTerm> getParents( boolean direct, boolean includeAdditionalProperties, boolean keepObsoletes );
92
93 Collection<OntologyRestriction> getRestrictions();
94
95
96
97
98 @Deprecated
99 String getTerm();
100
101 boolean isRoot();
102
103
104
105
106
107
108 @Deprecated
109 boolean isTermObsolete();
110 }