Ontology
AdvancedLocation: /studio/[project]/ontology
The Ontology tab is the core tool for viewing and editing your story as a knowledge graph of typed entities (character, event, place, conflict, foreshadowing, item, faction, theme, hormone, etc.) and their relations. It has five sub-tabs — graph, entities, relations, check, structure — where the check tab runs checkOntology to surface consistency issues (errors/warnings) like orphan nodes or missing references. An empty project auto-seeds a bundled sample ontology, and AI generate proposes 4-8 entities plus connecting relations from the narrative context in one pass.
- 1Open the Ontology tab to see the graph view and five sub-tabs (graph, entities, relations, check, structure).
- 2Add/edit items in the entities or relations tabs, or filter the graph by type.
- 3Use AI generate with an instruction to draft entities + relations, then review and apply (name-based dedupe).
- 4Run the check tab to find and fix consistency issues (errors/warnings).
- 5Use Reload sample to restore the richer bundled ontology (destructive, confirms first).
AI graph generation uses llmComplete (local CLI agents Codex/Claude Code preferred, BYOK OpenAI/Anthropic/Google fallback). Check, hormone-linking, and sample seeding run deterministically client-side with no LLM.
Combine the hormone auto-link action with the check tab to validate emotional design (hormone entities) and graph integrity together.