play-commons-constants.1.0.source-code.play-epsparql-iccs-telco-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: "Friend�s callee transmits geolocation events - 2"
# Description: �A caller geolocation event AND a callee geolocation event WITHIN 1 min� (complex event, must include lat/lon of both simple events)
#
# TODO: Which stream should the complex event be in? New topic needed?
#
PREFIX rdf:
PREFIX uctelco:
PREFIX geo:
PREFIX xsd:
PREFIX :
CONSTRUCT {
:e rdf:type :CallerAndCalleeGeoLocation .
:e :stream .
:e uctelco:callerPhoneNumber %CALLER_NUMBER_FROM_SAN% .
:e uctelco:calleePhoneNumber %CALLEE_NUMBER_FROM_SAN% .
:e :calleeLocation ;
geo:lat ?Latitude1 ;
geo:long ?Longitude1 .
:e :callerLocation ;
geo:lat ?Latitude2 ;
geo:long ?Longitude2 .
:e :members ?e1, ?e2 .
}
WHERE {
WINDOW {
EVENT ?id1 {
?e1 rdf:type :UcTelcoGeoLocation .
?e1 :stream .
?e1 :location [ geo:lat ?Latitude1; geo:long ?Longitude1 ] .
?e1 uctelco:phoneNumber %CALLER_NUMBER_FROM_SAN% .
}
AND
EVENT ?id2 {
?e2 rdf:type :UcTelcoGeoLocation .
?e2 :stream .
?e2 :location [ geo:lat ?Latitude2; geo:long ?Longitude2 ] .
?e2 uctelco:phoneNumber %CALLEE_NUMBER_FROM_SAN% .
}
} ("PT1M"^^xsd:duration, sliding)
}