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

play-commons-constants.1.0.source-code.play-epsparql-telco-recom-tweets-historic.eprq Maven / Gradle / Ivy

There is a newer version: 1.1
Show newest version
# 
# Title: Telco Use Case Twitter Recommendation incorporating historic events. 
#
# 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 sioc:content ?tweet .
	:e uctelco:action  .
	 rdf:type uctelco:OpenTwitter ;
		:screenName ?screenName .			
	:e :members ?e1, ?e2, ?e3 .
}
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 .
			}
	} ("PT1M"^^xsd:duration, sliding)
	GRAPH ?id4 {
		?e4 rdf:type :TwitterEvent .
		?e4 :stream  .
		?e4 :screenName ?screenName .
		?e4 uctelco:phoneNumber ?bob .
		?e4 sioc:content ?tweet .
		}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy