Reactivity on the Web: Event Queries and Composite Event Detection in XChange

Reactivity, the ability to detect events and respond automatically in a timely manner, is an essential requirement in many present-day information systems. The reactive, rule-based language XChange aims at filling the gap between the current, largely passive Web and the need for reactivity. XChange programs consist of rules, and each rule specifies events — happenings at (possibly remote) Web sites — it reacts upon using an event query. Event queries in XChange not only specify situations in which a rule reacts, but also extract and make available data from events that is relevant for the particular reaction. Oftentimes, the situations are not given by a single (atomic) event, but a series of events, leading to the notion of composite events and composite event queries. This work is dedicated to the design of XChange’s event query language, with an emphasis on the ability to query composite events. In this work, a number of language constructs are provided that allow to combine atomic event queries into composite event queries. Their intuitive meaning is underpinned with formal, declarative semantics for both atomic and composite event queries. By design, composite queries need only events with a bounded lifespan to be evaluated, and a proof of this based on the declarative semantics is offered in this work. Algorithms for the evaluation of event queries, in particular the detection of composite events, are provided and accompanied by a prototype implementation.

[1]  Sebastian Schaffert,et al.  Xcerpt: a rule-based query and transformation language for the web , 2004 .

[2]  Jennifer Widom,et al.  The Lorel query language for semistructured data , 1997, International Journal on Digital Libraries.

[3]  Jeffrey D. Ullman,et al.  Information integration using logical views , 1997, Theor. Comput. Sci..

[4]  Klaus R. Dittrich,et al.  Detecting composite events in active database systems using Petri nets , 1994, Proceedings of IEEE International Workshop on Research Issues in Data Engineering: Active Databases Systems.

[5]  Tim Furche,et al.  Querying the Web Reconsidered: Design Principles for Versatile Web Query Languages , 2005, Int. J. Semantic Web Inf. Syst..

[6]  François Bry,et al.  CaTTS: calendar types and constraints for Web applications , 2005, WWW '05.

[7]  Dan Suciu,et al.  Data on the Web: From Relations to Semistructured Data and XML , 1999 .

[8]  Klaus R. Dittrich,et al.  Events in an Active Object-Oriented Database System , 1993, Rules in Database Systems.

[9]  Opher Etzion,et al.  Amit - the situation manager , 2003, The VLDB Journal.

[10]  Serge Abiteboul,et al.  Foundations of Databases , 1994 .

[11]  François Bry,et al.  The XML Query Language Xcerpt: Design Principles, Examples, and Semantics , 2002, Web, Web-Services, and Database Systems.

[12]  Michael Eckert,et al.  Reactivity on the web: paradigms and applications of the language XChange , 2005, SAC '05.

[13]  Charles L. Forgy,et al.  Rete: a fast algorithm for the many pattern/many object pattern match problem , 1991 .

[14]  Steven J. DeRose,et al.  XML Path Language (XPath) Version 1.0 , 1999 .

[15]  Annika Hinze,et al.  A parameterized algebra for event notification services , 2002, Proceedings Ninth International Symposium on Temporal Representation and Reasoning.

[16]  James Bailey,et al.  Reactivity on the Web: Event Queries in XChange , 2005 .

[17]  SuciuDan,et al.  UnQL: a query language and algebra for semistructured data based on structural recursion , 2000, VLDB 2000.

[18]  Rainer Unland,et al.  On the semantics of complex events in active database management systems , 1999, Proceedings 15th International Conference on Data Engineering (Cat. No.99CB36337).

[19]  Dan Suciu,et al.  UnQL: a query language and algebra for semistructured data based on structural recursion , 2000, The VLDB Journal.

[20]  Scott Boag,et al.  XQuery 1.0 : An XML Query Language , 2007 .

[21]  Peyton Jones,et al.  Haskell 98 language and libraries : the revised report , 2003 .

[22]  François Bry,et al.  An Entailment Relation for Reasoning on the Web , 2003, RuleML.

[23]  George Coulouris,et al.  Distributed systems - concepts and design , 1988 .

[24]  Deborah L. McGuinness,et al.  OWL Web ontology language overview , 2004 .

[25]  Dan Olteanu Evaluation of XPath queries against XML streams , 2004 .

[26]  François Bry,et al.  A Contribution to the Semantics of Xcerpt, a Web Query and Transformation Language , 2004, INAP/WLP.

[27]  Tim Furche,et al.  The XML stream query processor SPEX , 2005, 21st International Conference on Data Engineering (ICDE'05).

[28]  François Bry,et al.  Xcerpt and visXcerpt: From Pattern-Based to Visual Querying of XML and Semistructured Data , 2003, VLDB.

[29]  Morris Sloman,et al.  GEM: a generalized event monitoring language for distributed systems , 1997, Distributed Syst. Eng..

[30]  Andreas Reuter,et al.  Principles of transaction-oriented database recovery , 1983, CSUR.

[31]  Tim Furche,et al.  XML Perspectives on RDF Querying: Towards integrated Access to Data and Metadata on the Web , 2005, Grundlagen von Datenbanken.

[32]  Alejandro P. Buchmann,et al.  Building an integrated active OODBMS: requirements, architecture, and design decisions , 1995, Proceedings of the Eleventh International Conference on Data Engineering.

[33]  Simon Thompson,et al.  Haskell: The Craft of Functional Programming , 1996 .

[34]  Klaus R. Dittrich,et al.  Aktive Datenbanksysteme - Konzepte und Mechanismen , 1996, Thomson's aktuelle Tutorien.

[35]  Narain H. Gehani,et al.  Composite Event Specification in Active Databases: Model & Implementation , 1992, VLDB.

[36]  Sharma Chakravarthy,et al.  Composite Events for Active Databases: Semantics, Contexts and Detection , 1994, VLDB.

[37]  Tim Furche,et al.  Data Retrieval and Evolution on the (Semantic) Web: A Deductive Approach , 2004, PPSWR.

[38]  James Bailey,et al.  Composite event queries for reactivity on the web , 2005, WWW '05.

[39]  Dan Brickley,et al.  Rdf vocabulary description language 1.0 : Rdf schema , 2004 .

[40]  François Bry,et al.  Querying the Web Reconsidered: A Practical Introduction to Xcerpt , 2004, Extreme Markup Languages®.

[41]  Szabolcs Mikulás,et al.  Expressiveness Issues and Decision Problems for Active Database Event Queries , 2001, ICDT.

[42]  François Bry,et al.  Towards a Declarative Query and Transformation Language for XML and Semistructured Data: Simulation Unification , 2002, ICLP.

[43]  Markus Endler,et al.  Evaluating composite events using shared trees , 2001, IEE Proc. Softw..

[44]  Narain H. Gehani,et al.  Event specification in an active object-oriented database , 1992, SIGMOD '92.

[45]  Roy T. Fielding,et al.  Uniform Resource Identifiers (URI): Generic Syntax , 1998, RFC.