OCL2PSQL: An OCL-to-SQL Code-Generator for Model-Driven Engineering

5Citations
Citations of this article
6Readers
Mendeley users who have this article in their library.
Get full text

Abstract

The Object Constraint Language (OCL) is a textual, declarative language typically used as part of the UML standard for specifying constraints and queries on models. Several attempts have been proposed in the past for translating OCL expressions into SQL queries in the context of Model Driven Engineering (MDE). To cope with OCL expressions that include iterators, previous attempts resorted to imperative features (loops, cursors) of SQL, with the consequent loss of efficiency. In this paper, we define (and implement) a novel mapping from OCL to SQL that covers (possibly nested) iterators, without resorting to imperative, non-declarative features of SQL. We show with a preliminary benchmark that our mapping generates SQL queries that can be efficiently executed on mid- and large-size SQL databases.

Cite

CITATION STYLE

APA

Nguyen Phuoc Bao, H., & Clavel, M. (2019). OCL2PSQL: An OCL-to-SQL Code-Generator for Model-Driven Engineering. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 11814 LNCS, pp. 185–203). Springer. https://doi.org/10.1007/978-3-030-35653-8_13

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free