Listing 3.ConstructCallNurseAction query running on the Local Reasoning Service (LRS) component. |
-
1
CONSTRUCT {
-
2
_:f rdf:type ?t1 ; General:hasId [ General:hasID ?id ] ;
-
3
sosa:madeBySensor ?sen ;
-
4
SSNiot:hasSolution [
-
5
rdf:type SSNiot:Solution ;
-
6
SSNiot:requiresAction [
-
7
rdf:type NurseCall:CallNurseAction ;
-
8
General:hasStatus TaskAccio:New ] ] .
-
9
}
-
10
WHERE {
-
11
{
-
12
?f1 rdf:type ?t1 ; General:hasId ?idobj ; sosa:madeBySensor ?sen .
-
13
?idobj General:hasID ?id . ?sen SSNiot:isSubsystemOf ?sys .
-
14
?t1 rdfs:subClassOf SSNiot:DetectedFault .
-
15
}
-
16
-
17
FILTER NOT EXISTS { ?ble_ob1 rdf:type NurseCall:NursePresentObservation . }
-
18
-
19
FILTER NOT EXISTS {
-
20
?f3 SSNiot:hasSolution ?s1 ; General:hasId ?f3_idobj .
-
21
?f3_idobj General:hasID ?id .
-
22
}
-
23
-
24
FILTER NOT EXISTS {
-
25
{
-
26
?f2 rdf:type ?t1 ; SSNiot:hasSolution ?s2 .
-
27
?s2 SSNiot:requiresAction ?a2 .
-
28
?a2 rdf:type NurseCall:CallNurseAction,
-
29
TaskAccio:NewOrActiveOrAssignedAction .
-
30
}
-
31
FILTER (?f1 != ?f2)
-
32
}
-
33
}
|