Tutorial on RDF Stream Processing 2016
M.I. Ali, J-P Calbimonte, D. Dell'Aglio,
- E. Della Valle, and A. Mauri
http://streamreasoning.org/events/rsp2016
RSP models
Daniele Dell’Aglio
dellaglio@ifi.uzh.ch http://dellaglio.org @dandellaglio
RSP models Daniele DellAglio dellaglio@ifi.uzh.ch - - PowerPoint PPT Presentation
Tutorial on RDF Stream Processing 2016 M.I. Ali, J-P Calbimonte, D. Dell'Aglio, E. Della Valle, and A. Mauri http://streamreasoning.org/events/rsp2016 RSP models Daniele DellAglio dellaglio@ifi.uzh.ch http://dellaglio.org @dandellaglio
http://streamreasoning.org/events/rsp2016
dellaglio@ifi.uzh.ch http://dellaglio.org @dandellaglio
http://streamreasoning.org/events/rsp2016
– “[source http://streamreasoning.org/events/rsp2016]” at the end of each reused slide – a credits slide stating
by M.I. Ali, J-P Calbimonte, D. Dell'Aglio, E. Della Valle and Andrea Mauri http://streamreasoning.org/events/rsp2016
2
http://streamreasoning.org/events/rsp2016
3
http://streamreasoning.org/events/rsp2016
4
http://streamreasoning.org/events/rsp2016
5
http://streamreasoning.org/events/rsp2016
6
http://streamreasoning.org/events/rsp2016
7
http://streamreasoning.org/events/rsp2016
8
http://streamreasoning.org/events/rsp2016
9
e1 :alice :isWith :bob e2 :alice :isWith :carl e3 :bob :isWith :diana e4 :diana :isWith :carl
http://streamreasoning.org/events/rsp2016
10
e1 e2 e3 e4
t 3 6 9 1 :alice :isWith :bob :alice :isWith :carl :bob :isWith :diana :diana :isWith :carl
http://streamreasoning.org/events/rsp2016
11
t 3 6 9 1 :alice :isWith :bob :alice :isWith :carl :bob :isWith :diana :diana :isWith :carl
http://streamreasoning.org/events/rsp2016
12
http://streamreasoning.org/events/rsp2016
13
http://streamreasoning.org/events/rsp2016
14
http://streamreasoning.org/events/rsp2016
15
e1 e2 e3 e4
t 3 6 9 1 :alice :isWith :bob :alice :isWith :carl :bob :isWith :diana :diana :isWith :carl
http://streamreasoning.org/events/rsp2016
16
infinite unbounded sequence finite bag Mapping: T R
stream-to-relation relation-to-stream relation-to-relation
Stream Relation R(t) Relational algerbra *Stream operators Sliding windows
http://streamreasoning.org/events/rsp2016
17
S2R operators R2S operators SPARQL operators
*Stream operators Sliding windows
http://streamreasoning.org/events/rsp2016
18
R2R operator
S3 S4 S5 S6 S7 S8 S9 S10 S11 S12
S1 S2 W(ω,β) β ω t width slide
http://streamreasoning.org/events/rsp2016
19
R2R operator
S3 S4 S5 S6 S7 S8 S9 S10 S11 S12
S1 S2 W(ω,β) β ω t width slide
http://streamreasoning.org/events/rsp2016
20
R2R operator
S3 S4 S5 S6 S7 S8 S9 S11 S12
S1 S2 W(ω,β) Slide of β tuples ω tuples in the window t Contemporaneity implies a non-deterministic selection
http://streamreasoning.org/events/rsp2016
21
http://streamreasoning.org/events/rsp2016
– An RDF stream? It depends by the Query Form
22 S2R operators R2S operators SPARQL operators
http://streamreasoning.org/events/rsp2016
23
SELECT ?a ?b … FROM …. WHERE …. CONSTRUCT {?a :prop ?b } FROM …. WHERE …. a … b… [t1] a … b… a … b… [t3] a … b… [t5] a … b… [t7] <… :prop … > [t1] <… :prop … > <… :prop … > [t3] <… :prop … > [t5] <… :prop … > [t7]
http://streamreasoning.org/events/rsp2016
previous step, i.e. streams out what is new
step, i.e. streams out what is old
24 CONSTRUCT RSTREAM {?a :prop ?b } FROM …. WHERE ….
http://streamreasoning.org/events/rsp2016
25
A B C D
3 6 9 1
http://streamreasoning.org/events/rsp2016
26
A B C D
3 6 9 1
http://streamreasoning.org/events/rsp2016
t 3 6 9 1 2 4 5 7 8 10
P1 SEQ P3 P2 AND P3 P2 OR P3 P1 PAR P2 P3 STARTS P1 P1 EQUALS P3 NOT(P3 ).[P1 , P1] P3 FINISHES P2 P2 MEETS P3
http://streamreasoning.org/events/rsp2016
28
http://streamreasoning.org/events/rsp2016
29
RDF Store Stream processor
C-SPARQL query continuous results
Native RSP
CQELS query continuous results
translator
http://streamreasoning.org/events/rsp2016
30
DSMS/CEP
SPARQLStream query continuous results
rewriter R2RML mappings Prolog engine
EP-SPARQL query continuous results
translator
http://streamreasoning.org/events/rsp2016
Model Continuous execution Union, Join, Optional, Filter Aggregates Time window Triple window R2S operator Sequence, Co-ocurrence TA- SPARQL TA-RDF ✗ ✔ Limited ✗ ✗ ✗ ✗ tSPARQL tRDF ✗ ✔ ✗ ✗ ✗ ✗ ✗ Streaming SPARQL RDF Stream ✔ ✔ ✗ ✔ ✔ ✗ ✗ C-SPARQL RDF Stream ✔ ✔ ✔ ✔ ✔ Rstream
time function CQELS RDF Stream ✔ ✔ ✔ ✔ ✔ Istream
✗ SPARQLStr eam (Virtual) RDF Stream ✔ ✔ ✔ ✔ ✗ ✔ ✗ EP- SPARQL RDF Stream ✔ ✔ ✔ ✗ ✗ ✗ ✔ Instans RDF ✔ ✔ ✔ ✗ ✗ ✗ ✗
31
http://streamreasoning.org/events/rsp2016
dellaglio@ifi.uzh.ch http://dellaglio.org @dandellaglio
http://streamreasoning.org/events/rsp2016
stream to complex event processing. ACM Comput. Surv. 44(3): 15 (2012)
for analysis of the execution semantics of stream processing systems. PVLDB 3(1) (2010) 232–243
continuous query language for RDF data streams. IJSC 4(1) (2010) 3–25
the Semantic Sensor Web. IJSWIS 8(1) (2012) 43–63
approach for unified processing of linked streams and linked data. In: ISWC. (2011) 370–388
event processing and stream reasoning. In: WWW. (2011) 635–644
Streaming RDF/SPARQL Benchmark. International Semantic Web Conference (1) 2012: 641-657
Fink: Linked Stream Data Processing Engines: Facts and Figures. International Semantic Web Conference (2) 2012: 300-312
Valle: On Correctness in RDF Stream Processor Benchmarking. International Semantic Web Conference (2) 2013: 326-342
33