The Epsilon Solution to the OCL2PSQL Case


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.

Divisions: College of Engineering & Physical Sciences
College of Engineering & Physical Sciences > Systems analytics research institute (SARI)
Additional Information: © 2021 Copyright for this paper by its authors. Use permitted under Creative Commons License Attribution 4.0 International (CC BY 4.0).
Uncontrolled Keywords: Abstract syntax graphs,Model transformation,OCL,SQL,General Computer Science
Publication ISSN: 1613-0073
Last Modified: 08 Jul 2024 08:13
Date Deposited: 20 May 2022 12:53
Full Text Link:
Related URLs: http://www.scop ... tnerID=8YFLogxK (Scopus URL) (Publisher URL)
PURE Output Type: Conference article
Published Date: 2022-02-15
Accepted Date: 2021-06-01
Authors: Garcia-Dominguez, Antonio (ORCID Profile 0000-0002-4744-9150)



Version: Published Version

License: Creative Commons Attribution

| Preview

Export / Share Citation


Additional statistics for this record