Generating SQL Queries from SBVR Rules

Declarative technologies have made great strides in expressivity between SQL and SBVR. SBVR models are more expressive that SQL schemas, but not as imminently executable yet. In this paper, we complete the architecture of a system that can execute SBVR models. We do this by describing how SBVR rules can be transformed into SQL DML so that they can be automatically checked against the database using a standard SQL query. In particular, we describe a formalization of the basic structure of an SQL query which includes aggregate functions, arithmetic operations, grouping, and grouping on condition. We do this while staying within a predicate calculus semantics which can be related to the standard SBVR-LF specification and equip it with a concrete semantics for expressing business rules formally. Our approach to transforming SBVR rules into standard SQL queries is thus generic, and the resulting queries can be readily executed on a relational schema generated from the SBVR model.

[1]  Terry Halpin A Logical Analysis of Information Systems: static aspects of the data-oriented perspective , 1989 .

[2]  Adrian Paschke,et al.  Advances in Rule Interchange and Applications, International Symposium, RuleML 2007, Orlando, Florida, USA, October 25-26, 2007, Proceedings , 2007, RuleML.

[3]  Valentin Goranko,et al.  Logic in Computer Science: Modelling and Reasoning About Systems , 2007, J. Log. Lang. Inf..

[4]  Ryohei Nakano Translation with optimization from relational calculus to relational algebra having aggregate functions , 1990, TODS.

[5]  Jordi Cabot,et al.  From UML/OCL to SBVR specifications: A challenging transformation , 2010, Inf. Syst..

[6]  Anthony C. Bloesch,et al.  ConQuer: A Conceptual Query Language , 1996, ER.

[7]  Guido Governatori,et al.  Rule Interchange and Applications, International Symposium, RuleML 2009, Las Vegas, Nevada, USA, November 5-7, 2009. Proceedings , 2009, RuleML.

[8]  Kevin Lano,et al.  Slicing of UML models using model transformations , 2010, MODELS'10.

[9]  Birgit Demuth,et al.  An Approach for Bridging the Gap Between Business Rules and the Semantic Web , 2007, RuleML.

[10]  Bernhard Thalheim,et al.  Conceptual Modeling — ER '96 , 1996, Lecture Notes in Computer Science.

[11]  Jean Bézivin,et al.  Parsing SBVR-Based Controlled Languages , 2009, MoDELS.

[12]  Romin W. Tafarodi,et al.  You can't not believe everything you read. , 1993, Journal of personality and social psychology.

[13]  E. F. Codd,et al.  Relational Completeness of Data Base Sublanguages , 1972, Research Report / RJ / IBM / San Jose, California.

[14]  Paul J. Krause,et al.  An SBVR Framework for RESTful Web Applications , 2009, RuleML.

[15]  Juvencio Mendoza Castelán Introduction To Database , 2011 .

[16]  Stéphane Bressan,et al.  Introduction to Database Systems , 2005 .