Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
130 lines (127 sloc) 7.17 KB
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],
},
}
You can’t perform that action at this time.