SlideShare a Scribd company logo
Politecnico di Milano, DEIB
Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano
Marco Balduini, Riccardo Tommasini, Emanuele Della Valle
A Cheaper, Faster yet more Accurate 

Streaming Linked Data Framework
1
ESWC
Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano
RSP is Great!
2
EyE
Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano
ESWC
Why RSP?
3
- offers a generic overview over streams and static data
- enables query answering across heterogeneous sources
- consents to create/publish new streams or graphs
ESWC
Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano
The RSP Idea
4
in short
EyE
Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano
ESWC
CQL Model
5
Streams
Relations
Streams-to-Relations
Relations-to-Streams
Relationsto-Relations
The CQL continuous query language 

- Arvind Arasu · Shivnath Babu · Jennifer Widom, 2006, VLDBJ
EyE
Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano
ESWC
RSP-QL Model
6
RDF Streams Solution
Mappings
S2R operators
R2S operators
R2R operators
The CQL continuous query language 

- E. Della Valle, S. Ceri, D. Barbieri, D. Braga, A. Campi, 2008, FIS
EyE
Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano
ESWC
RSP in a Nutshell
7
RDF Stream-to-RDF
RDF-to-RDF (solution mappings)
RDF-to-RDF Stream
on RDF Streams
ESWC
Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano
RSP in Practice
8
With SLD
EyE
Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano
ESWC
An Social Media Example
9
How many micro-posts do occur over time?
How often does a hashtag appears in the micro-post
stream?
Two Information Needs
EyE
Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano
ESWC
Streaming Linked Data Server
Sources
Raw Stream
10
Adapter RDF Stream Bus Publisher
Visualizer
Recorder Re-player Analiser Decorator
EyE
Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano
ESWC
11
Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano
An Important
Optimisation
REGISTER STREAM sstr AS
CONSTRUCT {
?id sma:twitterCount ?tc }
FROM STREAM <social> [RANGE 1m STEP 1m]
WHERE {
SELECT (uuid() AS ?id) ?tc
WHERE {
SELECT
(COUNT (DISTINCT ?mp) AS ?tc)
WHERE {
?mp a sma:Tweet } } }
12
EyE
Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano
ESWC
13
EyE
Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano
ESWC
14
Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano
Using
C-SPARQL
REGISTER STREAM countT AS
CONSTRUCT {
?uid sma:twitterCount ?tot .}
FROM STREAM <sstr> [RANGE 15m
STEP 1m]
WHERE {
SELECT
(uuid() AS ?uid)
(SUM(?tc) AS ?tot)
WHERE {
?id sma:twitterCount ?tc }}
15
ESWC
Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano
Is RSP always great?
16
EyE
Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano
ESWC
Observations
17
It is flexible. :)
It forces RDF when query results are often relational :(
It is not optimal, i.e. RSP-QL vs SQL vs Path Queries
on SLD
ESWC
Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano
Revolutionising SLD
18
EyE
Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano
ESWC
A “Lazy” Processing Model
19
Stream operators can be applied on generic data items.
QL-specific operators requires a particular data type.
Postpone the data transformation as late as possible.
on streams
EyE
Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano
ESWC
Generic Programming
20
Generic programming is a style of computer
programming in which algorithms are written in terms of
types to-be-specified-later that are then instantiated
when needed for specific types provided as parameters.
an old idea
EyE
Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano
ESWC
A new Processing Model
21
Generic

Streams<T>
Generic

Instantaneous<T>
S2I<T>
I2S<T>
I2I<T>
EyE
Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano
ESWC
Lazy Transformation by Generic Programming
22
stream-to-instantaneous<T>
instantaneous-to-instantaneous<T>
instantaneous-to-stream<T>
on streams<T>
ESWC
Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano
RSP in Practice
23
with SLD Revolution
EyE
Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano
ESWC
Sources
Stream
Sink
Streaming Linked Data Revolution Server
24
Receiver Generic Stream Bus Translator
Stream
Recorder Re-player Processor Decorator
EyE
Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano
ESWC
25
ESWC
Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano
SLD vs SLD Revolution
26
Let’s be quantitative
EyE
Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano
ESWC
It is faster, cheaper yet more accurate than SLD.
27
R²	=	0,96413R²	=	0,99891
30
300
3000
1 10 100
Median	Engine	Memory	(MB)
Median	CPU	Load	(%)	
SLD
SLD	Revolution
Expon.		(SLD)
Linear		(SLD	Revolution)
ESWC
Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano
Discussion & Conclusion
28
EyE
Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano
ESWC
Observations
29
It is faster, cheaper yet more accurate than SLD. :)
It requires to know EPL, SPARQL, JSON path queries. :(
It is optimised and, thus, not flexible. :(
on SLD Revolution
EyE
Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano
ESWC
Open Problems
30
RSP-QL is not always the best solution in terms of cost/performance
Can we identify an optimum?
Can we define a cost model for RSP-QL ?
Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano
Questions?
Email: riccardo.tommasini@polimi.it

Twitter: @rictomm
31
Email: marco.balduini@polimi.it

Twitter: @ balducci85
Pablo Picasso, Les Demoiselles d'Avignon, 1907. 

Museum of Modern Art (MoMA), New York City, NY, US

More Related Content

Similar to SLD Revolution: A Cheaper, Faster yet more Accurate Streaming Linked Data Framework

Ottimali tecnologie di gestione delle infrastrutture
Ottimali tecnologie di gestione delle infrastruttureOttimali tecnologie di gestione delle infrastrutture
Ottimali tecnologie di gestione delle infrastruttureServizi a rete
 
Open-sourcing JavaScript at the City of Amsterdam - All Things Open 2019
Open-sourcing JavaScript at the City of Amsterdam - All Things Open 2019Open-sourcing JavaScript at the City of Amsterdam - All Things Open 2019
Open-sourcing JavaScript at the City of Amsterdam - All Things Open 2019Roy Derks
 
Open-sourcing JavaScript at the City of Amsterdam
Open-sourcing JavaScript at the City of AmsterdamOpen-sourcing JavaScript at the City of Amsterdam
Open-sourcing JavaScript at the City of AmsterdamAll Things Open
 
Stream Reasoning: a summary of ten years of research and a vision for the nex...
Stream Reasoning: a summary of ten years of research and a vision for the nex...Stream Reasoning: a summary of ten years of research and a vision for the nex...
Stream Reasoning: a summary of ten years of research and a vision for the nex...Emanuele Della Valle
 
From TRL to MRL: Assessing Open Source Project Market Readiness, Cédric Thoma...
From TRL to MRL: Assessing Open Source Project Market Readiness, Cédric Thoma...From TRL to MRL: Assessing Open Source Project Market Readiness, Cédric Thoma...
From TRL to MRL: Assessing Open Source Project Market Readiness, Cédric Thoma...OW2
 
An Homophily-based Approach for Fast Post Recommendation in Microblogging Sys...
An Homophily-based Approach for Fast Post Recommendation in Microblogging Sys...An Homophily-based Approach for Fast Post Recommendation in Microblogging Sys...
An Homophily-based Approach for Fast Post Recommendation in Microblogging Sys...recsysfr
 
HPC in the cloud comes of age - Red Oak HPC Seminar
HPC in the cloud comes of age - Red Oak HPC SeminarHPC in the cloud comes of age - Red Oak HPC Seminar
HPC in the cloud comes of age - Red Oak HPC SeminarMartin Hamilton
 
FORMAT Final Conference - brief
FORMAT Final Conference - briefFORMAT Final Conference - brief
FORMAT Final Conference - briefFORMAT Project
 
From AirBox to Smart City: where are we and what's next?
From AirBox to Smart City: where are we and what's next?From AirBox to Smart City: where are we and what's next?
From AirBox to Smart City: where are we and what's next?Ling-Jyh Chen
 
Smart cities thinking outside the box
Smart cities thinking outside the boxSmart cities thinking outside the box
Smart cities thinking outside the boxMassTLC
 
FITCE Congress 2017, Madrid - Raf Meersman (CEO, Comsof)
FITCE Congress 2017, Madrid - Raf Meersman (CEO, Comsof)FITCE Congress 2017, Madrid - Raf Meersman (CEO, Comsof)
FITCE Congress 2017, Madrid - Raf Meersman (CEO, Comsof)Comsof
 
Data Integration in a Big Data Context
Data Integration in a Big Data ContextData Integration in a Big Data Context
Data Integration in a Big Data ContextAlasdair Gray
 
From programming languages to network protocols: lessons on API design
From programming languages to network protocols: lessons on API designFrom programming languages to network protocols: lessons on API design
From programming languages to network protocols: lessons on API designflpvsk
 
Apache Storm Tutorial
Apache Storm TutorialApache Storm Tutorial
Apache Storm TutorialDavide Mazza
 
Stream Reasoning: Where we got so far. Oxford 2010.1.18
Stream Reasoning: Where we got so far. Oxford 2010.1.18Stream Reasoning: Where we got so far. Oxford 2010.1.18
Stream Reasoning: Where we got so far. Oxford 2010.1.18Emanuele Della Valle
 
Real Time Analytics with Apache Cassandra - Cassandra Day Berlin
Real Time Analytics with Apache Cassandra - Cassandra Day BerlinReal Time Analytics with Apache Cassandra - Cassandra Day Berlin
Real Time Analytics with Apache Cassandra - Cassandra Day BerlinGuido Schmutz
 
ThyssenKrupp's Procurement Transformation: Minimizing Direct Materials Contra...
ThyssenKrupp's Procurement Transformation: Minimizing Direct Materials Contra...ThyssenKrupp's Procurement Transformation: Minimizing Direct Materials Contra...
ThyssenKrupp's Procurement Transformation: Minimizing Direct Materials Contra...SAP Ariba
 
Bristlecone Innovation by Sweeni Ponoth VP & GM, Bristlecone Labs
Bristlecone Innovation by Sweeni Ponoth  VP & GM, Bristlecone LabsBristlecone Innovation by Sweeni Ponoth  VP & GM, Bristlecone Labs
Bristlecone Innovation by Sweeni Ponoth VP & GM, Bristlecone LabsBristlecone SCC
 
Project management strategies at Netcompany 2 (ITU guest lecture 31-03-2017)
Project management strategies at Netcompany 2 (ITU guest lecture 31-03-2017)Project management strategies at Netcompany 2 (ITU guest lecture 31-03-2017)
Project management strategies at Netcompany 2 (ITU guest lecture 31-03-2017)Rasmus Petersen
 

Similar to SLD Revolution: A Cheaper, Faster yet more Accurate Streaming Linked Data Framework (20)

Ottimali tecnologie di gestione delle infrastrutture
Ottimali tecnologie di gestione delle infrastruttureOttimali tecnologie di gestione delle infrastrutture
Ottimali tecnologie di gestione delle infrastrutture
 
Open-sourcing JavaScript at the City of Amsterdam - All Things Open 2019
Open-sourcing JavaScript at the City of Amsterdam - All Things Open 2019Open-sourcing JavaScript at the City of Amsterdam - All Things Open 2019
Open-sourcing JavaScript at the City of Amsterdam - All Things Open 2019
 
Open-sourcing JavaScript at the City of Amsterdam
Open-sourcing JavaScript at the City of AmsterdamOpen-sourcing JavaScript at the City of Amsterdam
Open-sourcing JavaScript at the City of Amsterdam
 
Stream Reasoning: a summary of ten years of research and a vision for the nex...
Stream Reasoning: a summary of ten years of research and a vision for the nex...Stream Reasoning: a summary of ten years of research and a vision for the nex...
Stream Reasoning: a summary of ten years of research and a vision for the nex...
 
From TRL to MRL: Assessing Open Source Project Market Readiness, Cédric Thoma...
From TRL to MRL: Assessing Open Source Project Market Readiness, Cédric Thoma...From TRL to MRL: Assessing Open Source Project Market Readiness, Cédric Thoma...
From TRL to MRL: Assessing Open Source Project Market Readiness, Cédric Thoma...
 
An Homophily-based Approach for Fast Post Recommendation in Microblogging Sys...
An Homophily-based Approach for Fast Post Recommendation in Microblogging Sys...An Homophily-based Approach for Fast Post Recommendation in Microblogging Sys...
An Homophily-based Approach for Fast Post Recommendation in Microblogging Sys...
 
HPC in the cloud comes of age - Red Oak HPC Seminar
HPC in the cloud comes of age - Red Oak HPC SeminarHPC in the cloud comes of age - Red Oak HPC Seminar
HPC in the cloud comes of age - Red Oak HPC Seminar
 
FORMAT Final Conference - brief
FORMAT Final Conference - briefFORMAT Final Conference - brief
FORMAT Final Conference - brief
 
From AirBox to Smart City: where are we and what's next?
From AirBox to Smart City: where are we and what's next?From AirBox to Smart City: where are we and what's next?
From AirBox to Smart City: where are we and what's next?
 
Smart cities thinking outside the box
Smart cities thinking outside the boxSmart cities thinking outside the box
Smart cities thinking outside the box
 
FITCE Congress 2017, Madrid - Raf Meersman (CEO, Comsof)
FITCE Congress 2017, Madrid - Raf Meersman (CEO, Comsof)FITCE Congress 2017, Madrid - Raf Meersman (CEO, Comsof)
FITCE Congress 2017, Madrid - Raf Meersman (CEO, Comsof)
 
Data Integration in a Big Data Context
Data Integration in a Big Data ContextData Integration in a Big Data Context
Data Integration in a Big Data Context
 
From programming languages to network protocols: lessons on API design
From programming languages to network protocols: lessons on API designFrom programming languages to network protocols: lessons on API design
From programming languages to network protocols: lessons on API design
 
Apache Storm Tutorial
Apache Storm TutorialApache Storm Tutorial
Apache Storm Tutorial
 
Stream Reasoning: Where we got so far. Oxford 2010.1.18
Stream Reasoning: Where we got so far. Oxford 2010.1.18Stream Reasoning: Where we got so far. Oxford 2010.1.18
Stream Reasoning: Where we got so far. Oxford 2010.1.18
 
IPLOCA_NEWS_63w
IPLOCA_NEWS_63wIPLOCA_NEWS_63w
IPLOCA_NEWS_63w
 
Real Time Analytics with Apache Cassandra - Cassandra Day Berlin
Real Time Analytics with Apache Cassandra - Cassandra Day BerlinReal Time Analytics with Apache Cassandra - Cassandra Day Berlin
Real Time Analytics with Apache Cassandra - Cassandra Day Berlin
 
ThyssenKrupp's Procurement Transformation: Minimizing Direct Materials Contra...
ThyssenKrupp's Procurement Transformation: Minimizing Direct Materials Contra...ThyssenKrupp's Procurement Transformation: Minimizing Direct Materials Contra...
ThyssenKrupp's Procurement Transformation: Minimizing Direct Materials Contra...
 
Bristlecone Innovation by Sweeni Ponoth VP & GM, Bristlecone Labs
Bristlecone Innovation by Sweeni Ponoth  VP & GM, Bristlecone LabsBristlecone Innovation by Sweeni Ponoth  VP & GM, Bristlecone Labs
Bristlecone Innovation by Sweeni Ponoth VP & GM, Bristlecone Labs
 
Project management strategies at Netcompany 2 (ITU guest lecture 31-03-2017)
Project management strategies at Netcompany 2 (ITU guest lecture 31-03-2017)Project management strategies at Netcompany 2 (ITU guest lecture 31-03-2017)
Project management strategies at Netcompany 2 (ITU guest lecture 31-03-2017)
 

Recently uploaded

Demystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyDemystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyJohn Staveley
 
Agentic RAG What it is its types applications and implementation.pdf
Agentic RAG What it is its types applications and implementation.pdfAgentic RAG What it is its types applications and implementation.pdf
Agentic RAG What it is its types applications and implementation.pdfChristopherTHyatt
 
PLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsPLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsStefano
 
What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024Stephanie Beckett
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxDavid Michel
 
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka DoktorováCzechDreamin
 
AI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekAI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekCzechDreamin
 
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...FIDO Alliance
 
Strategic AI Integration in Engineering Teams
Strategic AI Integration in Engineering TeamsStrategic AI Integration in Engineering Teams
Strategic AI Integration in Engineering TeamsUXDXConf
 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlPeter Udo Diehl
 
UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1DianaGray10
 
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdfThe Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdfFIDO Alliance
 
Top 10 Symfony Development Companies 2024
Top 10 Symfony Development Companies 2024Top 10 Symfony Development Companies 2024
Top 10 Symfony Development Companies 2024TopCSSGallery
 
Connecting the Dots in Product Design at KAYAK
Connecting the Dots in Product Design at KAYAKConnecting the Dots in Product Design at KAYAK
Connecting the Dots in Product Design at KAYAKUXDXConf
 
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfWhere to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfFIDO Alliance
 
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfSimplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfFIDO Alliance
 
Speed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in MinutesSpeed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in Minutesconfluent
 
Optimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through ObservabilityOptimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through ObservabilityScyllaDB
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?Mark Billinghurst
 
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FIDO Alliance
 

Recently uploaded (20)

Demystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyDemystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John Staveley
 
Agentic RAG What it is its types applications and implementation.pdf
Agentic RAG What it is its types applications and implementation.pdfAgentic RAG What it is its types applications and implementation.pdf
Agentic RAG What it is its types applications and implementation.pdf
 
PLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsPLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. Startups
 
What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
 
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
 
AI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekAI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří Karpíšek
 
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
 
Strategic AI Integration in Engineering Teams
Strategic AI Integration in Engineering TeamsStrategic AI Integration in Engineering Teams
Strategic AI Integration in Engineering Teams
 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
 
UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1
 
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdfThe Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
 
Top 10 Symfony Development Companies 2024
Top 10 Symfony Development Companies 2024Top 10 Symfony Development Companies 2024
Top 10 Symfony Development Companies 2024
 
Connecting the Dots in Product Design at KAYAK
Connecting the Dots in Product Design at KAYAKConnecting the Dots in Product Design at KAYAK
Connecting the Dots in Product Design at KAYAK
 
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfWhere to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
 
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdfSimplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
Simplified FDO Manufacturing Flow with TPMs _ Liam at Infineon.pdf
 
Speed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in MinutesSpeed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in Minutes
 
Optimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through ObservabilityOptimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through Observability
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?
 
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
 

SLD Revolution: A Cheaper, Faster yet more Accurate Streaming Linked Data Framework

  • 1. Politecnico di Milano, DEIB Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano Marco Balduini, Riccardo Tommasini, Emanuele Della Valle A Cheaper, Faster yet more Accurate 
 Streaming Linked Data Framework 1
  • 2. ESWC Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano RSP is Great! 2
  • 3. EyE Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano ESWC Why RSP? 3 - offers a generic overview over streams and static data - enables query answering across heterogeneous sources - consents to create/publish new streams or graphs
  • 4. ESWC Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano The RSP Idea 4 in short
  • 5. EyE Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano ESWC CQL Model 5 Streams Relations Streams-to-Relations Relations-to-Streams Relationsto-Relations The CQL continuous query language 
 - Arvind Arasu · Shivnath Babu · Jennifer Widom, 2006, VLDBJ
  • 6. EyE Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano ESWC RSP-QL Model 6 RDF Streams Solution Mappings S2R operators R2S operators R2R operators The CQL continuous query language 
 - E. Della Valle, S. Ceri, D. Barbieri, D. Braga, A. Campi, 2008, FIS
  • 7. EyE Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano ESWC RSP in a Nutshell 7 RDF Stream-to-RDF RDF-to-RDF (solution mappings) RDF-to-RDF Stream on RDF Streams
  • 8. ESWC Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano RSP in Practice 8 With SLD
  • 9. EyE Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano ESWC An Social Media Example 9 How many micro-posts do occur over time? How often does a hashtag appears in the micro-post stream? Two Information Needs
  • 10. EyE Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano ESWC Streaming Linked Data Server Sources Raw Stream 10 Adapter RDF Stream Bus Publisher Visualizer Recorder Re-player Analiser Decorator
  • 11. EyE Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano ESWC 11
  • 12. Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano An Important Optimisation REGISTER STREAM sstr AS CONSTRUCT { ?id sma:twitterCount ?tc } FROM STREAM <social> [RANGE 1m STEP 1m] WHERE { SELECT (uuid() AS ?id) ?tc WHERE { SELECT (COUNT (DISTINCT ?mp) AS ?tc) WHERE { ?mp a sma:Tweet } } } 12
  • 13. EyE Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano ESWC 13
  • 14. EyE Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano ESWC 14
  • 15. Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano Using C-SPARQL REGISTER STREAM countT AS CONSTRUCT { ?uid sma:twitterCount ?tot .} FROM STREAM <sstr> [RANGE 15m STEP 1m] WHERE { SELECT (uuid() AS ?uid) (SUM(?tc) AS ?tot) WHERE { ?id sma:twitterCount ?tc }} 15
  • 16. ESWC Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano Is RSP always great? 16
  • 17. EyE Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano ESWC Observations 17 It is flexible. :) It forces RDF when query results are often relational :( It is not optimal, i.e. RSP-QL vs SQL vs Path Queries on SLD
  • 18. ESWC Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano Revolutionising SLD 18
  • 19. EyE Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano ESWC A “Lazy” Processing Model 19 Stream operators can be applied on generic data items. QL-specific operators requires a particular data type. Postpone the data transformation as late as possible. on streams
  • 20. EyE Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano ESWC Generic Programming 20 Generic programming is a style of computer programming in which algorithms are written in terms of types to-be-specified-later that are then instantiated when needed for specific types provided as parameters. an old idea
  • 21. EyE Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano ESWC A new Processing Model 21 Generic
 Streams<T> Generic
 Instantaneous<T> S2I<T> I2S<T> I2I<T>
  • 22. EyE Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano ESWC Lazy Transformation by Generic Programming 22 stream-to-instantaneous<T> instantaneous-to-instantaneous<T> instantaneous-to-stream<T> on streams<T>
  • 23. ESWC Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano RSP in Practice 23 with SLD Revolution
  • 24. EyE Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano ESWC Sources Stream Sink Streaming Linked Data Revolution Server 24 Receiver Generic Stream Bus Translator Stream Recorder Re-player Processor Decorator
  • 25. EyE Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano ESWC 25
  • 26. ESWC Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano SLD vs SLD Revolution 26 Let’s be quantitative
  • 27. EyE Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano ESWC It is faster, cheaper yet more accurate than SLD. 27 R² = 0,96413R² = 0,99891 30 300 3000 1 10 100 Median Engine Memory (MB) Median CPU Load (%) SLD SLD Revolution Expon. (SLD) Linear (SLD Revolution)
  • 28. ESWC Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano Discussion & Conclusion 28
  • 29. EyE Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano ESWC Observations 29 It is faster, cheaper yet more accurate than SLD. :) It requires to know EPL, SPARQL, JSON path queries. :( It is optimised and, thus, not flexible. :( on SLD Revolution
  • 30. EyE Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano ESWC Open Problems 30 RSP-QL is not always the best solution in terms of cost/performance Can we identify an optimum? Can we define a cost model for RSP-QL ?
  • 31. Portoroz - 2017 - Riccardo Tommasini - @rictomm - Politecnico di Milano Questions? Email: riccardo.tommasini@polimi.it
 Twitter: @rictomm 31 Email: marco.balduini@polimi.it
 Twitter: @ balducci85 Pablo Picasso, Les Demoiselles d'Avignon, 1907. 
 Museum of Modern Art (MoMA), New York City, NY, US