Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regenerate air quality sensor example #255

Merged
merged 2 commits into from
Apr 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions examples/air_quality_sensors/air_quality_sensor_example.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ bldg:building_1 a brick:Building ;
brick:hasPart bldg:floor_1 .

bldg:floor_1 a brick:Floor ;
brick:area [ brick:area 1000 ;
brick:hasUnit unit:M3 ] ;
brick:area [ brick:hasUnit unit:M3 ;
brick:value 1000 ] ;
brick:hasPart bldg:room_1 .

bldg:room_1 a brick:Office_Kitchen,
brick:Room ;
brick:area [ brick:area 40 ;
brick:hasUnit unit:M3 ] .
brick:area [ brick:hasUnit unit:M3 ;
brick:value 40 ] .
4 changes: 2 additions & 2 deletions examples/air_quality_sensors/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@
# can add information about the sq area of the room and the floor
# this nifty syntax requires brickschema>=0.3.2a1
room_area = [
(BRICK.area, Literal(40)),
(BRICK.value, Literal(40)),
(BRICK.hasUnit, UNIT["M3"]),
]
g.add((BLDG["room_1"], BRICK.area, room_area))

floor_area = [
(BRICK.area, Literal(1000)),
(BRICK.value, Literal(1000)),
(BRICK.hasUnit, UNIT["M3"]),
]
g.add((BLDG["floor_1"], BRICK.area, floor_area))
Expand Down