Namespaces
The six required namespace prefixes every .dai file declares: bpmn, bpmndi, dc, di, dai, xsi.
Every .dai file declares six namespaces on the root bpmn:definitions element:
| Prefix | URI | Purpose |
|---|---|---|
bpmn: | http://www.omg.org/spec/BPMN/20100524/MODEL | BPMN 2.0 model — process, task, subProcess, events, gateways, sequence flows |
bpmndi: | http://www.omg.org/spec/BPMN/20100524/DI | BPMN diagram interchange — shapes, edges, labels |
dc: | http://www.omg.org/spec/DD/20100524/DC | Diagram common — the dc:Bounds layout rectangles |
di: | http://www.omg.org/spec/DD/20100524/DI | Diagram interchange — label styling |
dai: | https://dai.studio/schema/dai/1.0 | DAI Studio extensions — semantic typing and metadata |
xsi: | http://www.w3.org/2001/XMLSchema-instance | XML schema instance |
<bpmn:definitions
xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
xmlns:dc="http://www.omg.org/spec/DD/20100524/DC"
xmlns:di="http://www.omg.org/spec/DD/20100524/DI"
xmlns:dai="https://dai.studio/schema/dai/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
id="Definitions_1"
targetNamespace="https://dai.studio/workflow">
The dai: namespace
The dai: namespace carries everything DAI Studio adds on top of standard BPMN. It appears in two places:
Extension attributes — applied directly on BPMN elements using the dai: prefix. Every typed element carries dai:type; every DAI attribute is prefixed, and unprefixed attributes are not part of the format:
<bpmn:task id="Task_1" name="Cite sources" dai:type="dai.types.ai.rule" dai:stepType="rule"
dai:scope="global" dai:rulePriority="critical" dai:enforcement="hard"
dai:notes="Every factual claim must be supported by a cited source URL." />
Extension elements — child elements inside bpmn:extensionElements:
<bpmn:extensionElements>
<dai:workflowMeta description="…" defaultModel="gpt-4o" version="1.0" />
</bpmn:extensionElements>
The dai: extension elements are:
dai:workflowMeta, with itsdai:taskTypeEntrychildren — diagram-level framingdai:fields/dai:field key="…"— type values stored as child elements rather than attributesdai:properties/dai:property— typed field and parameter lists
Schema
The dai: vocabulary is declared in a machine-readable XSD served at the namespace URI — https://dai.studio/schema/dai/1.0 — so XML validators and IDEs can locate it automatically. The XSD collects the extension attributes into named attribute groups per BPMN element type and declares every dai: extension element. The per-type vocabulary itself — which keys each type has and where each is stored — is published by the type catalog at https://dai.studio/api/catalog; the XSD only constrains the shared structure (for example, the dai.types.<category>.<leaf> pattern of dai:type).