play-commons-constants.1.0.source-code.play-bdpl-crisis-03-drawgraph.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 - 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)
}