An ontology is a formal specification of the concepts, properties, relationships, and rules in a domain. It provides a shared semantic blueprint: measurements become meaningful when they are linked to what they describe and how those things relate. In a digital twin, that context supports both human interpretation and machine-readable queries and reasoning. section 5.3 section 5.0
A digital twin ontology can define:
- Classes, such as Machine and Product, for types of entities. section 5.3.1
- Properties, such as a machine’s serial number or operational status, for characteristics of instances. section 5.3.1
- Relationships, such as a product being processed by a machine, for connections between entities. section 5.3.1
- Rules, such as prohibiting processing by an offline machine, for valid states and behavior. section 5.3.1
An ontology is the blueprint, not the collection of individual facts. A knowledge graph can implement that blueprint as entities and semantically labeled relationships. For example, a sensor’s location relationship to a room gives its readings a context that can be queried. section 5.4 section 5.4.1
Figure 5.7 An example of a knowledge graph represented as a labeled property graph, showing labels on both nodes and edges and key–value pair properties on a node. This fragment represents a thermostat located in a room on the second floor of a hotel.
This graph fragment connects a thermostat to a room and building level, illustrating how individual entities can be organized using ontology concepts. section 5.4.2
A formal language makes the blueprint readable by people and interpretable by machines. Digital Twin Definition Language (DTDL) uses JSON-LD to define interfaces with properties, telemetry, and relationships. OWL provides another vocabulary for defining ontologies on top of RDF. section 5.3.2 section 5.4.2
Listing 5.2 A minimal example of how a room might be defined using DTDL
{
"@id": "dtmi:com:dtia:Room;1", #1
"@type": "Interface", #2
"displayName": "Room",
"contents": [
{
"@type": "Property",
"name": "occupancyStatus",
"displayName": "Occupancy Status",
"schema": "boolean"
},
{
"@type": "Telemetry",
"name": "temperature",
"displayName": "Temperature",
"schema": "double"
}
],
"@context": "dtmi:dtdl:context;3" #3
}
The room interface defines occupancy status as a Boolean property and temperature as double-valued telemetry. section 5.3.2
Choose an ontology according to domain fit and interoperability needs:
- Adopt an existing standard for a shared vocabulary and tool support, accepting that it may not fit every requirement. section 5.3.3
- Extend an existing ontology to cover missing concepts, while managing extensions and potentially reduced tool support. section 5.3.3
- Create a custom ontology for a closer domain fit, at the cost of a less widely shared vocabulary. section 5.3.3
At scale, teams must agree on definitions and govern changes: an extension by one discipline can break another’s assumptions. Graph validation also matters, because a misclassified relationship can affect every query that follows it. Conflicting models from different contributors must be reconciled or made explicit. section 5.5.4


