Requirement model structured analysis method and system based on ReqIF format

By parsing the requirements model in ReqIF format into structured json data, the problems of low information search efficiency and difficulty in collaborative design in traditional system engineering are solved, the online display and editing of the requirement model is realized, and the efficiency of collaborative design is improved.

CN118797929APending Publication Date: 2024-10-18BEIJING SIMULATION CENT
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410807676.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

In traditional systems engineering, the document-based development model suffers from low information search and transmission efficiency, insufficient requirements tracking and technical status control capabilities, and is difficult to meet the collaborative design requirements of complex products, and ReqIF format files cannot be directly used in the web collaborative modeling system. on display and editing.

Method used

By designing a structured parsing method for demand models based on the ReqIF format, the demand model data in the ReqIF format is parsed into a structured json format, enabling online display and editing of the demand model, breaking the installation and environment restrictions of modeling software, and supporting Co-design and data synchronization of requirements models.

Benefits of technology

It improves the efficiency of collaborative design of demand models, enables online display and editing of demand models, removes the installation restrictions of modeling software, supports the two-way transmission of online and offline collaborative design data, and improves the efficiency of model collaborative design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118797929A_ABST
    Figure CN118797929A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a requirement model structured analysis method and system based on a ReqIF format.The method comprises the steps that a requirement model of the ReqIF format is obtained, and analysis data of the requirement model is constructed; and mapping the analysis data into a preset analysis structure to obtain json format data of the demand model. According to the method, the demand model based on the ReqIF format is subjected to structured analysis, an analysis structure is designed, the demand model data of the ReqIF format is converted from unstructured data to structured data, and the analyzed json format file can be directly used by a web system, so that online display of the demand model can be realized; and the installation of modeling software and the environmental limitation of a modeling environment are broken. The collaborative design data granularity of the demand model is refined from the model file level to the demand entry level, and the collaborative design efficiency of the demand model is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of simulation technology, and more specifically, to a method and system for structurally parsing a requirement model based on the ReqIF format. Background Art

[0002] At present, traditional system engineering adopts a document-based development model, but this model has problems such as low efficiency in information search and transmission, insufficient demand tracking and technical status control capabilities, and easy ambiguity. With the increase in product complexity and multidisciplinary coupling, the traditional development model has been unable to meet the requirements of collaborative design. In 2007, the International Council on Systems Engineering proposed the concept of model-based systems engineering (MBSE). MBSE means that throughout the life cycle of system development, the model is always used as a carrier to drive development. From the demand stage, the system design of the product is realized through the continuous evolution and iterative increment of the model. Introducing the MBSE method into the development process of complex products can improve development efficiency and product quality. In the MBSE method, the model is the core, and the complex product development process is built around the model. The models generated in this process can be divided into three typical models: demand model, system model and functional model. The demand model is usually built using modeling software such as IBM Rational Doors, using the ReqIF (Requirements Interchange Format) format as the standard model format, following the syntax of the Extensible Markup Language (XML), and exchanging the demand model in different demand management software by transmitting XML documents that conform to ReqIF. When a complex product development task is released, the first thing to do is to conduct a demand analysis, and the demand model is generated by the demand modeling software. Designers usually build demand models in local modeling tools, and designers often need to collaborate on the model. Therefore, in order to improve the efficiency of model collaborative design, it is necessary to build a web-based collaborative modeling system. However, due to the installation of modeling software and the limitations of the modeling environment, the demand model cannot be directly displayed and edited on the web-based collaborative modeling system, and the ReqIF format file cannot be directly used by the system. The demand model needs to be parsed, and the ReqIF format is a common exchange format between different demand modeling tools, so the ReqIF format file needs to be parsed and converted into a json format that the system and code can handle. Summary of the invention

[0003] The object of the present invention is to provide a method and system for structured analysis of a requirement model based on the ReqIF format, so as to solve at least one of the problems existing in the prior art.

[0004] In order to achieve the above object, the present invention adopts the following technical solutions:

[0005] A first aspect of the present invention provides a method for structured analysis of a demand model based on the ReqIF format, comprising:

[0006] Obtain the demand model in ReqIF format, and construct parsing data of the demand model; map the parsing data to a preset parsing structure to obtain json format data of the demand model.

[0007] Optionally, the parsed data includes requirement group information, requirement item information, association relationship information between requirement items, and association relationship information between requirement groups in the requirement model;

[0008] Optionally, mapping the parsed data to a preset parsed structure includes:

[0009] According to the name information of the demand model, mapping obtains information of the name structure of the demand model in the parsing structure;

[0010] According to the requirement group information, mapping obtains the information of the requirement group set structure in the parsing structure;

[0011] According to the requirement item information, mapping obtains the information of the requirement item set structure in the parsing structure;

[0012] Mapping the information of the association relationship set structure between the requirement items in the parsed structure to obtain the information of the association relationship set structure between the requirement items in the parsed structure;

[0013] According to the association relationship information between the requirement groups, information of the association relationship set structure between the requirement groups in the parsing structure is mapped.

[0014] Optionally, the obtained information of the demand group set structure includes

[0015] The unique identification ID of the requirement group, the name of the requirement group, the attribute information of the requirement group, and the requirement item information included in the requirement group;

[0016] The attribute information of the requirement group includes the creator of the requirement group, the creation time of the requirement group, the last modifier of the requirement group and the last modification time of the requirement group; the requirement item information contained in the requirement group includes the requirement ID and the sub-requirement ID.

[0017] Optionally, the information of the requirement item set in the parsed structure obtained includes the requirement item ID and the attributes of the requirement item;

[0018] The attribute information of the requirement item includes the serial number of the requirement item, the creator of the requirement item, the creation time of the requirement item, the last modifier of the requirement item, the last modification time of the requirement item and the content of the requirement item.

[0019] Optionally, the information of the requirement item set structure obtained in the parsed structure includes an association relationship ID, a source requirement item ID, a target requirement item ID and attributes of the association relationship;

[0020] The attributes of the association relationship include the creator of the association relationship, the time when the association relationship was created, the person who last modified the association relationship, and the time when the association relationship was last modified.

[0021] Optionally, the information of the association relationship set structure between the demand groups in the parsed structure includes:

[0022] The ID of the association relationship set between requirement groups, the name of the association relationship set between requirement groups, the source requirement group ID, the target requirement group ID and the association relationship ID set between requirement groups.

[0023] Optionally, the preset analytical structure construction method includes

[0024] Create a demand model in Doors and export it as a ReqIF format file;

[0025] Analyze the structure and configuration information of the ReqIF file and the parameter information of the parsing demand model, and build the parsing data of the demand model;

[0026] Constructing a parsing structure in json format according to the parsed data;

[0027] The parsing structure includes a requirement model name structure, a requirement group set structure, a requirement item set structure, an association relationship set structure between requirement items, and an association relationship set structure.

[0028] Optionally, the parsed data includes requirement group information, requirement item information, association relationship information between requirement items, and association relationship information between requirement groups in the requirement model;

[0029] Mapping the parsed data to a preset parsed structure includes:

[0030] According to the name information of the demand model, mapping obtains information of the name structure of the demand model in the parsing structure;

[0031] According to the requirement group information, mapping obtains the information of the requirement group set structure in the parsing structure;

[0032] According to the requirement item information, mapping obtains the information of the requirement item set structure in the parsing structure;

[0033] Mapping the information of the association relationship set structure between the requirement items in the parsed structure to obtain the information of the association relationship set structure between the requirement items in the parsed structure;

[0034] According to the association relationship information between the requirement groups, information of the association relationship set structure between the requirement groups in the parsing structure is mapped.

[0035] A second aspect of the present invention provides a method for structured analysis of a demand model based on the ReqIF format, comprising:

[0036] The data acquisition module is used to obtain the demand model in ReqIF format and construct the parsing data of the demand model;

[0037] The data parsing module is used to map the parsed data into a preset parsing structure to obtain JSON format data of the demand model.

[0038] The third aspect of the present invention provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method provided in the first aspect of the present invention when executing the program.

[0039] A fourth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method provided by the first aspect of the present invention.

[0040] The beneficial effects of the present invention are as follows:

[0041] The present invention performs structured parsing on the demand model based on the ReqIF format and designs a parsing structure to convert the demand model data in the ReqIF format from unstructured data to structured data. The parsed json format file can be directly used by the web system, thereby realizing the online display of the demand model, breaking the environmental restrictions of the installation of the modeling software and the modeling environment. The granularity of the collaborative design data of the demand model is refined from the model file level to the demand item level, thereby improving the efficiency of the collaborative design of the demand model. The present invention can synchronize the modified information of the demand model back to the ReqIF format file through the parsing structure. The user can open the ReqIF file with synchronized information in the local modeling software and continue to model the demand model, thereby realizing the integrated online and offline collaborative design of the model. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The specific implementation modes of the present invention are further described in detail below in conjunction with the accompanying drawings.

[0043] Figure 1 A flow chart of a method for structured analysis of a requirement model based on the ReqIF format in an embodiment of the present invention is shown.

[0044] Figure 2 A schematic diagram showing an embodiment of the present invention using a method for structurally parsing a functional model based on the MDL format. DETAILED DESCRIPTION

[0045] In order to explain the present invention more clearly, the present invention is further described below in conjunction with embodiments and drawings. Similar components in the drawings are represented by the same reference numerals. It should be understood by those skilled in the art that the content specifically described below is illustrative rather than restrictive, and the protection scope of the present invention should not be limited thereto.

[0046] like Figure 1 As shown, a structured parsing method for a requirement model based on the ReqIF format includes:

[0047] Obtain the demand model in ReqIF format and construct the parsing data of the demand model;

[0048] The parsed data is mapped to a preset parsing structure to obtain JSON format data of the demand model.

[0049] In one possible implementation, the method for constructing the analytical structure includes:

[0050] Establish the demand model in the modeling software IBM Rational Doors and export it as a ReqIF format file;

[0051] Analyze the structure and configuration information of the ReqIF file and the parameter information of the parsing demand model, and build the parsing data of the demand model;

[0052] Construct a parsing structure in json format according to the parsing data, wherein the parsing structure includes

[0053] Requirement model name structure, requirement group set structure, requirement item set structure, association relationship set structure between requirement items and association relationship set structure.

[0054] Specifically, the ReqIF file is mainly composed of <the-header> 、 <core-content>and <tool-extensions>These three structural tags are composed. By analyzing the information contained in these three tags, the main information of the demand model can be extracted.

[0055] (1)<THE_HEADER> The structure tag represents the header information of the requirement model, including <creation-time> 、 <repository-id> 、 <req-if-tool-id> 、 <req-if-version> 、 <source-tool-id>and <title> Sub-tags;< / title>

[0056] <creation-time>The label indicates when the demand model was created. <req-if-tool-id>Indicate the modeling software used to build the requirements model.

[0057] (2) <core-content>The structure mark represents the key information of the model, including: <datatypes> 、 <spec-types> 、 <spec-objects> 、 <spec-relations> 、 <specifications>and <spec-relation-groups>Label;

[0058] in, <datatypes>Tags define various data types;

[0059] <spec-types>Tags define the type and attribute information of requirement items in the requirement model;

[0060] <spec-objects>The tag defines all the requirement item information and includes <spec-object>Label. Each <spec-object>The tag represents a requirement item and defines the specific information of each requirement item. Its IDENTIFIER attribute is used to uniquely identify each requirement item. <spec-object>Tags include <the-value>The subtag indicates the specific text content of the requirement item;

[0061] <spec-relations>Tags define the relationship between requirement items, including the source requirement item. <source> Subtag, indicating the target requirement item <target>Subtag indicating the type of relationship <type>Sub-tags.

[0062] <specifications>The tag defines the specific information of each structured requirement item, which can be considered as a requirement group, which contains requirement items; the tag defines the hierarchical structure information of the requirement group, the hierarchical structure relationship between the requirement items, and also includes the definition of the sub-items contained in the current requirement group / requirement item. <children>Sub-tags;

[0063] <spec-relation-groups>Tags define all the relationships between requirement groups. <relation-group>Sub-tags. Each <relation-group>The sub-tags represent the relationship between two requirement groups. <source-specification>Indicates the source requirement group, <target-specification>represents the target demand group, <spec-relations>The detailed relationship between the two requirement groups is included.

[0064] (3) <tool-extensions>The structure tag defines the extended information of the modeling software, including the deletion operation information of the demand model in the modeling software; <doors:deletions>The tag contains the deleted requirement items that need to be parsed <core-content>When adding tags, filter out the corresponding requirement items.

[0065] In one possible implementation, the designed parsing structure includes a requirement model name structure, a requirement group set structure, a requirement item set structure, an association relationship set structure between requirement items, and an association relationship set structure; specifically, based on the analysis results of the ReqIF file structure and content, a general json parsing structure of the requirement model is designed, as shown in Table 1, hereinafter referred to as the "parsing structure"; the meaning of the parsing structure fields of the requirement model and their correspondence with the ReqIF file tags are shown in Table 2.

[0066] Table 1

[0067]

[0068] Table 2

[0069]

[0070]

[0071] In a possible implementation, the requirements group set specifications structure in the parsing structure includes

[0072] According to the requirement group information, information of the requirement group set structure in the parsing structure is obtained;

[0073] The information of the obtained demand group set structure includes

[0074] The unique identification ID of the requirement group, the name of the requirement group, the attribute information of the requirement group, and the requirement item information included in the requirement group;

[0075] The attribute information of the requirement group includes the creator of the requirement group, the creation time of the requirement group, the last modifier of the requirement group and the last modification time of the requirement group; the requirement item information contained in the requirement group includes the requirement ID and the sub-requirement ID.

[0076] In a specific example, the specifications structure of the requirement group set in the parsing structure is shown in Table 3; the meaning of the specifications structure fields and the corresponding relationship with the ReqIF file tags are shown in Table 4.

[0077] Table 3

[0078]

[0079] Table 4

[0080]

[0081] In a specific example, the attributes substructure of the attribute information in the specifications structure of the requirement group set in the parsing structure is shown in Table 5, and the meaning of the fields of the attributes substructure of the requirement group attribute information in the specifications structure of the requirement group set and the corresponding relationship with the ReqIF file tag are shown in Table 6.

[0082] Table 5

[0083]

[0084] Table 6

[0085]

[0086] In a specific example, the children substructure of the requirement item information contained in the specifications structure of the requirement group set in the parsing structure is shown in Table 7, and the meaning of the fields of the children substructure of the requirement item information contained in the requirement group and the corresponding relationship with the ReqIF file tag are shown in Table 8.

[0087] Table 7

[0088]

[0089] Table 8

[0090] json fields Field meaning Corresponding ReqIF file tag Corresponding attributes of corresponding tags requirementId Requirement ID <spec-object-ref> < / spec-object-ref> IDENTIFIER childRequirement Subrequirement ID <children> < / children> SPEC-HIERARCHY

[0091] In a possible implementation, the requirements structure of the set of requirements items in the parsing structure includes obtaining information of the set of requirements items in the parsing structure according to the requirements item information;

[0092] The information of the requirement item set in the parsed structure obtained includes the requirement item ID and the attribute of the requirement item;

[0093] The attribute information of the requirement item includes the serial number of the requirement item, the creator of the requirement item, the creation time of the requirement item, the last modifier of the requirement item, the last modification time of the requirement item and the content of the requirement item.

[0094] In a specific example, the requirements structure of the required item set in the parsing structure is shown in Table 9, and the meanings of the fields of the requirements structure of the required item set in the parsing structure and their correspondence with the ReqIF file tags are shown in Table 10.

[0095] Table 9

[0096]

[0097] Table 10

[0098] json fields Field meaning Corresponding ReqIF file tag Corresponding attributes of corresponding tags requirementId Requirement Item ID <spec-object> < / spec-object> IDENTIFIER attributes Requirement Item Properties <values> < / values> ATTRIBUTE-VALUE

[0099] In a specific example, the attributes substructure of the requirement item of the requirements structure in the parsed structure is shown in Table 11, and the meaning of the fields of the attributes substructure of the requirement item and their correspondence with the ReqIF file tags are shown in Table 12.

[0100] Table 11

[0101]

[0102] Table 12

[0103]

[0104] In a possible implementation, the association relationship set structure between the requirement items in the parsing structure includes:

[0105] According to the association relationship information between the requirement items, information of the association relationship set structure between the requirement items in the parsed structure is obtained;

[0106] The information of the requirement item set structure obtained in the parsed structure includes the association relationship ID, the source requirement item ID, the target requirement item ID and the attribute of the association relationship;

[0107] The attributes of the association relationship include the creator of the association relationship, the time when the association relationship was created, the person who last modified the association relationship, and the time when the association relationship was last modified.

[0108] In a specific example, the requirementsRelations structure of the association relationship set between requirement items in the parsed structure is shown in Table 13, and the meanings of the fields of the requirementsRelations structure of the association relationship set between requirement items and their correspondence with the ReqIF file tags are shown in Table 14.

[0109] Table 13

[0110]

[0111] Table 14

[0112] json fields Field meaning Corresponding ReqIF file tag Corresponding attributes of corresponding tags relationId Relationship ID <spec-relation> < / spec-relation> IDENTIFIER sourceRequirementId Source requirement item ID <source> SPEC-OBJECT-REF targetRequirementId Target requirement item ID <target> < / target> SPEC-OBJECT-REF attributes Properties of associations <values> < / values> ATTRIBUTE-VALUE

[0113] In a specific example, the attributes substructure of the association relationship in the requirementsRelations structure, a set of association relationships between requirement items, is shown in Table 15, and the meanings of the fields of the attributes substructure of the association relationship and their correspondence with the ReqIF file tags are shown in Table 16.

[0114] Table 15

[0115]

[0116] Table 16

[0117]

[0118] In a possible implementation, the association relationship set structure between the requirement groups in the parsing structure includes:

[0119] According to the association relationship information between the requirement groups, information of the association relationship set structure between the requirement groups in the parsing structure is obtained;

[0120] The information of the association relationship set structure between the demand groups in the parsed structure includes:

[0121] The ID of the association relationship set between requirement groups, the name of the association relationship set between requirement groups, the source requirement group ID, the target requirement group ID and the association relationship ID set between requirement groups.

[0122] In a specific example, the structure of the specRelationGroups structure of the association relationship set between requirement groups in the parsed structure is shown in Table 17, and the meaning of the fields of the specRelationGroups structure of the association relationship set between requirement groups and the corresponding relationship with the ReqIF file tags are shown in Table 18.

[0123] Table 17

[0124]

[0125] Table 18

[0126]

[0127] The present invention designs a structured parsing method for a demand model based on the ReqIF format. By studying the structure of the ReqIF file, the information of each tag in the ReqIF file is analyzed, and information such as the demand group, demand item, the association relationship between the demand items, and the association relationship between the demand groups are parsed to extract key model data; and a parsing structure is designed to convert the demand model data in the ReqIF format from unstructured data to structured data. The parsed json format file can be directly used by a web system, thereby realizing the online display of the demand model, breaking the environmental restrictions of the installation of the modeling software and the modeling environment.

[0128] A specific embodiment is a method for analyzing a demand model structure based on the ReqIF format. Figure 2 As shown, for a given ReqIF format requirement model, the parsing steps are as follows:

[0129] S1, obtain the file name of the demand model, obtain the demand model name in the parsing structure as the title attribute value in the parsing structure;

[0130] S2, parse the requirement group information in the ReqIF format file to form the specifications structure in the parsing structure.

[0131] S21 Find the demand group information <specifications>Tags, parse each <specification>Subtag, extract the IDENTIFIER attribute and the LONG-NAME attribute to obtain the identifier and longName of the specifications structure;

[0132] S22 finds each <specification>Tags <values>Sub-tags, according to <attribute-value>From the string information, we can get the attribute information of createdBy, createdOn, lastModifiedBy, and lastModifiedOn in the attribute information of the requirement group, and form the attributes substructure of the specifications structure.

[0133] S23 parses all requirement items contained in the requirement group and the hierarchical relationship between the requirement items, recursively parsing each <specification>Tags <children>Subtag, Extract <spec-hierarchy>In <spec-object-ref>The value of constitutes the children substructure of the specifications structure.

[0134] S3 parses the requirement entry information in the ReqIF format file to form the requirements structure in the parsing structure.

[0135] S31 Found the required item information <spec-objects>Tags, parse each <spec-object>The subtag extracts the IDENTIFIER attribute as the requirementId attribute in the requirements structure.

[0136] S32 finds each <spec-object>In <values>Sub-tags, according to <attribute-value>Extract the absoluteNumber, createdBy, createdOn, lastModifiedBy, lastModifiedOn, and description attribute information from the string information to form the attributes substructure of the requirements structure.

[0137] S33 for all <spec-object>After the sub-tags are parsed, the requirements structure in the parsing structure is constructed.

[0138] S4 parses the association relationship information between the requirement items in the ReqIF format file to form the requirementsRelations structure in the parsing structure.

[0139] S41 finds the association relationship information between the requirement items <spec-relations>Tags, parse each of them <spec-relation>The subtag extracts the identifier attribute as the relationId in the requirementsRelations structure.

[0140] S42 finds each <spec-relation>of <source> Sub-tags, which <spec-object-ref>The value of the subtag is the ID of the source requirement entry, that is, sourceRequirementId in the requirementsRelations structure;

[0141] S43 find each <spec-relation>of <target>Sub-tags, which <spec-object-ref>The value of the subtag is the ID of the target requirement item, that is, targetRequirementId in the requirementsRelations structure;

[0142] S44 finds each <spec-relation>of <values>Subtags, according to their <attribute-value>The string information in the subtag extracts the createdBy, createdOn, lastModifiedBy, and lastModifiedOn attribute information to form the attributes substructure of the requirementsRelations structure.

[0143] S45 for all <spec-relation>After the tag parsing is completed, the requirementsRelations structure in the parsing structure is constructed.

[0144] S5 parses the association relationship information between the requirement groups in the ReqIF format file to form the specRelationGroups structure in the parsing structure.

[0145] S51 finds the association relationship information between the demand groups <spec-relation-groups>Tags, parse each of them <relation-group>The subtag extracts the identifier attribute and the LONG-NAME attribute as the identifier and longName attribute values ​​in the specRelationGroups structure;

[0146] S52 finds each <relation-group>Tags <source-specification>Sub-tags, which <specification-ref>The value of the subtag is the ID of the source requirement group, that is, sourceSpecificationId in the specRelationGroups structure.

[0147] S53 finds each <relation-group>Tags <target-specification>Sub-tags, which <specification-ref>The value of the subtag is the ID of the target requirement group, that is, targetSpecificationId in the specRelationGroups structure;

[0148] S54 finds each <relation-group>Tags <spec-relations>Subtag, extract each <spec-relation-ref>The value of the subtag constitutes the set of association relationship IDs between the current two requirement groups, that is, specRelations in the specRelationGroups structure.

[0149] S55 for all <relation-group>After the tag parsing is completed, the specRelationGroups structure in the parsing structure is constructed.

[0150] S6 obtains the requirement model name, specifications structure, requirements structure, requirementsRelations structure, and specRelationGroups structure according to steps S1-S5 to obtain json format data of the given ReqIF format requirement model.

[0151] The parsing structure of the present invention can convert the information of the demand model into structured json data. The structured json data can be directly used by the web system, solving the problem that the demand model cannot be directly displayed and edited in the online system, breaking the installation and environment restrictions of the modeling software, and the json format data refines the granularity of the collaborative design data of the demand model from the model file level to the demand item level, and can synchronize the collaborative design information back to the ReqIF file, thereby realizing the online and offline two-way transmission and integrated collaborative design of the demand model, and improving the efficiency of model collaborative design.

[0152] In the description of the present invention, it should be noted that the orientation or positional relationship indicated by the terms "upper", "lower", etc. is based on the orientation or positional relationship shown in the accompanying drawings, and is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. Unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be the internal connection of two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to the specific circumstances.

[0153] It should also be noted that, in the description of the present invention, relational terms such as first and second, etc., are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0154] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not limitations on the embodiments of the present invention. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is impossible to list all the embodiments here. All obvious changes or modifications derived from the technical solution of the present invention are still within the protection scope of the present invention. < / values> < / target> < / values> < / children> < / specification> < / values> < / specification> < / specification> < / specifications> < / doors:deletions> < / children> < / specifications> < / type> < / target> < / datatypes> < / specifications> < / spec-relations> < / spec-objects> < / spec-types> < / datatypes> < / req-if-version> < / req-if-tool-id> < / repository-id> < / creation-time> < / the-header>

Claims

1. A structured analysis method for a demand model based on the ReqIF format, characterized in that: include: Obtain the demand model in ReqIF format and construct the parsing data of the demand model; Map the parsed data to a preset parsing structure to obtain JSON format data of the demand model; The parsed data includes requirement group information, requirement item information, association relationship information between requirement items, and association relationship information between requirement groups in the requirement model; Mapping the parsed data to a preset parsed structure includes According to the name information of the demand model, mapping obtains information of the name structure of the demand model in the parsing structure; According to the requirement group information, mapping obtains the information of the requirement group set structure in the parsing structure; According to the requirement item information, mapping obtains the information of the requirement item set structure in the parsing structure; Mapping the information of the association relationship set structure between the requirement items in the parsed structure to obtain the information of the association relationship set structure between the requirement items in the parsed structure; According to the association relationship information between the requirement groups, information of the association relationship set structure between the requirement groups in the parsing structure is mapped.

2. The method according to claim 1, characterized in that The information of the obtained demand group set structure includes The unique identification ID of the requirement group, the name of the requirement group, the attribute information of the requirement group, and the requirement item information included in the requirement group; The attribute information of the requirement group includes the creator of the requirement group, the creation time of the requirement group, the last modifier of the requirement group and the last modification time of the requirement group; the requirement item information contained in the requirement group includes the requirement ID and the sub-requirement ID.

3. The method according to claim 1, characterized in that: The information of the requirement item set in the parsed structure obtained includes the requirement item ID and the attribute of the requirement item; The attribute information of the requirement item includes the serial number of the requirement item, the creator of the requirement item, the creation time of the requirement item, the last modifier of the requirement item, the last modification time of the requirement item and the content of the requirement item.

4. The method according to claim 1, characterized in that The information of the requirement item set structure obtained in the parsed structure includes the association relationship ID, the source requirement item ID, the target requirement item ID and the attribute of the association relationship; The attributes of the association relationship include the creator of the association relationship, the time when the association relationship was created, the person who last modified the association relationship, and the time when the association relationship was last modified.

5. The method according to claim 1, characterized in that The information of the association relationship set structure between the demand groups in the parsed structure includes: The ID of the association relationship set between requirement groups, the name of the association relationship set between requirement groups, the source requirement group ID, the target requirement group ID and the association relationship ID set between requirement groups.

6. The method according to claim 1, characterized in that: The preset analytical structure construction method includes Create a demand model in Doors and export it as a ReqIF format file; Analyze the structure and configuration information of the ReqIF file and the parameter information of the parsing demand model, and build the parsing data of the demand model; Constructing a parsing structure in json format according to the parsed data; The parsing structure includes a requirement model name structure, a requirement group set structure, a requirement item set structure, an association relationship set structure between requirement items, and an association relationship set structure.

7. A structured parsing system for a requirement model based on the ReqIF format, comprising: The data acquisition module is used to obtain the demand model in ReqIF format and construct the parsing data of the demand model; The data analysis module is used to map the analysis data into a preset analysis structure to obtain a demand model.

8. The system according to claim 7, characterized in that The parsed data includes requirement group information, requirement item information, association relationship information between requirement items, and association relationship information between requirement groups in the requirement model; Mapping the parsed data to a preset parsed structure includes According to the name information of the demand model, mapping obtains information of the name structure of the demand model in the parsing structure; According to the requirement group information, mapping obtains the information of the requirement group set structure in the parsing structure; According to the requirement item information, mapping obtains the information of the requirement item set structure in the parsing structure; Mapping the information of the association relationship set structure between the requirement items in the parsed structure to obtain the information of the association relationship set structure between the requirement items in the parsed structure; According to the association relationship information between the requirement groups, information of the association relationship set structure between the requirement groups in the parsing structure is mapped.

9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 6 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.