Hanhao OntologyDOCS
Main site 中文

Objects, links & publishing

Modeling produces executable constraints: write validation, graph traversal and agent bounds all derive from it.

Object types & properties

Create a type: name, display name, description, primary-key property; declare value types, required, unique and defaults per property. Published types govern all writes.

Any field referencing another business entity is modeled as a link type; literal values are held as properties. Same-entity links merge duplicate codes; proposals take effect after approval, keeping both provenance chains.

Studio: draft → review → publish

  1. Edit objects and links on canvas (click node for type, click edge for link);
  2. Save draft: the running ontology is untouched;
  3. Review: confirm impact against the change summary;
  4. Publish: non-breaking applies directly; breaking enters migration.
Studio · draft editing
Studio · draft editing

Schema migration & conflict detection

Editing published types runs dry-run conflict detection with three strategies: merge / override / cancel. Breaking changes (drop property, change PK, tighten cardinality) must migrate with audit; primary keys are migrated through object creation — retire and recreate with the correct key.

Anti-patterns

Last updated:2026-11-18