Abortion pills in Doha Qatar (+966572737505 ! Get Cytotec
RDF Streams and Continuous SPARQL (C-SPARQL)
1. BigData
Semantic Approach to
Big Data and Event Processing
RDF Streams and
Con0nuous SPARQL
(C-SPARQL)
Riccardo Tommasini
PhD Student - Politecnico di Milano
riccardo.tommasini@polimi.it
2. BigData
Agenda
• Introduc0on
• Running example
• C-SPARQL language
– Query and Stream Registra0on
– FROM STREAM Clause
– TimeStamp Func0on
– Query Chaining
– Accessing background Informa0on
– Stream reasoning support
• C-SPARQL Engine
• Resources
2
13. BigData
C-SPARQL language
• Features illustrated in the rest of this session
– register con0nuous queries
• QUERY form
• STREAM form
– iden0fy relevant informa0on in one or more RDF streams
– derive and aggregate informa0on from one or more RDF
streams
– join or merge RDF streams
– feed results of one C-SPARQL query to a subsequent
C-SPARQL query
– access background RDF graphs
– answer using rule based encoding of owl fragments
13
15. BigData
Query and Stream Registration
• All C-SPARQL queries over RDF streams are con0nuous
– Registered through the REGISTER statement
• The output of queries is in the form of
– Instantaneous tables of variable bindings
– Instantaneous RDF graphs
– RDF stream
• Only queries in the CONSTRUCT form can be registered as
generators of RDF streams
• Composability:
– Query results registered as streams can feed other registered
queries just like every other RDF stream
15
16. BigData
Query registra0on - Example
• Using the social stream d, Who is where?
REGISTER QUERY QWhoIsWhereOnFb AS
PREFIX : <http://…/sr4ld2014-onto#>
SELECT ?room ?person
FROM STREAM <http://…/fb> [RANGE 1m STEP 10s]
WHERE {
?person1 :posts [ :who ?person ; :where ?room ] .
}
• The resul0ng variable bindings has to be interpreted as
an instantaneous. It expires as soon as the query is
recomputed
16
36. BigData
C-SPARQL Engine Features at a glance 2/3
• Extensible Middleware
– Run0me management of
• RDF streams
• C-SPARQL query
• Result listerners
– API driven
• Quick start available
– C-SPARQL Engine
• h[p://streamreasoning.org/download/csparqlreadytogopack
• Source code are released open source under Apache 2.0
– C-SPARQL Engine
• h[ps://github.com/streamreasoning/CSPARQL-engine
• h[ps://github.com/streamreasoning/CSPARQL-ReadyToGoPack
36
42. BigData
Semantic Approach to
Big Data and Event Processing
Thank you!
Any Ques0on?
Riccardo Tommasini
PhD Student - Politecnico di Milano
riccardo.tommasini@polimi.it