Академический Документы
Профессиональный Документы
Культура Документы
Srdjan Komazec
Outline
www.sti-innsbruck.at
Motivation
www.sti-innsbruck.at 3
Motivation
A prediction
By 2015 2015, wirelessly networked sensors in everything we own will form a new Web. But it will only be of value if the terabyte torrent of data it generates can be collected, analyzed and interpreted.*
Mark Raskino, Jackie Fenn, and Alexander Linden. Extracting Value From the Massively Connected World of 2015. Gartner Research, 1 April 2005. http://www.gartner.com/resources/125900/125949/extracting_valu.pdf
www.sti-innsbruck.at 4
Motivation
A prediction
www.sti-innsbruck.at
Motivation
Semantic Sensor Web
Amit Sheth, Cory Henson, Satya S. Sahoo, "Semantic Sensor Web," IEEE Internet Computing, pp. 78-83, July/August, 2008
6
www.sti-innsbruck.at
Motivation
Semantic Sensor Web
sens-obs:Observation_WindSpeed_3CLO3_2005_10_16_9_35_00 a weather:WindObservation ; om-owl:observedProperty weather:_WindSpeed ; om-owl:procedure sens-obs:System_3CLO3 ; om-owl:result sens-obs:MeasureData_WindSpeed_3CLO3_2005_10_16_9_35_00 ; om-owl:samplingTime sens-obs:Instant_2005_10_16_9_35_00 . sens-obs:MeasureData_WindSpeed_3CLO3_2005_10_16_9_35_00 a om-owl:MeasureData ; om-owl:floatValue "17.0"^^xsd:float ; om-owl:uom weather:milesPerHour . sens-obs:Instant_2005_10_16_9_35_00 a owl-time:inXSDDateTime
owl-time:Instant ; "16-10-2005T09:35:00^^http://www.w3.org/2001/XMLSchema#dateTime".
Motivation
Internet of Things
Internet of Things
Refers to the networked interconnection of everyday objects*. If everything in our daily life could be just identified situations like lost parcels, theft, running out of stock, etc. would be things of past.
*Conner, C
M Margery (M (May 27, 27 2010). 2010) Sensors S empower the th "Internet "I t t of f Things" Thi ". pp. 3238. 32 38 ISSN 0012-7515 0012 7515
**http://www.i-o-t.org/post/3questionstoPhilippeGAUTIERbyDavidFayon
www.sti-innsbruck.at
Motivation
Internet of Things
Central Nervous System for the Earth (HP Labs initiative) A research and development program to build a planetwide sensing network, using billions of "tiny, cheap, tough and exquisitely sensitive detectors detectors. Sensors detect vibrations, motion, light, temperature, barometric pressure airflow and humidity pressure, humidity. Possible use-cases*:
*
Warning W i about b t structural t t l strains t i or weather th conditions, diti Monitor traffic, weather and road conditions, Tracking hospital equipment, Sniffing g out pesticides and pathogens g in food, etc.
http://www.hpl.hp.com/news/2009/oct-dec/cense.html
www.sti-innsbruck.at
Motivation
Other examples
Twitter's T itt ' co-founder f d E Ev Williams Willi on S September t b 14th 14th, 2010 2010, htt http://techcrunch.com/2010/09/14/twitter-event //t h h /2010/09/14/t itt t th Facebook statistics, Retrieved on March 7 , 2011 at http://www.facebook.com/press/info.php?statistics *** Twitter Annotations Overview, http://dev.twitter.com/pages/annotations_overview
**
www.sti-innsbruck.at 10
And so what?
Motivation
www.sti-innsbruck.at 11
Motivation
The join points between the examples
Data is delivered in the form of stream A stream is a sequence of data of undetermined length*.
Inner data structures are exhibiting dimensional characteristics of the notion of event
Temporal dimension (creation data stamp), Geospatial dimension (coordinates where the data is created), Informational dimension (payload), etc.
Event processing stands for a set of techniques, techniques languages and tools to collect, analyze and interpret event streams.
http://www.cafeaulait.org/course/week10/02.html
12
www.sti-innsbruck.at
Motivation
Event Processing Market Players (March 4th, 2011)
The CEP Market in 2011. Retrieved from http://tibcoblogs.com/cep/2011/03/04/the-cep-market-in-2011 on March 7th, 2011
www.sti-innsbruck.at 13
Motivation
Reported Customers of Event Processing Solutions
Motivation
Current Event Processing Approaches
www.sti-innsbruck.at
15
Motivation
Event processing on the Web
Events interoperability
www.sti-innsbruck.at
16
Motivation
Event Processing on the Web must rely on the Semantic Web in order to achieve its full potential potential.
www.sti-innsbruck.at
17
Technical Solution
www.sti-innsbruck.at
18
Technical Solution
Outline
Basic Concepts
The notion of event, event processing, and event processing networks
www.sti-innsbruck.at
19
Basic Concepts *
Technical Solution S
* Opher
Etzion and Peter Niblett. Event Processing in Action. Manning Publications Co., 2010
20
www.sti-innsbruck.at
Technical Solution
Basic Concepts What is an event?
What is an event?
* An event is anything y g that happens. pp An event is an occurrence within a particular system or domain; it is something that has happened, or is contemplated as having happened in that domain. **
Examples of events:
Temperature sensor readings, airplane landing, Twitter updates, etc.
* K.
Many Chandy, W. Roy Schulte. Event Processing: Designing IT Systems for Agile Companies, McGraw-Hill Osborne Media, 2009 Etzion and Peter Niblett. Event Processing in Action. Manning Publications Co., 2010
21
** Opher
www.sti-innsbruck.at
Technical Solution
Basic Concepts What are event dimensions?
* Ramesh
Jain, "EventWeb: Developing a Human-Centered Computing System," Computer, pp. 42-50, February, 2008
22
www.sti-innsbruck.at
Technical Solution
Basic Concepts Event Type
An event type is a specification for a set of event objects that have the same semantic intent and same structure *.
* Opher
Etzion and Peter Niblett. Event Processing in Action. Manning Publications Co., 2010
23
www.sti-innsbruck.at
Technical Solution
Basic Concepts Event Processing
* http://en.wikipedia.org/wiki/Complex_event_processing ** Opher
Etzion and Peter Niblett. Event Processing in Action. Manning Publications Co., 2010
24
www.sti-innsbruck.at
Technical Solution
Basic Concepts Elements in the event processing environment
Global State
Context
A context is a named specification of conditions that groups together event instances for the purpose of processing them together.
* Opher
Etzion and Peter Niblett. Event Processing in Action. Manning Publications Co., 2010
25
www.sti-innsbruck.at
Technical Solution
Basic Concepts Event Processing Agent (EPA)
www.sti-innsbruck.at
26
Technical Solution
Basic Concepts Event Processing Network
* Opher
Etzion and Peter Niblett. Event Processing in Action. Manning Publications Co., 2010
27
www.sti-innsbruck.at
Technical Solution
Basic Concepts Detecting Event Patterns
A Pattern is a function that takes a collection of input event instances and produces a matching set that consists of zero or more of those input events*. Event pattern categories and types
Basic B i event t patterns tt
Logical Operator Patterns (all, any, absence). Threshold Patterns (count, value max, value min, value average). Relative Patterns (relative max, relative min). M d lP Modal Patterns tt (always, ( l sometimes). ti ) Temporal Patterns (sequence, increasing, decreasing, non increasing, non decreasing, stable). Spatial Patterns (min distance, distance max distance, distance average distance distance, relative min min, relative max, max relative average). Spatiotemporal Patterns (moving in constant direction, stationary, moving towards).
Dimensional patterns
* Opher
www.sti-innsbruck.at
Technical Solution
Basic Concepts - Languages
R l Rule-oriented i t d style t l
Production rules
IF condition THEN action (forward chaining). Rooted in expert systems. Event-Condition-Action (ECA) rules. Rooted in Active Databases. Example is Rulecore. Based on logic assertions. Rooted in the deductive databases. Example is ETALIS.
Active rules
Imperative style
Logic is coded in C or Java.
* Opher
Etzion and Peter Niblett. Event Processing in Action. Manning Publications Co., 2010
29
www.sti-innsbruck.at
Technical Solution
www.sti-innsbruck.at 30
Technical Solution
Event Processing on the Semantic Web - Related Work
www.sti-innsbruck.at
31
Technical Solution
Event Processing on the Semantic Web
Related Work
Modular Active Rules for the Semantic Web (MARS) (Gttingen University)
Web as an active infrastructure of autonomous systems with the primary focus on reactivity and d evolution. l ti Defines ECA rule ontology as a joining point for different event, condition and action languages. Extends behavior of an OWL node with the ECA-based reactive behavior.
www.sti-innsbruck.at
32
* Figures
Technical Solution
ETALIS Introduction
ETALIS features
Effective detection of complex events over streaming data Evaluation of background knowledge on-the-fly Reasoning about semantic relationships among events
www.sti-innsbruck.at
34
Technical Solution
ETALIS Conceptual Architecture
www.sti-innsbruck.at
35
Technical Solution
ETALIS ETALIS Language for Events (ELE)
www.sti-innsbruck.at
36
Technical Solution
ETALIS ETALIS Language for Events (ELE) Example
Background knowledge
trafficEvent() trafficEvent() trafficEvent() trafficEvent() trafficEvent() trafficEvent() trafficEvent() trafficEvent() trafficEvent() Event detection rule
bottleneckArea(a) bottleneckArea(b)
www.sti-innsbruck.at
37
Technical Solution
ETALIS Internal processing
Event-driven rules
A rule is evaluated when an event matching the rules head occurs. A firing rule inserts a goal into the memory. Goal denotes (partial) happening of an event it shows the current state of p progress g towards matching g an event pattern.
The process of splitting complex rules l i into t th the bi binary rules l i is called binarization.
38
www.sti-innsbruck.at
Technical Solution
ETALIS Stream Reasoning with EP-SPARQL
Specifying complex event patterns and consuming streams and background knowledge represented as RDF Event processing SPARQL (EP-SPARQL)
Extends SPARQL with
Binary operators SEQ, EQUALS, OPTIONALSEQ and EQUALSOPTIONAL.
The operators are acting as joins depending on how the constituents are temporally interrelated
www.sti-innsbruck.at
39
Technical Solution
ETALIS Stream Reasoning with EP-SPARQL - Example
Background knowledge
?road =
www.sti-innsbruck.at
40
Possible extensions
www.sti-innsbruck.at 41
Problems
Event Processing on the Web
Events interoperability
www.sti-innsbruck.at
42
Proposed Solution
Semantically Enhanced Event Processing Networks (SEPN)
/* SEPN Agent functionality declaration */ SEPADecl ::= PrefixDecl* InTerDecl OutTerDecl FilterDecl? MatcherDecl? DeriverDecl? /* Input and output terminals declaration */ InTerDecl ::= 'INPUT TERMINAL' (Term_Id Event_Type_Id)+ OutTerDecl ::= 'OUTPUT TERMINAL' (Term_Id Event_Type_Id)+ /* Filter function declaration */ FilterDecl ::= 'FILTER' Input_Term* Output_Term? Filter_Expr+ Filter_Expr ::= WhereClause /* Matcher function declaration */ MatcherDecl ::= 'MATCHER' Input_Term* Output_Term? Matcher_Expr Matcher_Expr ::= WhereClause /* Deriver function declaration */ DeriverDecl ::= 'DERIVER' Input_Term* Output_Term Gl_State_Id? Deriver_Expr Gl_State_Id ::= 'GLOBAL STATE' IRI_REF Deriver_Expr ::= 'DERIVE' ConstructTriples 'FROM' WhereClause Input p _Term ::= 'INPUT' Term_Id Output_Term ::= 'OUTPUT' Term_Id Term_Id ::= IRI_REF Event_Type_Id ::= IRI_REF IRI_REF ::= '<' ([^<>"{}|^`\]-[#x00-#x20])* '>'
43
Srdjan Komazec and Davide Cerri. Enhancing Event Processing Networks with Semantics to Enable SelfManaged SEE Federations. 3rd International Workshop on Monitoring, Adaptation and Beyond (MONA+) colocated with collocated with ECOWS, Ayia Napa, Cyprus, 2010.
www.sti-innsbruck.at
Proposed Solution
Graph Pattern Detection
Rete Algorithm
Pattern matching algorithm for implementing production rule systems. Designed g by y Dr Charles L. Forgy gy of Carnegie g Mellon University y( (1974). ) The basis for many popular expert system shells, including CLIPS, Jess, Drools, BizTalk, Rules Engine and Soar.
www.sti-innsbruck.at
44
Proposed Solution
Graph Pattern Detection An Example
rdf:type = weather:WindObservation
? ?x
sensor:result sensor:samplingTime
rdf:type = sensor:MeasureData
?y
rdf:type = time:Instant
?z
sensor:floatValue
time:inXSDDateTime
?floatValue
?instant
www.sti-innsbruck.at
45
Proposed Solution
Graph Pattern Detection Alpha and Beta Memory Structures
ALPHA MEMORY
RootNode JoinNode
BETA MEMORY
PREDICATE rdf:type
AlphaNode
BetaNode JoinNode
PREDICATE sensor:result PREDICATE sensor:samplin gTime PREDICATE rdf:type PREDICATE sensor:floatVal ue PREDICATE rdf:type PREDICATE time:inXSDTim eData OBJECT time:instant OBJECT sensor:Measur eData
AlphaNode
AlphaNode
RootNode
AlphaNode
JoinNode BetaNode
Detection Node
www.sti-innsbruck.at
46
Further extensions
Negated conditions
www.sti-innsbruck.at
47
Conclusions
www.sti-innsbruck.at
48
Conclusions
Event processing represents a particular paradigm in the field of data stream processing where the streamed data exhibits specific structural dimensionality - temporal, geo-spatial, causal, etc. Event processing systems are composed out of a set elements exhibiting different behavior (produces, consumers, agents, channels, global states and contexts). Semantic Web technologies are becoming a requirement when it comes to Event processing on the Web. Semantic Web technologies tend to provide a fruitful foundation to address the challenges of Event processing on the Web.
www.sti-innsbruck.at
49
References
www.sti-innsbruck.at
50
References
Books
David Luckham. Luckham The Power of Events: An Introduction to Complex Event Processing in Distributed Enterprise Systems. Addison-Wesley, 2002 Opher Etzion and Peter Niblett. Event Processing in Action. Manning Publications Co., 2010
Blogs
Complex Event Processing: Applications, products, research, and developments in event processing by David Luckham @ http://www.complexevents.com Complex Event Processing (CEP) Blog by TIBCO @ http://tibcoblogs.com/cep Event Processing Thinking by Opher Etzion @ http://epthinking.blogspot.com http://epthinking blogspot com
Technical Societies
Event Processing Technical Society http://www.ep-ts.com
www.sti-innsbruck.at
51
References
Wikipedia links
Complex event processing Event-driven architecture Pattern matching Internet of Things g http://en.wikipedia.org/wiki/Complex_event_processing http://en.wikipedia.org/wiki/Event-driven_architecture http://en.wikipedia.org/wiki/Pattern_matching http://en.wikipedia.org/wiki/Internet_of_Things p p g _ _ g
www.sti-innsbruck.at
52
Questions?
www.sti-innsbruck.at
53