《计算机应用》唯一官方网站 ›› 2024, Vol. 44 ›› Issue (1): 152-158.DOI: 10.11772/j.issn.1001-9081.2023010102

• 人工智能 • 上一篇    

面向不可移动文物自然灾害风险图生成的领域特定语言

胡轶涵, 杜金莲, 苏航(), 高红雨   

  1. 北京工业大学 信息学部,北京 100124
  • 收稿日期:2023-02-09 修回日期:2023-05-12 接受日期:2023-05-16 发布日期:2023-06-06 出版日期:2024-01-10
  • 通讯作者: 苏航
  • 作者简介:胡轶涵(1994—),男,北京人,硕士研究生,主要研究方向:领域特定语言、数据分析与可视化;
    杜金莲(1972—),女,内蒙古赤峰人,副教授,博士,CCF会员,主要研究方向:数据分析与可视化;
    高红雨(1968—),男,北京人,副教授,硕士,主要研究方向:软件自动化、复杂事件处理。
    第一联系人:苏航(1978—),男,辽宁沈阳人,讲师,博士,CCF会员,主要研究方向:软件自动化、程序分析与变换;
  • 基金资助:
    国家重点研发计划项目(2019YFC1520803)

Domain-specific language for natural disaster risk map generation of immovable cultural heritage

Yihan HU, Jinlian DU, Hang SU(), Hongyu GAO   

  1. Faculty of Information Technology,Beijing University of Technology,Beijing 100124,China
  • Received:2023-02-09 Revised:2023-05-12 Accepted:2023-05-16 Online:2023-06-06 Published:2024-01-10
  • Contact: Hang SU
  • About author:HU Yihan, born in 1994, M. S. candidate. His research interests include domain-specific language, data analysis and visualization.
    DU Jinlian, born in 1972, Ph. D., associate professor. Her research interests include data analysis and visualization.
    GAO Hongyu, born in 1968, M. S., associate professor. His research interests include software automation, complex event processing.
  • Supported by:
    National Key Research and Development Project(2019YFC1520803)

摘要:

针对当前不可移动文物自然灾害风险图生成领域需求快速增长、经常变更,而现有程序及工具无法满足实际使用需要的问题,提出了一种构建语义模型的方法,在语义模型的基础之上,为不可移动文物领域专家设计了一种贴近自然语言的领域特定语言(DSL)。首先,通过对不可移动文物本体各项指标数据、风险图生成方法和流程进行深入研究,提取出业务模型。之后,通过分析业务模型,抽象出风险值计算规则的元计算单元,构建语义模型。在此基础之上,设计出一种可表述语义模型中所有语义的领域特定语言。该语言脚本可由领域专家自行编写,能快速高效地生成风险图,且易于扩展,满足需求经常变更的要求。与目前国内外主流的通过地理信息系统(GIS)方法生成风险图相比,利用DSL生成风险图可缩短66.7%以上的工作时长。

关键词: 领域特定语言, 语义模型, 领域抽象, 风险图, 不可移动文物

Abstract:

Aiming at the problem of rapidly growing and frequently changing requirement for risk map generation of immovable cultural heritage, and existing programs and tools cannot meet the needs of actual applications, a method for constructing semantic model was proposed. Based on the semantic model, a Domain-Specific Language (DSL) close to natural language was designed for experts in the field of immovable cultural heritage. Firstly, a business model was extracted by conducting in-depth research on various indicators of immovable cultural heritage, as well as methods and processes for generating risk maps. Secondly, the meta-calculation units of the risk value calculation rules were abstracted, and a semantic model was constructed by analyzing the business model. On this basis, a DSL that can express all semantics in the semantic model was designed. The language script can be programmed by the field experts themselves and used to quickly and efficiently generate risk maps. It is easy to expand and can meet the needs of frequently changing requirements. Compared with the mainstream method of generating risk maps by using Geographic Information System (GIS), the use of DSL to generate risk maps can reduce work hours by more than 66.7%.

Key words: Domain-Specific Language (DSL), semantic model, domain abstraction, risk map, immovable cultural heritage

中图分类号: