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

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

There is a newer version: 1.1
Show newest version
#
# 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)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy