Skip to content

Core terms (c4:)

The architecture itself: elements at the four C4 levels, relationships, scenarios and their steps, states and transitions, use cases. This page is the target of the namespace https://caviri.github.io/c4-model-agentic-plugin/ontology/c4#: each term's IRI opens its section here. It is generated from c4.ttl when the site is built. The ontology guide explains how the terms fit together; the view terms cover how the explorer draws them.

Overview

Namespace c4: = https://caviri.github.io/c4-model-agentic-plugin/ontology/c4# · ontology https://caviri.github.io/c4-model-agentic-plugin/ontology/c4 · version 0.1.0 · download c4.ttl

Classes
c4:CodeElement A code element that implements a component: a class, an interface, a function, an endpoint, a constant or a file.
c4:Component A grouping of related functionality behind a well-defined interface inside a container, such as a module, a package or a service layer. Not separately deployable.
c4:Container An application or a data store inside a software system: something that must run for the system to work, such as a web application, an API service, a worker, a database or a queue. Not a Docker container.
c4:ContainerInstance A container (or data store) of the model as it runs in a deployment node of an environment; c4:instances says how many copies run there.
c4:DataStore A container that stores data: a database, a file or object store, a cache, a queue or a search index.
c4:DeploymentEnvironment Where a software system is deployed as a whole, such as production, staging or a developer's machine. Each environment is one deployment diagram.
c4:DeploymentNode Where an instance of a container or a software system runs: physical infrastructure (a server, a device), virtualised infrastructure (IaaS, PaaS, a virtual machine), containerised infrastructure (a Docker host, a Kubernetes cluster or namespace) or an execution environment (a database server, a web server). Deployment nodes nest.
c4:DeploymentRelationship A relationship that only the deployment has, between deployment nodes, infrastructure nodes or instances of one environment: a load balancer forwarding to an API, a database replicating to another region. The model's own relationships between the elements the instances run are not repeated.
c4:Element Anything that appears as a box in a C4 diagram: a person, a software system, a container, a component, a code element, or a state of a lifecycle. Abstract: every element also has one of the more specific classes.
c4:ExternalSystem A software system that the described system depends on or talks to but that its owners do not own or change, such as a payment provider or an identity provider.
c4:InfrastructureNode Infrastructure that supports the deployment but is not part of the software: a DNS service, a load balancer, a firewall, a CDN. It sits in a deployment node.
c4:Model The architecture description of one project: the root resource of an exported graph. Top-level elements, scenarios and variants are dcterms:isPartOf it.
c4:Person A human user of the software systems being described: an actor, role or persona, or a named individual.
c4:Relationship A directed relationship between two elements, read as 'source uses target': calls, reads from, sends to. It has exactly one c4:source and one c4:target and a label saying what happens along it.
c4:Scenario A C4 dynamic diagram: one runtime scenario, as an ordered list of steps between elements of the static model. Optionally also a use case, with a primary actor, a goal, a trigger, preconditions and an outcome.
c4:SiblingSystem A separate software system owned by the same organisation as the described one, outside its boundary.
c4:SoftwareSystem The highest level of abstraction: something that delivers value to its users, made of one or more containers and usually owned by a single team.
c4:SoftwareSystemInstance A software system of the model (often an external or a neighbouring one) as it runs in a deployment node of an environment.
c4:State One state of a lifecycle, such as the status of an order or of a task, drawn inside the element that owns the lifecycle.
c4:Step One numbered interaction of a scenario: a message from a source element to a target element, at a position (schema:position, from 1) in the scenario.
c4:Transition A relationship from one state to another (or to itself): the move of a lifecycle caused by the event or action in its label.
c4:Variant One value of a model's variant dimension: a configuration in which only some elements, relationships and steps exist, such as an edition, a runtime mode, a deployment target or a feature flag.
Object properties
c4:deployedIn The deployment node something is in: a nested deployment node, an infrastructure node or an instance. A top-level deployment node has none.
c4:deploymentSource Where a deployment relationship starts: a deployment node, an infrastructure node or an instance.
c4:deploymentTarget Where a deployment relationship goes: a deployment node, an infrastructure node or an instance.
c4:environment The deployment environment a deployment node, an infrastructure node, an instance or a deployment relationship belongs to.
c4:hasStep A step of the scenario. The order of the steps is their schema:position.
c4:inScenario The scenario a step belongs to.
c4:instanceOf The element of the model an instance runs: a container or data store (c4:ContainerInstance), a software system (c4:SoftwareSystemInstance).
c4:inVariant The variants in which an element, a relationship or a step exists. Without any c4:inVariant it exists in all of them.
c4:primaryActor The person whose goal the scenario, read as a use case, serves: usually the one who starts it.
c4:source The element a relationship or a step starts from: the caller, the sender, or for a reply step the one that answers.
c4:target The element a relationship or a step goes to: the one that is called, read or sent to.
c4:transitionsTo Shortcut for a transition: the lifecycle can move from the subject state to the object state.
c4:uses Shortcut for a relationship: the subject element uses the object element (calls it, reads from it, sends to it). One triple per pair of elements, however many relationships connect them.
Datatype properties
c4:altText The text alternative of an image: what it shows, for readers who cannot see it (the HTML alt attribute). Required on every image the explorer exports.
c4:branch The branch of the repository (dcterms:source) that the model describes. Main when absent.
c4:final True for a state a lifecycle ends in. Written only when true.
c4:goal What the primary actor wants to achieve with the scenario, read as a use case.
c4:illustrative True for an image made to illustrate, such as a mock-up or a wireframe drawn from the code, that is not a capture of the real thing. The explorer labels such images. Written only when true.
c4:imageKind What sort of image it is: screenshot (a capture of the running software), diagram, photo or illustration.
c4:initial True for the state a lifecycle starts in. Written only when true.
c4:instances How many copies of a deployment node or of an instance there are (×N). Written only above 1.
c4:isReply True for a step that answers an earlier one (a return message). Written only when true.
c4:level The C4 level of an element: 1 system context (people and software systems), 2 containers, 3 components, 4 code. A state is one level below its owner, never deeper than 4.
c4:line The line in the file at c4:path where the element starts.
c4:link A link from an element to documentation, written relative to the page. An absolute link is rdfs:seeAlso instead.
c4:note One note about an element: a constraint, a gotcha or a configuration flag. One value per note.
c4:outcome What holds when the scenario has succeeded: its success guarantee.
c4:path Where the element lives in the repository: a path relative to its root, a trailing / for a directory, and . for the repository root itself.
c4:precondition Something that must hold before the scenario can start. One value per precondition.
c4:summary A five-word summary of an element, shown as the second line of its box.
c4:summaryLabel The label of the higher-level relationship this relationship belongs to: what an arrow says when it is drawn between closed ancestors of both ends.
c4:tag The type line of an element in C4 notation: its kind and main technology or code construct.
c4:technology A technology an element is built with or runs on: a language, a framework, a product. One value per technology.
c4:trigger The event that starts the scenario: an action of the actor, a schedule, a message.
c4:variantDimension The name of what the model's variants vary: edition, deployment, runtime mode. Variant when absent.

Terms

CodeElement

c4:CodeElement · class · Code element

A code element that implements a component: a class, an interface, a function, an endpoint, a constant or a file.

Component

c4:Component · class · Component

A grouping of related functionality behind a well-defined interface inside a container, such as a module, a package or a service layer. Not separately deployable.

Container

c4:Container · class · Container

An application or a data store inside a software system: something that must run for the system to work, such as a web application, an API service, a worker, a database or a queue. Not a Docker container.

ContainerInstance

c4:ContainerInstance · class · Container instance

A container (or data store) of the model as it runs in a deployment node of an environment; c4:instances says how many copies run there.

DataStore

c4:DataStore · class · Data store

A container that stores data: a database, a file or object store, a cache, a queue or a search index.

DeploymentEnvironment

c4:DeploymentEnvironment · class · Deployment environment

Where a software system is deployed as a whole, such as production, staging or a developer's machine. Each environment is one deployment diagram.

  • Example: Production (AWS eu-west-1); Local (Docker Compose).
  • Source: https://c4model.com/diagrams/deployment
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4#DeploymentEnvironment

DeploymentNode

c4:DeploymentNode · class · Deployment node

Where an instance of a container or a software system runs: physical infrastructure (a server, a device), virtualised infrastructure (IaaS, PaaS, a virtual machine), containerised infrastructure (a Docker host, a Kubernetes cluster or namespace) or an execution environment (a database server, a web server). Deployment nodes nest.

DeploymentRelationship

c4:DeploymentRelationship · class · Deployment relationship

A relationship that only the deployment has, between deployment nodes, infrastructure nodes or instances of one environment: a load balancer forwarding to an API, a database replicating to another region. The model's own relationships between the elements the instances run are not repeated.

Element

c4:Element · class · Element

Anything that appears as a box in a C4 diagram: a person, a software system, a container, a component, a code element, or a state of a lifecycle. Abstract: every element also has one of the more specific classes.

ExternalSystem

c4:ExternalSystem · class · External system

A software system that the described system depends on or talks to but that its owners do not own or change, such as a payment provider or an identity provider.

InfrastructureNode

c4:InfrastructureNode · class · Infrastructure node

Infrastructure that supports the deployment but is not part of the software: a DNS service, a load balancer, a firewall, a CDN. It sits in a deployment node.

Model

c4:Model · class · Architecture model

The architecture description of one project: the root resource of an exported graph. Top-level elements, scenarios and variants are dcterms:isPartOf it.

Person

c4:Person · class · Person

A human user of the software systems being described: an actor, role or persona, or a named individual.

  • Subclass of: c4:Element
  • Note: A role, not necessarily one human being: 'Reviewer' is a Person.
  • Source: https://c4model.com/abstractions
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4#Person

Relationship

c4:Relationship · class · Relationship

A directed relationship between two elements, read as 'source uses target': calls, reads from, sends to. It has exactly one c4:source and one c4:target and a label saying what happens along it.

  • Subclasses: c4:Transition
  • Note: Every relationship is a resource of its own, so it can carry a label and other facts. The exporter also writes the shortcut triple source c4:uses target (or c4:transitionsTo between states).
  • Source: https://c4model.com/diagrams/notation
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4#Relationship

Scenario

c4:Scenario · class · Scenario

A C4 dynamic diagram: one runtime scenario, as an ordered list of steps between elements of the static model. Optionally also a use case, with a primary actor, a goal, a trigger, preconditions and an outcome.

  • Note: The same scenario can be drawn as a collaboration diagram, a sequence diagram or a step table, at any level: steps are lifted to the chosen level.
  • Source: https://c4model.com/diagrams/dynamic
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4#Scenario

SiblingSystem

c4:SiblingSystem · class · Sibling system

A separate software system owned by the same organisation as the described one, outside its boundary.

SoftwareSystem

c4:SoftwareSystem · class · Software system

The highest level of abstraction: something that delivers value to its users, made of one or more containers and usually owned by a single team.

SoftwareSystemInstance

c4:SoftwareSystemInstance · class · Software system instance

A software system of the model (often an external or a neighbouring one) as it runs in a deployment node of an environment.

State

c4:State · class · State

One state of a lifecycle, such as the status of an order or of a task, drawn inside the element that owns the lifecycle.

Step

c4:Step · class · Step

One numbered interaction of a scenario: a message from a source element to a target element, at a position (schema:position, from 1) in the scenario.

Transition

c4:Transition · class · Transition

A relationship from one state to another (or to itself): the move of a lifecycle caused by the event or action in its label.

Variant

c4:Variant · class · Variant

One value of a model's variant dimension: a configuration in which only some elements, relationships and steps exist, such as an edition, a runtime mode, a deployment target or a feature flag.

deployedIn

c4:deployedIn · object property · deployed in

The deployment node something is in: a nested deployment node, an infrastructure node or an instance. A top-level deployment node has none.

  • Range: c4:DeploymentNode
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4#deployedIn

deploymentSource

c4:deploymentSource · object property · deployment source

Where a deployment relationship starts: a deployment node, an infrastructure node or an instance.

  • Domain: c4:DeploymentRelationship
  • Note: Not c4:source, whose range is c4:Element.
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4#deploymentSource

deploymentTarget

c4:deploymentTarget · object property · deployment target

Where a deployment relationship goes: a deployment node, an infrastructure node or an instance.

environment

c4:environment · object property · environment

The deployment environment a deployment node, an infrastructure node, an instance or a deployment relationship belongs to.

hasStep

c4:hasStep · object property · has step

A step of the scenario. The order of the steps is their schema:position.

inScenario

c4:inScenario · object property · in scenario

The scenario a step belongs to.

  • Domain: c4:Step
  • Range: c4:Scenario
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4#inScenario

instanceOf

c4:instanceOf · object property · instance of

The element of the model an instance runs: a container or data store (c4:ContainerInstance), a software system (c4:SoftwareSystemInstance).

  • Range: c4:Element
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4#instanceOf

inVariant

c4:inVariant · object property · in variant

The variants in which an element, a relationship or a step exists. Without any c4:inVariant it exists in all of them.

  • Range: c4:Variant
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4#inVariant

primaryActor

c4:primaryActor · object property · primary actor

The person whose goal the scenario, read as a use case, serves: usually the one who starts it.

  • Domain: c4:Scenario
  • Range: c4:Person
  • Scope: Use-case metadata, an extension beyond core C4 (after Cockburn's use-case template).
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4#primaryActor

source

c4:source · object property · source

The element a relationship or a step starts from: the caller, the sender, or for a reply step the one that answers.

  • Range: c4:Element
  • Note: Not dcterms:source, which says where the model comes from (its repository).
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4#source

target

c4:target · object property · target

The element a relationship or a step goes to: the one that is called, read or sent to.

  • Range: c4:Element
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4#target

transitionsTo

c4:transitionsTo · object property · transitions to

Shortcut for a transition: the lifecycle can move from the subject state to the object state.

  • Domain: c4:State
  • Range: c4:State
  • Scope: Extension beyond core C4, with c4:State.
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4#transitionsTo

uses

c4:uses · object property · uses

Shortcut for a relationship: the subject element uses the object element (calls it, reads from it, sends to it). One triple per pair of elements, however many relationships connect them.

  • Domain: c4:Element
  • Range: c4:Element
  • Note: Written between the exact elements a relationship names, usually deep ones. To ask about a container, follow containment on both ends: ?a dcterms:isPartOf* ?container.
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4#uses

altText

c4:altText · datatype property · alt text

The text alternative of an image: what it shows, for readers who cannot see it (the HTML alt attribute). Required on every image the explorer exports.

  • Domain: schema:ImageObject
  • Range: xsd:string
  • Note: Not schema:caption, which is shown under the image to everyone, and not schema:description, which says more about the image than what it shows.
  • Example: Wireframe of the Annotate page: the image with two drawn boxes and a Submit for review button.
  • Source: https://www.w3.org/WAI/tutorials/images/
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4#altText

branch

c4:branch · datatype property · branch

The branch of the repository (dcterms:source) that the model describes. Main when absent.

  • Domain: c4:Model
  • Range: xsd:string
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4#branch

final

c4:final · datatype property · final

True for a state a lifecycle ends in. Written only when true.

  • Domain: c4:State
  • Range: xsd:boolean
  • Scope: Extension beyond core C4, with c4:State.
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4#final

goal

c4:goal · datatype property · goal

What the primary actor wants to achieve with the scenario, read as a use case.

  • Domain: c4:Scenario
  • Range: xsd:string
  • Scope: Use-case metadata, an extension beyond core C4.
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4#goal

illustrative

c4:illustrative · datatype property · illustrative

True for an image made to illustrate, such as a mock-up or a wireframe drawn from the code, that is not a capture of the real thing. The explorer labels such images. Written only when true.

  • Domain: schema:ImageObject
  • Range: xsd:boolean
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4#illustrative

imageKind

c4:imageKind · datatype property · image kind

What sort of image it is: screenshot (a capture of the running software), diagram, photo or illustration.

  • Domain: schema:ImageObject
  • Range: xsd:string
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4#imageKind

initial

c4:initial · datatype property · initial

True for the state a lifecycle starts in. Written only when true.

  • Domain: c4:State
  • Range: xsd:boolean
  • Scope: Extension beyond core C4, with c4:State.
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4#initial

instances

c4:instances · datatype property · instances

How many copies of a deployment node or of an instance there are (×N). Written only above 1.

  • Range: xsd:integer
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4#instances

isReply

c4:isReply · datatype property · is reply

True for a step that answers an earlier one (a return message). Written only when true.

  • Domain: c4:Step
  • Range: xsd:boolean
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4#isReply

level

c4:level · datatype property · level

The C4 level of an element: 1 system context (people and software systems), 2 containers, 3 components, 4 code. A state is one level below its owner, never deeper than 4.

  • Domain: c4:Element
  • Range: xsd:positiveInteger
  • Note: Derived from the class when the graph is written. The data uses plain xsd:integer literals (so SPARQL patterns such as c4:level 2 match); in OWL 2 the value 2 lies in the value space of xsd:positiveInteger, so the range holds. The SHACL shapes check the datatype and 1 to 4.
  • Source: https://c4model.com/diagrams
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4#level

line

c4:line · datatype property · source line

The line in the file at c4:path where the element starts.

  • Range: xsd:positiveInteger
  • Note: Plain xsd:integer literals in the data, as for c4:level.
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4#line

c4:link · datatype property · relative link

A link from an element to documentation, written relative to the page. An absolute link is rdfs:seeAlso instead.

  • Range: xsd:string
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4#link

note

c4:note · datatype property · note

One note about an element: a constraint, a gotcha or a configuration flag. One value per note.

  • Range: xsd:string
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4#note

outcome

c4:outcome · datatype property · outcome

What holds when the scenario has succeeded: its success guarantee.

  • Domain: c4:Scenario
  • Range: xsd:string
  • Scope: Use-case metadata, an extension beyond core C4.
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4#outcome

path

c4:path · datatype property · source path

Where the element lives in the repository: a path relative to its root, a trailing / for a directory, and . for the repository root itself.

  • Range: xsd:string
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4#path

precondition

c4:precondition · datatype property · precondition

Something that must hold before the scenario can start. One value per precondition.

  • Domain: c4:Scenario
  • Range: xsd:string
  • Scope: Use-case metadata, an extension beyond core C4.
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4#precondition

summary

c4:summary · datatype property · summary

A five-word summary of an element, shown as the second line of its box.

  • Range: xsd:string
  • Example: REST · auth · task rules
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4#summary

summaryLabel

c4:summaryLabel · datatype property · summary label

The label of the higher-level relationship this relationship belongs to: what an arrow says when it is drawn between closed ancestors of both ends.

  • Domain: c4:Relationship
  • Range: xsd:string
  • Example: JSON over HTTPS
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4#summaryLabel

tag

c4:tag · datatype property · tag

The type line of an element in C4 notation: its kind and main technology or code construct.

  • Range: xsd:string
  • Example: CONTAINER · FASTAPI · CLASS · STATE MACHINE
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4#tag

technology

c4:technology · datatype property · technology

A technology an element is built with or runs on: a language, a framework, a product. One value per technology.

trigger

c4:trigger · datatype property · trigger

The event that starts the scenario: an action of the actor, a schedule, a message.

  • Domain: c4:Scenario
  • Range: xsd:string
  • Scope: Use-case metadata, an extension beyond core C4.
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4#trigger

variantDimension

c4:variantDimension · datatype property · variant dimension

The name of what the model's variants vary: edition, deployment, runtime mode. Variant when absent.

  • Domain: c4:Model
  • Range: xsd:string
  • IRI: https://caviri.github.io/c4-model-agentic-plugin/ontology/c4#variantDimension