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

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

There is a newer version: 1.1
Show newest version
#
# 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)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy