Commit f1c0cfd
committed
fix(shacl): 🐛 build property shape subgraph by reachability
Rebuild `ShapesList.get_shape_property_graph` to include only triples
reachable from the target property shape (constraints and RDF lists used
by sh:and/sh:or/sh:xone) plus the `sh:property` link triple, instead of
subtracting sibling properties from the node-shape graph. The previous
subtractive approach could leak shared blank nodes and risked breaking
sibling constructs in the merged shapes graph.1 parent f3a7e6d commit f1c0cfd
1 file changed
Lines changed: 11 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
194 | 200 | | |
195 | 201 | | |
196 | 202 | | |
197 | 203 | | |
198 | 204 | | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
| 205 | + | |
| 206 | + | |
205 | 207 | | |
206 | | - | |
| 208 | + | |
| 209 | + | |
207 | 210 | | |
208 | 211 | | |
209 | 212 | | |
| |||
0 commit comments