TagML—An Implementation Specific Model to Generate Tag-Based Documents

This article describes TagML, a method to generate collections of XML documents using model-to-model (M2M) transformations. To accomplish this goal, we define the TagML meta-model and the TagML-to-XML model-to-text transformation. While TagML models represent the essential characteristics of collect...

Full description

Bibliographic Details
Main Authors: Ricardo Tesoriero, Gabriel Sebastian, Jose A. Gallud
Format: Article
Language:English
Published: MDPI AG 2020-07-01
Series:Electronics
Subjects:
Online Access:https://www.mdpi.com/2079-9292/9/7/1097
id doaj-f8b118d3f44349f49f078c8ae8343ce4
record_format Article
spelling doaj-f8b118d3f44349f49f078c8ae8343ce42020-11-25T03:35:32ZengMDPI AGElectronics2079-92922020-07-0191097109710.3390/electronics9071097TagML—An Implementation Specific Model to Generate Tag-Based DocumentsRicardo Tesoriero0Gabriel Sebastian1Jose A. Gallud2Escuela Superior de Ingeniería Informática de Albacete, Universidad de Castilla-La Mancha, 02071 Albacete, SpainEscuela Superior de Ingeniería Informática de Albacete, Universidad de Castilla-La Mancha, 02071 Albacete, SpainEscuela Superior de Ingeniería Informática de Albacete, Universidad de Castilla-La Mancha, 02071 Albacete, SpainThis article describes TagML, a method to generate collections of XML documents using model-to-model (M2M) transformations. To accomplish this goal, we define the TagML meta-model and the TagML-to-XML model-to-text transformation. While TagML models represent the essential characteristics of collections of XML documents, the TagML-to-XML transformation generates the textual representation of collections of XML documents from TagML models. This approach enables developers to define model-to-model transformations to generate TagML models. These models are turned into text applying the TagML-to-XML transformation. Consequently, developers are able to use declarative languages to define model-to-text transformations that generate XML documents, instead of traditional archetype-based languages to define model-to-text transformations that generate collections of XML documents. The TagML model editor as well as the TagML-to-XML transformation were developed as Eclipse plugins using the Eclipse Modeling Framework. The plugin has been developed following the Object Modeling Group standards to ensure the compatibility with legacy tools. Using TagML, unlike other previous proposals, implies the use of model-to-model transformations to generate XML documents, instead of model-to-text transformations, which results on an improvement of the transformation readability and reliability, as well as a reduction of the transformation maintenance costs. The proposed approach helps developers to define transformations less prone to errors than using the traditional approach. The novelty of this approach is based on the way XML documents are generated using model-to-model transformations instead of traditional model-to-text transformations. Moreover, the simplicity of the proposed approach enables the generation of XML documents without the need for any transformation configuration, which does not penalize the model reuse. To illustrate the features of the proposal, we present the generation of XHTML documents using UML class diagrams as input models. The evaluation section demonstrates that the proposed method is less prone to errors than the traditional one.https://www.mdpi.com/2079-9292/9/7/1097tag languagesmeta-modelM2T transformationM2M transformation
collection DOAJ
language English
format Article
sources DOAJ
author Ricardo Tesoriero
Gabriel Sebastian
Jose A. Gallud
spellingShingle Ricardo Tesoriero
Gabriel Sebastian
Jose A. Gallud
TagML—An Implementation Specific Model to Generate Tag-Based Documents
Electronics
tag languages
meta-model
M2T transformation
M2M transformation
author_facet Ricardo Tesoriero
Gabriel Sebastian
Jose A. Gallud
author_sort Ricardo Tesoriero
title TagML—An Implementation Specific Model to Generate Tag-Based Documents
title_short TagML—An Implementation Specific Model to Generate Tag-Based Documents
title_full TagML—An Implementation Specific Model to Generate Tag-Based Documents
title_fullStr TagML—An Implementation Specific Model to Generate Tag-Based Documents
title_full_unstemmed TagML—An Implementation Specific Model to Generate Tag-Based Documents
title_sort tagml—an implementation specific model to generate tag-based documents
publisher MDPI AG
series Electronics
issn 2079-9292
publishDate 2020-07-01
description This article describes TagML, a method to generate collections of XML documents using model-to-model (M2M) transformations. To accomplish this goal, we define the TagML meta-model and the TagML-to-XML model-to-text transformation. While TagML models represent the essential characteristics of collections of XML documents, the TagML-to-XML transformation generates the textual representation of collections of XML documents from TagML models. This approach enables developers to define model-to-model transformations to generate TagML models. These models are turned into text applying the TagML-to-XML transformation. Consequently, developers are able to use declarative languages to define model-to-text transformations that generate XML documents, instead of traditional archetype-based languages to define model-to-text transformations that generate collections of XML documents. The TagML model editor as well as the TagML-to-XML transformation were developed as Eclipse plugins using the Eclipse Modeling Framework. The plugin has been developed following the Object Modeling Group standards to ensure the compatibility with legacy tools. Using TagML, unlike other previous proposals, implies the use of model-to-model transformations to generate XML documents, instead of model-to-text transformations, which results on an improvement of the transformation readability and reliability, as well as a reduction of the transformation maintenance costs. The proposed approach helps developers to define transformations less prone to errors than using the traditional approach. The novelty of this approach is based on the way XML documents are generated using model-to-model transformations instead of traditional model-to-text transformations. Moreover, the simplicity of the proposed approach enables the generation of XML documents without the need for any transformation configuration, which does not penalize the model reuse. To illustrate the features of the proposal, we present the generation of XHTML documents using UML class diagrams as input models. The evaluation section demonstrates that the proposed method is less prone to errors than the traditional one.
topic tag languages
meta-model
M2T transformation
M2M transformation
url https://www.mdpi.com/2079-9292/9/7/1097
work_keys_str_mv AT ricardotesoriero tagmlanimplementationspecificmodeltogeneratetagbaseddocuments
AT gabrielsebastian tagmlanimplementationspecificmodeltogeneratetagbaseddocuments
AT joseagallud tagmlanimplementationspecificmodeltogeneratetagbaseddocuments
_version_ 1724553877683961856