play-commons-constants.1.0.source-code.play-epsparql-telco-recom-tweets.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: Telco Use Case Twitter Recommendation incorporating
#
# TODO: -
PREFIX rdf:
PREFIX uctelco:
PREFIX geo:
PREFIX esr:
PREFIX xsd:
PREFIX user:
PREFIX sioc:
PREFIX :
CONSTRUCT {
:e rdf:type :UcTelcoEsrRecom .
:e :stream .
:e uctelco:callerPhoneNumber ?alice .
:e uctelco:calleePhoneNumber ?bob .
:e uctelco:direction ?direction .
:e uctelco:ackRequired "true"^^xsd:boolean .
:e uctelco:answerRequired "true"^^xsd:boolean .
:e :message "You missed three calls and one tweet, we recommend you to contact the caller e.g. via Twitter."^^xsd:string .
:e uctelco:action .
rdf:type uctelco:OpenTwitter ;
:screenName ?screenName .
:e :members ?e1, ?e2, ?e3 , ?e4 .
}
WHERE {
WINDOW {
EVENT ?id1 {
?e1 rdf:type :UcTelcoCall .
?e1 :stream .
?e1 uctelco:callerPhoneNumber ?alice .
?e1 uctelco:calleePhoneNumber ?bob .
?e1 uctelco:direction ?direction .
}
SEQ
EVENT ?id2 {
?e2 rdf:type :UcTelcoCall .
?e2 :stream .
?e2 uctelco:callerPhoneNumber ?alice .
?e2 uctelco:calleePhoneNumber ?bob .
?e2 uctelco:direction ?direction .
}
SEQ
EVENT ?id3 {
?e3 rdf:type :UcTelcoCall .
?e3 :stream .
?e3 uctelco:callerPhoneNumber ?alice .
?e3 uctelco:calleePhoneNumber ?bob .
?e3 uctelco:direction ?direction .
}
SEQ
EVENT ?id4 {
?e4 rdf:type :TwitterEvent .
?e4 :stream .
?e4 :screenName ?screenName .
?e4 uctelco:phoneNumber ?bob .
?e4 sioc:content ?tweet .
}
} ("PT1M"^^xsd:duration, sliding)
}