基于本体的需求建模能够保证需求描述的正确性和完整性,但最终得到的应用模型描述是基于应用本体的,不易于普通软件设计人员理解,无法直接成为设计时所需的需求规格说明文档.而UML语言已成为面向对象建模的实际标准.因此,将本体概念引入UML模型中,通过定义UML模型中的元本体,构建基于本体的需求模型到UML元模型的映射规则,在此基础上,设计并实现一种基于规则的图元自动转换工具,实现基于本体的需求模型到UML元模型的转换,为后期软件设计提供需求基础.
A requirement model based on ontology ensures the correctness and completeness of the requirement description, making it possible to analyze and translate the application models. However, in the presented work, the obtained model was described by application ontology, which is difficult for common programmers to understand, and could not be converted directly into the requirement documents that are needed in design. However, the unified modeling language (UML) has become the standard in practical application of the object-oriented modeling. In light of these problems, the concept of ontology was introduced to the UML model, the rules for mapping of a requirement model based on ontology to a UML meta-element model were established. An automatic metafile conversion tool was designed based on these rules, and thereby basically achieved the conversion from the ontology based requirement model to the UML meta-model, providing a basis of requirement for the software design in later period.