Stream Reasoning For Linked Data
- M. Balduini, J-P Calbimonte, O. Corcho,
- D. Dell'Aglio, E. Della Valle, and J.Z. Pan
RDF stream processing models Daniele DellAglio , - - PowerPoint PPT Presentation
Stream Reasoning For Linked Data M. Balduini, J-P Calbimonte, O. Corcho, D. Dell'Aglio, E. Della Valle, and J.Z. Pan http://streamreasoning.org/sr4ld2013 RDF stream processing models Daniele DellAglio , daniele.dellaglio@polimi.it Jean-Paul
http://streamreasoning.org/sr4ld2013
– “[source http://streamreasoning.org/sr4ld2013]” at the end of each reused slide – a credits slide stating
Data 2013” by M. Balduini, J-P Calbimonte, O. Corcho, D. Dell'Aglio,
2
http://streamreasoning.org/sr4ld2013
3
http://streamreasoning.org/sr4ld2013
4
http://streamreasoning.org/sr4ld2013
5
http://streamreasoning.org/sr4ld2013
6
http://streamreasoning.org/sr4ld2013
7
http://streamreasoning.org/sr4ld2013
e1 :alice :isWith :bob e2 :alice :isWith :carl e3 :bob :isWith :diana e4 :diana :isWith :carl
8
http://streamreasoning.org/sr4ld2013
e1 e2 e3 e4
t 3 6 9 1 :alice :isWith :bob :alice :isWith :carl :bob :isWith :diana :diana :isWith :carl
9
http://streamreasoning.org/sr4ld2013
t 3 6 9 1 :alice :isWith :bob :alice :isWith :carl :bob :isWith :diana :diana :isWith :carl
10
http://streamreasoning.org/sr4ld2013
Triple Graph No timestamp Instans One timestamp C-SPARQL CQELS SPARQLstream SLD Two timestamps EP-SPARQL/Etalis
11
http://streamreasoning.org/sr4ld2013
e1 e2 e3 e4
t 3 6 9 1 :alice :isWith :bob :alice :isWith :carl :bob :isWith :diana :diana :isWith :carl
12
http://streamreasoning.org/sr4ld2013
13
http://streamreasoning.org/sr4ld2013
14
http://streamreasoning.org/sr4ld2013
15
http://streamreasoning.org/sr4ld2013
infinite unbounded bag finite bag Mapping: T R
stream-to-relation relation-to-stream relation-to-relation
Stream Relation R(t)
16
http://streamreasoning.org/sr4ld2013
S2R Window operators R2S operators SPARQL operators
17
http://streamreasoning.org/sr4ld2013
e1 e2 e3 e4
t 3 6 9 1 e1 e2 e3 e5
t 3 6 9 1 e5 e4 :bob :diana
:bob
18
http://streamreasoning.org/sr4ld2013
S2R Window operators R2S operators SPARQL operators
19
http://streamreasoning.org/sr4ld2013
20
http://streamreasoning.org/sr4ld2013
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]
21
http://streamreasoning.org/sr4ld2013
CONSTRUCT RSTREAM {?a :prop ?b } FROM …. WHERE ….
22
http://streamreasoning.org/sr4ld2013
e1 e2 e3 e4
3 6 9 1
23
http://streamreasoning.org/sr4ld2013
RDF Store Stream processor
C-SPARQL query continuous results
Native RSP
CQELS query continuous results
translator
24
http://streamreasoning.org/sr4ld2013
Prolog engine
EP-SPARQL query continuous results
translator DSMS/CEP
SPARQLStream query continuous results
rewriter R2RML mappings
25
http://streamreasoning.org/sr4ld2013
SELECT ?sensor FROM NAMED STREAM <http://www.cwi.nl/SRBench/observations> [NOW-3 HOURS SLIDE 10 MINUTES] WHERE { ?observation om-owl:procedure ?sensor ;
GROUP BY ?sensor HAVING ( AVG(?value) >= "74"^^xsd:float ) SELECT ?sensor WHERE { STREAM <http://www.cwi.nl/SRBench/observations> [RANGE 10800s SLIDE 600s] { ?observation om-owl:procedure ?sensor ;
GROUP BY ?sensor HAVING ( AVG(?value) >= "74"^^xsd:float ) SELECT ?sensor FROM STREAM <http://www.cwi.nl/SRBench/observations> [RANGE 1h STEP 10m] WHERE { ?observation om-owl:procedure ?sensor ;
GROUP BY ?sensor HAVING ( AVG(?value) >= "74"^^xsd:float )
26
http://streamreasoning.org/sr4ld2013
Model Continuous execution Union, Join, Optional, Filter Aggregates Time window Triple window R2S operator Sequence, Co-ocurrence Time function TA- SPARQL TA-RDF ✗ ✔ Limited ✗ ✗ ✗ ✗ ✗ tSPARQL tRDF ✗ ✔ ✗ ✗ ✗ ✗ ✗ ✗ Streaming SPARQL RDF Stream ✔ ✔ ✗ ✔ ✔ ✗ ✗ ✗ C-SPARQL RDF Stream ✔ ✔ ✔ ✔ ✔ ✗ ✗ ✔ CQELS RDF Stream ✔ ✔ ✔ ✔ ✔ ✗ ✗ ✗ SPARQLStr eam (Virtual) RDF Stream ✔ ✔ ✔ ✔ ✗ ✔ ✗ ✗ EP- SPARQL RDF Stream ✔ ✔ ✔ ✗ ✗ ✗ ✔ ✗ Instans RDF ✔ ✔ ✔ ✗ ✗ ✗ ✗ ✗
27
http://streamreasoning.org/sr4ld2013
28
http://streamreasoning.org/sr4ld2013
29
S1 S2 S3 S4
t 3 6 9 1
System 1: :hall [5] :kitchen [10] System 2: :hall [3] :kitchen [10]
http://streamreasoning.org/sr4ld2013
R2R operator S3 S4 S5 S6 S7 S8 S9 S10 S11 S12
S1 S2 W(ω,β) β ω t0: When does the windowing start? (internal window param) TICK: When the data stream are inserted in the window? Triple-based vs graph-based REPORT: When is the window content made available to the R2R operator? Non-empty content, Content-change, Window-close, Periodic t WINDOW CONTENT: Which stream elements are in the window?
30
http://streamreasoning.org/sr4ld2013
CQELS C-SPARQL SPARQLstream Report Content-change Window-close Non-empty content Window-close Non-empty content Tick Tuple-driven Tuple-driven Tuple-driven Empty relation notification No Yes No
31
http://streamreasoning.org/sr4ld2013
32
http://streamreasoning.org/sr4ld2013
33
System Q1 Q2 Q3 Q4 Q5 Q6 Q7 Q8 Q9 Q10 Q11 Q12 Q13 Q14 Q15 Q16 Q17 SPARQLStream PP A G G G G,IF SD SD PP,SD PP,SD PP,SD PP,SD PP,SD PP,SD CQELS PP A D/N IF PP PP PP PP PP PP C-SPARQL PP A D IF PP PP PP PP PP PP
Ask Dstream Group by and aggregations IF expression Negation Property Path Static Dataset
http://streamreasoning.org/sr4ld2013
34
http://streamreasoning.org/sr4ld2013
continuous query language for RDF data streams. IJSC 4(1) (2010) 3–25
model for analysis of the execution semantics of stream processing systems. PVLDB 3(1) (2010) 232–243
for the Semantic Sensor Web. IJSWIS 8(1) (2012) 43–63
adaptive approach for unified processing of linked streams and linked data. In:
for event processing and stream reasoning. In: WWW. (2011) 635–644
35