LARS: A Logic-Based Framework for Analyzing Reasoning over Streams

Abstract The increasing availability of streaming data has accelerated advances in information processing tools that no longer store data for static querying but push information to consumers as soon as it becomes available. Stream processing aims at providing languages and tools for data that changes at a high rate. To cope with the volume of data, query languages often extend existing approaches for static data by means of window operators that return snapshots of recent data. However, the semantics of these languages are often given only informally or operationally, which makes their analysis and comparison difficult. A formal means to express the declarative semantics of such systems seems to be missing. This lack of theory is of particular relevance for the emerging research in stream reasoning which shifts the focus from throughput to higher expressiveness. To fill this gap, we present LARS, a L ogic-based framework for A nalytic R easoning over S treams. At its core, LARS formulas extend propositional logic with generic window operators and additional controls to handle temporal information. On top of this, LARS programs extend Answer Set Programming (ASP) with rich stream reasoning capabilities; the latter can be exploited to target AI applications in a streaming context, such as diagnosis, configuration or planning. Specifically, we study in this article the computational complexity of LARS formulas and programs, their relationship to Linear Temporal Logic (LTL) and the well-known Continuous Query Language (CQL). Furthermore, we discuss the modeling capabilities of LARS in notes on the SPARQL extensions C-SPARQL and CQELS, and on the interval-based approach of the complex event processing language ETALIS. We finally briefly touch available implementations, in particular, the recent prototype engines Laser and Ticker that aim for high throughput and high expressiveness, respectively. Notably, both engines specify their semantics in LARS, indicating the desired flexibility of the framework and its potential as stream reasoning language itself, which is further explored in other works.

[1]  James F. Allen Maintaining knowledge about temporal intervals , 1983, CACM.

[2]  Laura M. Haas,et al.  Modeling the execution semantics of stream processing engines with SECRET , 2012, The VLDB Journal.

[3]  Georg Gottlob,et al.  Disjunctive datalog , 1997, TODS.

[4]  Georg Gottlob,et al.  On the computational cost of disjunctive logic programming: Propositional case , 1995, Annals of Mathematics and Artificial Intelligence.

[5]  Thomas Eiter,et al.  A model building framework for answer set programming with external computations* , 2015, Theory and Practice of Logic Programming.

[6]  Ralf Möller,et al.  Stream-Query Compilation with Ontologies , 2015, Australasian Conference on Artificial Intelligence.

[7]  C. C. Elgot Decision problems of finite automata design and related arithmetics , 1961 .

[8]  Thomas Eiter,et al.  Rule-based Stream Reasoning for Intelligent Administration of Content-Centric Networks , 2016, JELIA.

[9]  Philippe Schnoebelen,et al.  The Complexity of Propositional Linear Temporal Logics in Simple Cases , 1998, Inf. Comput..

[10]  Jennifer Widom,et al.  Database Systems: The Complete Book , 2001 .

[11]  Thomas Eiter,et al.  Linked Stream Data Processing Engines: Facts and Figures , 2012, SEMWEB.

[12]  Jon Doyle,et al.  A Truth Maintenance System , 1979, Artif. Intell..

[13]  Thomas Eiter,et al.  Towards Ideal Semantics for Analyzing Stream Reasoning , 2015, ArXiv.

[14]  Thomas Eiter,et al.  Stream reasoning-based control of caching strategies in CCN routers , 2016, 2017 IEEE International Conference on Communications (ICC).

[15]  David Pearce,et al.  Strongly equivalent logic programs , 2001, ACM Trans. Comput. Log..

[16]  Dieter Fensel,et al.  It's a Streaming World! Reasoning upon Rapidly Changing Information , 2009, IEEE Intelligent Systems.

[17]  Jennifer Widom,et al.  Continuous queries over data streams , 2001, SGMD.

[18]  Pedro Cabalar,et al.  Temporal Equilibrium Logic: A First Approach , 2007, EUROCAST.

[19]  Jennifer Widom,et al.  The CQL continuous query language: semantic foundations and query execution , 2006, The VLDB Journal.

[20]  Patrick Doherty,et al.  A temporal logic-based planning and execution monitoring framework for unmanned aircraft systems , 2009, Autonomous Agents and Multi-Agent Systems.

[21]  Daniele Braga,et al.  C-SPARQL: a Continuous Query Language for RDF Data Streams , 2010, Int. J. Semantic Comput..

[22]  Martin Gebser,et al.  Answer Set Programming for Stream Reasoning , 2013, ArXiv.

[23]  Thomas Eiter,et al.  Streaming Multi-Context Systems , 2017, IJCAI.

[24]  Martin Gebser,et al.  Reactive Answer Set Programming , 2011, LPNMR.

[25]  Lukasz Golab,et al.  Data Stream Management , 2017, Data Stream Management.

[26]  Martin Gebser,et al.  Stream Reasoning with Answer Set Programming: Preliminary Report , 2012, KR.

[27]  Hans Tompits,et al.  dlvhex: A Prover for Semantic-Web Reasoning under the Answer-Set Semantics , 2006, 2006 IEEE/WIC/ACM International Conference on Web Intelligence (WI 2006 Main Conference Proceedings)(WI'06).

[28]  Fredrik Heintz,et al.  Stream Reasoning Using Temporal Logic and Predictive Probabilistic State Models , 2016, 2016 23rd International Symposium on Temporal Representation and Reasoning (TIME).

[29]  Michael Zakharyaschev,et al.  Ontology-Based Data Access with a Horn Fragment of Metric Temporal Logic , 2017, AAAI.

[30]  Robert Stephens,et al.  A survey of stream processing , 1997, Acta Informatica.

[31]  Thomas Eiter,et al.  Equilibria in Heterogeneous Nonmonotonic Multi-Context Systems , 2007, AAAI.

[32]  David Pearce,et al.  Equilibrium logic , 2006, Annals of Mathematics and Artificial Intelligence.

[33]  Michael Gelfond,et al.  Applications of Answer Set Programming , 2016, AI Mag..

[34]  Kousha Etessami,et al.  First-Order Logic with Two Variables and Unary Temporal Logic , 2002, Inf. Comput..

[35]  Alessandra Mileo,et al.  A Hybrid Approach to Inference in Probabilistic Non-Monotonic Logic Programming , 2015, PLP@ICLP.

[36]  Patrick Doherty,et al.  DyKnow: An approach to middleware for knowledge processing , 2004, J. Intell. Fuzzy Syst..

[37]  V. S. Subrahmanian,et al.  Maintaining views incrementally , 1993, SIGMOD Conference.

[38]  Yavor Nenov,et al.  Incremental Update of Datalog Materialisation: the Backward/Forward Algorithm , 2015, AAAI.

[39]  Thomas Eiter,et al.  Answer Update for Rule-Based Stream Reasoning , 2015, IJCAI.

[40]  Michael Gelfond,et al.  Classical negation in logic programs and disjunctive databases , 1991, New Generation Computing.

[41]  Jacopo Urbani,et al.  Expressive Stream Reasoning with Laser , 2017, International Semantic Web Conference.

[42]  Walter J. Savitch,et al.  Relationships Between Nondeterministic and Deterministic Tape Complexities , 1970, J. Comput. Syst. Sci..

[43]  Martin Gebser,et al.  Clingo = ASP + Control: Preliminary Report , 2014, ArXiv.

[44]  Danh Le Phuoc,et al.  A Native and Adaptive Approach for Unified Processing of Linked Streams and Linked Data , 2011, SEMWEB.

[45]  Thomas Eiter,et al.  Ticker: A system for incremental ASP-based stream reasoning* , 2017, Theory and Practice of Logic Programming.

[46]  Miroslaw Truszczynski,et al.  Answer set programming at a glance , 2011, Commun. ACM.

[47]  Wolfgang Faber,et al.  Complexity results for answer set programming with bounded predicate arities and implications , 2007, Annals of Mathematics and Artificial Intelligence.

[48]  Pedro Cabalar,et al.  Temporal equilibrium logic: a survey , 2013, J. Appl. Non Class. Logics.

[49]  Carlo Zaniolo,et al.  Logical Foundations of Continuous Query Languages for Data Streams , 2012, Datalog.

[50]  Thomas Eiter,et al.  Equivalent Stream Reasoning Programs , 2016, IJCAI.

[51]  Mario Alviano,et al.  The ASP System DLV2 , 2017, LPNMR.

[52]  Jennifer Widom,et al.  Flexible time management in data stream systems , 2004, PODS.

[53]  Frank van Harmelen,et al.  Stream reasoning: A survey and outlook , 2017, Data Sci..

[54]  A. Heyting Die formalen Regeln der intuitionistischen Logik , 1930 .

[55]  Ron Koymans,et al.  Specifying real-time properties with metric temporal logic , 1990, Real-Time Systems.

[56]  Letizia Tanca,et al.  Logic Programming and Databases , 1990, Surveys in Computer Science.

[57]  Tomi Janhunen,et al.  Modular Equivalence for Normal Logic Programs , 2006, ECAI.

[58]  J. R. Büchi On a Decision Method in Restricted Second Order Arithmetic , 1990 .

[59]  Wolfgang Faber,et al.  Recursive Aggregates in Disjunctive Logic Programs: Semantics and Complexity , 2004, JELIA.

[60]  Sebastian Rudolph,et al.  A Rule-Based Language for Complex Event Processing and Reasoning , 2010, RR.

[61]  Thomas Eiter,et al.  Towards Comparing RDF Stream Processing Semantics , 2015, HiDeSt@KI.

[62]  Martin Gebser,et al.  Ricochet Robots Reloaded: A Case-Study in Multi-shot ASP Solving , 2014, Advances in Knowledge Representation, Logic Programming, and Abstract Argumentation.

[63]  Jeff Z. Pan,et al.  Optimising ontology stream reasoning with truth maintenance system , 2011, CIKM '11.

[64]  Thomas Eiter,et al.  Uniform Equivalence of Logic Programs under the Stable Model Semantics , 2003, ICLP.

[65]  Alessandra Mileo,et al.  Web Stream Reasoning Using Probabilistic Answer Set Programming , 2014, RR.

[66]  Diego Calvanese,et al.  Towards Practical OBDA with Temporal Ontologies - (Position Paper) , 2016, RR.

[67]  Stefan Woltran,et al.  Characterizations for Relativized Notions of Equivalence in Answer Set Programming , 2004, JELIA.

[68]  Thomas A. Henzinger,et al.  Real-Time Logics: Complexity and Expressiveness , 1993, Inf. Comput..

[69]  Thomas Eiter,et al.  Domain expansion for ASP-programs with external sources , 2016, Artif. Intell..

[70]  Jennifer Widom,et al.  CQL: A Language for Continuous Queries over Streams and Relations , 2003, DBPL.

[71]  Alasdair J. G. Gray,et al.  Enabling Ontology-Based Access to Streaming Data Sources , 2010, SEMWEB.

[72]  Thomas Eiter,et al.  Answer Set Programming: A Primer , 2009, Reasoning Web.

[73]  Hoan Quoc Nguyen-Mau,et al.  A middleware framework for scalable management of linked streams , 2012, J. Web Semant..

[74]  Fredrik Heintz,et al.  Qualitative Spatio-Temporal Stream Reasoning with Unobservable Intertemporal Spatial Relations Using Landmarks , 2016, AAAI.

[75]  David W. Stemple,et al.  Converting SQL queries into relational algebra , 1990, Inf. Manag..

[76]  Jennifer Widom,et al.  STREAM: The Stanford Stream Data Manager , 2003, IEEE Data Eng. Bull..

[77]  Chitta Baral,et al.  Knowledge Representation, Reasoning and Declarative Problem Solving , 2003 .

[78]  Dov M. Gabbay,et al.  The Declarative Past and Imperative Future: Executable Temporal Logic for Interactive Systems , 1987, Temporal Logic in Specification.

[79]  Thomas Eiter,et al.  Contrasting RDF Stream Processing Semantics , 2015, JIST.

[80]  J. Büchi Weak Second‐Order Arithmetic and Finite Automata , 1960 .

[81]  Ashok K. Chandra,et al.  Optimal implementation of conjunctive queries in relational data bases , 1977, STOC '77.

[82]  Manfred Hauswirth,et al.  StreamRule: A Nonmonotonic Stream Reasoning System for the Semantic Web , 2013, RR.

[83]  Sebastian Rudolph,et al.  EP-SPARQL: a unified language for event processing and stream reasoning , 2011, WWW.

[84]  Wolfgang Faber,et al.  The DLV system for knowledge representation and reasoning , 2002, TOCL.

[85]  Nicolas Markey,et al.  Temporal logic with past is exponentially more succinct, Concurrency Column , 2003, Bull. EATCS.

[86]  Jennifer Widom,et al.  Database systems - the complete book (2. ed.) , 2009 .

[87]  Charles Elkan,et al.  A Rational Reconstruction of Nonmonotonic Truth Maintenance Systems , 1990, Artif. Intell..

[88]  Philippe Schnoebelen,et al.  Temporal logic with forgettable past , 2002, Proceedings 17th Annual IEEE Symposium on Logic in Computer Science.

[89]  Luca Pulina,et al.  Temporal and Spatial OBDA with Many-Dimensional Halpern-Shoham Logic , 2016, IJCAI.

[90]  Axel Polleres,et al.  From SPARQL to rules (and back) , 2007, WWW '07.

[91]  Amir Pnueli,et al.  The temporal logic of programs , 1977, 18th Annual Symposium on Foundations of Computer Science (sfcs 1977).

[92]  Martin Gebser,et al.  Engineering an Incremental ASP Solver , 2008, ICLP.

[93]  Seif Haridi,et al.  Apache Flink™: Stream and Batch Processing in a Single Engine , 2015, IEEE Data Eng. Bull..

[94]  Thomas A. Henzinger,et al.  The benefits of relaxing punctuality , 1991, PODC '91.

[95]  Gerhard Brewka,et al.  Multi-Context Systems for Reactive Reasoning in Dynamic Environments , 2014, ECAI.