play-commons-constants.1.0.source-code.play-epsparql-clic2call-plus-tweet.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: 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)
}
}