play-commons-constants.1.0.source-code.play-epsparql-m12-jeans-example-query.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: 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)
}