orchestrata_ultimate.domaingen
Reference › orchestrata_ultimate › domaingen › init
Public facade of the ontology-driven domain generator (SPEC-105). It re-exports the entry points of reader, ttl, constraints, generator, models and stardog. The scripts.domaingen command-line script imports it.
At a glance
| Source | src/orchestrata_ultimate/domaingen/__init__.py |
| Lines of code | 43 |
| Classes | 0 |
| Functions | 0 |
| Imports (internal) | orchestrata_ultimate.domaingen.constraints, orchestrata_ultimate.domaingen.generator, orchestrata_ultimate.domaingen.models, orchestrata_ultimate.domaingen.reader, orchestrata_ultimate.domaingen.stardog, orchestrata_ultimate.domaingen.ttl |
| Imported by | scripts.domaingen |
| Tests that import it | tests/domaingen/test_domaingen.py, tests/domaingen/test_reader.py |
Class diagram
No classes; see Functions.
Dependency diagram
API
No public API: the module defines no classes, functions or constants.
Source
"""Ontology-driven domain model generation (SPEC-105).
Read an OWL/Turtle ontology into a canonical IR, render it back to Turtle
(bidirectional), and generate a screaming-architecture / modular-monolith domain
model with deterministic Jinja2 codegen and Stardog temporal, insert-only
repositories (RDF-star, bitemporal, nodes and edges).
from orchestrata_ultimate.domaingen import parse_ontology, render_ontology, generate_code
model = parse_ontology("ontology.ttl")
generate_code(model, "build/domain")
"""
from orchestrata_ultimate.domaingen.constraints import generate_shacl
from orchestrata_ultimate.domaingen.generator import CodeGenError, generate_code
from orchestrata_ultimate.domaingen.models import (
DomainModel,
Entity,
Field,
Module,
Relationship,
)
from orchestrata_ultimate.domaingen.reader import OntologyParseError, parse_ontology
from orchestrata_ultimate.domaingen.stardog import (
StardogConnection,
StardogConnectionError,
)
from orchestrata_ultimate.domaingen.ttl import render_ontology
__all__ = [
"parse_ontology",
"render_ontology",
"generate_code",
"generate_shacl",
"OntologyParseError",
"CodeGenError",
"StardogConnection",
"StardogConnectionError",
"DomainModel",
"Module",
"Entity",
"Field",
"Relationship",
]