Commit cce8420
committed
feat(schema): import OGIT 1:1 + ogar-from-schema producer with reverse-emit + SGO verbs
Mirror the full AdaWorldAPI/OGIT vocabulary into vocab/imports/ogit/
(1940 TTLs, NTO 72 domains + SGO 508 upper-ontology TTLs incl. 176
canonical verbs + root ogit.ttl + SDF samples) at a pinned SHA, and
land the ogar-from-schema producer family that lifts them.
Calibration (MARS as the third closed-formal domain):
* vocab/imports/ogit/NTO/MARS/_oracle/ vendors the MARS-Schema XSD
+ the upstream extract_classes.py (Python 2, runs unchanged on
Py3 via mechanical 2to3-3.11 -w -n conversion, also cached) +
the asciidoc/html oracle outputs.
* ttl::tests::application_class_values_appear_in_xsd_oracle proves
the OGIT TTL fixed-enum values agree with the XSD-extracted set
byte-for-enum (chess-grade calibration at the schema layer).
* ttl_emit::tests::all_mars_ttl_files_roundtrip + sgo::tests::all_sgo_verbs_roundtrip
prove SEMANTIC bijection (parse → emit → re-parse == original) on
every MARS TTL (29) and every SGO verb (176). 15/15 tests green.
Reverse-engineering / save-back:
* ttl_emit::{emit_entity,emit_attribute} and sgo::emit_verb close the
loop: any OGAR Class lifted from OGIT-flavoured TTL can be emitted
back. Contract is semantic bijection (whitespace, comment positions,
@Prefix ordering not preserved — they're not load-bearing for the
structural arm). The producer IS the translator — no two-way table
needed for bardioc's migration.
SGO verbs as AST predicate vocabulary:
* SGO/sgo/verbs/ carries 176 verbs (dependsOn, contains, runsOn,
generates, relates, causes, …) — exactly the set every NTO entity's
ogit:allowed block references. sgo::parse_verb lifts each into a
typed VerbDecl with round-trip enforced. Resolves string-compared
references into typed registry lookups for ActionDef / Association.
Docs (reverse-pyramid, pattern density first):
* docs/HIRO-IN-CLASSES.md — bardioc-efficiency story for colleagues
(the funny insight: schemas lift structure bijectively; source ASTs
lift behaviour best-effort; the two cross-validate at the
structural boundary — Foundry's "ontology change management" for free)
* docs/MARS-TRANSCODING.md — calibration spec (chess-grade bijection
oracle, four-entity A→R→S→M backbone, six IR-shape tests audit)
* docs/FOUNDRY-ODOO-MARS-LENS.md — three angles on one ontology
(MARS→Odoo: frozen-schema drift detection; Odoo→MARS: _inherit
mixin composition; OGAR over both: IR-as-contract not platform)
* docs/OGIT-DOMAIN-LIFT-CATALOGUE.md — coverage register for the 72
imported NTO domains with Imported/Lift-tested/Cross-walked/Production
status (avoids future re-fetch / re-derive cycles)
* docs/calibration/mars/README.md — oracle re-run recipe
* docs/DOMAIN-INSTANCES.md — MARS row + capability column expansions
Lessons logged:
* .claude/board/EPIPHANIES.md prepends three FINDINGs:
- schema-vs-source duality
- reverse-engineering bijection
- SGO as the AST predicate vocabulary
Provenance:
* vocab/imports/ogit/PROVENANCE.md (top-level — full OGIT, SHA-pinned)
* vocab/imports/ogit/NTO/MARS/PROVENANCE.md (per-MARS — adds XSD oracle
from arago/MARS-Schema with conversion provenance)
* Sample-200 random byte-equality vs origin: zero mismatches.
Tests: 15/15 in ogar-from-schema; full workspace 296/0 passed/failed.
Clippy-clean (--no-deps), fmt-clean for the new crate.1 parent 283bd6c commit cce8420
2,010 files changed
Lines changed: 59867 additions & 16 deletions
File tree
- .claude/board
- crates/ogar-from-schema
- src
- docs
- calibration/mars
- vocab/imports/ogit
- NTO
- Accounting
- attributes
- entities
- verbs
- Advertising/entities
- Audit/entities
- Auth
- Account
- attributes
- Application
- attributes
- attributes
- entities
- verbs
- Automation
- attributes
- entities
- Botany/entities
- ClassificationStandard
- attributes
- entities
- verbs
- Compliance
- attributes
- entities
- verbs
- Cost
- entities
- Credit
- Entities
- Verbs
- CustomerSupport
- attributes
- entities
- verbs
- DataProcessing
- attributes
- entities
- Datacenter
- Virtual/entities
- attributes
- entities
- Data
- attributes
- entities
- Documents
- attributes
- entities
- EmailCorrespondance/attributes
- Examples/Crow
- attributes
- entities
- Factory
- attributes
- entities
- verbs
- FinancialAccounting
- AccountsPayable/entities
- attributes
- entities
- FinancialMarket
- attributes
- entities
- verbs
- Forms/entities
- Forum
- attributes
- entities
- verbs
- GeoProfile
- Codes/attributes
- attributes
- entities
- HR
- Recruiting
- entities
- verbs
- Healthcare
- entities
- enumerations
- Health/Diagnostics
- attributes
- entities
- Knowledge
- attributes
- entities
- Legal
- attributes
- entities
- verbs
- Location
- attributes
- entities
- MARS
- Application/attributes
- Machine/attributes
- Network/attributes
- Resource/attributes
- Software/attributes
- _oracle
- entities
- ML
- attributes
- entities
- verbs
- MRO
- Aviation
- entities
- verbs
- MRP
- attributes
- entities
- verbs
- MaterialManagement/entities
- Medical
- namespaces
- sql_mirror
- Meteorology
- attributes
- entities
- Mobile
- attributes
- entities
- Network/entities
- OSLC-arch
- entities
- OSLC-asset
- entities
- verbs
- OSLC-automation
- attributes
- entities
- verbs
- OSLC-change
- attributes
- entities
- verbs
- OSLC-core
- attributes
- entities
- verbs
- OSLC-crtv
- attributes
- entities
- verbs
- OSLC-ems
- attributes
- entities
- verbs
- OSLC-perfmon
- attributes
- entities
- verbs
- OSLC-qm
- entities
- verbs
- OSLC-reqman
- entities
- verbs
- PLM/entities
- PTF
- attributes
- entities
- Politics
- attributes
- entities
- verbs
- Price
- attributes
- entities
- Procurement
- attributes
- entities
- Project/entities
- Publications
- attributes
- entities
- RDDL
- attributes
- entities
- verbs
- RL
- attributes
- entities
- RPA
- attributes
- entities
- verbs
- Religion/entities
- SaaS
- attributes
- entities
- SalesDistribution
- attributes
- entities
- Schedule
- attributes
- entities
- Security/entities
- ServiceManagement
- attributes
- entities
- Software/entities
- Statistics
- entities
- Survey/entities
- Transport
- attributes
- entities
- verbs
- UserMeta
- entities
- verbs
- Version
- attributes
- WorkOrder
- entities
- verbs
- SDF
- Automation
- MARS
- SGO
- core
- attributes
- entities
- format
- ogit
- attributes
- entities
- verbs
- sgo
- attributes
- entities
- verbs
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 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 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
18 | 114 | | |
19 | 115 | | |
20 | 116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 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 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
0 commit comments