Commit c318515
committed
build: move to ontoenv 0.6.0
Pin 0.6.0-a9 -> ^0.6.0, the first stable 0.6 release. A caret range rather
than the exact pin the alphas needed: 0.6.0 is a published release with a
migration guide, so patch fixes are wanted, not feared.
0.6.0 closes the two upstream defects this branch had been working around,
and both workarounds go with it.
Deleting .ontoenv/catalog.pending by hand is gone. That existed because a
merely unresolvable owl:imports left the interrupted-mutation marker behind,
which made a single Library.load(ontology_graph=Brick) poison a persistent
cache permanently -- routine here, not exceptional, since Brick declares
imports that 404 even online. In 0.6.0 a tolerated missing import commits
cleanly and leaves no marker, so reaching that handler now means an actually
interrupted write. Verified: load Brick into a persistent cache, close, and
the marker is absent; opens #2 and #3 both succeed with the ontology intact.
_connect_recovering therefore stops removing a file ontoenv owns -- which
0.6's docs now explicitly warn against -- and calls OntoEnv.recover(path,
graph_store=...) instead, the supported rebuild. It is taken automatically
rather than surfaced, because the documented answer is unreachable for our
callers: recovering a custom store requires passing that store, and ours does
not exist until a BuildingMOTIF has been constructed, which is the thing that
just failed. Recovery rescans every stored graph, so it warns; ontoenv only
clears the marker once the replacement index is published, so a failed
recovery still raises.
Shape-collection dependency collection stops swallowing every exception.
0.6.0 raises UnresolvedImportError (a LookupError) for every unresolved
owl:imports target -- confirmed 6 of 6 on the Brick closure, where earlier
builds left some as bare ValueError -- so the expected case can be caught
precisely and a storage error or malformed IRI now propagates instead of
being logged as a missing dependency and skipped. The exception is
re-exported from ontology_environment so ontoenv stays behind that seam.
No API of ours changed. get_closure/get_union still return a ViewGraph that
does not subclass rdflib.Graph, so the copy in ensure_and_get_closure stays;
closure_names' benchmark is re-measured on 0.6.0 (list_closure free,
copy_closure ~4.2s, get_closure ~2.4s over Brick's 15-graph, 155k-triple
closure) and its conclusion is unchanged. No new deprecation warnings: the
create_or_use_cached and init_from_store transitions were done on a8.1 parent d0084de commit c318515
4 files changed
Lines changed: 71 additions & 54 deletions
File tree
- buildingmotif
- dataclasses
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
| |||
239 | 242 | | |
240 | 243 | | |
241 | 244 | | |
242 | | - | |
243 | | - | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
244 | 253 | | |
245 | 254 | | |
246 | 255 | | |
| |||
| 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 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
13 | 23 | | |
14 | 24 | | |
15 | 25 | | |
| |||
43 | 53 | | |
44 | 54 | | |
45 | 55 | | |
46 | | - | |
| 56 | + | |
47 | 57 | | |
48 | 58 | | |
49 | 59 | | |
| |||
64 | 74 | | |
65 | 75 | | |
66 | 76 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
| 77 | + | |
71 | 78 | | |
72 | 79 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
88 | 102 | | |
89 | 103 | | |
90 | 104 | | |
91 | 105 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | 106 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
101 | 110 | | |
102 | 111 | | |
103 | | - | |
104 | | - | |
| 112 | + | |
105 | 113 | | |
106 | 114 | | |
107 | 115 | | |
| |||
144 | 152 | | |
145 | 153 | | |
146 | 154 | | |
147 | | - | |
| 155 | + | |
148 | 156 | | |
149 | 157 | | |
150 | | - | |
151 | | - | |
| 158 | + | |
| 159 | + | |
152 | 160 | | |
153 | 161 | | |
154 | 162 | | |
155 | 163 | | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
161 | 169 | | |
162 | 170 | | |
163 | 171 | | |
| |||
206 | 214 | | |
207 | 215 | | |
208 | 216 | | |
209 | | - | |
| 217 | + | |
210 | 218 | | |
211 | 219 | | |
212 | 220 | | |
| |||
225 | 233 | | |
226 | 234 | | |
227 | 235 | | |
228 | | - | |
| 236 | + | |
229 | 237 | | |
230 | 238 | | |
231 | 239 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
0 commit comments