All Downloads are FREE. Search and download functionalities are using the official Maven repository.

play-commons-constants.1.0.source-code.play-bdpl-crisis-02b-windintensity.eprq Maven / Gradle / Ivy

There is a newer version: 1.1
Show newest version
#
# Title: Crisis Use Case - 02b - Wind Intensity
#
# The output topic is moved to the default stream namespace because of a bug in cxf
#
# TODO: Stefan, can we see all variables where the filters need them?
#

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 intensity was detected." .
	:e :members ?e1 , ?e2 , ?e3 , ?e4 , ?e5 .
}
WHERE {
	EVENT ?id1 {
		?e1 rdf:type uccrisis:MeasureEvent .
		?e1 :stream  .
		?e1 uccrisis:unit "km/h" .
		?e1 uccrisis:localisation ?localisation .
		?e1 uccrisis:value ?value1 .
	}
	SEQ
	EVENT ?id2 {
		?e2 rdf:type uccrisis:MeasureEvent .
		?e2 :stream  .
		?e1 uccrisis:unit "km/h" .
		?e2 uccrisis:localisation ?localisation .
		?e2 uccrisis:value ?value2 .
		}
		FILTER (?value2 > ?value1)
	SEQ
	EVENT ?id3 {
		?e3 rdf:type uccrisis:MeasureEvent .
		?e3 :stream  .
		?e1 uccrisis:unit "km/h" .
		?e3 uccrisis:localisation ?localisation .
		?e3 uccrisis:value ?value3 .
		}
		FILTER (?value3 > ?value2)
	SEQ
	EVENT ?id4 {
		?e4 rdf:type uccrisis:MeasureEvent .
		?e4 :stream  .
		?e1 uccrisis:unit "km/h" .
		?e4 uccrisis:localisation ?localisation .
		?e4 uccrisis:value ?value4 .
		}
		FILTER (?value4 > ?value3)
	SEQ
	EVENT ?id5 {
		?e5 rdf:type uccrisis:MeasureEvent .
		?e5 :stream  .
		?e1 uccrisis:unit "km/h" .
		?e5 uccrisis:localisation ?localisation .
		?e5 uccrisis:value ?value5 .
		}
		FILTER (?value5 > ?value4 && ?value5 > ?value1 + 10)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy