Skip to content

About

A lightweight control vocabulary (ctl) developed for the 'Multi-artefact to kg analysis' paper to describe VAV and valve control curves. CDL and ASHRAE 231P are far more detailed than a function description gives.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

CTL: Control Logic Ontology

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.

Repository layout

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.

Building the documentation locally

pip install -r scripts/requirements.txt
python scripts/build.py
# open docs/index.html

On 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.

Making a release

  1. Copy the current ctl.ttl to versions/ctl-<old version>.ttl.
  2. Edit ctl.ttl. Update owl:versionInfo, owl:versionIRI, owl:priorVersion and dcterms:modified.
  3. Add the changes to CHANGELOG.md.
  4. Push to main, and tag the commit with v<version>.

Citation

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

Author

Lasse Hamborg, Technical University of Denmark (DTU).

About

A lightweight control vocabulary (ctl) developed for the 'Multi-artefact to kg analysis' paper to describe VAV and valve control curves. CDL and ASHRAE 231P are far more detailed than a function description gives.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages