基于XML技术构建舰船信息中心实时内存数据库,为舰船信息中心的实时信息显示与处理提供保障。以舰船信息中心所获取的实时信息为源数据,存入源数据库;运用XML技术创建源数据库表与待建实时内存数据库表之间的格式映射模型,转换数据格式后写入文档内,再利用VTD-XML解析模型解析转换此时的文档数据。最后一致性校验解析转换后的XML文档数据,并向待构建实时内存数据库内存入此类数据。实验结果表明,该方法在清洗更新与解析转换XML文档数据时具有较好的处理效果,数据库内包含舰船航行的实时动态轨迹、实时定位以及实时动态方位图像等信息,可有效保障舰船信息中心信息显示与处理的实时性。
In this paper, the real-time memory database of ship information center is constructed based on XML technology, which can guarantee the real-time information display and processing of ship information center. The real-time information obtained by the ship information center is the source data and stored in the source database. Using XML technology to create a format mapping model between the source database table and the real-time in-memory database table to be built, convert the data format and write it into the document, then use VTD-XML parsing model to parse and convert the document data. Consistency verification parses the transformed XML document data and stores such data into a real-time in-memory database to be built. Experimental results show that this method has a good processing effect when cleaning, updating, parsing and converting XML document data. The database contains real-time dynamic trajectory, real-time positioning and real-time dynamic azimuth images of ship sailing, which can effectively guarantee the real-time display and processing of ship information center.
2022,44(15): 145-148 收稿日期:2022-01-23
DOI:10.3404/j.issn.1672-7649.2022.15.030
分类号:TP311
基金项目:江苏省高等学校优秀科技创新团队项目(苏教科函〔2019〕7号);江苏省青蓝工程中青年学术带头人项目(苏教师[2020]10号)
作者简介:游学军(1979-),男,本科,讲师,研究方向为软件工程
参考文献:
[1] 王栽毅, 杨照. 船联网智能数据传输与通信算法研究[J]. 中国海洋大学学报(自然科学版), 2021, 51(7): 108–114
[2] 朱阅岸, 简怀兵, 龙永超, 等. 构建新型高性能与高可用的键值数据库系统[J]. 软件学报, 2021, 32(10): 3203–3218
[3] 何卓桁, 刘志勇, 李璐, 等. 异构文本数据转换中XML解析方法对比研究[J]. 计算机工程, 2020, 46(7): 286–293+299
[4] 王艳. 多媒体数据库引擎多任务并行控制方法仿真[J]. 计算机仿真, 2021, 38(4): 147–150+394