Commit e16ec94
authored
Replace iri_to_domain_hint() with namespace binding lookup from
RDFLib's graph.namespaces() in context_generator.py. The @Prefix
declarations in the OWL Turtle source are the authoritative
prefix-to-namespace mappings - deriving prefix names by URL path
segment extraction was unreliable.
- Add _build_ns_prefix_lookup() and _lookup_prefix() helpers
- Use declared namespace bindings for domain and import prefixes
- Skip imports without @Prefix declaration (with warning, no guessing)
- Fix development to gx in envited-x and tzip21 contexts
- Update tests: add namespace lookup tests, add envited-x gx assertion
Signed-off-by: Carlo van Driesten <carlo.van-driesten@bmw.de>
1 parent 1b9226e commit e16ec94
5 files changed
Lines changed: 255 additions & 141 deletions
File tree
- artifacts
- envited-x
- openlabel
- tzip21
- src/tools/utils
- tests/unit/utils
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
0 commit comments