EP-4742077-A1 - ENGINEERING TEMPLATE CREATION METHOD AND APPARATUS, ENGINEERING PROJECT CONSTRUCTION METHOD AND APPARATUS, AND STORAGE MEDIUM
Abstract
An engineering template creation method and apparatus, an engineering project construction method and apparatus, and a computer-readable storage medium are provided in embodiments of this application. The engineering template creation method includes: obtaining a plurality of engineering projects between which a similarity meets a set requirement; generating a graph structure for each engineering project, where the graph structure includes a node that represents each engineering object in the engineering project and an arrow that represents a mapping relationships between the engineering objects; finding a maximum common sub-graph among all graph structures, and a maximum directional difference sub-graph between every two of the graph structures; using the maximum common sub-graph as a basic engineering template; and determining, based on the maximum directional difference sub-graphs, at least one correspondence between an engineering object serving as an input condition and an engineering object serving as an output result, and determining a candidate extended branch of the basic engineering template based on each correspondence. Through technical solutions in the embodiments of this application, modular engineering can be implemented.
Inventors
- ZOU, Wenchao
- WU, HEPING
- TANG, Youhua
- JIA, Shaotu
- ZHANG, Jiarui
Assignees
- Siemens Aktiengesellschaft
Dates
- Publication Date
- 20260513
- Application Date
- 20230807
Claims (11)
- An engineering template creation method, comprising: obtaining a plurality of engineering projects between which a similarity meets a set requirement; generating a graph structure for each of the engineering projects, wherein the graph structure comprises a node that represents each engineering object in the engineering project and an arrow that represents a mapping relationship between the engineering objects; finding a maximum common sub-graph among all graph structures, and a maximum directional difference sub-graph between every two of the graph structures; determining a basic engineering template based on the maximum common sub-graph; and determining, based on the maximum directional difference sub-graphs, at least one correspondence between an engineering object serving as an input condition and an engineering object serving as an output result, and determining a candidate extended branch of the basic engineering template based on each correspondence.
- The method according to claim 1, wherein the obtaining a plurality of engineering projects between which a similarity meets a set requirement comprises: comparing the engineering projects for predetermined comparison items, and determining, as the engineering projects between which the similarity meets the set requirement, the engineering projects between which a result of the comparison meets the set requirement.
- The method according to claim 2, wherein the predetermined comparison items comprise an engineering software library, an engineering function, an engineering object, and an engineering object and/or an engineering parameter used in each of the engineering projects; and the engineering projects between which the result of the comparison meets the set requirement are: engineering projects that use a same engineering software library, implement a same engineering function, have more than a set first quantity of same engineering objects, and/or have more than a set second quantity of same engineering parameters; and/or engineering projects that do not use a standard engineering software library, implement the same engineering function, have more than the set first quantity of same engineering objects, and/or have more than the set second quantity of same engineering parameters.
- The method according to claim 1, wherein the finding a maximum common sub-graph among all graph structures comprises: finding the maximum common sub-graph between every two of the graph structures; and comparing all the obtained maximum common sub-graphs, to obtain the maximum common sub-graph among all the graph structures.
- The method according to claim 1, wherein the finding a maximum directional difference sub-graph between every two of the graph structures comprises: finding, for every two of the graph structures, a maximum common sub-graph between the two graph structures; and comparing each of the two graph structures with the maximum common sub-graph between the two graph structures, to obtain a maximum directional difference sub-graph of each graph structure relative to an other graph structure.
- The method according to any one of claims 1 to 5, wherein the engineering object comprises engineering equipment information, engineering equipment attribute information, engineering equipment configuration information, and engineering requirement information; and the mapping relationship between the engineering objects comprises: a mapping relationship between the engineering equipment information and the engineering equipment attribute information, a mapping relationship between the engineering equipment attribute information and the engineering equipment configuration information, a mapping relationship between the engineering requirement information and the engineering equipment information, a mapping relationship between the engineering requirement information and the engineering equipment attribute information, and a mapping relationship between the engineering requirement information and the engineering equipment configuration information.
- An engineering project construction method, comprising: outputting a basic engineering template in response to an engineering project construction instruction with default input condition from a user; and outputting the basic engineering template and a corresponding extended branch in response to an engineering project construction instruction with an input condition from the user, wherein the extended branch comprises an engineering object serving as an output result that corresponds to an engineering object serving as the input condition; the basic engineering template is determined based on a maximum common sub-graph between graph structures corresponding to a plurality of engineering projects between which a similarity meets a set requirement, and a correspondence between the engineering object serving as the input condition and the engineering object serving as the output result is determined based on a maximum directional difference sub-graph between every two of graph structures corresponding to the plurality of engineering projects between which the similarity meets the set requirement.
- An engineering template creation apparatus, comprising: a first module (701), configured to obtain a plurality of engineering projects between which a similarity meets a set requirement; a second module (702), configured to generate a graph structure for each of the engineering projects, wherein the graph structure comprises a node that represents each engineering object in the engineering project and an arrow that represents a mapping relationship between the engineering objects; a third module (703), configured to find a maximum common sub-graph among all graph structures, and a maximum directional difference sub-graph between every two of the graph structures; and a fourth module (704), configured to: determine a basic engineering template based on the maximum common sub-graph; and determine, based on the maximum directional difference sub-graphs, at least one correspondence between an engineering object serving as an input condition and an engineering object serving as an output result, and determine a candidate extended branch of the basic engineering template based on each correspondence.
- An engineering project construction apparatus, comprising: a fourth module (704), comprising a basic engineering template and at least one correspondence between an engineering object serving as an input condition and an engineering object serving as an output result, and configured to determine a candidate extended branch of the basic engineering template based on each correspondence, wherein the basic engineering template is determined based on a maximum common sub-graph between graph structures corresponding to a plurality of engineering projects between which a similarity meets a set requirement, and the at least one correspondence between the engineering object serving as the input condition and the engineering object serving as the output result is determined based on a maximum directional difference sub-graph between every two of graph structures corresponding to the plurality of engineering projects between which the similarity meets the set requirement; and a fifth module (801), configured to output a basic engineering template in response to an engineering project construction instruction with default input condition from a user, and output the basic engineering template and a corresponding extended branch in response to an engineering project construction instruction with an input condition from the user, wherein the extended branch comprises an engineering object serving as an output result that corresponds to an engineering object serving as the input condition.
- An engineering template creation apparatus, comprising at least one memory (91) and at least one processor (92), wherein the at least one memory (91) is configured to store a computer program, and the at least one processor (92) is configured to invoke the computer program stored in the at least one memory (91), to perform the engineering template creation method according to any one of claims 1 to 7.
- A computer-readable storage medium, storing a computer program, wherein the computer program is executable by a processor and configured to implement the engineering template creation method according to any one of claims 1 to 6 or the engineering project construction method according to claim 7.
Description
TECHNICAL FIELD This application relates to the field of industrial technologies, and in particular, to an engineering template creation method, an engineering project construction method, an engineering template creation apparatus, an engineering project construction apparatus, and a computer-readable storage medium. BACKGROUND Most existing modular engineering is implemented based on predefined templates that can be modified by engineering users. However, such predefined templates are typically manually compiled by experts in the field. This not only requires extensive professional expertise but also takes a long time. Even for the experts, constructing templates poses a considerable challenge when system complexity is relatively high. In addition, most templates are fixed and cannot be automatically modified based on user requirements, and can only be manually modified by an engineer based on a requirement of the engineer. Moreover, many engineering suppliers, such as an engineering, procurement, and construction (EPC) contractor and a system integrator, have a large quantity of past projects. If these projects cannot be reused, they will no longer generate profits for these companies, since not all companies are capable of creating a usable template library from their past projects on their own. Therefore, a person skilled in the art is still devoted to finding another implementation solution of modular engineering. SUMMARY In view of this, in embodiments of this application, in an aspect, an engineering template creation method and an engineering project construction method are provided, and in another aspect, an engineering template creation apparatus, an engineering project construction apparatus, and a computer-readable storage medium are provided, thereby implementing modular engineering. To resolve the foregoing technical problem, technical solutions of this application are implemented as follows. An engineering template creation method includes: obtaining a plurality of engineering projects between which a similarity meets a set requirement; generating a graph structure for each engineering project, where the graph structure includes a node that represents each engineering object in the engineering project and an arrow that represents a mapping relationships between the engineering objects; finding a maximum common sub-graph among all graph structures, and a maximum directional difference sub-graph between every two of the graph structures; using the maximum common sub-graph as a basic engineering template; and determining, based on the maximum directional difference sub-graphs, at least one correspondence between an engineering object serving as an input condition and an engineering object serving as an output result, and determining a candidate extended branch of the basic engineering template based on each correspondence. An engineering project construction method, including: outputting a basic engineering template in response to an engineering project construction instruction with default input condition from a user; and outputting the basic engineering template and a corresponding extended branch in response to an engineering project construction instruction with an input condition from the user, where the extended branch includes an engineering object serving as an output result that corresponds to an engineering object serving as the input condition, the basic engineering template is determined based on a maximum common sub-graph between graph structures corresponding to a plurality of engineering projects between which a similarity meets a set requirement, and a correspondence between the engineering object serving as the input condition and the engineering object serving as the output result is determined based on a maximum directional difference sub-graph between every two of graph structures corresponding to the plurality of engineering projects between which the similarity meets the set requirement. An engineering template creation apparatus, including: a first module, configured to obtain a plurality of engineering projects between which a similarity meets a set requirement; a second module, configured to generate a graph structure for each engineering project, where the graph structure includes a node that represents each engineering object in the engineering project and an arrow that represents a mapping relationships between the engineering objects; a third module, configured to find a maximum common sub-graph among all graph structures, and a maximum directional difference sub-graph between every two of the graph structures; and a fourth module, configured to use the maximum common sub-graph as a basic engineering template; and determine, based on the maximum directional difference sub-graphs, at least one correspondence between an engineering object serving as an input condition and an engineering object serving as an output result, and determine a candidate extended branch of t