Transforming UML Models to MongoDB Schemas Using Model-Driven Architecture and JavaScript

Transforming UML Models to MongoDB Schemas Using Model-Driven Architecture and JavaScript

  IJETT-book-cover           
  
© 2025 by IJETT Journal
Volume-73 Issue-4
Year of Publication : 2025
Author : Hamza Natek, Aziz Srai, Abdelmounaim Badaoui, Fatima Guerouate
DOI : 10.14445/22315381/IJETT-V73I4P129

How to Cite?
Hamza Natek, Aziz Srai, Abdelmounaim Badaoui, Fatima Guerouate, "Transforming UML Models to MongoDB Schemas Using Model-Driven Architecture and JavaScript," International Journal of Engineering Trends and Technology, vol. 73, no. 4, pp.368-375, 2025. Crossref, https://doi.org/10.14445/22315381/IJETT-V73I4P129

Abstract
Relational Database Management Systems (RDBMS) have served the data management needs of organizations over the past decades with strong solutions for solving structured data. But with the advent of Big Data, complexities in dealing with high volumes, high variety and high velocity of data in production, these systems have been challenged. NoSQL databases are seen as a potential answer, hosting flexible schema arrangements and extensible execution. Conversion of structured UML models to dynamic NoSQL schemas is a very resource-hungry process. This article will introduce an approach to automate this transformation in JavaScript for MongoDB using Model-Driven Architecture (MDA). We cover upfront technical requirements, a safe connection to MongoDB, transforming UML models to JSON objects, and the M2M and M2T transformation to generate and validate MongoDB schemas. To ensure that the generated schemas were correct and had a high degree of fidelity, I validated them with MongoDB Atlas. This automation of the process not only speeds up database design but also makes software development more agile. The approach was applied to UML-based descriptions of school or college types, showing its suitability and correctness in producing the database schema that accurately reflects the design stipulated in the UML model.

Keywords
Model-Driven Architecture (MDA), UML, NoSQL Transformation, JavaScript, Schema Generation.

References
[1] Fatma Abdelhadi, Amal Ait Brahim, and Gilles Zurfluh, “Applying a Model-Driven Approach for UML/OCL Constraints: Application to NoSQL Databases,” On the Move to Meaningful Internet Systems: OTM Conferences, Rhodes, Greece, pp. 646-660, 2019.
[CrossRef] [Google Scholar] [Publisher Link]
[2] Fatma Abdelhedi et al., “MDA-Based Approach for NoSQL Databases Modelling,” Big Data Analytics and Knowledge Discovery, pp. 88-102, 2017.
[CrossRef] [Google Scholar] [Publisher Link]
[3] Fatma Abdelhedi, Amal Ait Brahim, and Gilles Zurfluh, “Towards an Automatic Approach for Implementing UML/OCL Models on NoSQL Systems,”
[Google Scholar]
[4] Jean Bézivin et al., “Applying MDA Approach for Web Service Platform,” Proceedings. Eighth IEEE International Enterprise Distributed Object Computing Conference, 2004. EDOC 2004, Monterey, CA, USA, pp. 58-70, 2004.
[CrossRef] [Google Scholar] [Publisher Link]
[5] M'hamed Rahmouni, Chaymae Talbi, and Soumia Ziti, “Model-Driven Architecture: Generating Models from Symfony Framework,” Indonesian Journal of Electrical Engineering and Computer Science, vol. 30, no. 3, pp. 1659-1668, 2023.
[CrossRef] [Google Scholar] [Publisher Link]
[6] M’hamed Rahmouni, and Samir Mbarki, “Model-Driven Generation of MVC2 Web Applications: From Models to Code,” International Journal of Engineering and Applied Computer Science, vol. 2, no. 7, pp. 217-231, 2017.
[Google Scholar]
[7] Moneeb Abbas et al., “A Model-Driven Framework for Security Labs Using Blockchain Methodology,” 2021 IEEE International Systems Conference, Vancouver, BC, Canada, pp. 1-7, 2021.
[CrossRef] [Google Scholar] [Publisher Link]
[8] Nour Moadad, Issam Damaj, and Islam El Kabani, “A Generic MDA-IoT Architecture for Connected Vehicles in Smart Cities,” 2022 IEEE Global Conference on Artificial Intelligence and Internet of Things, Alamein New City, Egypt, pp. 122-129, 2022.
[CrossRef] [Google Scholar] [Publisher Link]
[9] Mantas Jurgelaitis et al., “Smart Contract Code Generation from Platform Specific Model for Hyperledger Go,” World Conference on Information Systems and Technologies, Terceira Island, Portugal, pp. 63-73, 2021.
[CrossRef] [Google Scholar] [Publisher Link]
[10] Mohammad Ali Kadampur, and Sulaiman Al Riyaee, “Skin Cancer Detection: Applying a Deep Learning Based Model Driven Architecture in the Cloud for Classifying Dermal Cell Images,” Informatics in Medicine Unlocked, vol. 18, 2020.
[CrossRef] [Google Scholar] [Publisher Link]
[11] Hanane Benouda et al., “Modeling and Code Generation of Android Applications Using Acceleo,” International Journal of Software Engineering and its Applications, vol. 10, no. 3, pp. 83-94, 2016.
[Google Scholar] [Publisher Link]
[12] Model Driven Architecture (MDA), The Architecture of Choice for a Changing World, Object Management Group (OMG), 2003. [Online]. Available: https://www.omg.org/mda/
[13] Aaron Schram, and Kenneth M. Anderson, “MySQL to NoSQL: Data Modeling Challenges in Supporting Scalability,” Proceedings of the 3rd Annual Conference on Systems, Programming, and Applications: Software for Humanity, Tucson Arizona, USA, pp. 191-202, 2012.
CrossRef] [Google Scholar] [Publisher Link]