play-commons-constants.1.0.source-code.play-bdpl-crisis-02a-winddirection.eprq Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of play-commons-constants Show documentation
Show all versions of play-commons-constants Show documentation
Some constants of important, shared values for the platform
#
# Title: Crisis Use Case - 02a - Wind Direction
#
# The output topic is moved to the default stream namespace because of a bug in cxf
#
PREFIX rdf:
PREFIX uccrisis:
PREFIX geo:
PREFIX xsd:
PREFIX :
CONSTRUCT {
:e rdf:type uccrisis:AlertEvent .
:e :stream .
:e uccrisis:description "MF Alert" .
:e uccrisis:localisation ?localisation .
:e :message "MF Alert, a change in wind direction was detected." .
:e :members ?e1 , ?e2 .
}
WHERE {
EVENT ?id1 {
?e1 rdf:type uccrisis:MeasureEvent .
?e1 :stream .
?e1 uccrisis:unit "direction" .
?e1 uccrisis:localisation ?localisation .
?e1 uccrisis:value ?value1 .
}
SEQ
EVENT ?id2 {
?e2 rdf:type uccrisis:MeasureEvent .
?e2 :stream .
?e2 uccrisis:unit "direction" .
?e2 uccrisis:localisation ?localisation .
?e2 uccrisis:value ?value2 .
}
FILTER (?value2 != ?value1)
}