Yetunde Akinwumi, J. Ayeni, S. Arekete, M. Odim, A. Ogunde, B. Oguntunde
{"title":"XAPP:基于sax的XML文档与关系数据库之间映射方法的实现","authors":"Yetunde Akinwumi, J. Ayeni, S. Arekete, M. Odim, A. Ogunde, B. Oguntunde","doi":"10.34028/iajit/19/4/2","DOIUrl":null,"url":null,"abstract":"Extensible Markup Language (XML) is the standard medium for data exchange among businesses over the Internet, hence the need for effective management. However, since XML was not designed for storage and retrieval, its management has become an open research area in the database community. Existing mapping techniques for XML-to-relational database adopt either the structural mapping or the model mapping. Though numerous mapping approaches have been developed, mapping and reconstruction time had been problematic, especially when the document size is large and can hardly fit into main memory. In this research, an application codenamed XAPP, a new lightweight application that adopts a novel model mapping approach was developed using Simple API for XML (SAX) parser. XAPP accepts a document with or without Document Type Definition (DTD). It implements two algorithms: one maps XML data to a relational database and improves mapping time, and the other reconstructs an XML document from a relational database to improve reconstruction time and minimise memory usage. The performance of XAPP was analysed and compared with the Document Object Model (DOM) algorithm. XAPP proves to perform significantly better than the DOM-based algorithm in terms of mapping and reconstruction time, and memory efficiency. The correctness of XAPP was also verified.","PeriodicalId":13624,"journal":{"name":"Int. Arab J. Inf. Technol.","volume":"39 1","pages":"582-588"},"PeriodicalIF":0.0000,"publicationDate":"2022-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"XAPP: An Implementation of SAX-Based Method for Mapping XML Document to and from a Relational Database\",\"authors\":\"Yetunde Akinwumi, J. Ayeni, S. Arekete, M. Odim, A. Ogunde, B. Oguntunde\",\"doi\":\"10.34028/iajit/19/4/2\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Extensible Markup Language (XML) is the standard medium for data exchange among businesses over the Internet, hence the need for effective management. However, since XML was not designed for storage and retrieval, its management has become an open research area in the database community. Existing mapping techniques for XML-to-relational database adopt either the structural mapping or the model mapping. Though numerous mapping approaches have been developed, mapping and reconstruction time had been problematic, especially when the document size is large and can hardly fit into main memory. In this research, an application codenamed XAPP, a new lightweight application that adopts a novel model mapping approach was developed using Simple API for XML (SAX) parser. XAPP accepts a document with or without Document Type Definition (DTD). It implements two algorithms: one maps XML data to a relational database and improves mapping time, and the other reconstructs an XML document from a relational database to improve reconstruction time and minimise memory usage. The performance of XAPP was analysed and compared with the Document Object Model (DOM) algorithm. XAPP proves to perform significantly better than the DOM-based algorithm in terms of mapping and reconstruction time, and memory efficiency. The correctness of XAPP was also verified.\",\"PeriodicalId\":13624,\"journal\":{\"name\":\"Int. Arab J. Inf. Technol.\",\"volume\":\"39 1\",\"pages\":\"582-588\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2022-01-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Int. Arab J. Inf. Technol.\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.34028/iajit/19/4/2\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Int. Arab J. Inf. Technol.","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.34028/iajit/19/4/2","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
摘要
可扩展标记语言(XML)是企业间通过Internet进行数据交换的标准媒介,因此需要有效的管理。然而,由于XML不是为存储和检索而设计的,因此它的管理已经成为数据库社区的一个开放研究领域。现有的xml到关系数据库的映射技术要么采用结构映射,要么采用模型映射。虽然已经开发了许多映射方法,但映射和重建时间一直存在问题,特别是当文档大小很大且难以装入主存储器时。在本研究中,使用简单API for XML (SAX)解析器开发了一个代号为XAPP的新型轻量级应用程序,它采用了一种新颖的模型映射方法。XAPP接受带有或不带有文档类型定义(DTD)的文档。它实现了两种算法:一种算法将XML数据映射到关系数据库,从而缩短了映射时间;另一种算法从关系数据库重构XML文档,从而缩短了重构时间,最大限度地减少了内存使用。分析了XAPP算法的性能,并与文档对象模型(DOM)算法进行了比较。事实证明,XAPP在映射和重建时间以及内存效率方面明显优于基于dom的算法。验证了XAPP的正确性。
XAPP: An Implementation of SAX-Based Method for Mapping XML Document to and from a Relational Database
Extensible Markup Language (XML) is the standard medium for data exchange among businesses over the Internet, hence the need for effective management. However, since XML was not designed for storage and retrieval, its management has become an open research area in the database community. Existing mapping techniques for XML-to-relational database adopt either the structural mapping or the model mapping. Though numerous mapping approaches have been developed, mapping and reconstruction time had been problematic, especially when the document size is large and can hardly fit into main memory. In this research, an application codenamed XAPP, a new lightweight application that adopts a novel model mapping approach was developed using Simple API for XML (SAX) parser. XAPP accepts a document with or without Document Type Definition (DTD). It implements two algorithms: one maps XML data to a relational database and improves mapping time, and the other reconstructs an XML document from a relational database to improve reconstruction time and minimise memory usage. The performance of XAPP was analysed and compared with the Document Object Model (DOM) algorithm. XAPP proves to perform significantly better than the DOM-based algorithm in terms of mapping and reconstruction time, and memory efficiency. The correctness of XAPP was also verified.