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-03.templ.eprq Maven / Gradle / Ivy

There is a newer version: 1.1
Show newest version
#
# Title: Vessel in Proximity
# Description: Emit an event when a Proximity event is detected with MMSI = {Defined by SAN} and distance <= 5 miles ( 5 * 1852 meters)
#
# TODO: Which stream should the complex event be in? New topic needed?
# TODO: Yiannis, you asked for "Name", but it is not part of the Proximity event, is it?
#

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

CONSTRUCT {
    :e rdf:type :VesselInProximity .
    :e :stream  .
	:e ais:MMSI %MMSI_FROM_SAN% .
	:e ais:nearbyMMSI ?nearbymmsi .
	:e ais:distance ?distance .
	:e ais:nearbySpeed ?nearbySpeed .
	:e ais:nearbyShipType ?nearbyShipType .
}
WHERE {
    EVENT ?id1 {
        ?e1 rdf:type :ProximityInfoEvent .
		?e1 :stream  .
		?e1 ais:distance ?distance .
		?e1 ais:MMSI %MMSI_FROM_SAN% .
		?e1 ais:nearbyMMSI ?nearbymmsi .
		?e1 ais:nearbySpeed ?nearbySpeed .
		?e1 ais:nearbyShipType ?nearbyShipType .
        }
		FILTER (?distance <= 5 * 1852)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy