This document provides an overview of stream reasoning and discusses Riccardo Tommasini's master's thesis. It outlines Tommasini's background, research interests, and research group in stream reasoning. It also presents an example of how stream reasoning can be used to query streaming sensor data to determine who is in what room. Tommasini's goal is to enable systematic comparative evaluation of RSP engines using standardized queries, datasets, and metrics within a test stand framework.
Unlocking the Future of AI Agents with Large Language Models
Stream Reasoning: An Overview of Stream Reasoning and C-SPARQL
1. Streaming Day:
an overview of Stream Reasoning
by: Riccardo Tommasini
1
Scuola di Ingegneria Industriale e dell’Informazione
Computer Science and Engineering
2. Master Degree Thesis – Riccardo Tommasini
Agenda
2
Background
Stream
Reasoning
Get
in
Touch
Heaven
✓
SR
Example
3. Master Degree Thesis – Riccardo Tommasini
GiT - Riccardo Tommasini
3
Master Degree in C.S. @ Politecnico Of Milano
M.D. Thesis on Stream Reasoning
I’ll start my Phd in November 2k15
4. Master Degree Thesis – Riccardo Tommasini
GiT - Research Topic & Areas of Interest
4
• StreamReasoning @ CEP
• Techniques and Methods for
Stream Reasoners Benchmarking
• RESTfull API
• Software Testing
• Programming Languages
RDF
Stream
Processing
Software
Engineering
5. Master Degree Thesis – Riccardo Tommasini
GiT - Stream Reasoning Research Group
5
Daniele
Dell’Aglio
Phd
Emanuele
Della
Valle
Advisor
Marco
Balduini
Phd
6. Master Degree Thesis – Riccardo Tommasini
Agenda
6
Background
Stream
Reasoning
Get
in
Touch
Heaven
✓
SR
Example
7. Master Degree Thesis – Riccardo Tommasini
Background - Semantic Web
7
It provides a common
framework to allow
interoperability applications.
The Semantic Web is a
WWW extension.
Semantic Web world
involves several
technologies.
8. Master Degree Thesis – Riccardo Tommasini
Background - Semantic Web
7
It provides a common
framework to allow
interoperability applications.
The Semantic Web is a
WWW extension.
Semantic Web world
involves several
technologies.
9. Master Degree Thesis – Riccardo Tommasini
Background - Semantic Web
7
It provides a common
framework to allow
interoperability applications.
The Semantic Web is a
WWW extension.
Semantic Web world
involves several
technologies.
10. Master Degree Thesis – Riccardo Tommasini
Background - Semantic Web
7
It provides a common
framework to allow
interoperability applications.
The Semantic Web is a
WWW extension.
Semantic Web world
involves several
technologies.
11. Master Degree Thesis – Riccardo Tommasini
Background - RDF
8
Let I, B and L be three pairwise disjoint sets, defined as IRIs, Blank Nodes and
Literals, respectively. A triple
(s, p, o) ∈ (I ∪ B)I(I ∪ B ∪ L)
is an RDF triple, while a set of RDF triples is called an RDF graph.
subject object
predicate
RDF describes a conceptual model of information in any given domain.
12. Master Degree Thesis – Riccardo Tommasini
Background - OWL
9
• Web Ontology Language (OWL) is a language for
writing ontologies for the Web
• An Ontology is a a specification of a conceptualisation
(Tom Gruber)
• OWL extends RDF allowing to specific more about
properties and classes
• OWL extends RDF enabling reasoning:
• Check logical correctness of statements
• Infer implied statements w.r.t. a set of inferences rules
13. Master Degree Thesis – Riccardo Tommasini
Background - SPARQL
10
SPARQL Protocol and RDF Query Language 3 main parts
• CONSTRUCT query: used to provide an RDF graph created directly from the results of the query.
• SELECT query: used to extract a set of variables and their matching values, called set of mappings in the table format.
• Dataset clause -> FROM or FROM Named
• WHERE: provides the graph pattern to match against the data graph.
14. Master Degree Thesis – Riccardo Tommasini
Background - C-SPARQL
11
RICORDARE CAMBIO SEMANTICA!!!!
Csparql language extends sparql in every 3 parts of query forms
Query form -> STREAM CLAUSE to create a RDF stream as query results
Datasert clause -> FROM STREAM clause added to let engine get data from RDF streams specified by URI
Where Clause -> built in timestamp function to retrieve the timestamp of every single triple in the engine
15. Master Degree Thesis – Riccardo Tommasini
Background - DSMS vs CEP
12
Q
Q
Q
Q
Throw
Scratch
Store
Stream
Stream 1
Stream2
Stream n
…
Complex Event
Processing
Engine
Event Observers Event Consumers
Processing Flows of Information: From Data Stream to Complex Event Processing
- Gianpaolo Cugola & Alessandro Margara
Heterogeneous data stream
processing
Data semantic is up to the client
Incoming data are notification of
events
Events are semantically evaluate
through rules
Pub/Sub Model
CEP
DSMS
Continuous queries execution
20. Master Degree Thesis – Riccardo Tommasini
Agenda
14
Background
Stream
Reasoning
Get
in
Touch
Heaven
✓
SR
Example
21. Master Degree Thesis – Riccardo Tommasini
Stream Reasoning (SR)
15
Reasoning upon heterogeneous and rapidly
changing information flows.
-- S. Ceri, E. Della Valle, F. van Harmelen and H. Stuckenschmidt, 2010
24. Master Degree Thesis – Riccardo Tommasini
SR - RSP Engine
16
RDF
Stream
Processing
Engine
heterogeneous data (unbounded) streams
25. Master Degree Thesis – Riccardo Tommasini
SR - RSP Engine
16
RDF
Stream
Processing
Engine
data streams integration through RDF data model
heterogeneous data (unbounded) streams
26. Master Degree Thesis – Riccardo Tommasini
SR - RSP Engine
16
RDF
Stream
Processing
Engine
data streams integration through RDF data model
continuously infers implied triples w.r.t. ontology T
heterogeneous data (unbounded) streams
T
27. Master Degree Thesis – Riccardo Tommasini
< ,Q>
SR - RSP Engine
16
RDF
Stream
Processing
Engine
data streams integration through RDF data model
continuously infers implied triples w.r.t. ontology T
heterogeneous data (unbounded) streams
continuous querying (Q) answering
T
43. Master Degree Thesis – Riccardo Tommasini
Agenda
19
Background
Stream
Reasoning
Get
in
Touch
Heaven
✓
SR
Example
44. Master Degree Thesis – Riccardo Tommasini 20
BlueRoom RedRoom
is with
Running Example
45. Master Degree Thesis – Riccardo Tommasini 20
BlueRoom RedRoom
RedSensor
BlueSensor
is with
Running Example
46. Master Degree Thesis – Riccardo Tommasini 20
BlueRoom RedRoom
RedSensor
BlueSensor
R
Alice
R RFID is with
Running Example
47. Master Degree Thesis – Riccardo Tommasini 20
BlueRoom RedRoom
RedSensor
BlueSensor
R
Alice
Bob
R RFID is withFoursquare
Running Example
48. Master Degree Thesis – Riccardo Tommasini 20
BlueRoom RedRoom
RedSensor
BlueSensor
R
Alice
David
Bob
Carl
Elena
R RFID is withf FacebookFoursquare
Running Example
49. Master Degree Thesis – Riccardo Tommasini 21
▪ Four ways to learn who is where
Sensor Room Person Time-stamp
RedSensor RedRoom Alice T1
… … … …
Person ChecksIn Time-stamp
Bob BlueRoom T2
… … …
Person IsIn With Time-stamp
Carl null Bob T2
David RedRoom Elena T3
… … … …
Running Example - Which Data?
50. Master Degree Thesis – Riccardo Tommasini
Running Example - Data Model
22
Streaming Data Static Data
isWith
isConnectedTo
51. Master Degree Thesis – Riccardo Tommasini
Running Example - Data Model
22
Streaming Data Static Data
isWith
isConnectedTo
53. Master Degree Thesis – Riccardo Tommasini
Agenda
24
Background
Stream
Reasoning
Get
in
Touch
Heaven
✓
SR
Example
54. Master Degree Thesis – Riccardo Tommasini
Heaven - Research Question
My
contributions
are
Can
we
enable
Systematic
Comparative
Research
Approach
of
RSP
Engines,
exploiting
existing
queries,
dataset
and
metrics?
25
55. Master Degree Thesis – Riccardo Tommasini
Heaven - Research Question
My
contributions
are
Can
we
enable
Systematic
Comparative
Research
Approach
of
RSP
Engines,
exploiting
existing
queries,
dataset
and
metrics?
Test
Stand
25
56. Master Degree Thesis – Riccardo Tommasini
Evaluate
engines
with
Test
Stands
26
In Aerospace engineering…
Experimental Environment
Reproducibility, Repeatability, Comparability
Evaluation of running systems
Heaven - Test Stand
57. Master Degree Thesis – Riccardo Tommasini
Heaven - Test Stand
27
Disk
ResultCollectorStreamer
RSPEngine
Experiment
Analyser
Start
MB
Stop
TestStand
MB
58. Master Degree Thesis – Riccardo Tommasini
My
contributions
are
Can
we
enable
Systematic
Comparative
Research
Approach
of
RSP
Engines,
exploiting
existing
queries,
dataset
and
metrics?
28
Test
Stand
Heaven - Research Question
59. Master Degree Thesis – Riccardo Tommasini
My
contributions
are
Can
we
enable
Systematic
Comparative
Research
Approach
of
RSP
Engines,
exploiting
existing
queries,
dataset
and
metrics?
Method
28
Test
Stand
Heaven - Research Question
60. Master Degree Thesis – Riccardo Tommasini
Heaven - Analyser
I
develop
a
layered
investigation
method,
which
tries
answer
different
possible
question
about
RSP
Engine
L0
-‐
How
to
choose
an
engine?
L1
-‐
What
distinguish
an
engine?
L2
-‐
When
choosing
an
engine?
L3
-‐
Why
choosing
this
engine?
29
Causalità dei livelli, sarebbe bello poter dire sempre quale engine è migliore
61. Master Degree Thesis – Riccardo Tommasini
My
contributions
are
Can
we
enable
Systematic
Comparative
Research
Approach
of
RSP
Engines,
exploiting
existing
queries,
dataset
and
metrics?
Test
Stand
Method
30
Heaven - Research Question
62. Master Degree Thesis – Riccardo Tommasini
My
contributions
are
Can
we
enable
Systematic
Comparative
Research
Approach
of
RSP
Engines,
exploiting
existing
queries,
dataset
and
metrics?
Test
Stand
Baselines
Method
Analysis
30
Heaven - Research Question