-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathKBaseOntology.spec
167 lines (155 loc) · 5.53 KB
/
KBaseOntology.spec
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
module KBaseOntology {
typedef tuple<string term, int distance> AncestralTerm;
typedef mapping<string, list<AncestralTerm>> RelatinoshipClosure;
/*
@optional is_anonymous name namespace alt_id def comment subset synonym xref builtin property_value is_a intersection_of union_of equivalent_to disjoint_from relationship created_by creation_date is_obsolete replaced_by consider relationship_closure
*/
typedef structure {
string id;
string is_anonymous;
string name;
string namespace;
list<string> alt_id;
list<string> def;
list<string> comment;
list<string> subset;
list<string> synonym;
list<string> xref;
list<string> builtin;
list<string> property_value;
list<string> is_a;
list<string> intersection_of;
list<string> union_of;
list<string> equivalent_to;
list<string> disjoint_from;
list<string> relationship;
string created_by;
string creation_date;
string is_obsolete;
list<string> replaced_by;
list<string> consider;
RelatinoshipClosure relationship_closure;
} OntologyTerm;
/*
@optional is_anonymous name namespace alt_id def comment subset synonym xref property_value domain range builtin holds_over_chain is_anti_symmetric is_cyclic is_reflexive is_symmetric is_transitive is_functional is_inverse_functional is_a intersection_of union_of equivalent_to disjoint_from inverse_of transitive_over equivalent_to_chain disjoint_over relationship is_obsolete created_by creation_date replaced_by consider expand_assertion_to expand_expression_to is_metadata_tag is_class_level
*/
typedef structure {
string id;
string is_anonymous;
string name;
string namespace;
list<string> alt_id;
list<string> def;
list<string> comment;
list<string> subset;
list<string> synonym;
list<string> xref;
list<string> property_value;
list<string> domain;
list<string> range;
list<string> builtin;
list<string> holds_over_chain;
string is_anti_symmetric;
string is_cyclic;
string is_reflexive;
string is_symmetric;
string is_transitive;
string is_functional;
string is_inverse_functional;
list<string> is_a;
list<string> intersection_of;
list<string> union_of;
list<string> equivalent_to;
list<string> disjoint_from;
list<string> inverse_of;
list<string> transitive_over;
list<string> equivalent_to_chain;
list<string> disjoint_over;
list<string> relationship;
string is_obsolete;
string created_by;
string creation_date;
list<string> replaced_by;
list<string> consider;
list<string> expand_assertion_to;
list<string> expand_expression_to;
string is_metadata_tag;
string is_class_level;
} OntologyTypedef;
/*
@optional is_anonymous name namespace alt_id def comment subset synonym xref instance_of property_value relationship created_by creation_date is_obsolete replaced_by consider
*/
typedef structure {
string id;
string is_anonymous;
string name;
string namespace;
list<string> alt_id;
list<string> def;
list<string> comment;
list<string> subset;
list<string> synonym;
list<string> xref;
list<string> instance_of;
list<string> property_value;
list<string> relationship;
string created_by;
string creation_date;
string is_obsolete;
list<string> replaced_by;
list<string> consider;
} OntologyInstance;
/*
@optional data_version date saved_by auto_generated_by import subsetdef synonymtypedef default_namespace namespace_id_rule idspace treat_xrefs_as_equivalent treat_xrefs_as_genus_differentia treat_xrefs_as_relationship treat_xrefs_as_is_a remark ontology typedef_hash instance_hash
*/
typedef structure {
string format_version;
string data_version;
string date;
string saved_by;
string auto_generated_by;
list<string> import;
list<string> subsetdef;
list<string> synonymtypedef;
string default_namespace;
list<string> namespace_id_rule;
list<string> idspace;
list<string> treat_xrefs_as_equivalent;
list<string> treat_xrefs_as_genus_differentia;
list<string> treat_xrefs_as_relationship;
list<string> treat_xrefs_as_is_a;
list<string> remark;
string ontology;
mapping<string, OntologyTerm> term_hash;
mapping<string, OntologyTypedef> typedef_hash;
mapping<string, OntologyInstance> instance_hash;
} OntologyDictionary;
/*
@optional equiv_name
*/
typedef structure {
string equiv_term;
string equiv_name;
} EquivalentTerm;
/*
@optional name
*/
typedef structure {
string name;
list<EquivalentTerm> equiv_terms;
} TranslationRecord;
/*
The workspace reference for an ontology dictionary object
@id ws KBaseOntology.OntologyDictionary
*/
typedef string OntologyDictionary_ref;
/*
@optional comment
*/
typedef structure {
string comment;
OntologyDictionary_ref ontology1;
OntologyDictionary_ref ontology2;
mapping<string, TranslationRecord> translation;
} OntologyTranslation;
};