CTL: Control Logic Ontology

Metadata

IRI
https://hamborg.github.io/ctl-ontology
Title

CTL: Control Logic Ontology

Creator

Lasse Hamborg

Date Modified

2026-11-30

Date Issued

2026-11-30

License
https://creativecommons.org/licenses/by/4.0/
Version Iri
https://hamborg.github.io/ctl-ontology/0.1.0
Version Info

0.1.0

Preferred Namespace Prefix

ctl

Preferred Namespace Uri
ctl:
Description
  • CTL is a lightweight ontology for the control logic that design documentation states about building services: the characteristic curves of a function description (for example "the damper opens from 0 % at 800 ppm CO2 to 100 % at 1200 ppm") and which devices each curve governs. It complements ASHRAE 223P, which models a control function's inputs and outputs (s223:Function, s223:hasInput, s223:hasOutput) but not the curve that maps one to the other, and Brick, which models the points. CTL captures design intent at the level a function description gives it, far less detailed than executable control sequences such as CDL or ASHRAE 231P, so that operation can be checked against it.

    A function is bound to devices in one of two ways. By instance: one copy of the function per device or room, each pointing to the template it copies (ctl:instanceOf), used when every room has its own input (a CO2 sensor per room). By role: one function whose output acts on a device role (ctl:actuates), which devices fill (ctl:fillsRole), used when one shared input drives many devices (outdoor temperature driving all facade radiator valves). An installed sensor fills the input slot of a function with ctl:fillsSlot.

  • Earlier drafts of this vocabulary, used in the graphs of the study it was developed for, used the namespace urn:kgov:control#. Replace that namespace with https://hamborg.github.io/ctl-ontology# to update such data (scripts/migrate_from_urn.py).

See Also

Introduction

CTL (Control Logic Ontology) describes the control logic that design documentation states for building services: the characteristic curves of a function description, such as "the damper opens from 0 % at 800 ppm CO2 to 100 % at 1200 ppm", and which devices each curve governs. It was developed to carry the function description of a building into a knowledge graph next to its P&IDs, plans, point list and product data, so that the building's operation can be checked against its design intent.

CTL fills a gap between two existing standards. ASHRAE 223P models a control function's inputs and outputs (s223:Function, s223:hasInput, s223:hasOutput) but not the curve that maps one to the other, and Brick models the points. Executable control sequences, such as the Control Description Language (CDL) and ASHRAE 231P, are far more detailed than what a function description gives. CTL stays at the level of the document: a curve, the devices it applies to, and the stated conditions.

Curves

A ctl:Curve is a piecewise function given by its breakpoints, units and interpolation. A ctl:CompensationCurve is the control function (a subclass of s223:Function) that applies a curve to its input to produce its output.

ex:Curve_Downdraught a ctl:Curve ;
    ctl:xUnit unit:DEG_C ;  ctl:yUnit unit:PERCENT ;
    ctl:interpolation ctl:Linear ;
    ctl:hasBreakpoint [ ctl:x 0.0 ; ctl:y 10.0 ] , [ ctl:x 6.0 ; ctl:y 0.0 ] .

ex:Fn_Downdraught a ctl:CompensationCurve ;
    ctl:usesCurve ex:Curve_Downdraught ;
    ctl:role ctl:MinimumPosition ;
    s223:hasInput  ex:Prop_OutdoorTemp ;
    s223:hasOutput ex:Prop_FacadeValveMinPos .

Binding a function to devices

A function description rarely lists devices. It says "the valves at the facades" or "each room". CTL binds a function to the devices it governs in one of two ways:

By role: one function, many devices ex:Fn_Downdraught ctl:CompensationCurve s223:hasOutput ex:Prop_MinPos s223:Property ctl:actuates ex:Role_FacadeValve ctl:DeviceRole ex:Valve_101 ex:Valve_102 ctl:fillsRole By instance: one copy of the function per room ex:Fn_CO2_Room_101 ctl:CompensationCurve ctl:instanceOf ex:Fn_CO2 (template) s223:hasInput ex:Room_101_CO2 s223:hasOutput ex:Room_101_DamperDemand ex:Room_101_VAV s223:hasProperty
BindingUse whenTerms
By roleOne shared input drives many devices (outdoor temperature driving all facade radiator valves) ctl:actuates, ctl:DeviceRole, ctl:fillsRole, ctl:specialises, ctl:selectionCriterion
By instanceEvery device or room has its own input (a CO2 sensor per room) ctl:instanceOf with s223:hasInput / s223:hasOutput per copy

When a function description names an input only by its quantity ("the outdoor temperature"), the installed sensor that measures it fills that input with ctl:fillsSlot, which links the documented input to its time series. The remaining terms keep what the document says about a function, verbatim where possible: its intent, activation condition, priority, operating modes and scope.

Complete example: examples/role-and-instance-binding.ttl. A SPARQL query that lists the actuators each curve governs, for both bindings: examples/governed-actuators.rq.

Value sets

Two classes are closed lists of named individuals:

IndividualMember ofMeaning
ctl:LinearInterpolation methodStraight lines between consecutive breakpoints.
ctl:StepInterpolation methodThe output keeps the y value of the last breakpoint passed until the next breakpoint is reached.
ctl:MaximumPositionOutput roleThe output is an upper limit on the actuator position.
ctl:MinimumPositionOutput roleThe output is a lower limit on the actuator position: the actuator follows its own controller but never closes below this value (for example a radiator valve's minimum opening for downdraught compensation).
ctl:PositionDemandOutput roleThe output is the position demand sent to the actuator (for example the VAV damper position from CO2 compensation).

Downloads

Current version (0.1.0): Turtle · RDF/XML · JSON-LD · N-Triples

Source: github.com/hamborg/ctl-ontology. Data written with the draft namespace urn:kgov:control# can be moved to this one with scripts/migrate_from_urn.py; the term names are the same.

How to cite

Hamborg, L. (2026). CTL: Control Logic Ontology (version 0.1.0). https://hamborg.github.io/ctl-ontology

CTL is published under the Creative Commons Attribution 4.0 licence.

Classes

Class Hierarchy

Class Definitions

Function (ASHRAE 223P) c

IRI http://data.ashrae.org/standard223#Function
Is Defined By http://data.ashrae.org/standard223
Super Class Of Compensation curve function c

Property (ASHRAE 223P) c

IRI http://data.ashrae.org/standard223#Property
Is Defined By http://data.ashrae.org/standard223
In Domain Of actuates op
In Range Of fills slot op

Unit (QUDT) c

IRI http://qudt.org/schema/qudt/Unit
Is Defined By qudt:
In Range Of

Curve c

IRI https://hamborg.github.io/ctl-ontology#Curve
Is Defined By CTL: Control Logic Ontology
Description

A characteristic curve stated in design documentation: a piecewise function from an input quantity (x) to an output quantity (y), given by its breakpoints and an interpolation method. A curve is a description only; the control function that applies it is a ctl:CompensationCurve.

Example
The 'Kuldedrop' curve: valve position 10 % at 0 °C outdoor temperature, falling linearly to 0 % at 6 °C.
In Domain Of
In Range Of uses curve op

Breakpoint c

IRI https://hamborg.github.io/ctl-ontology#Breakpoint
Is Defined By CTL: Control Logic Ontology
Description

One point (x, y) of a curve. Between breakpoints the curve follows its interpolation method; outside the first and last breakpoint the output is held at the nearest breakpoint's y value.

In Domain Of
  • x dp
  • y dp
In Range Of has breakpoint op

Compensation curve function c

IRI https://hamborg.github.io/ctl-ontology#CompensationCurve
Is Defined By CTL: Control Logic Ontology
Description

A control function that computes its output from its input through a curve (ctl:usesCurve). The name follows the Scandinavian term for such functions ('kompenseringskurve'). Its input and output are given with s223:hasInput and s223:hasOutput. A function described once for many devices is a template; the copies made per device or room point to it with ctl:instanceOf.

Sub Class Of Function (ASHRAE 223P) c
In Domain Of
In Range Of instance of op

Device role c

IRI https://hamborg.github.io/ctl-ontology#DeviceRole
Is Defined By CTL: Control Logic Ontology
Description

A role that a function description assigns to a group of devices or spaces without listing them, for example 'radiator valves at the facades' or 'rooms with a CO2 sensor'. Devices and spaces that belong to the group fill the role (ctl:fillsRole). Roles can specialise broader roles (ctl:specialises).

In Domain Of
In Range Of

Applicability scope c

IRI https://hamborg.github.io/ctl-ontology#ApplicabilityScope
Is Defined By CTL: Control Logic Ontology
Description

The part of a building or plant that a function description applies to, for example a control panel and the rooms it serves.

In Domain Of scope description dp
In Range Of

Intent c

IRI https://hamborg.github.io/ctl-ontology#Intent
Is Defined By CTL: Control Logic Ontology
Description

The purpose stated for a control function, for example 'reduce the CO2 level in the room' or 'compensate for cold downdraught from windows'.

In Range Of intent op

Operating mode c

IRI https://hamborg.github.io/ctl-ontology#OperatingMode
Is Defined By CTL: Control Logic Ontology
Description

An operating mode of a plant or controller named in a function description, for example 'Stop', 'Comfort' or 'Night'.

In Range Of remains active in mode op

Interpolation method c

IRI https://hamborg.github.io/ctl-ontology#InterpolationMethod
Is Defined By CTL: Control Logic Ontology
Description

How a curve's output is computed between two breakpoints.

In Range Of interpolation op
One Of
Has Member

Output role c

IRI https://hamborg.github.io/ctl-ontology#OutputRole
Is Defined By CTL: Control Logic Ontology
Description

How a function's output acts on the actuator: as the demand itself, or as a limit on a demand computed elsewhere.

In Range Of role op
One Of
Has Member
, ,

Object Properties

Object Property Hierarchy

Object Property Definitions

uses curve op

IRI https://hamborg.github.io/ctl-ontology#usesCurve
Is Defined By CTL: Control Logic Ontology
Description

Relates a compensation function to the curve it applies. Several functions, for example one per room, can use the same curve.

Domain Compensation curve function c
Range Curve c

has breakpoint op

IRI https://hamborg.github.io/ctl-ontology#hasBreakpoint
Is Defined By CTL: Control Logic Ontology
Description

Relates a curve to one of its breakpoints. A curve has at least two.

Domain Curve c
Range Breakpoint c

interpolation op

IRI https://hamborg.github.io/ctl-ontology#interpolation
Is Defined By CTL: Control Logic Ontology
Description

Relates a curve to how its output is computed between breakpoints.

Domain Curve c
Range Interpolation method c

x unit op

IRI https://hamborg.github.io/ctl-ontology#xUnit
Is Defined By CTL: Control Logic Ontology
Description

The unit of a curve's input quantity, as a QUDT unit (for example unit:DEG_C or unit:PPM).

Domain Curve c
Range Unit (QUDT) c

y unit op

IRI https://hamborg.github.io/ctl-ontology#yUnit
Is Defined By CTL: Control Logic Ontology
Description

The unit of a curve's output quantity, as a QUDT unit (for example unit:PERCENT).

Domain Curve c
Range Unit (QUDT) c

instance of op

IRI https://hamborg.github.io/ctl-ontology#instanceOf
Is Defined By CTL: Control Logic Ontology
Description

Relates a per-device or per-room copy of a compensation function to the template function it copies. Used for binding by instance, when every device or room has its own input and output (for example one CO2 compensation per room, with the room's own CO2 sensor as input). The copy has its own s223:hasInput and s223:hasOutput and normally the same curve as the template.

Domain Compensation curve function c
Range Compensation curve function c

actuates op

IRI https://hamborg.github.io/ctl-ontology#actuates
Is Defined By CTL: Control Logic Ontology
Description

Relates a function's output property to the device role it acts on. Used for binding by role, when one function drives every device that fills the role (for example one outdoor-temperature curve setting the minimum position of all facade radiator valves).

Domain Property (ASHRAE 223P) c
Range Device role c

fills role op

IRI https://hamborg.github.io/ctl-ontology#fillsRole
Is Defined By CTL: Control Logic Ontology
Description

Relates a device or space to a device role it belongs to. A device that fills a role is governed by the functions whose output actuates that role or a role it specialises.

Range Device role c

specialises op

IRI https://hamborg.github.io/ctl-ontology#specialises
Is Defined By CTL: Control Logic Ontology
Description

Relates a device role to a broader role it narrows, for example 'radiator valves at the facades' to 'radiator valves'. Whatever fills the narrower role also belongs to the broader one.

Domain Device role c
Range Device role c

fills slot op

IRI https://hamborg.github.io/ctl-ontology#fillsSlot
Is Defined By CTL: Control Logic Ontology
Description

Relates an installed point or sensor (for example a Brick point) to a property that a function description uses as an input without naming the installed point (for example 'the outdoor temperature'). This binds the documented input to the measured time series.

Range Property (ASHRAE 223P) c

within scope op

IRI https://hamborg.github.io/ctl-ontology#withinScope
Is Defined By CTL: Control Logic Ontology
Description

Relates a device role to the applicability scope it is defined in.

Domain Device role c
Range Applicability scope c

applies to op

IRI https://hamborg.github.io/ctl-ontology#appliesTo
Is Defined By CTL: Control Logic Ontology
Description

Relates a compensation function to the applicability scope it applies to.

Domain Compensation curve function c
Range Applicability scope c

role op

IRI https://hamborg.github.io/ctl-ontology#role
Is Defined By CTL: Control Logic Ontology
Description

Relates a compensation function to how its output acts on the actuator: as the demand itself or as a limit.

Domain Compensation curve function c
Range Output role c

intent op

IRI https://hamborg.github.io/ctl-ontology#intent
Is Defined By CTL: Control Logic Ontology
Description

Relates a compensation function to the purpose stated for it.

Domain Compensation curve function c
Range Intent c

remains active in mode op

IRI https://hamborg.github.io/ctl-ontology#remainsActiveInMode
Is Defined By CTL: Control Logic Ontology
Description

Relates a compensation function to an operating mode in which, according to the documentation, it stays active (for example downdraught compensation that stays active while the plant is stopped).

Domain Compensation curve function c
Range Operating mode c

Datatype Properties

x dp

IRI https://hamborg.github.io/ctl-ontology#x
Is Defined By CTL: Control Logic Ontology
Description

The input value of a breakpoint, in the curve's x unit.

Domain Breakpoint c
Range xsd:decimal

y dp

IRI https://hamborg.github.io/ctl-ontology#y
Is Defined By CTL: Control Logic Ontology
Description

The output value of a breakpoint, in the curve's y unit.

Domain Breakpoint c
Range xsd:decimal

x quantity label dp

IRI https://hamborg.github.io/ctl-ontology#xQuantityLabel
Is Defined By CTL: Control Logic Ontology
Description

The name of a curve's input quantity as written in the source document, for example 'Udetemperatur (°C)'.

Domain Curve c
Range xsd:string

y quantity label dp

IRI https://hamborg.github.io/ctl-ontology#yQuantityLabel
Is Defined By CTL: Control Logic Ontology
Description

The name of a curve's output quantity as written in the source document, for example 'Ventilstilling (%)'.

Domain Curve c
Range xsd:string

source label dp

IRI https://hamborg.github.io/ctl-ontology#sourceLabel
Is Defined By CTL: Control Logic Ontology
Description

The name a curve or function has in the source document, for example 'Kuldedrop' or 'Luftkvalitet'. Kept verbatim so the graph can be traced back to the document.

Range xsd:string

text description dp

IRI https://hamborg.github.io/ctl-ontology#textDescription
Is Defined By CTL: Control Logic Ontology
Description

The passage of the source document that describes a function, verbatim.

Domain Compensation curve function c
Range xsd:string

activation condition dp

IRI https://hamborg.github.io/ctl-ontology#activationCondition
Is Defined By CTL: Control Logic Ontology
Description

The condition under which the documentation says a function is active, as text, for example 'at outdoor temperature below 6 °C'.

Domain Compensation curve function c
Range xsd:string

priority statement dp

IRI https://hamborg.github.io/ctl-ontology#priorityStatement
Is Defined By CTL: Control Logic Ontology
Description

What the documentation says about a function's priority over other functions acting on the same actuator, as text.

Domain Compensation curve function c
Range xsd:string

selection criterion dp

IRI https://hamborg.github.io/ctl-ontology#selectionCriterion
Is Defined By CTL: Control Logic Ontology
Description

The text by which a function description selects the devices of a role, for example 'telestats at the facades'. It records why devices fill the role.

Domain Device role c
Range xsd:string

scope description dp

IRI https://hamborg.github.io/ctl-ontology#scopeDescription
Is Defined By CTL: Control Logic Ontology
Description

The text that describes an applicability scope, for example the control panel and areas a function description covers.

Domain Applicability scope c
Range xsd:string

has placement dp

IRI https://hamborg.github.io/ctl-ontology#hasPlacement
Is Defined By CTL: Control Logic Ontology
Description

Where a terminal unit sits relative to the building, as stated in the documents, for example 'beneath facade window'. Used to decide whether a device meets a role's selection criterion.

Range xsd:string

Annotation Properties

Title ap

IRI http://purl.org/dc/terms/title

Description ap

IRI http://purl.org/dc/terms/description

Creator ap

IRI http://purl.org/dc/terms/creator

Issued ap

IRI http://purl.org/dc/terms/issued

Modified ap

IRI http://purl.org/dc/terms/modified

License ap

IRI http://purl.org/dc/terms/license

Preferred Namespace Prefix ap

IRI http://purl.org/vocab/vann/preferredNamespacePrefix

Preferred Namespace Uri ap

IRI http://purl.org/vocab/vann/preferredNamespaceUri

Version Info ap

IRI http://www.w3.org/2002/07/owl#versionInfo

Example ap

IRI http://www.w3.org/2004/02/skos/core#example

Functional Properties

interpolation fp

IRI https://hamborg.github.io/ctl-ontology#interpolation
Is Defined By CTL: Control Logic Ontology
Description

Relates a curve to how its output is computed between breakpoints.

Domain Curve c
Range Interpolation method c

x unit fp

IRI https://hamborg.github.io/ctl-ontology#xUnit
Is Defined By CTL: Control Logic Ontology
Description

The unit of a curve's input quantity, as a QUDT unit (for example unit:DEG_C or unit:PPM).

Domain Curve c
Range Unit (QUDT) c

y unit fp

IRI https://hamborg.github.io/ctl-ontology#yUnit
Is Defined By CTL: Control Logic Ontology
Description

The unit of a curve's output quantity, as a QUDT unit (for example unit:PERCENT).

Domain Curve c
Range Unit (QUDT) c

instance of fp

IRI https://hamborg.github.io/ctl-ontology#instanceOf
Is Defined By CTL: Control Logic Ontology
Description

Relates a per-device or per-room copy of a compensation function to the template function it copies. Used for binding by instance, when every device or room has its own input and output (for example one CO2 compensation per room, with the room's own CO2 sensor as input). The copy has its own s223:hasInput and s223:hasOutput and normally the same curve as the template.

Domain Compensation curve function c
Range Compensation curve function c

role fp

IRI https://hamborg.github.io/ctl-ontology#role
Is Defined By CTL: Control Logic Ontology
Description

Relates a compensation function to how its output acts on the actuator: as the demand itself or as a limit.

Domain Compensation curve function c
Range Output role c

x fp

IRI https://hamborg.github.io/ctl-ontology#x
Is Defined By CTL: Control Logic Ontology
Description

The input value of a breakpoint, in the curve's x unit.

Domain Breakpoint c
Range xsd:decimal

y fp

IRI https://hamborg.github.io/ctl-ontology#y
Is Defined By CTL: Control Logic Ontology
Description

The output value of a breakpoint, in the curve's y unit.

Domain Breakpoint c
Range xsd:decimal

Changelog

All notable changes to CTL are listed here. Versions follow semantic versioning; before 1.0.0, any release may change existing terms.

[0.1.0] – 2026-11-30 (first public release)

The first published version. It defines every term used in the study graphs, where the vocabulary was drafted under the namespace urn:kgov:control#. The term names are unchanged; only the namespace is new (scripts/migrate_from_urn.py moves existing data).

Defined

Added (not used in the draft)

Namespaces

ctl
https://hamborg.github.io/ctl-ontology#
dcterms
http://purl.org/dc/terms/
owl
http://www.w3.org/2002/07/owl#
prov
http://www.w3.org/ns/prov#
qudt
http://qudt.org/schema/qudt/
rdf
http://www.w3.org/1999/02/22-rdf-syntax-ns#
rdfs
http://www.w3.org/2000/01/rdf-schema#
s223
http://data.ashrae.org/standard223#
skos
http://www.w3.org/2004/02/skos/core#
vann
http://purl.org/vocab/vann/
xsd
http://www.w3.org/2001/XMLSchema#

Legend

c Classes
op Object Properties
dp Datatype Properties
ap Annotation Properties
fp Functional Properties

made by p y LODE 3.6.1 with the OntPub profile

Table of Contents