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
/
location.py
63 lines (60 loc) · 1.48 KB
/
location.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
from rdflib import Graph, Literal, BNode, Namespace, RDF, URIRef
from rdflib.collection import Collection
from rdflib.extras.infixowl import Restriction
from namespaces import *
"""
Location class structure
"""
location_subclasses = {
"Building": {
"tags": [ TAG.Site ],
},
"Floor": {
"tags": [ TAG.Floor, TAG.Location ],
},
"Roof": {
"tags": [ TAG.Roof, TAG.Location ],
},
"Basement": {
"tags": [ TAG.Basement, TAG.Location ],
},
"Outside": {
"tags": [ TAG.Outside, TAG.Location ],
},
"City": {
"tags": [ TAG.City, TAG.Location ],
},
"Wing": {
"tags": [ TAG.Wing, TAG.Location ],
},
"Space": {
"tags": [ TAG.Space, TAG.Location ],
},
"Zone": {
"tags": [ TAG.Zone, TAG.Location ],
"subclasses": {
"HVAC_Zone": {
"tags": [ TAG.HVAC, TAG.Zone, TAG.Location ],
},
"Lighting_Zone": {
"tags": [ TAG.Lighting, TAG.Zone, TAG.Location ],
},
"Fire_Zone": {
"tags": [ TAG.Fire, TAG.Zone, TAG.Location ],
},
},
},
"Room": {
"subclasses": {
"Laboratory": {
"subclasses": {
"Freezer": {},
"Cold_Box": {},
"Hot_Box": {},
"Environment_Box": {},
},
},
"Server_Room": {},
},
},
}