Commit 629d50c
committed
feat(openlabel): add structural LinkML schema for ASAM v1 JSON format
- Add openlabel-v2-schema.yaml: 12 classes, 4 enums, 227 TagTypeEnum values
- Generate JSON Schema artifact (openlabel-v2.schema.json) via gen-json-schema
- Add sync_tag_type_enum.py script to keep vocabulary in sync with ontology
- Add convert_openlabel_v1_to_v2.py script for v1-to-v2 format conversion
- Add 19 pytest tests covering schema generation, validation, sync, and converter
- Wire pre-commit hook for automatic TagTypeEnum synchronization
- Extend Makefile generate target to produce JSON Schema when schema model exists
- Document unified modeling strategy in SCHEMA_MODELING.md
Signed-off-by: Carlo van Driesten <carlo.van-driesten@bmw.de>1 parent d452ec2 commit 629d50c
9 files changed
Lines changed: 2988 additions & 6 deletions
File tree
- artifacts/openlabel-v2
- linkml/openlabel-v2
- scripts
- submodules
- tests/unit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
19 | 27 | | |
20 | 28 | | |
21 | 29 | | |
| |||
51 | 59 | | |
52 | 60 | | |
53 | 61 | | |
54 | | - | |
| 62 | + | |
55 | 63 | | |
56 | 64 | | |
57 | 65 | | |
58 | 66 | | |
59 | 67 | | |
60 | 68 | | |
61 | 69 | | |
62 | | - | |
| 70 | + | |
63 | 71 | | |
64 | 72 | | |
65 | 73 | | |
66 | 74 | | |
67 | 75 | | |
68 | 76 | | |
69 | 77 | | |
70 | | - | |
| 78 | + | |
71 | 79 | | |
72 | 80 | | |
73 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| |||
211 | 212 | | |
212 | 213 | | |
213 | 214 | | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
214 | 219 | | |
215 | 220 | | |
216 | 221 | | |
| |||
408 | 413 | | |
409 | 414 | | |
410 | 415 | | |
411 | | - | |
| 416 | + | |
412 | 417 | | |
413 | 418 | | |
414 | 419 | | |
| |||
434 | 439 | | |
435 | 440 | | |
436 | 441 | | |
437 | | - | |
| 442 | + | |
438 | 443 | | |
439 | 444 | | |
440 | 445 | | |
| |||
0 commit comments