Module 3: Components, Clusters, and Publishing

Need help? Join our Discord Glossary | Exam Info Duration: ~75 minutes self-paced (includes hands-on lab time) Prerequisites: Modules 1-2

Learning Objectives

  • Understand the SDC4 type hierarchy and when to use each data type.
  • Create and edit components using the Component Wizard.
  • Organize components into meaningful clusters.
  • Add semantic links connecting components to ontology concepts.
  • Publish models and understand versioning.
  • Generate and deploy applications from published models.
  • Understand the relationship between components and the minimum knowledge modeling principle.
  • Use SDCBench to capture a draft model from a client domain expert.

3.1 The SDC4 Type HierarchyCore

Every data element in SDCStudio is a component - a single field with a type, a label, validation rules, and semantic links. All SDC4 types inherit from a common base (XdAnyType) which provides shared metadata: label, definition, temporal validity fields, and access control tags.

XdAnyType (base - label, definition, temporal metadata, access control)
├── XdStringType          - general text
├── XdTokenType           - normalized whitespace text
├── XdBooleanType         - true/false
├── XdOrderedType (abstract - ordering semantics)
│   ├── XdOrdinalType     - ordered categories
│   └── XdQuantifiedType (abstract - units, magnitude status)
│       ├── XdCountType   - non-negative integers + units
│       ├── XdQuantityType- decimals + required units
│       ├── XdFloatType   - single-precision float
│       └── XdDoubleType  - double-precision float
├── XdTemporalType        - dates, times, partial dates
├── XdLinkType            - references to other models/resources
└── XdFileType            - binary data / file references

The key distinction: quantified types (XdCount, XdQuantity, XdFloat, XdDouble) require units. Non-quantified types (XdString, XdBoolean, XdTemporal) do not.

When to use each type

XdString - text data: names, addresses, emails, codes, descriptions. Constraints: min/max length, regex pattern, enumeration.

XdToken - machine-readable identifiers where whitespace should be collapsed and trimmed (ISO country codes, product SKUs, API tokens).

XdBoolean - binary states: yes/no, on/off, consent given/not given.

XdCount - non-negative integers representing countable quantities. Units are required even when obvious: "items," "people," "shares."

XdQuantity - decimal measurements with units. Blood pressure (mmHg), weight (kg), temperature (Celsius). This is where the blood pressure example from Module 1 becomes concrete - the unit and the value are structurally bound together.

XdTemporal - dates, times, and partial dates. Supports ISO 8601 patterns including year-only, year-month, and full datetime with timezone.

XdOrdinal - ordered categories: severity levels (low/medium/high), satisfaction scores (1-5), education levels.

XdLink - references to other models, resources, or external URIs. Used for relationships between entities.

XdFile - binary data or file references: images, documents, attachments.

Minimum knowledge modeling and type selection

The type you choose is itself a minimum knowledge modeling decision. If a field is "just text," use XdString - do not add quantification, ordering, or temporal semantics it does not need. If a field is a measurement, use XdQuantity - do not model it as XdString with "120 mmHg" as the value, because the unit constraint would be in the text, not in the structure.

The SDC4 type hierarchy is designed so that each type captures exactly what is essential about the data element and nothing more. The types are the minimum knowledge building blocks.


3.2 Creating Components with the WizardCore

The Component Wizard walks you through creating a new component step by step.

  1. Navigate to your project's Components view
  2. Click Create Component
  3. The wizard guides you through:
    • Type selection: Choose from the type hierarchy
    • Label and description: Human-readable name and purpose
    • Validation rules: Type-specific constraints (regex for XdString, units for XdQuantity, etc.)
    • Semantic links: Ontology concept bindings (see section 3.4 below)
  4. Review the summary and save

Editing existing components

Until it is published, a component can be edited. Click on an unpublished component to open the stepped edit form:

  • Step 1: Basic properties (label, description, type)
  • Step 2: Validation rules and constraints
  • Step 3: Semantic links (RDF predicate-object pairs)
  • Step 4: Review and save

Before publishing, you can rename a component, change its description, even change its validation rules, and its CUID2 identity stays the same. Once a component is published, it never changes: every record made against it, and every model that uses it, can rely on it meaning tomorrow exactly what it meant today. A change after publishing is a new component (see 3.5). This is the structural identity / descriptive label decoupling from Module 1 in practice: the CUID2 is the identity, and the label is only what people read.


3.3 Organizing with ClustersCore

A cluster is a logical grouping of related components within a data model. Clusters serve two purposes:

  1. Organization: Group components that belong together conceptually (e.g., "Patient Demographics," "Contact Information," "Clinical Measurements")
  2. Composition: The structure of clusters IS the composition in the minimum knowledge modeling sense - you compose minimum components into meaningful groups at use time, not by inflating individual components

Creating and managing clusters

  1. In your Data Model view, click Add Cluster
  2. Name the cluster (e.g., "Patient Demographics")
  3. Add a description of what the cluster represents
  4. Drag or assign components into the cluster

Cluster design principles

  • One concept per cluster: A cluster should represent one coherent domain concept, not a grab-bag of related fields
  • Composable across models: The same component can appear in multiple clusters across different models. The component is the reusable atom; the cluster is the molecule
  • Flat where possible: Avoid deeply nested clusters unless the domain genuinely requires hierarchy. One level of nesting covers 90% of use cases.
  • Named for the domain expert: Cluster names should be meaningful to the person who understands the data, not to the database administrator. "Blood Pressure Measurement" not "BP_CLUST_01"

Mini-exercise (3 min)

Atlas Legal's data includes client names, emails, phone numbers, case numbers, matter types, statuses, and billing information. How would you organize these into clusters? Name the clusters and list which components belong to each.

Answer: At minimum: "Client Identity" (name, email, phone), "Case Information" (case_number, matter_type, status), "Billing" (balance, payment_terms). You might also create "Contact Details" (email, phone) as a separate reusable cluster. Each cluster groups components that a domain expert would think of together.


3.4 Semantic Linking - Adding Meaning to Your DataIntermediate

Semantic links connect your components to published ontology concepts. This is what makes the data self-describing across system boundaries.

A semantic link is an RDF predicate-object pair attached to a component:

  • Predicate: The relationship type (e.g., rdf:type, rdfs:subClassOf, skos:exactMatch)
  • Object: The ontology concept being referenced (e.g., snomed:271649006 for systolic blood pressure)
  1. Open a component for editing
  2. Navigate to the Semantic Links step
  3. Click Add Link
  4. Select a predicate from the dropdown (common predicates are pre-loaded)
  5. Search for or paste the object URI (SDCStudio searches your uploaded ontologies and built-in standards)
  6. Save

Without semantic links, a component called "blood_pressure" is just a label. With a semantic link to snomed:271649006, the component's meaning is machine-resolvable to the globally recognized SNOMED CT concept for systolic blood pressure. Any system that speaks SNOMED CT can verify what the component means without asking the author.

This is the W3C standards answer to Robert Vane's boundary problem: the meaning is not "inferred from relationships" - it is structurally bound to a globally resolvable ontology concept. The boundary becomes verification, not translation.

Apply the minimum knowledge modeling principle: link to what is essential to identify the concept and distinguish it from its neighbors. A blood pressure measurement needs a SNOMED CT link. It does not need a link to every possible medical ontology that has a concept for blood pressure. One authoritative link is better than five redundant ones.


3.5 Publishing and VersioningCore

Publishing a model

Publishing locks the current version of a model and makes it available for output generation, component reuse, and deployment.

  1. In your Data Model view, click Publish
  2. Review the model summary (components, clusters, semantic links)
  3. Confirm publication
  4. Status changes to PUBLISHED

Versioning

Every published component and model is immutable: it cannot be changed after publication. There is no "new version" of a published model in place. To revise one:

  1. Copy the published model or component (see Copy and adapt in 3.7). The copy is new and unpublished, with its own CUID2.
  2. Edit the copy, and rename it: its label starts with COPY -- , and SDCStudio refuses to publish it until that prefix is gone.
  3. Publish the copy.
  4. Retire the old one, with a reason that names its successor (see Retiring a component below).

The old model keeps its CUID2 and stays published and resolvable. This is why schema evolution works without data migration: old records validate against the model they were made against, and new records validate against the new one. Both coexist.

On a project team, publishing belongs to the owner and admins. A member who built a component asks an owner or admin to publish it, because publishing is the permanent act.

Retiring a component

Retiring is how a published component or data model is taken out of new work without breaking anything already made with it.

  • Only published components can be retired. An unpublished one is edited or deleted instead.
  • Who retires: the project owner, team admins, and Axius SDC staff.
  • A reason is required (at most 300 characters). It is shown wherever the component is resolved, so write it for the next reader: "Superseded by NHANES Participant 4.2.3" tells them where to go.
  • What stays: a retired component is still published, still valid, and still resolvable by its ct_id. Records made against it still validate.
  • What changes: it drops out of lists, search, suggestions, and new assemblies, and it cannot be copied.
  • Undoing it: only staff can unretire.

A real example: the sdc-gdr2fhir README lists "NHANES Participant 4.2.0 (retired)" next to its successor, NHANES Participant 4.2.3. Both still resolve, and records made against 4.2.0 still validate.

What publishing generates: the context graph

When you publish a model, SDCStudio generates 8 output formats (XSD, XML, JSON, JSON-LD, HTML, RDF/Turtle, SHACL, GQL). The RDF, OWL, and SHACL outputs ARE the client's context graph. Every component you minted, every semantic link you defined, every vocabulary binding - they all become nodes and relationships in a live knowledge graph.

This is not a separate step. You did not "build a knowledge graph" as a project. You built a data model, and the graph was generated as a structural property of the modeling process. Every governance component (workflow models, attestation, party/role, provenance) is also present in the graph. Decision traces are queryable because they are structurally defined, not logged after the fact.

When clients or prospects ask about "context graphs" or "knowledge graphs" or "decision traces," this is what you deliver. The vocabulary is new. What SDC produces is not.

These 8 formats are the model's own artifacts. They are not how records reach another standard. Boundary standards (UBL, EDIFACT, OMOP, FHIR, HL7 v2) are reached through the open-source mappers, which write a Governed Data Record into the other standard's format and report what happened to every value; catalogs are reached through the projections. Both are covered in Module 7.

The governance components you publish (workflow state machines, attestation models, party/role definitions) are also consumable by runtime enforcement engines. When a client needs execution-time enforcement - where the system verifies that a state change is admissible before allowing it to happen - the models you built in SDCStudio can be handed off directly. Your modeling work becomes the contract that the execution engine enforces. See Module 7 for details on the execution handoff pattern.


3.6 Generating ApplicationsCore

Once your model is published and its package generated, SDCStudio offers two kinds of output for it: a complete deployable application, or a kit for an application the client builds itself. Both are Apache 2.0, and the first download of a model, whichever it is, is the only one charged (1,500 credits).

What the generated application includes

A Django web application, packaged as a Docker Compose deployment, in one of two profiles: Lightweight (PostgreSQL, Apache Jena Fuseki, Redis and Celery, with Django's own sign-in) or Enterprise (adds GraphDB, SirixDB and Keycloak).

  • A data entry wizard: a form built from the model's components, with an Exceptional Value selector on every field
  • Records as Governed Data Records: each record stored as XML, with a JSON projection for queries
  • Validation: every record validated against the model's XSD before it is stored; recoverable errors are tagged with Exceptional Values
  • A triplestore: records extracted to RDF and loaded into Fuseki (Lightweight) or GraphDB (Enterprise)
  • A REST API, bulk import, and list, detail and download views

The Supabase kit

When the client's team builds its own application in TypeScript on Supabase, give them the model's Supabase kit instead. It holds typed code for the model's records, one file per component, and the migrations for a Supabase project, with a gate: an Edge Function that validates every record against the published model before it is stored. The application sends and reads JSON; the gate keeps the Governed Data Record, and no other role can write a record.

A project holds as many models as the client needs. Each further model's kit is added to the same project with sdcmodeler kit <ct_id> --project . (or the add_supabase_kit MCP tool); a component two models share is written once and used by both. The kit's own README covers applying it and composing kits.

How to generate

  1. Open your published model's page and click Generate so its package exists
  2. Scroll to Generate App (choose one)
  3. For an application, pick Lightweight or Enterprise, click its Generate, and when the build finishes click Download App
  4. For a kit, click Download Kit in the Supabase kit box; it is generated when you click, with no build step

The generated application runs on the client's own infrastructure - a Linux box, a private cloud VM, or anywhere Docker runs. The client's data never leaves their environment. There is no SaaS dependency for the deployed application. A kit's records live in the client's own Supabase project, on Supabase's hosted platform or self-hosted; when the data must stay on the premises, self-host Supabase or deploy the generated application.

This is what practitioners deploy for clients. The bespoke application is the deliverable. The per-touch stewardship model (Module 9) is how practitioners maintain and evolve it over time.


3.7 The Component Reuse CatalogIntermediate

When you publish a model, the components you created are added to the SDCStudio component catalog. The next time you (or another practitioner) creates a model with similar data shapes, the catalog suggests matching existing components - which can be reused for free instead of minted as new (billable) components.

Practitioner Economics Compounding

  • First engagement: most components are new - real minting costs
  • Second engagement in the same vertical: many components match - free reuse
  • Fifth engagement: nearly everything matches - almost zero minting cost

Copy and adapt

You don't always need to start from scratch. If you find a published component in your own library or in the public catalog that is close to what you need, but requires a different constraint, an additional semantic link, or a revised label, use the Copy button.

  • Who can copy: anyone who can view a published component may copy it into any project they can build in. SDCStudio asks which project, from a project picker.
  • What the copy is: a new component, with its own CUID2, unpublished and not public, created by you, pre-populated with the properties of the original.
  • The label prefix: the copy's label starts with COPY -- . Rename it before publishing; SDCStudio refuses to publish while the prefix remains.
  • Provenance: the copy records prov:wasDerivedFrom the source. The source is untouched.
  • Clusters across projects: when you copy a Cluster into another project, each of its members must be published and public, or already in the target project. Otherwise the copy is refused and the member is named, so you know which one to deal with.
  • Retired components cannot be copied. Look for the successor named in the retirement reason.

Edit the copy as needed and publish it. As your library grows, you'll find yourself copying and adapting far more often than building from scratch. A practitioner with 50 published components in a vertical can often assemble a new client model with a handful of copies and minimal new minting.

The catalog is the resolution mechanism. When two systems use the same CUID2-identified component from the same catalog, meaning IS resolved to a single path. The constraint makes the shared identity enforceable at runtime.


3.8 Capturing the Domain Expert's ModelIntermediate

Everything in this module so far assumes you are the one at the keyboard. In a real engagement the person who knows what the data means is rarely the person who can express it in a reference model. That is the elicitation problem, and it is where most modeling engagements lose their time.

SDCBench is a free desktop application that closes that gap. You put it in front of the client's domain expert, and they build a draft model without learning SDC4 at all:

  • Search and reuse. They search the published library and drag components that already mean what their data means onto a canvas. Reuse is the default action, not an optimization they have to remember.
  • Assemble a tree. Model, then Group, then Fields, on a Blockly canvas where blocks only snap where the reference model allows. The structure cannot be built wrong.
  • Sketch what is missing. When nothing in the catalog fits, they pick a plain data type (Text, Integer, Decimal, Date, Code) and write, in plain language, what it needs to be.
  • Send to SDCStudio. This creates a draft data model in the project, referencing reused components by ct_id and creating the sketched ones as drafts.

The separation line

SDCBench (domain expert)SDCStudio (you)
DoesReuses published components, sketches new ones, structures the tree, states requirements in plain languageConstraints, units, reference ranges, semantic binding, publishing
ProducesA draft model with a plain-language requirement on each new componentThe finished, published model

Read that table as a description of your billable work. SDCBench does not replace the practitioner; it removes the part of the engagement where you sit in a room trying to guess what "matter type" means at this particular firm, and replaces it with a draft that already says so. The judgment work, which is the constraint and the semantic binding, is still yours and is still the part that requires certification.

The domain expert needs an SDCStudio account and API key to sign in, and a project to send the draft into. Set both up for them before the session rather than during it.

Where this pays off

In the Atlas Legal case you meet Linda Reeves, the paralegal who built the Access database everyone actually relies on. She is the domain expert. SDCBench is how you get what she knows into a model without a training course, and without her defending the database she built.


Module 3 Exercise

Continuing with Atlas Legal: You have a raw AI-generated model of Atlas Legal's client data from Module 2. Now you are doing the practitioner work - organizing it into meaningful clusters, adding semantic links, and publishing components that will never need migration.

Continuing with the project you created in Module 2:

  1. Open the model you created from clients.csv
  2. Create a new cluster with a descriptive name for client identity fields (e.g., "Client Identity") and assign the name, email, and phone components to it
  3. Create a new cluster for case-related fields (e.g., "Case Information") and assign the case_number, matter_type, and status components
  4. Add a semantic link to the client_name component: predicate rdf:type, object schema:Person (schema.org Person)
  5. Edit the phone component - change its validation to include a regex pattern for US phone numbers
  6. Publish the model
  7. Generate the XSD Schema and compare it to the one you generated in Module 2 - what changed?
  8. (Optional) Generate the JSON-LD output and open it in a text editor. Find the CUID2 identifiers and the semantic links you added.

This exercise takes approximately 30 minutes. The goal is to experience the difference between an AI-generated model (Module 2) and a practitioner-refined model (this module).


Further Reading

← Previous: Module 2 Next: Module 4 →