Abstract
There have been several attempts to map Object Constraint Language queries to SQL: one of these is the OCL2PSQL mapping proposed by Nguyen and Clavel. In this paper, I describe an implementation of OCL2PSQL using two languages from the Eclipse Epsilon project: 744 lines of ETL code for the model-to-model transformation itself, and 97 lines of EGL code for a model-to-text transformation that produces more readable SQL than the reference version. The solution passes all correctness tests set out in the original framework: the transformation has a median time of 0.93s across all scenarios.
Original language | English |
---|---|
Journal | CEUR workshop proceedings |
Volume | 3089 |
Publication status | Published - 15 Feb 2022 |
Event | Joint 13th and 14th Tool Transformation Contests, TTC 2020/2021 - Virtual, Bergen, Norway Duration: 25 Jun 2021 → … |
Bibliographical note
© 2021 Copyright for this paper by its authors. Use permitted under Creative Commons License Attribution 4.0 International (CC BY 4.0).Keywords
- Abstract syntax graphs
- Model transformation
- OCL
- SQL