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

play-commons-constants.1.0.source-code.play-epsparql-m12-jeans-example-query.eprq Maven / Gradle / Ivy

There is a newer version: 1.1
Show newest version
#
# Title: M12 Jeans Example
#

PREFIX rdf:    
PREFIX user:   
PREFIX s:      
PREFIX :       

CONSTRUCT {
	:e rdf:type :FacebookCepResult .
	:e :stream  .
	:e user:name ?friend1 , ?friend2 , ?friend3 .
	:e :status ?about1 , ?about2 , ?about3 .
	:e :members ?e1, ?e2, ?e3 .
}
WHERE {
	WINDOW {
		EVENT ?id1 {
			?e1 rdf:type :FacebookStatusFeedEvent .
			?e1 :stream  .
			?e1 :status ?about1 .
			?e1 user:name ?friend1 .
			}
			FILTER contains(?about1, "JEANS")
		SEQ
		EVENT ?id2 {
			?e2 rdf:type :FacebookStatusFeedEvent .
			?e2 :stream  .
			?e2 :status ?about2 .
			?e2 user:name ?friend2 .
			}
			FILTER contains(?about2, "JEANS")
		SEQ
		EVENT ?id3 {
			?e3 rdf:type :FacebookStatusFeedEvent .
			?e3 :stream  .
			?e3 :status ?about3 .
			?e3 user:name ?friend3 .
			}
			FILTER contains(?about3, "JEANS")
	} ("PT30M"^^xsd:duration, sliding)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy