play-commons-constants.1.0.source-code.play-epsparql-iccs-aishub-03.templ.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: 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)
}