Skip to content
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
1 change: 1 addition & 0 deletions bricksrc/definitions.csv
Original file line number Diff line number Diff line change
Expand Up @@ -1121,3 +1121,4 @@ https://brickschema.org/schema/Brick#measures,The subject measures a quantity or
https://brickschema.org/schema/Brick#regulates,The subject contributes to or performs the regulation of the substance given by the object,
https://brickschema.org/schema/Brick#storedAt,A reference to where the data for this TimeseriesReference is stored,
https://brickschema.org/schema/Brick#timeseries,Relates a Brick point to the TimeseriesReference that indicates where and how the data for this point is stored,
https://brickschema.org/schema/Brick#Tablet, Tablet
1 change: 1 addition & 0 deletions bricksrc/equipment.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Set up subclasses of the equipment superclass
"""
equipment_subclasses = {
"Tablet": {"tags": [TAG.Tablet, TAG.Equipment, TAG.Electronics]},
"HVAC_Equipment": {"tags": [TAG.HVAC, TAG.Equipment]},
"Weather_Station": {"tags": [TAG.Weather, TAG.Station, TAG.Equipment]},
"Electrical_Equipment": {
Expand Down
11 changes: 11 additions & 0 deletions bricksrc/quantities.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,17 @@ def get_units(qudt_quantity):
quantity_definitions = {
"Air_Quality": {
SKOS.narrower: {
"Ammonia_Concentration": {
QUDT.applicableUnit: [UNIT.PPM, UNIT.PPB],
QUDT.hasDimensionVector: QUDTDV["A0E0L0I0M0H0T0D1"],
SKOS.definition: Literal(
"The concentration of Ammonia in a medium"
),
RDFS.isDefinedBy: URIRef(str(BRICK).strip("#")),
RDFS.label: Literal("AmmoniaConcentration"),
SKOS.broader: QUDTQK.DimensionlessRatio,

},
"CO_Concentration": {
QUDT.applicableUnit: [UNIT.PPM, UNIT.PPB],
QUDT.hasDimensionVector: QUDTDV["A0E0L0I0M0H0T0D1"],
Expand Down
9 changes: 9 additions & 0 deletions bricksrc/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@
"Air_Quality_Sensor": {
"tags": [TAG.Point, TAG.Sensor, TAG.Air, TAG.Quality],
"subclasses": {
"Ammonia_Sensor": {
"tags": [TAG.Point, TAG.Ammonia, TAG.Sensor],
"substances": [
[BRICK.measures, BRICK.Air],
[BRICK.measures, BRICK.Ammonia_Concentration],
],
},

"CO_Sensor": {
"tags": [TAG.Point, TAG.Sensor, TAG.CO],
"substances": [
Expand Down Expand Up @@ -325,6 +333,7 @@
},
},
},

"Angle_Sensor": {
"substances": [[BRICK.measures, BRICK.Angle]],
"subclasses": {
Expand Down