This repository has been archived by the owner on Mar 11, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
substances.py
129 lines (127 loc) · 7.17 KB
/
substances.py
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
from rdflib import Graph, Literal, BNode, Namespace, RDF, URIRef
from rdflib.collection import Collection
from rdflib.extras.infixowl import Restriction
BRICK = Namespace("https://brickschema.org/schema/1.1.0/Brick#")
TAG = Namespace("https://brickschema.org/schema/1.1.0/BrickTag#")
BLDG = Namespace("https://brickschema.org/schema/1.1.0/ExampleBuilding#")
OWL = Namespace("http://www.w3.org/2002/07/owl#")
RDF = Namespace("http://www.w3.org/1999/02/22-rdf-syntax-ns#")
RDFS = Namespace("http://www.w3.org/2000/01/rdf-schema#")
SKOS = Namespace("http://www.w3.org/2004/02/skos/core#")
A = RDF.type
##### Defining substances
substances = {
"Fluid": {
"tags": [TAG.Fluid],
"subclasses": {
"Gas": {
"tags": [TAG.Fluid, TAG.Gas],
"subclasses": {
"Air": {
"tags": [TAG.Fluid, TAG.Gas, TAG.Air],
"subclasses": {
"Outside_Air": {
"tags": [TAG.Fluid, TAG.Gas, TAG.Air, TAG.Outside],
SKOS.definition: Literal("air external to a defined zone (e.g., corridors)."),
},
"Mixed_Air": {
"tags": [TAG.Fluid, TAG.Gas, TAG.Air, TAG.Mixed],
SKOS.definition: Literal("(1) air that contains two or more streams of air. (2) combined outdoor air and recirculated air."),
},
"Return_Air": {
"tags": [TAG.Fluid, TAG.Gas, TAG.Air, TAG.Return],
SKOS.definition: Literal("air removed from a space to be recirculated or exhausted. Air extracted from a space and totally or partially returned to an air conditioner, furnace, or other heating, cooling, or ventilating system."),
},
"Exhaust_Air": {
"tags": [TAG.Fluid, TAG.Gas, TAG.Air, TAG.Exhaust],
SKOS.definition: Literal("air that must be removed from a space due to contaminants, regardless of pressurization"),
},
"Supply_Air": {
"tags": [TAG.Fluid, TAG.Gas, TAG.Air, TAG.Supply],
SKOS.definition: Literal("(1) air delivered by mechanical or natural ventilation to a space, composed of any combination of outdoor air, recirculated air, or transfer air. (2) air entering a space from an air-conditioning, heating, or ventilating apparatus for the purpose of comfort conditioning. Supply air is generally filtered, fan forced, and either heated, cooled, humidified, or dehumidified as necessary to maintain specified conditions. Only the quantity of outdoor air within the supply airflow may be used as replacement air."),
},
},
},
"Steam": {
"tags": [TAG.Fluid, TAG.Gas, TAG.Steam],
SKOS.definition: Literal("water in the vapor phase."),
},
"Natural_Gas": {
"tags": [TAG.Fluid, TAG.Gas, TAG.Natural],
SKOS.definition: Literal("Fossil fuel energy source consisting largely of methane and other hydrocarbons"),
},
},
},
"Liquid": {
"tags": [TAG.Liquid],
"subclasses": {
"Gasoline": {
"tags": [TAG.Liquid, TAG.Gasoline],
SKOS.definition: Literal("Petroleum derived liquid used as a fuel source"),
},
"Oil": {
"tags": [TAG.Liquid, TAG.Oil],
"subclasses": {
"Fuel_Oil": {
"tags": [TAG.Liquid, TAG.Oil, TAG.Fuel],
SKOS.definition: Literal("Petroleum based oil burned for energy"),
}
},
},
"Water": {
"tags": [TAG.Liquid, TAG.Water],
SKOS.definition: Literal("transparent, odorless, tasteless liquid; a compound of hydrogen and oxygen (H2O), containing 11.188% hydrogen and 88.812% oxygen by mass; freezing at 32°F (0°C); boiling near 212°F (100°C)."),
"subclasses": {
"Chilled_Water": {
"tags": [TAG.Liquid, TAG.Water, TAG.Chilled],
SKOS.definition: Literal( "water used as a cooling medium (particularly in air-conditioning systems or in processes) at below ambient temperature."),
},
"Blowdown_Water": {
"tags": [TAG.Liquid, TAG.Water, TAG.Blowdown],
SKOS.definition: Literal("Water expelled from a system to remove mineral build up"),
},
"Condenser_Water": {
"tags": [TAG.Liquid, TAG.Water, TAG.Condenser],
SKOS.definition: Literal("Water used used to remove heat through condensation"),
},
"Domestic_Water": {
"tags": [TAG.Liquid, TAG.Water, TAG.Domestic],
SKOS.definition: Literal("Tap water for drinking, washing, cooking, and flushing of toliets"),
},
"Hot_Water": {
"tags": [TAG.Liquid, TAG.Water, TAG.Hot],
SKOS.definition: Literal("Hot water used for HVAC heating or supply to hot taps"),
},
"Makeup_Water": {
"tags": [TAG.Liquid, TAG.Water, TAG.Makeup],
SKOS.definition: Literal("Water used used to makeup water loss through leaks, evaporation, or blowdown"),
},
},
},
},
},
},
},
"Solid": {
"tags": [TAG.Solid],
"subclasses": {
"Ice": {
"tags": [TAG.Solid, TAG.Ice],
SKOS.definition: Literal("Water in its solid form"),
},
"Frost": {
"tags": [TAG.Solid, TAG.Frost],
},
"Hail": {
"tags": [TAG.Solid, TAG.Hail],
},
},
},
"Enthalpy": {
"tags": [TAG.Enthalpy],
SKOS.definition: Literal("(also known as heat content), thermodynamic quantity equal to the sum of the internal energy of a system plus the product of the pressure volume work done on the system. H = E + pv, where H = enthalpy or total heat content, E = internal energy of the system, p = pressure, and v = volume. (Compare to [[specific enthalpy]].)"),
},
"Luminance": {
"tags": [TAG.Luminance],
},
}