CN107168762A - A kind of RUCM model consistency inspection methods based on body - Google Patents

A kind of RUCM model consistency inspection methods based on body Download PDF

Info

Publication number
CN107168762A
CN107168762A CN201710366026.1A CN201710366026A CN107168762A CN 107168762 A CN107168762 A CN 107168762A CN 201710366026 A CN201710366026 A CN 201710366026A CN 107168762 A CN107168762 A CN 107168762A
Authority
CN
China
Prior art keywords
model
rucm
ontology
concept
concepts
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710366026.1A
Other languages
Chinese (zh)
Other versions
CN107168762B (en
Inventor
刘超
胡京徽
杨海燕
吴际
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beihang University
Original Assignee
Beihang University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beihang University filed Critical Beihang University
Priority to CN201710366026.1A priority Critical patent/CN107168762B/en
Publication of CN107168762A publication Critical patent/CN107168762A/en
Application granted granted Critical
Publication of CN107168762B publication Critical patent/CN107168762B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/45Exploiting coarse grain parallelism in compilation, i.e. parallelism between groups of instructions
    • G06F8/453Data distribution
    • G06F8/454Consistency
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/45Exploiting coarse grain parallelism in compilation, i.e. parallelism between groups of instructions
    • G06F8/453Data distribution

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

本发明涉及一种基于本体的RUCM模型一致性检查方法,所述方法包括以下步骤:对领域知识进行建模,形成的包含领域概念、领域概念之间关系和领域概念的相关属性的领域本体模型;结合本体库中的核心概念,建立和分析本体库的相关概念到RUCM模型概念之间的映射关系;最后根据定义的一致性规则来检验RUCM模型中存在的不一致的缺陷。本发明设计了扩展支持本体模型检查的RUCM模型;提供一种基于本体的RUCM模型一致性检查方法的算法工具。本发明解决了利用领域知识快速高效地检查需求中不一致的缺陷;同时可以解决重复的劳动,提供需求的准确性和完整性。

The invention relates to an ontology-based RUCM model consistency checking method, the method comprising the following steps: modeling domain knowledge, forming a domain ontology model including domain concepts, relationships between domain concepts and related attributes of domain concepts ; Combining the core concepts in the ontology database, establish and analyze the mapping relationship between the related concepts of the ontology database and the concepts of the RUCM model; finally, check the inconsistency defects in the RUCM model according to the defined consistency rules. The invention designs an extended RUCM model that supports ontology model checking, and provides an algorithm tool for an ontology-based RUCM model consistency checking method. The invention solves the defect of quickly and efficiently checking the inconsistency in the requirement by using domain knowledge; meanwhile, it can solve the repetitive labor and provide the accuracy and completeness of the requirement.

Description

一种基于本体的RUCM模型一致性检查方法An Ontology-Based RUCM Model Consistency Checking Method

技术领域technical field

本发明涉及RUCM建模技术领域,尤其涉及一种基于本体的RUCM模型一致性检查方法。The invention relates to the technical field of RUCM modeling, in particular to an ontology-based RUCM model consistency checking method.

背景技术Background technique

大多数软件需求规格说明是通过自然语言撰写的。在软件需求规格说明文档中,大部分领域概念是通过自然语言定义和描述的,软件需求的具体需求项也是通过自然语言撰写的。因此,在这些需求描述中,往往存在模棱两可或含糊不清的表述,这种不确定的表述往往在不同项目中会出现分歧和误解,很有可能导致软件项目的失败。在撰写软件需求规格说明时,除了使用传统的纯自然语言描述的形式以外,一种基于规则约束自然语言的结构化用例描述模板(RUCM建模)的方法也被广泛使用。该方法定义了描述软件需求用例规则模板,对特定的规则描述模板中包含的说明项是自然语言描述的。在RUCM(ReatrictedUse Case Modeling)建模方法中,需求描述采用具有限制的自然语言和用例规约模板来描述。由于软件需求分析师在使用RUCM建模方法过程中,缺少对软件需求的领域知识的了解,最后形成的软件需求规格说明往往会出现不一致的领域相关的错误。对于同样的功能,不同的软件需求分析师,根据对软件需求的领域知识的了解的信息不对等和不完备,最终撰写的软件需求文档可能会存在很大的不一致问题。Most software requirements specifications are written in natural language. In the software requirements specification document, most domain concepts are defined and described by natural language, and the specific requirement items of software requirements are also written by natural language. Therefore, in these requirement descriptions, there are often ambiguous or ambiguous expressions. Such uncertain expressions often lead to disagreements and misunderstandings in different projects, which may lead to the failure of software projects. When writing software requirements specifications, in addition to using the traditional pure natural language description, a structured use case description template (RUCM modeling) based on rule-constrained natural language is also widely used. The method defines a rule template for describing software requirement use cases, and the description items contained in the specific rule description template are described in natural language. In the RUCM (Reastricted Use Case Modeling) modeling method, the requirement description is described using a restricted natural language and a use case specification template. Because software requirements analysts lack the domain knowledge of software requirements in the process of using RUCM modeling method, the final software requirements specifications often have inconsistent domain-related errors. For the same function, different software requirements analysts may have unequal and incomplete information based on their understanding of the domain knowledge of software requirements, and there may be great inconsistencies in the final written software requirements documents.

发明内容Contents of the invention

鉴于上述的分析,本发明旨在提供一种基于本体的RUCM模型一致性检查方法,用以解决现有的软件需求分析师在撰写软件需求中存在的需求不一致的问题。In view of the above analysis, the present invention aims to provide an ontology-based RUCM model consistency checking method to solve the problem of inconsistency of requirements existing in writing software requirements by existing software requirements analysts.

所述方法结合本体模型表达的领域知识,分析包含自然语言描述的需求文本和RUCM模型描述的用例需求的软件需求的一致性、完整性。所述本体是对领域中包含的知识进行特定抽象表达。在计算机科学研究领域上,所述本体模型是按照领域中的概念、概念间的关系、概念属性抽象出现实的模型。The method combines the domain knowledge expressed by the ontology model to analyze the consistency and completeness of the software requirements including the requirement text described in the natural language and the use case requirements described in the RUCM model. The ontology is a specific abstract expression of the knowledge contained in the domain. In the field of computer science research, the ontology model is a model that abstracts reality according to the concepts in the field, the relationship between concepts, and the attributes of concepts.

本发明的目的主要是通过以下技术方案实现的:The purpose of the present invention is mainly achieved through the following technical solutions:

包括如下步骤:Including the following steps:

步骤S1、建立用于RCUM模型检验的本体模型库;Step S1, establishing an ontology model library for RCUM model verification;

步骤S2、建立步骤S1中的本体模型库到RUCM模型的概念映射关系,形成关系映射模板;Step S2, establishing a conceptual mapping relationship from the ontology model library in step S1 to the RUCM model, forming a relationship mapping template;

步骤S3、根据所述步骤S2建立的映射关系定义相应的一致性检验规则,通过规则自动检测RUCM需求中描述的不一致,从而形成相应的评估报告。Step S3: Define corresponding consistency check rules according to the mapping relationship established in step S2, and automatically detect inconsistencies described in the RUCM requirements through the rules, thereby forming a corresponding evaluation report.

所述步骤S1包括如下子步骤:The step S1 includes the following sub-steps:

步骤S101、通过分析领域相关的背景材料,形成抽象的领域概念,构建领域相关的本体概念库;Step S101, forming an abstract domain concept by analyzing domain-related background materials, and building a domain-related ontology concept library;

步骤S102、结合软件需求所需要实现的目标软件系统的领域背景分析核心概念之间的关系,得到本体关系库;Step S102, analyzing the relationship between the core concepts in combination with the domain background of the target software system that needs to be realized by the software requirements, and obtaining the ontology relationship library;

步骤S103、根据领域核心概念之间的关系,添加领域概念特定属性得到本体概念属性库;Step S103, according to the relationship between domain core concepts, add domain concept specific attributes to obtain ontology concept attribute library;

步骤S104、根据上述的本体概念库、本体关系库和本体概念属性库,形成本体模型的模板集合,然后将模板集合整合形成用于RUCM模型检验的本体模型库即领域本体库。Step S104, according to the above-mentioned ontology concept database, ontology relationship database and ontology concept attribute database, a template set of ontology model is formed, and then the template set is integrated to form an ontology model database for RUCM model verification, that is, a domain ontology database.

所述步骤S2包括如下子步骤:The step S2 includes the following sub-steps:

步骤S201、确定和标注本体的核心概念属性;Step S201, determining and labeling the core concept attributes of the ontology;

步骤S202、识别和标注软件需求的概念;Step S202, identifying and labeling concepts of software requirements;

步骤S203、在标注好本体的核心概念属性和软件需求的概念的基础上,得到两者之间的对应规则。Step S203 , on the basis of marking the core concept attributes of the ontology and the concepts of the software requirements, the corresponding rules between the two are obtained.

所述步骤S3包括如下子步骤:The step S3 includes the following sub-steps:

步骤S301、根据所述步骤S2建立的映射关系定义相应的一致性检验规则;Step S301, defining corresponding consistency check rules according to the mapping relationship established in step S2;

步骤S302、设计相应的分析需求的算法,自动形成相应的评估报告。Step S302, designing a corresponding algorithm for analyzing requirements, and automatically forming a corresponding evaluation report.

本发明对传统的RUCM模型进行了扩展。针对本体模型中包含三类元素:概念、概念之间的关系和概念属性,分别设计了扩展支持本体模型检查的RUCM模型,形成OntoRUCM(Ontology-based RUCM)模型。The present invention extends the traditional RUCM model. Aiming at three types of elements in the ontology model: concepts, relations between concepts and concept attributes, RUCM models that extend and support ontology model checking are designed respectively to form OntoRUCM (Ontology-based RUCM) models.

所述OntoRUCM模型的建模工具框架在基础层复用了Eclipse集成开发环境的三项技术。第一,框架复用了Eclipse的工作台,功能包括提供基本图形界面元素和文件资源管理功能,即Workbench UI和Workspace两个Eclipse核心模块;第二,框架复用了Eclipse的插件开发环境PDE,以实现元模型层面和编辑器层面的动态扩展功能;第三,框架复用了Eclipse建模框架EMF的部分功能,以实现模型文件与其他工具的兼容性。OntoRUCM模型在扩展层提供相应的扩展类库,用于增加一致性检查的扩展点。最上层的编辑器层则是使用了编辑器和插件相互独立的架构方式,最终形成OntoRUCM模型的设计整体架构。The modeling tool framework of the OntoRUCM model reuses three technologies of the Eclipse integrated development environment at the basic layer. First, the framework reuses the Eclipse workbench, and its functions include providing basic graphical interface elements and file resource management functions, namely Workbench UI and Workspace, two Eclipse core modules; second, the framework reuses the Eclipse plug-in development environment PDE, In order to realize the dynamic extension function at the meta-model level and the editor level; thirdly, the framework reuses some functions of the Eclipse modeling framework EMF to realize the compatibility of model files with other tools. The OntoRUCM model provides the corresponding extension class library in the extension layer, which is used to increase the extension points of the consistency check. The top editor layer uses an independent architecture of editors and plug-ins, and finally forms the overall design architecture of the OntoRUCM model.

本发明有益效果如下:The beneficial effects of the present invention are as follows:

本发明通过RUCM扩展的用户定义需求模型到本体的映射关系的定义,明确了检验规则的相关重要特性,利用领域知识来检验用户的需求;规范化RUCM软件需求的一致性和完整性的检查方法,为软件需求的一致性检测手段提供了一个自动化实现的手段。The present invention defines the mapping relationship between the user-defined requirement model and the ontology extended by RUCM, clarifies the relevant important characteristics of the inspection rules, uses domain knowledge to inspect the user's requirements; standardizes the consistency and completeness inspection method of RUCM software requirements, It provides an automatic implementation method for the consistency detection method of software requirements.

本发明的其他特征和优点将在随后的说明书中阐述,并且,部分的从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点可通过在所写的说明书、权利要求书、以及附图中所特别指出的结构来实现和获得。Additional features and advantages of the invention will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.

附图说明Description of drawings

附图仅用于示出具体实施例的目的,而并不认为是对本发明的限制,在整个附图中,相同的参考符号表示相同的部件。The drawings are for the purpose of illustrating specific embodiments only and are not to be considered as limitations of the invention, and like reference numerals refer to like parts throughout the drawings.

图1为基于本体的RUCM模型一致性检查过程图Figure 1 is a diagram of the ontology-based RUCM model consistency check process

图2为领域本体库的建立过程图Figure 2 is a diagram of the establishment process of the domain ontology library

图3为OntoRUCM需求建模工具架构图Figure 3 is the architecture diagram of OntoRUCM requirements modeling tool

图4为基于本体的RUCM模型一致性规则工具实现方案图Figure 4 is a scheme diagram of the ontology-based RUCM model consistency rule tool implementation

具体实施方式detailed description

下面结合附图来具体描述本发明的优选实施例,其中,附图构成本申请一部分,并与本发明的实施例一起用于阐释本发明的原理。Preferred embodiments of the present invention will be specifically described below in conjunction with the accompanying drawings, wherein the accompanying drawings constitute a part of the application and are used together with the embodiments of the present invention to explain the principle of the present invention.

本发明为了自动化解决目前软件需求的不一致及软件需求和领域知识相违背的相关问题,公开了一种需求模型一致性的检查方法。所述方法结合本体模型表达的领域知识,分析包含自然语言描述的需求文本和RUCM模型描述的用例需求的软件需求的一致性、完整性。所述本体是对领域中包含的知识进行特定抽象表达。The invention discloses a method for checking the consistency of a requirement model in order to automatically solve the related problems of the inconsistency of the current software requirements and the violation of the software requirements and domain knowledge. The method combines the domain knowledge expressed by the ontology model to analyze the consistency and completeness of the software requirements including the requirement text described in the natural language and the use case requirements described in the RUCM model. The ontology is a specific abstract expression of the knowledge contained in the domain.

本实施例提供的一致性检查方法,如图1所示,包括如下步骤:The consistency check method provided in this embodiment, as shown in Figure 1, includes the following steps:

步骤S1、建立用于RCUM模型检验的本体模型库。Step S1, establishing an ontology model library for RCUM model verification.

所述本体模型库的具体建立步骤,如图2所示,包括如下子步骤:The specific establishment steps of the ontology model library, as shown in Figure 2, include the following sub-steps:

步骤S101、通过分析领域相关的背景材料,形成抽象的领域核心概念,构建领域相关的本体概念库。Step S101 , by analyzing domain-related background materials, an abstract domain core concept is formed, and a domain-related ontology concept library is constructed.

通常软件工程的项目会伴随着使用大量的特定领域相关知识和概念。标准的领域材料包括介绍该领域知识的教科书、领域内相关标准文集、规范等。如:嵌入式操作系统相关的,需要对操作系统领域的教科书、维基百科以及相关的标准和规范进行分析,得出操作系统领域的核心概念,如进程,线程和分区等。抽象得出的核心概念构建领域相关的本体概念库。Usually software engineering projects are accompanied by the use of a large amount of domain-specific knowledge and concepts. Standard field materials include textbooks introducing knowledge in this field, collections of relevant standards in the field, specifications, etc. For example: related to embedded operating systems, it is necessary to analyze textbooks, Wikipedia, and related standards and specifications in the field of operating systems to obtain core concepts in the field of operating systems, such as processes, threads, and partitions. The abstracted core concepts build a domain-related ontology concept library.

本体概念库的形成可以采用NLP处理提取概念和手工添加概念的方式。The ontology concept base can be formed by using NLP processing to extract concepts and manually add concepts.

步骤S102、结合软件需求所需要实现的目标软件系统的领域背景分析核心概念之间的关系,得到本体关系库。Step S102 , analyzing the relationship between core concepts in combination with the domain background of the target software system to be realized by the software requirements, and obtaining an ontology relational library.

本体关系库描述了领域中核心概念之间相互的依赖关系。如嵌入式操作系统,该领域比较典型的关系有:函数之间的使用调用关系、进程和操作系统之间的资源关联关系、内核会包含分区,这种“包含”就是内核和分区的关系等。The ontology relational library describes the mutual dependencies among the core concepts in the domain. Such as embedded operating system, typical relationships in this field include: use and call relationship between functions, resource association relationship between process and operating system, kernel will contain partitions, this "inclusion" is the relationship between kernel and partitions, etc. .

步骤S103、根据领域核心概念之间的关系,添加领域概念特定属性得到本体概念属性库。Step S103, according to the relationship between domain core concepts, add domain concept specific attributes to obtain an ontology concept attribute library.

概念属性是概念的附加信息,起到对概念的解释和补充作用,用来为检验一致性提供附加的信息和标准。例如,在操作系统领域中,给进程添加“必需”这样的属性,表示进程在所有操作系统中都是重要的核心概念。图形界面并不算操作系统都需要具备的,所以可以将图形界面添加“非必需”这样的属性,表示图形界面只是操作系统的附属的核心概念。The concept attribute is the additional information of the concept, which plays the role of explaining and supplementing the concept, and is used to provide additional information and standards for checking the consistency. For example, in the field of operating systems, adding an attribute such as "required" to a process indicates that a process is an important core concept in all operating systems. The graphical interface is not required for all operating systems, so the attribute "not required" can be added to the graphical interface, indicating that the graphical interface is only a core concept attached to the operating system.

步骤S104、根据上述的本体概念库、本体关系库和本体概念属性库,形成本体模型的模板集合,然后将模板集合整合形成用于RUCM模型检验的本体模型库即领域本体库。Step S104, according to the above-mentioned ontology concept database, ontology relationship database and ontology concept attribute database, a template set of ontology model is formed, and then the template set is integrated to form an ontology model database for RUCM model verification, that is, a domain ontology database.

本发明所使用的表达领域知识的本体模型包含领域概念、领域概念关系和领域概念属性这三个部分。The ontology model used in the present invention to express domain knowledge includes three parts: domain concept, domain concept relationship and domain concept attribute.

根据本发明的特点,形成的最终本体库的需要有建立和表示的方法。本发明设计建立的本体概念元素可以使用下表中模板表示。从而形成本体模型的视图。According to the characteristics of the present invention, the final ontology library needs to have a method of establishment and representation. The ontology concept elements designed and established by the present invention can be represented by the templates in the following table. Thus forming the view of the ontology model.

表1本体元素列举Table 1 Enumeration of ontology elements

概念节点concept node 描述领域中的相关概念Describe related concepts in the domain 概念之间的关系relationship between concepts 描述概念之间的关系Describe the relationship between concepts 概念节点属性Concept Node Properties 描述概念节点的其它属性,用于软件需求分析推导Describe other attributes of concept nodes for software requirements analysis and derivation

步骤S2、建立步骤S1中的本体模型库到RUCM模型的概念映射关系,形成关系映射模板。Step S2, establishing a conceptual mapping relationship from the ontology model base in step S1 to the RUCM model, to form a relationship mapping template.

具体包括如下子步骤:Specifically include the following sub-steps:

步骤S201、确定和标注本体的核心概念属性。Step S201, determining and labeling the core concept attributes of the ontology.

针对领域本体中的全部概念,并不是所有概念都是等价的,在特定的软件需求中,不同的概念之间需要标注不同的属性,用于区分本体中定义的概念在软件需求概念中的作用。For all the concepts in the domain ontology, not all concepts are equivalent. In specific software requirements, different concepts need to be marked with different attributes to distinguish the concepts defined in the ontology from the software requirements concepts. effect.

步骤S202、识别和标注软件需求的概念。Step S202, identifying and labeling concepts of software requirements.

一个软件需求项的RUCM用例比较复杂,不仅包括需求的数据流,还包含数据处理之间的控制流。所以,采取扩展RUCM的语义这种方式,将RUCM用例中使用或出现的概念通过扩展的方式标记出来。The RUCM use case of a software requirement item is relatively complex, including not only the data flow of the requirement, but also the control flow between data processing. Therefore, the semantics of RUCM is extended, and the concepts used or appearing in RUCM use cases are marked by extension.

步骤S203、在标注好本体的核心概念属性和软件需求的概念的基础上,得到两者之间的对应规则。Step S203 , on the basis of marking the core concept attributes of the ontology and the concepts of the software requirements, the corresponding rules between the two are obtained.

所述对应规则有下面两种方式:The corresponding rules have the following two modes:

1.所述本体模型中概念和所述软件需求的概念用词完全一致可以判定是同一概念;1. The concepts in the ontology model and the concepts in the software requirements are completely consistent in wording, so it can be determined that they are the same concept;

2.所述本体模型中概念之间关系和软件需求中的概念的上下文中动词多处出现一致可以判定很大几率上是统计概念,本发明采用目前常用自然语言分词的工具来识别。2. The relationship between the concepts in the ontology model and the verbs in the context of the concept in the software requirements are consistent. It can be determined that there is a high probability that it is a statistical concept. The present invention uses the current natural language word segmentation tools to identify.

本发明对传统的RUCM模型进行了扩展。考虑到本体模型中包含三类元素:概念、概念之间的关系和概念属性。针对这三类元素分别设计了扩展支持本体模型检查的RUCM模型,以后称扩展后的RUCM模型为OntoRUCM(Ontology-based RUCM)。所述OntoRUCM模型中包含对本体中概念识别的支持,针对本体中概念的可以扩展附件模板的附属模板,模板包含RUCM中具体使用的概念的名字、概念的描述、概念的依赖和概念对于本体的节点引用。针对于本体中的概念的扩展见表2。添加所述OntoRUCM模板后,可以将RUCM模板中使用的领域概念和本体模型关联起来,这样的软件需求可以作为本体识别分析的依据。所述OntoRUCM模板需要包含对本体中概念之间的关系识别的支持,需要将概念识别的关系进行标注。标注好的模板就可以作为本体中关系的推导的识别依据,结合表2中的基于本体的RUCM扩充视图OntoRUCM模板来表示本体中的映射关系。The present invention extends the traditional RUCM model. Considering that the ontology model contains three types of elements: concepts, relations between concepts and concept attributes. For these three types of elements, an extended RUCM model that supports ontology model checking is designed, and the extended RUCM model is called OntoRUCM (Ontology-based RUCM) from now on. The OntoRUCM model includes support for the identification of concepts in the ontology, and the attachment template for the concept in the ontology can be extended as an attachment template. The template includes the name of the concept specifically used in RUCM, the description of the concept, the dependence of the concept, and the relationship between the concept and the ontology. node reference. See Table 2 for the extension of the concepts in the ontology. After the OntoRUCM template is added, the domain concept used in the RUCM template can be associated with the ontology model, and such software requirements can be used as a basis for ontology recognition analysis. The OntoRUCM template needs to include support for identifying the relationship between concepts in the ontology, and needs to mark the relationship identified by the concept. The marked template can be used as the identification basis for the derivation of the relationship in the ontology, combined with the ontology-based RUCM extended view OntoRUCM template in Table 2 to represent the mapping relationship in the ontology.

基于本体模型的RUCM模型分析的扩展增加了所述OntoRUCM模型扩展的可用性。Ontology-based extensions to RUCM model analysis increase the usability of the OntoRUCM model extensions.

表2扩展的OntoRUCM模板Table 2 Extended OntoRUCM template

对应RUCM建模方法已经有相关人员做了具体的研究和工具的实现。本发明中所提出的OntoRUCM模型是传统RUCM建模方法的扩展,不仅包括了对于模板的附件扩展,还要求用户在撰写RUCM需求的同时增加本体概念的标记。这种实际工具编写根据图3中架构来实现,如图2所示,OntoRUCM模型的建模工具框架在基础层复用了Eclipse集成开发环境的三项技术。第一,框架复用了Eclipse的工作台,功能包括提供基本图形界面元素和文件资源管理功能,即Workbench UI和Workspace两个Eclipse核心模块;第二,框架复用了Eclipse的插件开发环境PDE,以实现元模型层面和编辑器层面的动态扩展功能;第三,框架复用了Eclipse建模框架EMF的部分功能,以实现模型文件与其他工具的兼容性。OntoRUCM模型在扩展层提供相应的扩展类库,用于增加一致性检查的扩展点。最上层的编辑器层则是使用了编辑器和插件相互独立的架构方式,最终形成OntoRUCM模型的设计整体架构。Corresponding to the RUCM modeling method, relevant personnel have done specific research and tool implementation. The OntoRUCM model proposed in the present invention is an extension of the traditional RUCM modeling method, which not only includes the expansion of the attachment to the template, but also requires the user to add the label of the ontology concept while writing the RUCM requirement. This kind of actual tool writing is implemented according to the architecture in Figure 3. As shown in Figure 2, the modeling tool framework of the OntoRUCM model reuses three technologies of the Eclipse integrated development environment at the basic layer. First, the framework reuses the Eclipse workbench, and its functions include providing basic graphical interface elements and file resource management functions, namely Workbench UI and Workspace, two Eclipse core modules; second, the framework reuses the Eclipse plug-in development environment PDE, In order to realize the dynamic extension function at the meta-model level and the editor level; thirdly, the framework reuses some functions of the Eclipse modeling framework EMF to realize the compatibility of model files with other tools. The OntoRUCM model provides the corresponding extension class library in the extension layer, which is used to increase the extension points of the consistency check. The top editor layer uses an independent architecture of editors and plug-ins, and finally forms the overall design architecture of the OntoRUCM model.

步骤S3、根据所述步骤S2建立的映射关系定义相应的一致性检验规则,通过规则自动检测RUCM需求中描述的不一致,从而形成相应的评估报告。Step S3: Define corresponding consistency check rules according to the mapping relationship established in step S2, and automatically detect inconsistencies described in the RUCM requirements through the rules, thereby forming a corresponding evaluation report.

具体包括如下子步骤:Specifically include the following sub-steps:

步骤S301、根据所述步骤S2建立的映射关系定义相应的一致性检验规则。Step S301, define corresponding consistency check rules according to the mapping relationship established in step S2.

本发明中软件需求的RUCM模型包含了软件需求中的概念到本体模型的引用,然后使用本体概念到软件需求的对应规则。这样的分析规则主要包含以下的相关特性的定义:The RUCM model of the software requirement in the present invention includes the reference from the concept in the software requirement to the ontology model, and then uses the corresponding rules from the ontology concept to the software requirement. Such analysis rules mainly include the definition of the following related characteristics:

一致性。所述一致性是指在同一领域中,一个概念,或者两个或多个相同概念术语不能被混淆使用,如一个概念的标准全称,及其缩写,以及多种不同的别名或者译名不能混淆使用。不相同的概念在使用时引用的关系必须一致。consistency. The consistency means that in the same field, a concept, or two or more terms of the same concept cannot be confusedly used, such as the standard full name of a concept, its abbreviation, and various aliases or translations cannot be confusedly used . The relationship referenced by different concepts must be consistent when used.

完整性。所述完整性描述是指领域中的核心概念在软件需求中是否被完整描述。同时,软件需求中使用概念同时没有添加概念的关系也会被认为不完整。integrity. The complete description refers to whether the core concepts in the domain are fully described in the software requirements. At the same time, relationships in software requirements that use concepts but do not add concepts are also considered incomplete.

基于本体模型分析软件需求的指标包括需求的一致性和完整性,所述两项检验指标是建立在一致性检验规则和完整性检验规则上的。Indexes for analyzing software requirements based on the ontology model include consistency and completeness of requirements, and the two inspection indexes are based on consistency inspection rules and integrity inspection rules.

1.软件需求一致性规则1. Software Requirements Consistency Rules

软件需求的一致性描述的是领域中相同概念在软件需求不能被混淆使用,不相同的概念在使用时引用的关系必须一致。The consistency of software requirements describes that the same concepts in the field cannot be confusedly used in software requirements, and the relationship referenced by different concepts must be consistent when used.

●本体模型的同一概念,RUCM模型在使用时不能出现不一致词汇●The same concept of the ontology model, the RUCM model cannot have inconsistent vocabulary when using

●本体模型的概念关系,RUCM模型在使用时不能误用●The conceptual relationship of the ontology model, the RUCM model cannot be misused when using it

●RUCM模型中对本体模型中同一概念的引用必须完全规约到一类The references to the same concept in the ontology model in the RUCM model must be completely reduced to one class

2.软件需求完整性规则2. Software Requirements Integrity Rules

本体中描述的领域知识可以将特定领域中的核心概念的全集标注出来。本体模型中的领域概念具有不同的属性。The domain knowledge described in the ontology can mark out the complete set of core concepts in a specific domain. Domain concepts in ontology models have different attributes.

●RUCM模型中引用的领域概念,都应在领域本体中有定义The domain concepts referenced in the RUCM model should be defined in the domain ontology

●本体模型中概念的关系流,RUCM模型中概念在使用时必须要完整引用。●Relational flow of concepts in the ontology model, concepts in the RUCM model must be fully referenced when used.

由于领域本体是对特定领域的所有核心概念的抽象,而需求信息库是对系统需求的所表达内容的抽象。在所述两种抽象当中要建立相应的分析算法才能检测出系统需求中的缺陷和不足。Because the domain ontology is the abstraction of all the core concepts of a specific domain, and the requirements information base is the abstraction of the expressed content of the system requirements. Corresponding analysis algorithms must be established among the two abstractions to detect defects and deficiencies in system requirements.

分析软件需求的规则的原则主要是包含了检验需求的一致性和检验需求的完整性的规则。The principles of the rules for analyzing software requirements mainly include the rules for checking the consistency of the requirements and the integrity of the requirements.

所述需求的一致性的规则主要是解决需求信息库在使用领域本体中出现的同一概念必需要在确保概念不被误用,防止需求信息库中的概念混淆。The rule of the consistency of the requirements is mainly to solve the problem that the same concept appearing in the requirement information base in the domain ontology must ensure that the concepts are not misused and prevent the concepts in the requirement information base from being confused.

所述需求的完整性的规则主要是解决领域本体中的核心概念在需求文档中必需要有相关的描述,否则,可以认为需求文档只是针对领域的特定部分,不具有完整性。The rules of the completeness of the requirements are mainly to solve the core concepts in the domain ontology must have relevant descriptions in the requirements document, otherwise, it can be considered that the requirements document is only for a specific part of the domain and does not have completeness.

所述需求的规则还可以在后续的工作中细化和完善。The rules of the requirements can also be refined and improved in subsequent work.

步骤S302、设计相应的分析需求的算法,自动形成相应的评估报告。Step S302, designing a corresponding algorithm for analyzing requirements, and automatically forming a corresponding evaluation report.

基于所述分析需求的相关规则,本发明设计了相应的分析需求的算法,在建立好的领域本体和需求信息库中做分析,自动检测RUCM需求中描述的不一致,从而形成相应的评估报告。所述需求信息库是包括对自由文本需求和RUCM需求模型这两类软件需求提取生成的需求信息的集合。Based on the relevant rules for analyzing requirements, the present invention designs corresponding algorithms for analyzing requirements, performs analysis in the established domain ontology and requirements information database, and automatically detects inconsistencies described in RUCM requirements, thereby forming a corresponding evaluation report. The requirement information base is a collection of requirement information generated by extracting two types of software requirements, free text requirements and RUCM requirement models.

所述分析需求的算法采用以下三步:The algorithm for analyzing requirements uses the following three steps:

1.对需求信息库进行遍历,查找不符合规则的需求。1. Traverse the requirements information base to find the requirements that do not meet the rules.

2.对领域本体进行遍历,查找需求信息库中不完整的需求。2. Traverse the domain ontology to find incomplete requirements in the requirements information base.

3.统计查找到的需求并生成相应的分析需求的报告。3. Make statistics on the found requirements and generate a corresponding analysis report.

所述分析需求的算法还可以在后续中根据具体本体模型和需求信息库的细节进行优化。The algorithm for analyzing requirements can be further optimized according to the specific ontology model and the details of the requirements information base.

本发明提供一种针对所述相关需求的算法的工具实现设计实施例,如图4所示,The present invention provides a tool implementation design embodiment of an algorithm aiming at the related requirements, as shown in FIG. 4 ,

所述算法工具的输入是软件需求和领域本体;The input of the algorithm tool is software requirements and domain ontology;

所述软件需求包含自由文本需求和RUCM模型;The software requirements include free text requirements and RUCM models;

所述自由文本需求是每个需求项中对于需求的综述,规则库是预定义的校验规则,规则库中包含的规则和用户自定义规则一同在规则解析器中解析,然后校验文本规则定义器输出的分析过滤后的自由文本需求;The free text requirements are a summary of the requirements in each requirement item, and the rule base is a predefined verification rule. The rules contained in the rule base and user-defined rules are parsed in the rule parser together, and then the text rules are verified. Analytical filtered free-text requirements output by the definer;

所述自由文本需求通过文本规则定义器定义后输出的半形式化需求输出的通用需求格式,通过句式规则生成半形式化的需求作为规则执行器输入的一部分;The general requirement format of the semi-formal requirement output outputted by the text rule definer after the free text requirement is defined by the text rule definer, and the semi-formal requirement generated by the sentence rule as a part of the input of the rule executor;

所述RUCM模型通过UCMeta转化器的扩充,到模型生成器形成可以被规则执行器识别的OntoRUCM模型,作为规则执行器输入的另一部分;The RUCM model is expanded to the model generator to form an OntoRUCM model that can be recognized by the rule executor through the expansion of the UCMeta converter, as another part of the rule executor's input;

所述领域文本的构建过程,领域文本经概念分析规则器后得到领域概念文本通用格式文件,经关系分析规则器后得到领域关系文本通用格式文件,两者共同构成领域本体知识,作为规则执行器的另一输入;In the construction process of the domain text, the domain text is passed through the concept analysis ruler to obtain the general format file of the domain concept text, and after the relationship analysis ruler is used to obtain the general format file of the domain relational text, the two together constitute the domain ontology knowledge and serve as a rule executor another input of

所述规则执行器通过规则自动检测RUCM需求中描述的不一致,所述规则执行器中包括的验证算法是对规则执行器输入的需求一致性验证的校验,分析算法是对需求规则之间的引用的分析的查找和评估,进而输出分析结果,形成相应的评估报告。The rule executor automatically detects the inconsistency described in the RUCM requirements through the rules, the verification algorithm included in the rule executor is a verification of the consistency verification of the requirements input by the rule executor, and the analysis algorithm is the verification between the requirement rules Find and evaluate the cited analysis, and then output the analysis results to form a corresponding evaluation report.

综上所述,本发明实施例提供了一种需求模型一致性的检查方法,所述方法通过RUCM扩展的用户定义需求模型到本体的映射关系的定义,明确了检验规则的相关重要特性,利用领域知识来检验用户的需求;规范化RUCM软件需求的一致性和完整性的检查方法,为需求的一致性检测手段提供了一个自动化实现的手段。To sum up, the embodiment of the present invention provides a method for checking the consistency of the requirement model. The method defines the mapping relationship between the user-defined requirement model and the ontology extended by RUCM, and clarifies the relevant important characteristics of the verification rules. Domain knowledge is used to test the user's needs; standardizing the consistency and completeness checking method of RUCM software requirements provides an automatic implementation method for the consistency testing method of requirements.

以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。The above is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of changes or modifications within the technical scope disclosed in the present invention. Replacement should be covered within the protection scope of the present invention.

Claims (7)

1. a kind of RUCM model consistency inspection methods based on body, it is characterised in that comprise the following steps:
Step S1, set up ontology model storehouse for RCUM model testings;
Ontology model storehouse in step S2, establishment step S1 forms relationship map template to the concept mapping relations of RUCM models;
Step S3, according to the step S2 mapping relations set up corresponding consistency check rule is defined, by regular automatic Detect inconsistent described in RUCM demands, so as to form corresponding assessment report.
2. the RUCM model consistency inspection methods according to claim 1 based on body, it is characterised in that
The step S1 includes following sub-step:
Step S101, the background material by analysis field correlation, form abstract field key concept, build field correlation Ontological concept storehouse;
Between step S102, the domain background analysis key concept for the destination software systems realized with reference to required for software requirement Relation, obtains ontological relationship storehouse;
Step S103, according to the relation between the key concept of field, addition field key concept particular community obtains Ontological concept Attribute library;
Step S104, according to above-mentioned Ontological concept storehouse, ontological relationship storehouse and Ontological concept attribute library, form the mould of ontology model Plate set, is then integrally formed the ontology model storehouse i.e. field ontology library for RUCM model testings by template set.
3. any RUCM model consistency inspection methods based on body according to claim 1 or 2, its feature exists In,
The step S2 includes following sub-step:
Step S201, the key concept attribute for determining and marking body;
Step S202, identification and marking software demand concept;
Step S203, on the basis of the key concept attribute and the concept of software requirement for having marked body, obtain between the two The rule of correspondence.
4. the RUCM model consistency inspection methods based on body according to claim 3, it is characterised in that
The step S3 includes following sub-step:
Step S301, according to the step S2 mapping relations set up define corresponding consistency check rule;
The algorithm of the corresponding analysis demand of step S302, design, automatically forms corresponding assessment report.
5. the RUCM model consistency inspection methods based on body according to claim 1, it is characterised in that
The step S3 includes following sub-step:
Step S301, according to the step S2 mapping relations set up define corresponding consistency check rule;
The algorithm of the corresponding analysis demand of step S302, design, automatically forms corresponding assessment report.
6. any RUCM model consistency inspection methods based on body according to claim 1,2,4,5, it is special Levy and be,
RUCM models in the step S2 are OntoRUCM models, concept of the OntoRUCM models in body, general The corresponding template of RUCM models is extended by relation and concept attribute between thought, is added to RUCM model consistency inspections Mapping relations.
7. the RUCM model consistency inspection methods according to claim 6 based on body, it is characterised in that described The modeling tool framework of OntoRUCM models has been multiplexed Eclipse workbench, Eclipse developing plug environment in basal layer PDE, Eclipse modeling framework EMF partial function, extension class libraries is provided in extension layer, and editor has been used in editing machine layer Device and the separate framework mode of plug-in unit;The workbench of the Eclipse provides fundamental figure interface element and file resource Management function, the developing plug environment PDE of the Eclipse realizes the dynamic expansion work(of meta-model aspect and editing machine aspect Can, compatibility of the Eclipse modeling frameworks EMF to implementation model file and other instruments, the extension class libraries is used for Increase the extension point of consistency check.
CN201710366026.1A 2017-05-23 2017-05-23 A Consistency Check Method for RUCM Models Based on Ontology Active CN107168762B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710366026.1A CN107168762B (en) 2017-05-23 2017-05-23 A Consistency Check Method for RUCM Models Based on Ontology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710366026.1A CN107168762B (en) 2017-05-23 2017-05-23 A Consistency Check Method for RUCM Models Based on Ontology

Publications (2)

Publication Number Publication Date
CN107168762A true CN107168762A (en) 2017-09-15
CN107168762B CN107168762B (en) 2020-07-03

Family

ID=59815901

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710366026.1A Active CN107168762B (en) 2017-05-23 2017-05-23 A Consistency Check Method for RUCM Models Based on Ontology

Country Status (1)

Country Link
CN (1) CN107168762B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108733877A (en) * 2018-04-10 2018-11-02 北京航空航天大学 A kind of construction method of ATE test meta-model
CN109460460A (en) * 2018-11-05 2019-03-12 国家计算机网络与信息安全管理中心 A kind of Methodologies for Building Domain Ontology towards intelligent use
CN109471624A (en) * 2018-11-21 2019-03-15 中国航空无线电电子研究所 Data sharing model control system and data framework generation method based on GOSAA
CN110929110A (en) * 2019-11-13 2020-03-27 北京北信源软件股份有限公司 Electronic document detection method, device, equipment and storage medium
CN111177322A (en) * 2019-12-30 2020-05-19 成都数之联科技有限公司 Ontology model construction method of domain knowledge graph
CN111651139A (en) * 2020-04-23 2020-09-11 南京航空航天大学 A Representation Method of OML to RUCM
CN111984229A (en) * 2020-07-24 2020-11-24 南京航空航天大学 Formal requirements model generation method for domain natural language requirements
CN113569004A (en) * 2021-06-15 2021-10-29 南京航空航天大学 Intelligent prompting method for restrictive natural language use case modeling
CN119201043A (en) * 2024-09-05 2024-12-27 常州瑞物科技有限公司 Service demand confirmation method and system based on cloud platform

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102707949A (en) * 2012-04-26 2012-10-03 清华大学 Ontology-based visual concept modeling method
CN104965956A (en) * 2015-07-16 2015-10-07 北京航空航天大学 RUCM based demand verification method
CN105975269A (en) * 2016-05-03 2016-09-28 北京航空航天大学 Process model-based demand verification method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102707949A (en) * 2012-04-26 2012-10-03 清华大学 Ontology-based visual concept modeling method
CN104965956A (en) * 2015-07-16 2015-10-07 北京航空航天大学 RUCM based demand verification method
CN105975269A (en) * 2016-05-03 2016-09-28 北京航空航天大学 Process model-based demand verification method

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108733877B (en) * 2018-04-10 2020-07-03 北京航空航天大学 Method for constructing ATE test system meta-model
CN108733877A (en) * 2018-04-10 2018-11-02 北京航空航天大学 A kind of construction method of ATE test meta-model
CN109460460A (en) * 2018-11-05 2019-03-12 国家计算机网络与信息安全管理中心 A kind of Methodologies for Building Domain Ontology towards intelligent use
CN109471624A (en) * 2018-11-21 2019-03-15 中国航空无线电电子研究所 Data sharing model control system and data framework generation method based on GOSAA
CN110929110B (en) * 2019-11-13 2023-02-21 北京北信源软件股份有限公司 Electronic document detection method, device, equipment and storage medium
CN110929110A (en) * 2019-11-13 2020-03-27 北京北信源软件股份有限公司 Electronic document detection method, device, equipment and storage medium
CN111177322A (en) * 2019-12-30 2020-05-19 成都数之联科技有限公司 Ontology model construction method of domain knowledge graph
CN111651139A (en) * 2020-04-23 2020-09-11 南京航空航天大学 A Representation Method of OML to RUCM
CN111984229B (en) * 2020-07-24 2022-02-01 南京航空航天大学 Method for generating formal demand model for field natural language demand
CN111984229A (en) * 2020-07-24 2020-11-24 南京航空航天大学 Formal requirements model generation method for domain natural language requirements
CN113569004A (en) * 2021-06-15 2021-10-29 南京航空航天大学 Intelligent prompting method for restrictive natural language use case modeling
CN113569004B (en) * 2021-06-15 2024-07-02 南京航空航天大学 Intelligent prompting method for modeling of restrictive natural language use case
CN119201043A (en) * 2024-09-05 2024-12-27 常州瑞物科技有限公司 Service demand confirmation method and system based on cloud platform

Also Published As

Publication number Publication date
CN107168762B (en) 2020-07-03

Similar Documents

Publication Publication Date Title
CN107168762B (en) A Consistency Check Method for RUCM Models Based on Ontology
US11797607B2 (en) Method and apparatus for constructing quality evaluation model, device and storage medium
Shah et al. Resolving ambiguities in natural language software requirements: a comprehensive survey
JP7289047B2 (en) Method, computer program and system for block-based document metadata extraction
Babur et al. Metamodel clone detection with SAMOS
CN102339252A (en) Static state detecting system based on XML (Extensive Makeup Language) middle model and defect mode matching
CN107015794B (en) Software-as-a-service reference flow extension verification framework
CN110750297B (en) A Python code reference information generation method based on program analysis and text analysis
CN112612716B (en) Method, system, equipment and storage medium for enhancing marking of coverage rate of difference line codes
CN107992306A (en) A kind of avionics software interface realizes uniformity automatic check method
CN107608895A (en) Software testing generation method, system and storage medium based on static models
CN116611071A (en) Function-level vulnerability detection method based on multiple modes
Louis et al. Deep learning to detect redundant method comments
Attanasio et al. ferret: a Framework for Benchmarking Explainers on Transformers
Huang et al. A comparative study on method comment and inline comment
Azzopardi et al. Integrating natural language and formal analysis for legal documents
Yang et al. A rule‐based subset generation method for product data models
CN113900956A (en) Test case generation method, device, computer equipment and storage medium
Radke et al. Detecting the geospatialness of prepositions from natural language text (short paper)
CN114996705B (en) Cross-software vulnerability detection method and system based on vulnerability type and Bi-LSTM
Zhao et al. Roles of ontology in automated process safety analysis
Liao et al. APRCOIE: An open information extraction system for Chinese
Samosir et al. Identifying Requirements Association Based on Class Diagram Using Semantic Similarity
CN114936271A (en) Method, device and medium for natural language conversion database query statement
Guan et al. Enhancing source code representations for deep learning with static analysis

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant