Namespace: https://hamborg.github.io/ctl-ontology# · Prefix: ctl · Version: 0.1.0 · Licence: CC BY 4.0
Documentation: https://hamborg.github.io/ctl-ontology
CTL is a lightweight ontology for the control logic that design documentation states for building services: the characteristic curves of a function description (for example "the damper opens from 0 % at 800 ppm CO₂ to 100 % at 1200 ppm") and which devices each curve governs. It complements ASHRAE 223P, which models a control function's inputs and outputs but not the curve between them, and Brick, which models the points. It stays at the level of a function description, far less detailed than executable control sequences such as CDL or ASHRAE 231P, so that operation can be checked against design intent.
ex:Curve_CO2 a ctl:Curve ;
ctl:xUnit unit:PPM ; ctl:yUnit unit:PERCENT ;
ctl:interpolation ctl:Linear ;
ctl:hasBreakpoint [ ctl:x 800 ; ctl:y 0 ] , [ ctl:x 1200 ; ctl:y 100 ] .
ex:Fn_CO2_Room_101 a ctl:CompensationCurve ; # a subclass of s223:Function
ctl:instanceOf ex:Fn_CO2 ; # per-room copy of the documented function
ctl:usesCurve ex:Curve_CO2 ;
s223:hasInput ex:Room_101_CO2 ;
s223:hasOutput ex:Room_101_DamperDemand .A function is bound to devices by instance (one copy per room, ctl:instanceOf) or by role (the output
ctl:actuates a ctl:DeviceRole, which devices fill with ctl:fillsRole). See
examples/role-and-instance-binding.ttl and the query
examples/governed-actuators.rq.
| Path | What it is |
|---|---|
ctl.ttl |
The ontology. This is the only file to edit. |
examples/ |
Example data and a SPARQL query. |
scripts/build.py |
Builds the documentation site and all serializations into docs/. |
scripts/migrate_from_urn.py |
Moves data from the draft namespace urn:kgov:control# to this one. |
versions/ |
Earlier releases, kept unchanged (none yet). |
CHANGELOG.md |
What changed between versions. |
pip install -r scripts/requirements.txt
python scripts/build.py
# open docs/index.htmlOn GitHub, .github/workflows/publish.yml does the same on every push to main and publishes docs/ to the
gh-pages branch, which GitHub Pages serves.
- Copy the current
ctl.ttltoversions/ctl-<old version>.ttl. - Edit
ctl.ttl. Updateowl:versionInfo,owl:versionIRI,owl:priorVersionanddcterms:modified. - Add the changes to
CHANGELOG.md. - Push to
main, and tag the commit withv<version>.
Hamborg, L. (2026). CTL: Control Logic Ontology (version 0.1.0). https://hamborg.github.io/ctl-ontology
Lasse Hamborg, Technical University of Denmark (DTU).