SlideShare a Scribd company logo
Daniele Dell’Aglio
On Unified Stream Reasoning
The RDF Stream Processing realm
Daniele Dell’Aglio
WU Vienna, 18/02/2016
Daniele Dell’Aglio
Problem setting
Real time integration of huge volumes of dynamic data from
heterogeneous sources
– Traffic Prediction
– Social media analytics
– Personalised services
2
Daniele Dell’Aglio
Stream Reasoning
Stream Reasoning (SR): inference over streams of data
– Stream and Event Processing: real-time processing of
highly dynamic data
• Aggregations, filters
• Complex event detection
– Reasoning
• Access and integration of heterogeneous data
• Make explicit hidden information
3
Daniele Dell’Aglio
A non-comprehensive view on the
Stream Reasoning research so far
EuropeMapfromWikipedia
4
Daniele Dell’Aglio
The initial problem (1)
Where are Alice and Bob,
when they are together?
Let’s consider a tumbling
window W(ω=β=5)
Let’s execute the
experiment 4 times
Execution 1° answer 2° answer
1 :hall [6] :kitchen [11]
2 :hall [5] :kitchen [10]
3 :hall [6] :kitchen [11]
4 - [7] - [12]
S1 S2 S3 S4S
t3 6 91
{:alice :isIn :hall}
{:bob :isIn :hall}
{:alice :isIn :kitchen}
{:bob :isIn :kitchen}
Which is the correct answer?
width
slide
5
Daniele Dell’Aglio
The initial problem (2)
System 1 System 2
Which system behaves in the correct way?
Execution 1° answer 2° answer
1 :hall [6] :kitchen [11]
2 :hall [5] :kitchen [10]
3 :hall [6] :kitchen [11]
4 - [7] - [12]
Execution 1° answer 2° answer
1 :hall [3] :kitchen [9]
2 No answers
3 :hall [3] :kitchen [9]
4 No answers
S1 S2 S3 S4S
t3 6 91
{:bob :isIn :hall} {:bob :isIn :kitchen}
{:alice :isIn :hall} {:alice :isIn :kitchen}
6
Daniele Dell’Aglio
Problem
How to unify current Stream Reasoning techniques?
Why do we need it?
• Comparison and contrast
• Interoperability
• Study RDF Stream Processing related problems
• Standard RSP query language
7
Daniele Dell’Aglio
Streams Ontology
Background
data
Entailment
Regimes
RSEP-QL
Applications
RSP-QL
BGP evaluation
over streams BGP evaluation
over BKG
Event Pattern
detection operators
Model to express
continous queries
The entailment regimes
require an ontology and
provide more answers w.r.t.
Both RSP-QL and RSEP-QL
Not part of the today talk!
Contribution – RSEP-QL
A comprehensive model that formally defines the semantics of
RDF Stream Processing engines
8
Daniele Dell’Aglio
Q
(E, DS, QF)
From SPARQL…
Evaluator
Data layer
Result
Formatter
Ans(Q)RDF graphs
E
DS
QF
Query
Interface
9
Daniele Dell’Aglio
Q
(E, DS, QF)
…to RSEP-QL
Evaluator
Data layer
Result
Formatter
Ans(Q)RDF graphs
E
DS
QF
Continuous
EvaluatorET
RDF graphs
RDF streams
Query
Interface
SDS
Q
(E, SDS, QF)
Q
(E, SDS, ET, QF)
Q
(SE, SDS, ET, QF)
SE
10
Daniele Dell’Aglio
Sequence of timestamped
graphs (stream items)
Streaming Dataset – Time-based sliding window: 𝕎(ω,β,t0)
𝕎(3,1,1)
ω
t
width
S3
S4 S5 S6
S7
S8 S9
S10
S11
S
S1
S2
t0
11
Daniele Dell’Aglio
Sequence of timestamped
graphs (stream items)
Streaming Dataset – Time-based sliding window: 𝕎(ω,β,t0)
𝕎(3,1,1)
β
ω
t
widthslide
S3
S4 S5 S6
S7
S8 S9
S10
S11
S
S1
S2
t0
12
Daniele Dell’Aglio
Sequence of timestamped
graphs (stream items)
Streaming Dataset – Time-based sliding window: 𝕎(ω,β,t0)
𝕎(3,1,1)
β
ω
t
widthslide
S3
S4 S5 S6
S7
S8 S9
S10
S11
S
S1
S2
t0
13
Daniele Dell’Aglio
Streaming Dataset – Landmark window: 𝕃(t0)
𝕃(2)
t
S3
S4 S5 S6
S7
S8 S9
S10
S11
S
S1
S2
t0
14
Sequence of timestamped
graphs (stream items)
Daniele Dell’Aglio
Streaming Dataset – Landmark window: 𝕃(t0)
𝕃(2)
t
S3
S4 S5 S6
S7
S8 S9
S10
S11
S
S1
S2
t0
15
Sequence of timestamped
graphs (stream items)
Daniele Dell’Aglio
Streaming Dataset – Landmark window: 𝕃(t0)
𝕃(2)
t
S3
S4 S5 S6
S7
S8 S9
S10
S11
S
S1
S2
t0
16
Sequence of timestamped
graphs (stream items)
Daniele Dell’Aglio
From SPARQL dataset to RSEP-QL Streaming Dataset
t1
G(t1)
T⊆ ℕ R={RDF graph}
SPARQL dataset
G
H
Instantaneous Graph
G(t1)  RTime-Varying Graph
G: T R
RSP-QL dataset
S3
S4 S5
S6
S7
S8
S9 S10
S11
S12
S
S1
S2
𝕎(S)
17
Daniele Dell’Aglio
Evaluation
The SPARQL evaluation function is defined as
⟦𝑃⟧ 𝐷𝑆(𝐺)
The RSEP-QL evaluation function extends the SPARQL one by
introducing the evaluation time instant
⟦𝑃⟧ 𝑆𝐷𝑆(𝐴)
𝑡
SPARQL operators are straight extended to the new evaluation
function
Example: JOIN
⟦𝐽𝑂𝐼𝑁(𝑃1, 𝑃2)⟧ 𝑆𝐷𝑆 𝐴
𝑡
= ⟦𝑃1⟧ 𝑆𝐷𝑆 𝐴
𝑡
⨝ ⟦𝑃2⟧ 𝑆𝐷𝑆 𝐴
𝑡
18
Daniele Dell’Aglio
Instantaneous evaluation
The main difference is on the BGP evaluation:
⟦𝐵𝐺𝑃⟧ 𝑆𝐷𝑆(𝐴)
𝑡
=⟦𝐵𝐺𝑃⟧ 𝑆𝐷𝑆(𝐴,𝑡)
SDS(A,t) is:
SDS(G,t)= SDS(G(t)) if A is a time-varying graph G
SDS(𝕎(S),t)=SDS(m(𝕎(S,t))) if A is from a sliding window 𝕎
SDS(𝕃(S),t)=SDS(m(𝕃(S,t))) if A is from a landmark window 𝕃
where m denotes a merge function
m(𝕎(S,t))= 𝑑 𝑖,𝑡 𝑖 ∈𝕎(S,t) 𝑑𝑖
– takes as input a window content i.e. a sequence of timestamped
RDF graphs
– produces an RDF graph
19
Daniele Dell’Aglio
Continuous evaluation
For each evaluation time t ∈ ET: ⟦𝑆𝐸⟧ 𝑆𝐷𝑆(𝐴)
𝑡
– The continuous evaluation is a sequence of instantaneous
evaluations
It is not always possible to compute ET a priori
– Can be data dependent
– ET is expressed through a Report Policy
A Report Policy is a set of conditions to one or more window
operators in SDS
– Initially defined in SECRET for Stream Processing engines
20
Daniele Dell’Aglio
Continuous evaluation – Report Policies
Report Policy examples:
– P Periodic: the window reports only at regular intervals
– WC Window Close: the window reports if the active
window closes
– CC Content Change: the window reports if the content
changes.
21
Daniele Dell’Aglio
Event Processing – Basic Event Pattern
Support to Complex Event Processing operators
The minimal element is the Basic Event Pattern:
EVENT 𝑤 𝑃
Intuitively, the Basic Graph Pattern 𝑃 should match against one
stream item of the window identified by 𝑤
BEP can be combined through complex operators
• SEQ, LAST, EVERY
Example:
EVENT 𝑤1 𝑃1 SEQ EVERY EVENT 𝑤2 𝑃2
22
Daniele Dell’Aglio
Event Processing – Evaluation semantics
Formally, we use a new evaluation function ⦅⋅⦆ 𝑜,𝑐
𝑡
• t is the evaluation time instant,
• 𝑜, 𝑐 is an additional window to identify the portion of the
data on which the event may happen
Event pattern evaluation produces event mappings 𝜇, 𝑡1, 𝑡2
• 𝜇 is a solution mapping
• 𝑡1 and 𝑡2 denote the time inverval justifying 𝜇
23
Daniele Dell’Aglio
Event Processing – Evaluation semantics - Examples
The evaluation of EVENT 𝑤1 𝑃1 SEQ EVERY EVENT 𝑤2 𝑃2 is
24
S2
S3 S4
S1 S1
S6
S7
S8
S9 S10
S11
S12
S2
EVENT 𝑤1 𝑃1
SEQ
EVERY EVENT 𝑤2 𝑃2
t
10 12 14 1611 13 15
Daniele Dell’Aglio
Event Processing – Evaluation semantics - Examples
The evaluation of EVENT 𝑤1 𝑃1 SEQ EVERY EVENT 𝑤2 𝑃2 is
25
S2
S3 S4
S1 S1
S6
S7
S8
S9 S10
S11
S12
S2
EVENT 𝑤1 𝑃1
SEQ
EVERY EVENT 𝑤2 𝑃2
t
10 12 14 1611 13 15
Daniele Dell’Aglio
Event Processing – Evaluation semantics - Examples
The evaluation of EVENT 𝑤1 𝑃1 SEQ EVERY EVENT 𝑤2 𝑃2 is
26
S2
S3 S4
S1 S1
S6
S7
S8
S9 S10
S11
S12
S2
S1 S10
EVENT 𝑤1 𝑃1
SEQ
EVERY EVENT 𝑤2 𝑃2
t
10 12 14 1611 13 15
11 13
Daniele Dell’Aglio
Event Processing – Evaluation semantics - Examples
The evaluation of EVENT 𝑤1 𝑃1 SEQ EVERY EVENT 𝑤2 𝑃2 is
27
S2
S3 S4
S1 S1
S6
S7
S8
S9 S10
S11
S12
S2
S1 S10
S1 S12
EVENT 𝑤1 𝑃1
SEQ
EVERY EVENT 𝑤2 𝑃2
t
10 12 14 1611 13 15
11 13
11 15
Daniele Dell’Aglio
Event Processing – MATCH graph pattern
Event patterns are eclosed in MATCH graph patterns
• Event mappings exist only in the context of event patterns
• The evaluation of a MATCH graph pattern produces a bag of
solution mappings
𝑀𝐴𝑇𝐶𝐻 𝐸 𝑆𝐷𝑆 𝐴
𝑡
= {𝜇| 𝜇, 𝑡1, 𝑡2 ∈ ⦅𝐸⦆ 0,𝑡
𝑡
}
It is possible to combine the MATCH graph pattern with other
SPARQL graph patterns
28
Daniele Dell’Aglio
RSP output correctness
S1 S2 S3 S4S
t3 6 91
{:bob :isIn :hall} {:bob :isIn :kitchen}
t0=0
Execution 1° answer 2° answer
1 :hall [6] :kitchen [11]
2 :hall [5] :kitchen [10]
3 :hall [6] :kitchen [11]
4 - [7] - [12]
Window 1° answer 2° answer
t0=0 :hall [5] :kitchen [10]
t0=1 :hall [6] :kitchen [11]
t0=2 - [7] - [12]
{:alice :isIn :hall} {:alice :isIn :kitchen}
t0=1
t0=2
29
Daniele Dell’Aglio
RSP output correctness
System 1 System 2
Execution 1° answer 2° answer
1 :hall [6] :kitchen [11]
2 :hall [5] :kitchen [10]
3 :hall [6] :kitchen [11]
4 - [7] - [12]
Execution 1° answer 2° answer
1 :hall [3] :kitchen [9]
2 No answers
3 :hall [3] :kitchen [9]
4 No answers
S1 S2 S3 S4S
t3 6 91
{:bob :isIn :hall} {:bob :isIn :kitchen}
{:alice :isIn :hall} {:alice :isIn :kitchen}
Window-close vs
content-change
Empty relation
notification (yes|no)
30
Daniele Dell’Aglio
Correctness Assessment
Online
Offline
Data
importer
Query
transformer
SPARQL
engine
Result
matcherDS
R
RSP-QL model
of R
Correctness
assessment
Q
(E, SDS, ET, QF)
31
Daniele Dell’Aglio
What’s next?
An RSEP-QL query language
• W3C RSP CG ongoing activities
Implementations
• Yet another RSP engine
• Framework to let existing RSP engine interoperate
Streams are getting popular – applications want more and more
sophisticated features
• Different timestamps, out-of-orders
• Inductive reasoning to cope with noise
• Permanent storage of portions of data (raw or inferred)
32
Daniele Dell’Aglio
Conclusions
The dynamics introduced in the continuous query evlauation
process have not been totally understood
• Not fully captured by existing models
• RSEP-QL captures those dynamics
• All of them? Let’s discover it!
We need to push implementations and applications on use cases
• To understand which helpful operators are missing
• To find new unexpected behaviours
33
Daniele Dell’Aglio
People I am grateful to...
Emanuele Della Valle
and:
Marco Balduini
Jean-Paul Calbimonte
Oscar Corcho
Minh Dao-Trao
Danh Le Phuoc
Freddy Lecue
34
Daniele Dell’Aglio
... without forgetting you!
Thank you! Questions?
On Unified Stream Reasoning
The RDF Stream Processing realm
Daniele Dell’Aglio
daniele.dellaglio@polimi.it
http://dellaglio.org
35

More Related Content

Viewers also liked

P&MSP2012 - Logging Frameworks
P&MSP2012 - Logging FrameworksP&MSP2012 - Logging Frameworks
P&MSP2012 - Logging Frameworks
Daniele Dell'Aglio
 
An experience on empirical research about rdf stream
An experience on empirical research about rdf streamAn experience on empirical research about rdf stream
An experience on empirical research about rdf stream
Daniele Dell'Aglio
 
On Unified Stream Reasoning
On Unified Stream ReasoningOn Unified Stream Reasoning
On Unified Stream Reasoning
Daniele Dell'Aglio
 
White Tony Galaxy Blimps Usa
White Tony Galaxy Blimps UsaWhite Tony Galaxy Blimps Usa
White Tony Galaxy Blimps Usa
GalaxyBlimps
 
An Ontological Formulation and an OPM profile for Causality in Planning Appli...
An Ontological Formulation and an OPM profile for Causality in Planning Appli...An Ontological Formulation and an OPM profile for Causality in Planning Appli...
An Ontological Formulation and an OPM profile for Causality in Planning Appli...
Daniele Dell'Aglio
 
On correctness in RDF stream processor benchmarking
On correctness in RDF stream processor benchmarkingOn correctness in RDF stream processor benchmarking
On correctness in RDF stream processor benchmarking
Daniele Dell'Aglio
 
Multiple choice
Multiple choiceMultiple choice
Multiple choice
EDGmarketing
 
Attachment C Company Overview Catalog Of Services
Attachment C   Company Overview Catalog Of ServicesAttachment C   Company Overview Catalog Of Services
Attachment C Company Overview Catalog Of Services
GalaxyBlimps
 
Our environment
Our environmentOur environment
Our environment
Santhosh Kumar
 
2. adf tests
2. adf tests2. adf tests
2. adf tests
Quang Hoang
 
P&MSP2012 - Version Control Systems
P&MSP2012 - Version Control SystemsP&MSP2012 - Version Control Systems
P&MSP2012 - Version Control Systems
Daniele Dell'Aglio
 
P&MSP2012 - Unit Testing
P&MSP2012 - Unit TestingP&MSP2012 - Unit Testing
P&MSP2012 - Unit Testing
Daniele Dell'Aglio
 
Solid waste management
Solid waste managementSolid waste management
Solid waste management
Santhosh Kumar
 
Summary of the Stream Reasoning workshop at ISWC 2016
Summary of the Stream Reasoning workshop at ISWC 2016Summary of the Stream Reasoning workshop at ISWC 2016
Summary of the Stream Reasoning workshop at ISWC 2016
Daniele Dell'Aglio
 
RSEP-QL: A Query Model to Capture Event Pattern Matching in RDF Stream Proces...
RSEP-QL: A Query Model to Capture Event Pattern Matching in RDF Stream Proces...RSEP-QL: A Query Model to Capture Event Pattern Matching in RDF Stream Proces...
RSEP-QL: A Query Model to Capture Event Pattern Matching in RDF Stream Proces...
Daniele Dell'Aglio
 

Viewers also liked (16)

P&MSP2012 - Logging Frameworks
P&MSP2012 - Logging FrameworksP&MSP2012 - Logging Frameworks
P&MSP2012 - Logging Frameworks
 
An experience on empirical research about rdf stream
An experience on empirical research about rdf streamAn experience on empirical research about rdf stream
An experience on empirical research about rdf stream
 
On Unified Stream Reasoning
On Unified Stream ReasoningOn Unified Stream Reasoning
On Unified Stream Reasoning
 
White Tony Galaxy Blimps Usa
White Tony Galaxy Blimps UsaWhite Tony Galaxy Blimps Usa
White Tony Galaxy Blimps Usa
 
El Sol
El SolEl Sol
El Sol
 
An Ontological Formulation and an OPM profile for Causality in Planning Appli...
An Ontological Formulation and an OPM profile for Causality in Planning Appli...An Ontological Formulation and an OPM profile for Causality in Planning Appli...
An Ontological Formulation and an OPM profile for Causality in Planning Appli...
 
On correctness in RDF stream processor benchmarking
On correctness in RDF stream processor benchmarkingOn correctness in RDF stream processor benchmarking
On correctness in RDF stream processor benchmarking
 
Multiple choice
Multiple choiceMultiple choice
Multiple choice
 
Attachment C Company Overview Catalog Of Services
Attachment C   Company Overview Catalog Of ServicesAttachment C   Company Overview Catalog Of Services
Attachment C Company Overview Catalog Of Services
 
Our environment
Our environmentOur environment
Our environment
 
2. adf tests
2. adf tests2. adf tests
2. adf tests
 
P&MSP2012 - Version Control Systems
P&MSP2012 - Version Control SystemsP&MSP2012 - Version Control Systems
P&MSP2012 - Version Control Systems
 
P&MSP2012 - Unit Testing
P&MSP2012 - Unit TestingP&MSP2012 - Unit Testing
P&MSP2012 - Unit Testing
 
Solid waste management
Solid waste managementSolid waste management
Solid waste management
 
Summary of the Stream Reasoning workshop at ISWC 2016
Summary of the Stream Reasoning workshop at ISWC 2016Summary of the Stream Reasoning workshop at ISWC 2016
Summary of the Stream Reasoning workshop at ISWC 2016
 
RSEP-QL: A Query Model to Capture Event Pattern Matching in RDF Stream Proces...
RSEP-QL: A Query Model to Capture Event Pattern Matching in RDF Stream Proces...RSEP-QL: A Query Model to Capture Event Pattern Matching in RDF Stream Proces...
RSEP-QL: A Query Model to Capture Event Pattern Matching in RDF Stream Proces...
 

Similar to On Unified Stream Reasoning - The RDF Stream Processing realm

On unifying query languages for RDF streams
On unifying query languages for RDF streamsOn unifying query languages for RDF streams
On unifying query languages for RDF streams
Daniele Dell'Aglio
 
Heaven: Supporting Systematic Comparative Research of RDF Stream Processing E...
Heaven: Supporting Systematic Comparative Research of RDF Stream Processing E...Heaven: Supporting Systematic Comparative Research of RDF Stream Processing E...
Heaven: Supporting Systematic Comparative Research of RDF Stream Processing E...
Riccardo Tommasini
 
SDRule-L: Managing Semantically Rich Business Decision Processes
SDRule-L: Managing Semantically Rich Business Decision ProcessesSDRule-L: Managing Semantically Rich Business Decision Processes
SDRule-L: Managing Semantically Rich Business Decision Processes
Christophe Debruyne
 
Keynote: Building and Operating A Serverless Streaming Runtime for Apache Bea...
Keynote: Building and Operating A Serverless Streaming Runtime for Apache Bea...Keynote: Building and Operating A Serverless Streaming Runtime for Apache Bea...
Keynote: Building and Operating A Serverless Streaming Runtime for Apache Bea...
Flink Forward
 
A Brief History of Stream Processing
A Brief History of Stream ProcessingA Brief History of Stream Processing
A Brief History of Stream Processing
Aleksandr Kuboskin, CFA
 
Foundations of streaming SQL: stream & table theory
Foundations of streaming SQL: stream & table theoryFoundations of streaming SQL: stream & table theory
Foundations of streaming SQL: stream & table theory
DataWorks Summit
 
slides.07.pptx
slides.07.pptxslides.07.pptx
slides.07.pptx
balewayalew
 
Cloud Dataflow - A Unified Model for Batch and Streaming Data Processing
Cloud Dataflow - A Unified Model for Batch and Streaming Data ProcessingCloud Dataflow - A Unified Model for Batch and Streaming Data Processing
Cloud Dataflow - A Unified Model for Batch and Streaming Data Processing
DoiT International
 
OLAP Basics and Fundamentals by Bharat Kalia
OLAP Basics and Fundamentals by Bharat Kalia OLAP Basics and Fundamentals by Bharat Kalia
OLAP Basics and Fundamentals by Bharat Kalia
Bharat Kalia
 
Hybrid Fuzzy Sliding Mode Controller for Timedelay System
Hybrid Fuzzy Sliding Mode Controller for Timedelay SystemHybrid Fuzzy Sliding Mode Controller for Timedelay System
Hybrid Fuzzy Sliding Mode Controller for Timedelay System
ijaia
 
Presentation iswc
Presentation iswcPresentation iswc
Presentation iswc
SydGillani
 
VRP2013 - Comp Aspects VRP
VRP2013 - Comp Aspects VRPVRP2013 - Comp Aspects VRP
VRP2013 - Comp Aspects VRP
Victor Pillac
 
Multi-Perspective Comparison of Business Processes Variants Based on Event Logs
Multi-Perspective Comparison of Business Processes Variants Based on Event LogsMulti-Perspective Comparison of Business Processes Variants Based on Event Logs
Multi-Perspective Comparison of Business Processes Variants Based on Event Logs
Marlon Dumas
 
Software metrics
Software metricsSoftware metrics
Software metrics
Dr. C.V. Suresh Babu
 
IMaRS - Incremental Materialization for RDF Streams (SR4LD2013)
IMaRS - Incremental Materialization for RDF Streams (SR4LD2013)IMaRS - Incremental Materialization for RDF Streams (SR4LD2013)
IMaRS - Incremental Materialization for RDF Streams (SR4LD2013)
Daniele Dell'Aglio
 
Principles in Data Stream Processing | Matthias J Sax, Confluent
Principles in Data Stream Processing | Matthias J Sax, ConfluentPrinciples in Data Stream Processing | Matthias J Sax, Confluent
Principles in Data Stream Processing | Matthias J Sax, Confluent
HostedbyConfluent
 
Sw metrics for regression testing
Sw metrics for regression testingSw metrics for regression testing
Sw metrics for regression testing
Jyotsna Sharma
 
Spark Summit EU talk by Herman van Hovell
Spark Summit EU talk by Herman van HovellSpark Summit EU talk by Herman van Hovell
Spark Summit EU talk by Herman van Hovell
Spark Summit
 
On Relevant Query Answering over Streaming and Distributed Data
On Relevant Query Answering over Streaming and Distributed DataOn Relevant Query Answering over Streaming and Distributed Data
On Relevant Query Answering over Streaming and Distributed Data
Shima Zahmatkesh
 
On the need to include functional testing in RDF stream engine benchmarks
On the need to include functional testing in RDF stream engine benchmarks On the need to include functional testing in RDF stream engine benchmarks
On the need to include functional testing in RDF stream engine benchmarks
Emanuele Della Valle
 

Similar to On Unified Stream Reasoning - The RDF Stream Processing realm (20)

On unifying query languages for RDF streams
On unifying query languages for RDF streamsOn unifying query languages for RDF streams
On unifying query languages for RDF streams
 
Heaven: Supporting Systematic Comparative Research of RDF Stream Processing E...
Heaven: Supporting Systematic Comparative Research of RDF Stream Processing E...Heaven: Supporting Systematic Comparative Research of RDF Stream Processing E...
Heaven: Supporting Systematic Comparative Research of RDF Stream Processing E...
 
SDRule-L: Managing Semantically Rich Business Decision Processes
SDRule-L: Managing Semantically Rich Business Decision ProcessesSDRule-L: Managing Semantically Rich Business Decision Processes
SDRule-L: Managing Semantically Rich Business Decision Processes
 
Keynote: Building and Operating A Serverless Streaming Runtime for Apache Bea...
Keynote: Building and Operating A Serverless Streaming Runtime for Apache Bea...Keynote: Building and Operating A Serverless Streaming Runtime for Apache Bea...
Keynote: Building and Operating A Serverless Streaming Runtime for Apache Bea...
 
A Brief History of Stream Processing
A Brief History of Stream ProcessingA Brief History of Stream Processing
A Brief History of Stream Processing
 
Foundations of streaming SQL: stream & table theory
Foundations of streaming SQL: stream & table theoryFoundations of streaming SQL: stream & table theory
Foundations of streaming SQL: stream & table theory
 
slides.07.pptx
slides.07.pptxslides.07.pptx
slides.07.pptx
 
Cloud Dataflow - A Unified Model for Batch and Streaming Data Processing
Cloud Dataflow - A Unified Model for Batch and Streaming Data ProcessingCloud Dataflow - A Unified Model for Batch and Streaming Data Processing
Cloud Dataflow - A Unified Model for Batch and Streaming Data Processing
 
OLAP Basics and Fundamentals by Bharat Kalia
OLAP Basics and Fundamentals by Bharat Kalia OLAP Basics and Fundamentals by Bharat Kalia
OLAP Basics and Fundamentals by Bharat Kalia
 
Hybrid Fuzzy Sliding Mode Controller for Timedelay System
Hybrid Fuzzy Sliding Mode Controller for Timedelay SystemHybrid Fuzzy Sliding Mode Controller for Timedelay System
Hybrid Fuzzy Sliding Mode Controller for Timedelay System
 
Presentation iswc
Presentation iswcPresentation iswc
Presentation iswc
 
VRP2013 - Comp Aspects VRP
VRP2013 - Comp Aspects VRPVRP2013 - Comp Aspects VRP
VRP2013 - Comp Aspects VRP
 
Multi-Perspective Comparison of Business Processes Variants Based on Event Logs
Multi-Perspective Comparison of Business Processes Variants Based on Event LogsMulti-Perspective Comparison of Business Processes Variants Based on Event Logs
Multi-Perspective Comparison of Business Processes Variants Based on Event Logs
 
Software metrics
Software metricsSoftware metrics
Software metrics
 
IMaRS - Incremental Materialization for RDF Streams (SR4LD2013)
IMaRS - Incremental Materialization for RDF Streams (SR4LD2013)IMaRS - Incremental Materialization for RDF Streams (SR4LD2013)
IMaRS - Incremental Materialization for RDF Streams (SR4LD2013)
 
Principles in Data Stream Processing | Matthias J Sax, Confluent
Principles in Data Stream Processing | Matthias J Sax, ConfluentPrinciples in Data Stream Processing | Matthias J Sax, Confluent
Principles in Data Stream Processing | Matthias J Sax, Confluent
 
Sw metrics for regression testing
Sw metrics for regression testingSw metrics for regression testing
Sw metrics for regression testing
 
Spark Summit EU talk by Herman van Hovell
Spark Summit EU talk by Herman van HovellSpark Summit EU talk by Herman van Hovell
Spark Summit EU talk by Herman van Hovell
 
On Relevant Query Answering over Streaming and Distributed Data
On Relevant Query Answering over Streaming and Distributed DataOn Relevant Query Answering over Streaming and Distributed Data
On Relevant Query Answering over Streaming and Distributed Data
 
On the need to include functional testing in RDF stream engine benchmarks
On the need to include functional testing in RDF stream engine benchmarks On the need to include functional testing in RDF stream engine benchmarks
On the need to include functional testing in RDF stream engine benchmarks
 

More from Daniele Dell'Aglio

Distributed stream consistency checking
Distributed stream consistency checkingDistributed stream consistency checking
Distributed stream consistency checking
Daniele Dell'Aglio
 
On web stream processing
On web stream processingOn web stream processing
On web stream processing
Daniele Dell'Aglio
 
On a web of data streams
On a web of data streamsOn a web of data streams
On a web of data streams
Daniele Dell'Aglio
 
Triplewave: a step towards RDF Stream Processing on the Web
Triplewave: a step towards RDF Stream Processing on the WebTriplewave: a step towards RDF Stream Processing on the Web
Triplewave: a step towards RDF Stream Processing on the Web
Daniele Dell'Aglio
 
RDF Stream Processing Models (RSP2014)
RDF Stream Processing Models (RSP2014)RDF Stream Processing Models (RSP2014)
RDF Stream Processing Models (RSP2014)
Daniele Dell'Aglio
 
A Survey of Temporal Extensions of Description Logics
A Survey of Temporal Extensions of Description LogicsA Survey of Temporal Extensions of Description Logics
A Survey of Temporal Extensions of Description Logics
Daniele Dell'Aglio
 
RDF Stream Processing Models (SR4LD2013)
RDF Stream Processing Models (SR4LD2013)RDF Stream Processing Models (SR4LD2013)
RDF Stream Processing Models (SR4LD2013)
Daniele Dell'Aglio
 
P&MSP2012 - Maven
P&MSP2012 - MavenP&MSP2012 - Maven
P&MSP2012 - Maven
Daniele Dell'Aglio
 

More from Daniele Dell'Aglio (8)

Distributed stream consistency checking
Distributed stream consistency checkingDistributed stream consistency checking
Distributed stream consistency checking
 
On web stream processing
On web stream processingOn web stream processing
On web stream processing
 
On a web of data streams
On a web of data streamsOn a web of data streams
On a web of data streams
 
Triplewave: a step towards RDF Stream Processing on the Web
Triplewave: a step towards RDF Stream Processing on the WebTriplewave: a step towards RDF Stream Processing on the Web
Triplewave: a step towards RDF Stream Processing on the Web
 
RDF Stream Processing Models (RSP2014)
RDF Stream Processing Models (RSP2014)RDF Stream Processing Models (RSP2014)
RDF Stream Processing Models (RSP2014)
 
A Survey of Temporal Extensions of Description Logics
A Survey of Temporal Extensions of Description LogicsA Survey of Temporal Extensions of Description Logics
A Survey of Temporal Extensions of Description Logics
 
RDF Stream Processing Models (SR4LD2013)
RDF Stream Processing Models (SR4LD2013)RDF Stream Processing Models (SR4LD2013)
RDF Stream Processing Models (SR4LD2013)
 
P&MSP2012 - Maven
P&MSP2012 - MavenP&MSP2012 - Maven
P&MSP2012 - Maven
 

Recently uploaded

GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)
Javier Junquera
 
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Pitangent Analytics & Technology Solutions Pvt. Ltd
 
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
Fwdays
 
Demystifying Knowledge Management through Storytelling
Demystifying Knowledge Management through StorytellingDemystifying Knowledge Management through Storytelling
Demystifying Knowledge Management through Storytelling
Enterprise Knowledge
 
"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota
Fwdays
 
Leveraging the Graph for Clinical Trials and Standards
Leveraging the Graph for Clinical Trials and StandardsLeveraging the Graph for Clinical Trials and Standards
Leveraging the Graph for Clinical Trials and Standards
Neo4j
 
ScyllaDB Tablets: Rethinking Replication
ScyllaDB Tablets: Rethinking ReplicationScyllaDB Tablets: Rethinking Replication
ScyllaDB Tablets: Rethinking Replication
ScyllaDB
 
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
Alex Pruden
 
Christine's Product Research Presentation.pptx
Christine's Product Research Presentation.pptxChristine's Product Research Presentation.pptx
Christine's Product Research Presentation.pptx
christinelarrosa
 
What is an RPA CoE? Session 1 – CoE Vision
What is an RPA CoE?  Session 1 – CoE VisionWhat is an RPA CoE?  Session 1 – CoE Vision
What is an RPA CoE? Session 1 – CoE Vision
DianaGray10
 
Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |
AstuteBusiness
 
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectorsConnector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
DianaGray10
 
Dandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity serverDandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity server
Antonios Katsarakis
 
Northern Engraving | Modern Metal Trim, Nameplates and Appliance Panels
Northern Engraving | Modern Metal Trim, Nameplates and Appliance PanelsNorthern Engraving | Modern Metal Trim, Nameplates and Appliance Panels
Northern Engraving | Modern Metal Trim, Nameplates and Appliance Panels
Northern Engraving
 
"Scaling RAG Applications to serve millions of users", Kevin Goedecke
"Scaling RAG Applications to serve millions of users",  Kevin Goedecke"Scaling RAG Applications to serve millions of users",  Kevin Goedecke
"Scaling RAG Applications to serve millions of users", Kevin Goedecke
Fwdays
 
Mutation Testing for Task-Oriented Chatbots
Mutation Testing for Task-Oriented ChatbotsMutation Testing for Task-Oriented Chatbots
Mutation Testing for Task-Oriented Chatbots
Pablo Gómez Abajo
 
LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...
LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...
LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...
DanBrown980551
 
Harnessing the Power of NLP and Knowledge Graphs for Opioid Research
Harnessing the Power of NLP and Knowledge Graphs for Opioid ResearchHarnessing the Power of NLP and Knowledge Graphs for Opioid Research
Harnessing the Power of NLP and Knowledge Graphs for Opioid Research
Neo4j
 
What is an RPA CoE? Session 2 – CoE Roles
What is an RPA CoE?  Session 2 – CoE RolesWhat is an RPA CoE?  Session 2 – CoE Roles
What is an RPA CoE? Session 2 – CoE Roles
DianaGray10
 
Christine's Supplier Sourcing Presentaion.pptx
Christine's Supplier Sourcing Presentaion.pptxChristine's Supplier Sourcing Presentaion.pptx
Christine's Supplier Sourcing Presentaion.pptx
christinelarrosa
 

Recently uploaded (20)

GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)
 
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
 
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
 
Demystifying Knowledge Management through Storytelling
Demystifying Knowledge Management through StorytellingDemystifying Knowledge Management through Storytelling
Demystifying Knowledge Management through Storytelling
 
"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota"Choosing proper type of scaling", Olena Syrota
"Choosing proper type of scaling", Olena Syrota
 
Leveraging the Graph for Clinical Trials and Standards
Leveraging the Graph for Clinical Trials and StandardsLeveraging the Graph for Clinical Trials and Standards
Leveraging the Graph for Clinical Trials and Standards
 
ScyllaDB Tablets: Rethinking Replication
ScyllaDB Tablets: Rethinking ReplicationScyllaDB Tablets: Rethinking Replication
ScyllaDB Tablets: Rethinking Replication
 
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
 
Christine's Product Research Presentation.pptx
Christine's Product Research Presentation.pptxChristine's Product Research Presentation.pptx
Christine's Product Research Presentation.pptx
 
What is an RPA CoE? Session 1 – CoE Vision
What is an RPA CoE?  Session 1 – CoE VisionWhat is an RPA CoE?  Session 1 – CoE Vision
What is an RPA CoE? Session 1 – CoE Vision
 
Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |
 
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectorsConnector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectors
 
Dandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity serverDandelion Hashtable: beyond billion requests per second on a commodity server
Dandelion Hashtable: beyond billion requests per second on a commodity server
 
Northern Engraving | Modern Metal Trim, Nameplates and Appliance Panels
Northern Engraving | Modern Metal Trim, Nameplates and Appliance PanelsNorthern Engraving | Modern Metal Trim, Nameplates and Appliance Panels
Northern Engraving | Modern Metal Trim, Nameplates and Appliance Panels
 
"Scaling RAG Applications to serve millions of users", Kevin Goedecke
"Scaling RAG Applications to serve millions of users",  Kevin Goedecke"Scaling RAG Applications to serve millions of users",  Kevin Goedecke
"Scaling RAG Applications to serve millions of users", Kevin Goedecke
 
Mutation Testing for Task-Oriented Chatbots
Mutation Testing for Task-Oriented ChatbotsMutation Testing for Task-Oriented Chatbots
Mutation Testing for Task-Oriented Chatbots
 
LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...
LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...
LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...
 
Harnessing the Power of NLP and Knowledge Graphs for Opioid Research
Harnessing the Power of NLP and Knowledge Graphs for Opioid ResearchHarnessing the Power of NLP and Knowledge Graphs for Opioid Research
Harnessing the Power of NLP and Knowledge Graphs for Opioid Research
 
What is an RPA CoE? Session 2 – CoE Roles
What is an RPA CoE?  Session 2 – CoE RolesWhat is an RPA CoE?  Session 2 – CoE Roles
What is an RPA CoE? Session 2 – CoE Roles
 
Christine's Supplier Sourcing Presentaion.pptx
Christine's Supplier Sourcing Presentaion.pptxChristine's Supplier Sourcing Presentaion.pptx
Christine's Supplier Sourcing Presentaion.pptx
 

On Unified Stream Reasoning - The RDF Stream Processing realm

  • 1. Daniele Dell’Aglio On Unified Stream Reasoning The RDF Stream Processing realm Daniele Dell’Aglio WU Vienna, 18/02/2016
  • 2. Daniele Dell’Aglio Problem setting Real time integration of huge volumes of dynamic data from heterogeneous sources – Traffic Prediction – Social media analytics – Personalised services 2
  • 3. Daniele Dell’Aglio Stream Reasoning Stream Reasoning (SR): inference over streams of data – Stream and Event Processing: real-time processing of highly dynamic data • Aggregations, filters • Complex event detection – Reasoning • Access and integration of heterogeneous data • Make explicit hidden information 3
  • 4. Daniele Dell’Aglio A non-comprehensive view on the Stream Reasoning research so far EuropeMapfromWikipedia 4
  • 5. Daniele Dell’Aglio The initial problem (1) Where are Alice and Bob, when they are together? Let’s consider a tumbling window W(ω=β=5) Let’s execute the experiment 4 times Execution 1° answer 2° answer 1 :hall [6] :kitchen [11] 2 :hall [5] :kitchen [10] 3 :hall [6] :kitchen [11] 4 - [7] - [12] S1 S2 S3 S4S t3 6 91 {:alice :isIn :hall} {:bob :isIn :hall} {:alice :isIn :kitchen} {:bob :isIn :kitchen} Which is the correct answer? width slide 5
  • 6. Daniele Dell’Aglio The initial problem (2) System 1 System 2 Which system behaves in the correct way? Execution 1° answer 2° answer 1 :hall [6] :kitchen [11] 2 :hall [5] :kitchen [10] 3 :hall [6] :kitchen [11] 4 - [7] - [12] Execution 1° answer 2° answer 1 :hall [3] :kitchen [9] 2 No answers 3 :hall [3] :kitchen [9] 4 No answers S1 S2 S3 S4S t3 6 91 {:bob :isIn :hall} {:bob :isIn :kitchen} {:alice :isIn :hall} {:alice :isIn :kitchen} 6
  • 7. Daniele Dell’Aglio Problem How to unify current Stream Reasoning techniques? Why do we need it? • Comparison and contrast • Interoperability • Study RDF Stream Processing related problems • Standard RSP query language 7
  • 8. Daniele Dell’Aglio Streams Ontology Background data Entailment Regimes RSEP-QL Applications RSP-QL BGP evaluation over streams BGP evaluation over BKG Event Pattern detection operators Model to express continous queries The entailment regimes require an ontology and provide more answers w.r.t. Both RSP-QL and RSEP-QL Not part of the today talk! Contribution – RSEP-QL A comprehensive model that formally defines the semantics of RDF Stream Processing engines 8
  • 9. Daniele Dell’Aglio Q (E, DS, QF) From SPARQL… Evaluator Data layer Result Formatter Ans(Q)RDF graphs E DS QF Query Interface 9
  • 10. Daniele Dell’Aglio Q (E, DS, QF) …to RSEP-QL Evaluator Data layer Result Formatter Ans(Q)RDF graphs E DS QF Continuous EvaluatorET RDF graphs RDF streams Query Interface SDS Q (E, SDS, QF) Q (E, SDS, ET, QF) Q (SE, SDS, ET, QF) SE 10
  • 11. Daniele Dell’Aglio Sequence of timestamped graphs (stream items) Streaming Dataset – Time-based sliding window: 𝕎(ω,β,t0) 𝕎(3,1,1) ω t width S3 S4 S5 S6 S7 S8 S9 S10 S11 S S1 S2 t0 11
  • 12. Daniele Dell’Aglio Sequence of timestamped graphs (stream items) Streaming Dataset – Time-based sliding window: 𝕎(ω,β,t0) 𝕎(3,1,1) β ω t widthslide S3 S4 S5 S6 S7 S8 S9 S10 S11 S S1 S2 t0 12
  • 13. Daniele Dell’Aglio Sequence of timestamped graphs (stream items) Streaming Dataset – Time-based sliding window: 𝕎(ω,β,t0) 𝕎(3,1,1) β ω t widthslide S3 S4 S5 S6 S7 S8 S9 S10 S11 S S1 S2 t0 13
  • 14. Daniele Dell’Aglio Streaming Dataset – Landmark window: 𝕃(t0) 𝕃(2) t S3 S4 S5 S6 S7 S8 S9 S10 S11 S S1 S2 t0 14 Sequence of timestamped graphs (stream items)
  • 15. Daniele Dell’Aglio Streaming Dataset – Landmark window: 𝕃(t0) 𝕃(2) t S3 S4 S5 S6 S7 S8 S9 S10 S11 S S1 S2 t0 15 Sequence of timestamped graphs (stream items)
  • 16. Daniele Dell’Aglio Streaming Dataset – Landmark window: 𝕃(t0) 𝕃(2) t S3 S4 S5 S6 S7 S8 S9 S10 S11 S S1 S2 t0 16 Sequence of timestamped graphs (stream items)
  • 17. Daniele Dell’Aglio From SPARQL dataset to RSEP-QL Streaming Dataset t1 G(t1) T⊆ ℕ R={RDF graph} SPARQL dataset G H Instantaneous Graph G(t1)  RTime-Varying Graph G: T R RSP-QL dataset S3 S4 S5 S6 S7 S8 S9 S10 S11 S12 S S1 S2 𝕎(S) 17
  • 18. Daniele Dell’Aglio Evaluation The SPARQL evaluation function is defined as ⟦𝑃⟧ 𝐷𝑆(𝐺) The RSEP-QL evaluation function extends the SPARQL one by introducing the evaluation time instant ⟦𝑃⟧ 𝑆𝐷𝑆(𝐴) 𝑡 SPARQL operators are straight extended to the new evaluation function Example: JOIN ⟦𝐽𝑂𝐼𝑁(𝑃1, 𝑃2)⟧ 𝑆𝐷𝑆 𝐴 𝑡 = ⟦𝑃1⟧ 𝑆𝐷𝑆 𝐴 𝑡 ⨝ ⟦𝑃2⟧ 𝑆𝐷𝑆 𝐴 𝑡 18
  • 19. Daniele Dell’Aglio Instantaneous evaluation The main difference is on the BGP evaluation: ⟦𝐵𝐺𝑃⟧ 𝑆𝐷𝑆(𝐴) 𝑡 =⟦𝐵𝐺𝑃⟧ 𝑆𝐷𝑆(𝐴,𝑡) SDS(A,t) is: SDS(G,t)= SDS(G(t)) if A is a time-varying graph G SDS(𝕎(S),t)=SDS(m(𝕎(S,t))) if A is from a sliding window 𝕎 SDS(𝕃(S),t)=SDS(m(𝕃(S,t))) if A is from a landmark window 𝕃 where m denotes a merge function m(𝕎(S,t))= 𝑑 𝑖,𝑡 𝑖 ∈𝕎(S,t) 𝑑𝑖 – takes as input a window content i.e. a sequence of timestamped RDF graphs – produces an RDF graph 19
  • 20. Daniele Dell’Aglio Continuous evaluation For each evaluation time t ∈ ET: ⟦𝑆𝐸⟧ 𝑆𝐷𝑆(𝐴) 𝑡 – The continuous evaluation is a sequence of instantaneous evaluations It is not always possible to compute ET a priori – Can be data dependent – ET is expressed through a Report Policy A Report Policy is a set of conditions to one or more window operators in SDS – Initially defined in SECRET for Stream Processing engines 20
  • 21. Daniele Dell’Aglio Continuous evaluation – Report Policies Report Policy examples: – P Periodic: the window reports only at regular intervals – WC Window Close: the window reports if the active window closes – CC Content Change: the window reports if the content changes. 21
  • 22. Daniele Dell’Aglio Event Processing – Basic Event Pattern Support to Complex Event Processing operators The minimal element is the Basic Event Pattern: EVENT 𝑤 𝑃 Intuitively, the Basic Graph Pattern 𝑃 should match against one stream item of the window identified by 𝑤 BEP can be combined through complex operators • SEQ, LAST, EVERY Example: EVENT 𝑤1 𝑃1 SEQ EVERY EVENT 𝑤2 𝑃2 22
  • 23. Daniele Dell’Aglio Event Processing – Evaluation semantics Formally, we use a new evaluation function ⦅⋅⦆ 𝑜,𝑐 𝑡 • t is the evaluation time instant, • 𝑜, 𝑐 is an additional window to identify the portion of the data on which the event may happen Event pattern evaluation produces event mappings 𝜇, 𝑡1, 𝑡2 • 𝜇 is a solution mapping • 𝑡1 and 𝑡2 denote the time inverval justifying 𝜇 23
  • 24. Daniele Dell’Aglio Event Processing – Evaluation semantics - Examples The evaluation of EVENT 𝑤1 𝑃1 SEQ EVERY EVENT 𝑤2 𝑃2 is 24 S2 S3 S4 S1 S1 S6 S7 S8 S9 S10 S11 S12 S2 EVENT 𝑤1 𝑃1 SEQ EVERY EVENT 𝑤2 𝑃2 t 10 12 14 1611 13 15
  • 25. Daniele Dell’Aglio Event Processing – Evaluation semantics - Examples The evaluation of EVENT 𝑤1 𝑃1 SEQ EVERY EVENT 𝑤2 𝑃2 is 25 S2 S3 S4 S1 S1 S6 S7 S8 S9 S10 S11 S12 S2 EVENT 𝑤1 𝑃1 SEQ EVERY EVENT 𝑤2 𝑃2 t 10 12 14 1611 13 15
  • 26. Daniele Dell’Aglio Event Processing – Evaluation semantics - Examples The evaluation of EVENT 𝑤1 𝑃1 SEQ EVERY EVENT 𝑤2 𝑃2 is 26 S2 S3 S4 S1 S1 S6 S7 S8 S9 S10 S11 S12 S2 S1 S10 EVENT 𝑤1 𝑃1 SEQ EVERY EVENT 𝑤2 𝑃2 t 10 12 14 1611 13 15 11 13
  • 27. Daniele Dell’Aglio Event Processing – Evaluation semantics - Examples The evaluation of EVENT 𝑤1 𝑃1 SEQ EVERY EVENT 𝑤2 𝑃2 is 27 S2 S3 S4 S1 S1 S6 S7 S8 S9 S10 S11 S12 S2 S1 S10 S1 S12 EVENT 𝑤1 𝑃1 SEQ EVERY EVENT 𝑤2 𝑃2 t 10 12 14 1611 13 15 11 13 11 15
  • 28. Daniele Dell’Aglio Event Processing – MATCH graph pattern Event patterns are eclosed in MATCH graph patterns • Event mappings exist only in the context of event patterns • The evaluation of a MATCH graph pattern produces a bag of solution mappings 𝑀𝐴𝑇𝐶𝐻 𝐸 𝑆𝐷𝑆 𝐴 𝑡 = {𝜇| 𝜇, 𝑡1, 𝑡2 ∈ ⦅𝐸⦆ 0,𝑡 𝑡 } It is possible to combine the MATCH graph pattern with other SPARQL graph patterns 28
  • 29. Daniele Dell’Aglio RSP output correctness S1 S2 S3 S4S t3 6 91 {:bob :isIn :hall} {:bob :isIn :kitchen} t0=0 Execution 1° answer 2° answer 1 :hall [6] :kitchen [11] 2 :hall [5] :kitchen [10] 3 :hall [6] :kitchen [11] 4 - [7] - [12] Window 1° answer 2° answer t0=0 :hall [5] :kitchen [10] t0=1 :hall [6] :kitchen [11] t0=2 - [7] - [12] {:alice :isIn :hall} {:alice :isIn :kitchen} t0=1 t0=2 29
  • 30. Daniele Dell’Aglio RSP output correctness System 1 System 2 Execution 1° answer 2° answer 1 :hall [6] :kitchen [11] 2 :hall [5] :kitchen [10] 3 :hall [6] :kitchen [11] 4 - [7] - [12] Execution 1° answer 2° answer 1 :hall [3] :kitchen [9] 2 No answers 3 :hall [3] :kitchen [9] 4 No answers S1 S2 S3 S4S t3 6 91 {:bob :isIn :hall} {:bob :isIn :kitchen} {:alice :isIn :hall} {:alice :isIn :kitchen} Window-close vs content-change Empty relation notification (yes|no) 30
  • 32. Daniele Dell’Aglio What’s next? An RSEP-QL query language • W3C RSP CG ongoing activities Implementations • Yet another RSP engine • Framework to let existing RSP engine interoperate Streams are getting popular – applications want more and more sophisticated features • Different timestamps, out-of-orders • Inductive reasoning to cope with noise • Permanent storage of portions of data (raw or inferred) 32
  • 33. Daniele Dell’Aglio Conclusions The dynamics introduced in the continuous query evlauation process have not been totally understood • Not fully captured by existing models • RSEP-QL captures those dynamics • All of them? Let’s discover it! We need to push implementations and applications on use cases • To understand which helpful operators are missing • To find new unexpected behaviours 33
  • 34. Daniele Dell’Aglio People I am grateful to... Emanuele Della Valle and: Marco Balduini Jean-Paul Calbimonte Oscar Corcho Minh Dao-Trao Danh Le Phuoc Freddy Lecue 34
  • 35. Daniele Dell’Aglio ... without forgetting you! Thank you! Questions? On Unified Stream Reasoning The RDF Stream Processing realm Daniele Dell’Aglio daniele.dellaglio@polimi.it http://dellaglio.org 35