-
Notifications
You must be signed in to change notification settings - Fork 3
/
queries.toml
110 lines (105 loc) · 3.33 KB
/
queries.toml
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
[[nrel-example]]
description="Zone/room temperature sensors"
query="""
SELECT ?location ?sensor WHERE {
?sensor rdf:type/rdfs:subClassOf* s223:Sensor .
?sensor s223:observes ?property .
?property qudt:hasQuantityKind quantitykind:Temperature .
?sensor s223:hasObservationLocation ?location
}
"""
[[lbnl-bdg3-1]]
description="Zone/room temperature sensors"
query="""
SELECT ?location ?sensor WHERE {
?sensor rdf:type/rdfs:subClassOf* s223:Sensor .
?sensor s223:observes ?property .
?property qudt:hasQuantityKind quantitykind:Temperature .
?sensor s223:hasObservationLocation ?location
}
"""
[[lbnl-bdg4-1]]
description="Zone/room temperature sensors"
query="""
SELECT ?location ?sensor WHERE {
?sensor rdf:type/rdfs:subClassOf* s223:Sensor .
?sensor s223:observes ?property .
?property qudt:hasQuantityKind quantitykind:Temperature .
?sensor s223:hasObservationLocation ?location
}
"""
[[NIST-IBAL]]
description="Zone/room temperature sensors"
query="""
SELECT ?location ?sensor WHERE {
?sensor rdf:type/rdfs:subClassOf* s223:Sensor .
?sensor s223:observes ?property .
?property qudt:hasQuantityKind quantitykind:Temperature .
?sensor s223:hasObservationLocation ?location
}
"""
[[NIST-IBAL]]
description="Search for all the sensors along the connections and the associated property they're observing."
query="""
SELECT ?segment ?channel ?property_id WHERE {
?segment a s223:Connection .
?channel a/rdfs:subClassOf* s223:Sensor .
?channel s223:observes ?property_id .
}
"""
[[NIST-IBAL]]
description="Sensors in AHU1 and what units the properties are measured in"
query="""
SELECT ?channel ?property_id ?unit WHERE {
BIND(IBAL:AHU_1 as ?ahu) {
}
UNION {
?ahu s223:contains ?equipment .
?channel s223:hasObservationLocation ?equipment .
?channel s223:observes ?property_id .
?property_id qudt:hasUnit ?unit .
}
UNION {
?ahu s223:contains ?equipment .
?equipment s223:connectedThrough ?connection .
?channel s223:hasObservationLocation ?connection .
?channel s223:observes ?property_id .
?property_id qudt:hasUnit ?unit .
}
UNION {
?ahu s223:contains ?equipment .
?equipment s223:hasConnectionPoint ?connectionPoint .
?channel s223:hasObservationLocation ?connectionPoint .
?channel s223:observes ?property_id .
?property_id qudt:hasUnit ?unit .
}
}
"""
[[NIST-HPL]]
description="Find the downstream equipment for AHU1."
query="""
SELECT ?connectionDown ?connectionDown2 WHERE {
BIND(IBAL:AHU_1 as ?ahu) {
}
UNION {
?ahu s223:hasConnectionPoint ?connectionPoint .
?connectionPoint a s223:OutletConnectionPoint .
?connectionPoint s223:hasMedium s223:Medium-Air .
?connectionPoint s223:connectsThrough ?segment .
?segment s223:connectsTo ?junction .
?junction s223:connectedTo ?connectionDown .
?connectionDown a s223:TerminalUnit .
}
UNION {
?ahu s223:hasConnectionPoint ?connectionPoint .
?connectionPoint a s223:OutletConnectionPoint .
?connectionPoint s223:hasMedium s223:Medium-Air .
?connectionPoint s223:connectsThrough ?segment .
?segment s223:connectsTo ?junction .
?junction s223:connectedTo ?connectionDown .
?connectionDown a s223:Junction .
?connectionDown s223:connectedTo ?connectionDown2 .
?connectionDown2 a s223:TerminalUnit .
}
}
"""