Generating SQL queries from SBVR rules

  • Authors:
  • Sotiris Moschoyiannis;Alexandros Marinos;Paul Krause

  • Affiliations:
  • Department of Computing, FEPS, University of Surrey, Guildford, Surrey, United Kingdom;Department of Computing, FEPS, University of Surrey, Guildford, Surrey, United Kingdom;Department of Computing, FEPS, University of Surrey, Guildford, Surrey, United Kingdom

  • Venue:
  • RuleML'10 Proceedings of the 2010 international conference on Semantic web rules
  • Year:
  • 2010

Quantified Score

Hi-index 0.00

Visualization

Abstract

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.