SQL DDL Binding | PostgreSQL 映射绑定¶
The SQL binding converts the semantic graph into a relational database schema (DDL), allowing you to physically instantiate the ontology in standard SQL environments like PostgreSQL.
How it works | 转换机制¶
- PascalCase to snake_case: Class names are flattened (e.g.
SystemApplicationbecomes thesystem_applicationtable). - Abstract Classes: Abstract classes (like
Entity,Operational) do not generate tables. They act as abstract logic anchors. - Concrete Classes: Generates a standard table with a
UUIDprimary key and default metadata tracking fields. - Relations: N:M relations generate junction tables (e.g.,
process_resource_consumes). - Axioms: Stored in a global
axiommetadata table or converted into table-level constraints (like explicit domains/ranges).