Skip to content

Instantly share code, notes, and snippets.

@gtfierro
Created October 13, 2021 23:02
Show Gist options
  • Save gtfierro/9a2d787a9a3d738d57f029788a8448bf to your computer and use it in GitHub Desktop.
Save gtfierro/9a2d787a9a3d738d57f029788a8448bf to your computer and use it in GitHub Desktop.
@prefix brick: <https://brickschema.org/schema/Brick#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix unit: <http://qudt.org/vocab/unit/> .
@prefix : <urn:example#> .
# a => rdf:type
:bldg a brick:Building ;
rdfs:label "My Building" .
:floor1 a brick:Floor ;
rdfs:label "First Floor" ;
brick:isPartOf :bldg .
:floor2 a brick:Floor ;
rdfs:label "Second Floor" ;
brick:hasPart :room1, :room2 ;
brick:isPartOf :bldg .
:room1 a brick:Office_Kitchen ;
brick:area [
brick:value "10"^^xsd:integer ;
brick:hasUnit unit:M2 ;
]
.
:room2 a brick:Open_Office ;
brick:area :room2area .
:room2area brick:value "10"^^xsd:integer ;
brick:hasUnit unit:M2 .
:hvac-zone1 a brick:HVAC_Zone ;
brick:hasPart :room1, :room2 .
:lighting-zone1 a brick:Lighting_Zone ;
brick:isPartOf :room1 .
:lighting-zone2 a brick:Lighting_Zone ;
brick:isPartOf :room1 .
:ahu1 a brick:AHU ;
brick:feeds :vav1 .
:vav1 a brick:VAV ;
brick:hasPart :dmp1 ;
brick:hasPoint :sat1, :satsp1 ;
brick:feeds :hvac-zone1 .
:sat1 a brick:Supply_Air_Temperature_Sensor ;
brick:timeseries [
brick:hasTimeseriesId "6d8c3db7-fa5c-42b6-96d0-b228d27c322d" ;
brick:storedAt "postgres://1.2.2.34:5432/mydb" ;
] .
:sasp1 a brick:Supply_Air_Temperature_Setpoint .
:dmp1 a brick:Damper ;
brick:hasPoint :pos-cmd1 .
:pos-cmd1 a brick:Damper_Position_Command .
:led-fixture-1 a brick:Luminaire ;
brick:feeds :lighting-zone1 .
:led-fixture-2 a brick:Luminaire ;
brick:feeds :lighting-zone2 .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment