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

play-commons-constants.1.0.source-code.play-bdpl-crisis-03-drawgraph.eprq Maven / Gradle / Ivy

There is a newer version: 1.1
Show newest version
#
# Title: Crisis Use Case - 03 - Draw a Graph
#
# The output topic is moved to the default stream namespace because of a bug in cxf
#
# TODO: Stefan, can we aggregate all 5 values of ?value and feed it to an XPATH function e.g. create a long string with all of them?
# TODO: ROland the variables in the event need narrower scop otherwise all events in the window must the identical
#

PREFIX rdf:     
PREFIX uccrisis: 
PREFIX geo:     
PREFIX xsd:     
PREFIX :        

CONSTRUCT {
	:e rdf:type uccrisis:DrawGraphEvent .
	:e :stream  .
	:e uccrisis:unit "mSv" .
	:e uccrisis:value "TODO" .
	:e uccrisis:localisation ?localisation .
	:e :message "A graph representing 5 minutes worth of radiation measurements." .
}
WHERE {
	WINDOW {
		EVENT ?id1 {
			?e1 rdf:type uccrisis:MeasureEvent .
			?e1 :stream  .
			?e1 uccrisis:unit "mSv" .
			?e1 uccrisis:localisation ?localisation .
			?e1 uccrisis:value ?value .
		}
	} ("PT5M"^^xsd:duration, sliding)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy