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.
منابع مشابه
An SBVR to SQL Compiler
This paper presents the implementation of a compiler of SBVR Structured English to SQL data models and queries, with SBVR Logical Formulation as an intermediate step. The compiler is implemented in OMeta/JS and targets browsers that support Web SQL Databases. We discuss each stage of our compiler as well as the optimizations and necessary tradeoffs.
متن کاملA Grammar for ADVANCED SBVR Editor
Semantics of Business Vocabulary and Business Rules (SBVR) is the richest knowledge model allowing to create specifications that are understandable for business people and also interpretable by computers. Existing SBVR editors still lack capabilities that could allow generating formal SBVR models, adapting SBVR to several languages or making SBVR extensions for various purposes (e.g., implement...
متن کاملA Formalized Transformation Process for Generating Design Models from Business Rules
Business rules play a critical role in building and maintaining effective and flexible information systems. In light of that critical role, the publication of the Semantic Business Vocabulary and Business Rules standard (SBVR), has been regarded a highly significant advance. Following that release, a number of research efforts have been made to convert SBVR to design models, most of which are s...
متن کاملA Controlled Natural Language Interface to Class Models
The available approaches for automatically generating class models from natural language (NL) software requirements specifications (SRS) exhibit less accuracy due to informal nature of NL such as English. In the automated class model generation, a higher accuracy can be achieved by overcoming the inherent syntactic ambiguities and semantic inconsistencies in English. In this paper, we propose a...
متن کاملFinding Exception for Association Rules via Sql Queries
Finding association rules is mainly based on generating larger and larger frequent set candidates, starting from frequent attributes in the database. The frequent sets can be organised as a part of a lattice of concepts according to the Formal Concept Analysis approach. Since the lattice construction is database contents-dependent, the pseudo-intents (see Formal Concept Analysis) are avoided. A...
متن کامل