8 Semantic Model in Schemas: Record
Lookup facts for SEMANTIC MODEL IN SCHEMAS (8).
| Field | Value |
|---|---|
| Identifier | FSP-08 |
| Scale | Scale 2: Operations |
| Group | The language of the content |
| Confidence | Two asterisks: believed to state a true invariant |
| Evidence status | Incubating |
| Problem facet | language |
| Agency facet | human-gated |
| State facets | artifact, behavior |
| Risk facets | fidelity, drift |
| Intent | State the domain’s kinds of content, their attributes, and their relationships as a versioned set of machine-checkable schemas, so that every operation in the system shares one semantic model. |
Relationships
Relationships are semantic, not run-time order. A guard names the condition under which a requirement applies.
| Relationship | Pattern | Guard |
|---|---|---|
| Requires | INFORMATION TYPE BEFORE CONTENT TYPE (9) | |
| Enables | SCHEMA CONFORMANCE VALIDATION (27) | |
| Enables | CANONICAL NORMALIZATION (26) | |
| Enables | SEMANTIC CHUNKING (32) | |
| Enables | PLAN-BOUND GENERATION (22) | |
| Contained in | GOVERNED CONTENT SUBSTRATE (2) | |
| Often used with | CONTROLLED VOCABULARY (12) | |
| Often used with | MINED CONTENT GRAMMAR (10) |
Referenced by
Patterns whose records name this one, which this pattern helps complete.
| Pattern | Their relationship to this one |
|---|---|
| GOVERNED CONTENT SUBSTRATE (2) | Requires |
| CONTENT LANGUAGE STEWARDSHIP (7) | Requires |
| INFORMATION TYPE BEFORE CONTENT TYPE (9) | Contained in |
| MINED CONTENT GRAMMAR (10) | Enables |
| CONSTRAINED MARKUP PROFILE (11) | Refines |
| CONTROLLED VOCABULARY (12) | Contained in |
| CANONICAL NORMALIZATION (26) | Requires |
| SEMANTIC CHUNKING (32) | Requires |
Implementation notes
The notes name families of choices and the properties a choice must preserve. They do not prescribe a product.
- Schema languages that serve include XML DTD or RELAX NG, XML Schema, JSON Schema, SHACL or other graph shape languages, database constraints, and rule sets for constrained Markdown.
- Keep the schema release in version control with a changelog that explains each semantic change, not only each syntactic one.
- Generate typed data contracts for code (for example, model classes) from the schemas rather than writing them by hand.
Known implementations
- Structured Markdown (Final State Press): JSON Schemas in its model directory define an Article → Unit → Component → Attribute hierarchy that the parser validates against and that downstream transforms consume.
- raw-to-knowledge (Final State Press): typed Pydantic contracts for classification records, assertion grammar, and approved answers.
Design sources
A design source supplies an idea; it is not evidence that the idea works.
- DITA 1.3 topic and domain architecture