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

play-commons-constants.1.0.source-code.play-epsparql-clic2call-plus-tweet.eprq Maven / Gradle / Ivy

There is a newer version: 1.1
Show newest version
#
# Title: Clic2Call plus a historic Tweet
#

PREFIX rdf:    
PREFIX uctelco: 
PREFIX geo:    
PREFIX sioc:   
PREFIX xsd:    
PREFIX :       

CONSTRUCT {
    :e rdf:type :UcTelcoClic2Call .
    :e :stream .
    :e uctelco:callerPhoneNumber ?alice .
    :e uctelco:calleePhoneNumber ?bob .
    :e :message "The caller tried to reach the callee several times within 1 minute with no success." .
    :e sioc:content ?tweetContent .
	:e :members ?e1, ?e2.
}
WHERE {
    WINDOW {
        EVENT ?id1 {
            ?e1 rdf:type :UcTelcoCall .
            ?e1 :stream  .
            ?e1 uctelco:callerPhoneNumber ?alice .
            ?e1 uctelco:calleePhoneNumber ?bob .
            ?e1 uctelco:direction ?direction .
            ?e1 :endTime ?firstEvent.
            }
        SEQ
        EVENT ?id2 {
            ?e2 rdf:type :UcTelcoCall .
            ?e2 :stream  .
            ?e2 uctelco:callerPhoneNumber ?alice .
            ?e2 uctelco:calleePhoneNumber ?bob .
            ?e2 uctelco:direction ?direction .
            }
    } ("PT1M"^^xsd:duration, sliding)
    GRAPH ?id3 {
        ?e3 rdf:type :TwitterEvent .
        ?e3 :stream  .
        ?e3 :endTime ?tweetTime .
		?e3 :test ?firstEvent .
        ?e3 sioc:content ?tweetContent
        FILTER (?tweetTime > ?firstEvent)
    }   
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy