An MDE Approach to Generate Schemas for Object-document Mappers

Diego Sevilla, Severino Feliciano, Jesús García-Molina

2017

Abstract

Most NoSQL systems are schemaless. This lack of schema offers a greater flexibility than relational systems. However, this comes at the cost of losing benefits such as the static checking that assure that stored data conforms to the database schema. Instead, developers must be in charge of this task that is time-consuming and error-prone. Object-NoSQL mappers are emerging to alleviate this task and facilitate the development of NoSQL applications. These mappers allow the definition of schemas, which are used to assure that data are correctly manipulated. In this article, we present an MDE approach that automatically generates schemas and other artefacts for mappers. As proof of concept, we have considered Mongoose, which is a widely used mapper for MongoDB, but the solution is mapper-independent. Firstly, the schemas are inferred from stored data by using an approach defined in a previous work. Then, NoSQL schema models are input to a two-step model transformation chain that generates schemas, validators and updating procedures, among other Mongoose artefacts. An intermediate metamodel has been defined to ease the implementation of the transformations. This work shows how MDE techniques can be applied in the emerging “NoSQL Data Engineering” field.

Download


Paper Citation


in Harvard Style

Sevilla D., Feliciano S. and García-Molina J. (2017). An MDE Approach to Generate Schemas for Object-document Mappers . In Proceedings of the 5th International Conference on Model-Driven Engineering and Software Development - Volume 1: MODELSWARD, ISBN 978-989-758-210-3, pages 220-228. DOI: 10.5220/0006279102200228

in Bibtex Style

@conference{modelsward17,
author={Diego Sevilla and Severino Feliciano and Jesús García-Molina},
title={An MDE Approach to Generate Schemas for Object-document Mappers},
booktitle={Proceedings of the 5th International Conference on Model-Driven Engineering and Software Development - Volume 1: MODELSWARD,},
year={2017},
pages={220-228},
publisher={SciTePress},
organization={INSTICC},
doi={10.5220/0006279102200228},
isbn={978-989-758-210-3},
}


in EndNote Style

TY - CONF
JO - Proceedings of the 5th International Conference on Model-Driven Engineering and Software Development - Volume 1: MODELSWARD,
TI - An MDE Approach to Generate Schemas for Object-document Mappers
SN - 978-989-758-210-3
AU - Sevilla D.
AU - Feliciano S.
AU - García-Molina J.
PY - 2017
SP - 220
EP - 228
DO - 10.5220/0006279102200228