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

play-commons-constants.1.0.source-code.play-epsparql-iccs-aishub-02.templ.eprq Maven / Gradle / Ivy

There is a newer version: 1.1
Show newest version
#
# Title: High Speed craft has low speed
# Description: Vessel event average speed<= 10 Knots during past 5 minutes AND vessel type = �High Speed� and MMSI = {Determined by SAN engine}
#
# TODO: Which stream should the complex event be in? New topic needed?
# TODO: AVG must be tested in EP-SPARQL
#

PREFIX ais:    
PREFIX rdf:    
PREFIX geo:    
PREFIX xsd:    
PREFIX :       

CONSTRUCT {
    :e rdf:type :HighSpeedCraftHasLowSpeed .
    :e :stream  .
	:e ais:MMSI %MMSI_FROM_SAN% .
	:e ais:speed ?speed .
}
WHERE {
    WINDOW {
        EVENT ?id1 {
            ?e1 rdf:type :VesselEvent .
			?e1 :stream  .
			?e1 ais:speed ?speed .
			?e1 ais:shipType "High Speed" .
			?e1 ais:MMSI %MMSI_FROM_SAN% .
            }
    } ("PT5M"^^xsd:duration, sliding)
	BIND(AVG(?speed) AS ?avgSpeed)
	FILTER (?avgSpeed <= 10)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy