Repository navigation
Expand file tree
/
Copy pathdefault_entities.py
More file actions
executable file
·157 lines (122 loc) · 4.17 KB
/
Copy pathdefault_entities.py
File metadata and controls
executable file
·157 lines (122 loc) · 4.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# coding: utf-8
# # Thing
# In[1]:
thing = {
"name": "TECO DustTracker",
"description": "Version 1.0"
}
# # Datastreams
# In[2]:
datastream_PM10 = {
"name": "PM10 Datastream",
"description": "Collection of PM10 measurements",
"unitOfMeasurement": {
"name": "microgram per cubic meter",
"symbol": "ug/m^3",
"definition": "none"
},
"observationType": "http://www.opengis.net/def/observationType/OGC-OM/2.0/OM_Measurement"
}
datastream_PM25 = {
"name": "PM2.5 Datastream",
"description": "Collection of PM2.5 measurements",
"unitOfMeasurement": {
"name": "microgram per cubic meter",
"symbol": "ug/m^3",
"definition": "none"
},
"observationType": "http://www.opengis.net/def/observationType/OGC-OM/2.0/OM_Measurement"
}
datastream_temp = {
"name": "Temperature Datastream",
"description": "Collection of temperature measurements",
"unitOfMeasurement": {
"name": "degree Celsius",
"symbol": "degC",
"definition": "http://www.qudt.org/qudt/owl/1.0.0/unit/Instances.html#DegreeCelsius"
},
"observationType": "http://www.opengis.net/def/observationType/OGC-OM/2.0/OM_Measurement"
}
datastream_hum = {
"name": "Humidity Datastream",
"description": "Collection of humidity measurements",
"unitOfMeasurement": {
"name": "percent",
"symbol": "%",
"definition": "http://www.qudt.org/qudt/owl/1.0.0/unit/Instances.html#Percent"
},
"observationType": "http://www.opengis.net/def/observationType/OGC-OM/2.0/OM_Measurement"
}
datastream_atpress = {
"name": "Atmospheric Pressure Datastream",
"description": "Collection of atmospheric Pressure measurements",
"unitOfMeasurement": {
"name": "Pascal",
"symbol": "Pa",
"definition": "http://www.qudt.org/qudt/owl/1.0.0/unit/Instances.html#Pascal"
},
"observationType": "http://www.opengis.net/def/observationType/OGC-OM/2.0/OM_Measurement"
}
# # Observed Properties
# In[3]:
observedproperty_PM10 = {
"name": "PM10",
"description": "Particulate matter with an approximate diameter of less than 10 micrometers",
"definition": "https://www.eea.europa.eu/themes/air/air-quality/resources/glossary/pm10",
"@iot.id": "PM10"
}
observedproperty_PM25 = {
"name": "PM2.5",
"description": "Particulate matter with an approximate diameter of less than 2.5 micrometers",
"definition": "https://www.eea.europa.eu/themes/air/air-quality/resources/glossary/pm10",
"@iot.id": "PM25"
}
observedproperty_temp = {
"name": "Temperature",
"description": "The degree or intensity of heat present in the area",
"definition": "http://www.qudt.org/qudt/owl/1.0.0/quantity/Instances.html#AreaTemperature",
"@iot.id": "temperature"
}
observedproperty_hum = {
"name": "Humidity",
"description": "Absolute humidity is the mass of water in a particular volume of air.",
"definition": "http://www.qudt.org/qudt/owl/1.0.0/quantity/Instances.html#AbsoluteHumidity",
"@iot.id": "humidity"
}
observedproperty_atpress = {
"name": "Atmospheric Pressure",
"description": "The pressure exerted at a point due to the presence of an atmosphere",
"definition": "http://www.qudt.org/qudt/owl/1.0.0/quantity/Instances.html#AtmosphericPressure",
"@iot.id": "atmospheric_pressure"
}
# # Sensors
# In[4]:
sensor_SDS011 = {
"name": "Nova SDS011",
"description": "Particulate matter sensor for PM10 and PM2.5",
"encodingType": "application/pdf",
"metadata": "http://www.teco.edu/~koepke/SDS011.pdf",
"@iot.id": "SDS011"
}
sensor_BME280 = {
"name": "Bosch BME280",
"description": "Temperature, humidity and atmospheric pressure sensor",
"encodingType": "application/pdf",
"metadata": "http://www.teco.edu/~koepke/BME280.pdf",
"@iot.id": "BME280"
}
# # Events
# In[5]:
event = {
"phenomenonTime": "1963-11-22T18:30:34.000Z",
"result": -1.0,
"FeatureOfInterest": {
"name": "Dallas",
"description": "Dealey Plaza",
"encodingType": "application/vnd.geo+json",
"feature": {
"type": "Point",
"coordinates": [-96.80867, 32.77903]
}
}
}