Listing 5.ConstructNurseCall query running on the Back-end Reasoning Service (BRS) component. |
CONSTRUCT {
_:c rdf:type NurseCall:ContextCall ;
NurseCall:callMadeBy ?sys ; General:hasStatus TaskAccio:New ;
General:hasId [ General:hasID ?f_id ] ;
TaskAccio:hasReason [ rdf:type ?t ] .
}
WHERE {
?f rdf:type ?t ; General:hasId ?f_idobj ;
SSNiot:hasSolution ?sol ; sosa:madeBySensor ?s .
?t rdfs:subClassOf SSNiot:DetectedFault . ?s SSNiot:isSubsystemOf ?sys .
?f_idobj General:hasID ?f_id . ?sol SSNiot:requiresAction ?act .
?act rdf:type NurseCall:CallNurseAction ; General:hasStatus TaskAccio:New .
}
|