Commit 0f443e2
feat(terraphim_types): implement dynamic ontology feature gates
- Add feature gates: ontology (default), medical (implies ontology), hgnc (implies medical)
- Make EntityType and RelationshipType enums feature-gated with #[cfg(feature = "medical")]
- Change ExtractedEntity and ExtractedRelationship to use String-based entity_type/relationship_type
- Make hgnc module feature-gated with #[cfg(feature = "hgnc")]
- Update example to demonstrate both string-based and feature-gated usage
- Update tests to use string-based types
This allows cross-domain use of Dynamic Ontology while keeping
oncology-specific features optional via feature flags.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 59da243 commit 0f443e2
11 files changed
Lines changed: 662 additions & 188 deletions
File tree
- .beads
- .cachebro
- crates
- terraphim_multi_agent
- src
- agents
- tests
- terraphim_types
- examples
- src
- docs/research
Large diffs are not rendered by default.
Binary file not shown.
Lines changed: 9 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
| 13 | + | |
16 | 14 | | |
17 | 15 | | |
18 | 16 | | |
| |||
108 | 106 | | |
109 | 107 | | |
110 | 108 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
118 | 112 | | |
119 | 113 | | |
120 | 114 | | |
| |||
136 | 130 | | |
137 | 131 | | |
138 | 132 | | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
| 133 | + | |
143 | 134 | | |
144 | 135 | | |
145 | 136 | | |
| |||
206 | 197 | | |
207 | 198 | | |
208 | 199 | | |
209 | | - | |
210 | | - | |
| 200 | + | |
211 | 201 | | |
212 | 202 | | |
213 | 203 | | |
| |||
359 | 349 | | |
360 | 350 | | |
361 | 351 | | |
362 | | - | |
363 | | - | |
| 352 | + | |
364 | 353 | | |
365 | 354 | | |
366 | 355 | | |
| |||
397 | 386 | | |
398 | 387 | | |
399 | 388 | | |
400 | | - | |
| 389 | + | |
401 | 390 | | |
402 | 391 | | |
403 | 392 | | |
| |||
409 | 398 | | |
410 | 399 | | |
411 | 400 | | |
412 | | - | |
| 401 | + | |
413 | 402 | | |
414 | 403 | | |
415 | 404 | | |
| |||
This file was deleted.
Lines changed: 45 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | 10 | | |
13 | 11 | | |
14 | 12 | | |
| |||
50 | 48 | | |
51 | 49 | | |
52 | 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 | + | |
53 | 84 | | |
54 | 85 | | |
55 | 86 | | |
56 | 87 | | |
57 | 88 | | |
58 | | - | |
| 89 | + | |
59 | 90 | | |
60 | 91 | | |
61 | 92 | | |
| |||
67 | 98 | | |
68 | 99 | | |
69 | 100 | | |
70 | | - | |
| 101 | + | |
71 | 102 | | |
72 | 103 | | |
73 | 104 | | |
74 | 105 | | |
75 | 106 | | |
76 | | - | |
| 107 | + | |
77 | 108 | | |
78 | 109 | | |
79 | 110 | | |
| |||
106 | 137 | | |
107 | 138 | | |
108 | 139 | | |
109 | | - | |
| 140 | + | |
110 | 141 | | |
111 | 142 | | |
112 | 143 | | |
| |||
118 | 149 | | |
119 | 150 | | |
120 | 151 | | |
121 | | - | |
| 152 | + | |
122 | 153 | | |
123 | 154 | | |
124 | 155 | | |
| |||
150 | 181 | | |
151 | 182 | | |
152 | 183 | | |
153 | | - | |
| 184 | + | |
154 | 185 | | |
155 | 186 | | |
156 | 187 | | |
| |||
162 | 193 | | |
163 | 194 | | |
164 | 195 | | |
165 | | - | |
| 196 | + | |
166 | 197 | | |
167 | 198 | | |
168 | 199 | | |
| |||
191 | 222 | | |
192 | 223 | | |
193 | 224 | | |
194 | | - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
195 | 229 | | |
196 | 230 | | |
197 | 231 | | |
| |||
200 | 234 | | |
201 | 235 | | |
202 | 236 | | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | 237 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
37 | 41 | | |
0 commit comments