CN-122029530-A - Knowledge graph construction method, knowledge graph construction device and computer equipment
Abstract
The application discloses a method, a device, computer equipment and a storage medium for knowledge graph construction. The method comprises the steps of establishing a first connection based on equipment nodes, module nodes and component nodes, wherein the component nodes are subordinate to the module nodes, the module nodes are subordinate to the equipment nodes, receiving input root cause nodes and corresponding solution nodes, establishing a second connection between the root cause nodes and the component nodes, wherein the root cause nodes are connected with the solution nodes, receiving error code nodes according to alarm conditions, and establishing a third connection between the error code nodes and the root cause nodes. By the method, hardware, root cause problems, solutions and alarm error codes can be connected to form a complete knowledge graph, and a complete logic relationship is established, so that a component with faults, corresponding problems and corresponding solutions can be judged and found according to the error codes.
Inventors
- CHE XIAOYIN
- Li Congchao
- LIU WEICHUAN
- WANG GANGHUA
- LUO RUIZHI
- LI QIU
- ZHU LIANG
Assignees
- 西门子股份公司
Dates
- Publication Date
- 20260512
- Application Date
- 20230621
Claims (11)
- 1. A method of knowledge graph construction, comprising: (S101) establishing a first connection based on a device node, a module node and a component node, wherein the component node is subordinate to the module node and the module node is subordinate to the device node; (S102) receiving input root nodes and corresponding solution nodes, and establishing a second connection between the root nodes and the component nodes, wherein the root nodes are connected to the solution nodes; (S103) receiving an error code node according to the alarm condition, and establishing a third connection between the error code node and the root cause node.
- 2. The method of claim 1, wherein, The establishing the first, second and third links includes establishing a first connection, a second connection and a third connection.
- 3. The method of claim 1, further comprising, Establishing a universal component node, wherein the universal component node is connected with a plurality of component nodes; and establishing a universal root node, wherein the universal root node is connected with a plurality of root nodes.
- 4. The method of claim 1, further comprising, And accumulating a weight value on a third system of the error code node and the root cause node according to the number of alarm conditions.
- 5. A knowledge graph construction apparatus (200), comprising: a hardware node connection module (201) for establishing a first connection based on a device node, a module node and a component node, wherein the component node is subordinate to the module node and the module node is subordinate to the device node; A root node connection module (202) for receiving an input root node and a corresponding solution node, establishing a second connection between the root node and the component node, wherein the root node is connected to the solution node; And the error node connection module (203) is used for receiving an error code node according to the alarm condition and establishing a third connection between the error code node and the root cause node.
- 6. The apparatus (200) of claim 5, wherein, The hardware node connection module, the root cause node connection module and the error node connection module are configured to respectively establish a first connection line, a second connection line and a third connection line.
- 7. The apparatus (200) of claim 5, further comprising, A universal component node connection module (204) for establishing a universal component node, wherein the universal component node is connected with a plurality of the component nodes; And the universal root node connection module (205) is used for establishing universal root nodes, wherein the universal root nodes are connected with a plurality of root nodes.
- 8. The apparatus (200) of claim 5, further comprising, And the weight accumulation module (206) is used for accumulating weight values on a third relation of the error code node and the root cause node according to the number of alarm conditions.
- 9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor, when executing the computer program, implements the steps of the method of any one of claims 1 to 4.
- 10. A computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor realizes the steps of the method of any of claims 1 to 4.
- 11. A computer program product tangibly stored on a computer-readable medium and comprising computer-executable instructions that, when executed, cause at least one processor to perform the method of any one of claims 1 to 4.
Description
Knowledge graph construction method, knowledge graph construction device and computer equipment Technical Field The present application relates to the field of knowledge graphs, and in particular, to a method, an apparatus, a computer device, and a storage medium for knowledge graph construction. Background Advances in digitization and automation are considered to be an integral part of intelligent manufacturing or industry 4.0, and many production lines in modern factories are therefore equipped with monitoring systems to observe the operating state of certain equipment in real time. If some abnormal condition occurs and is found, the alarm signal is transmitted to the central controller for further processing. However, most of these alarm signals are defined by specific equipment suppliers, however, a production line may be composed of multiple equipment from different suppliers, so their alarm systems may not be compatible enough to accurately locate a comprehensive problem. Furthermore, even with the same equipment provider, a common problem is that such provider-defined alarms are too detailed, and an alarm may involve various situations that cannot accurately aid in diagnosis when a serious equipment failure event occurs, such as an unexpected shutdown. Disclosure of Invention This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify any critical or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter. Based on the above, the application provides a knowledge graph construction method, which comprises the following steps: Establishing a first connection based on a device node, a module node and a component node, wherein the component node is subordinate to the module node, and the module node is subordinate to the device node; receiving input root cause nodes and corresponding solution nodes, and establishing a second connection between the root cause nodes and the component nodes, wherein the root cause nodes are connected with the solution nodes; And receiving an error code node according to the alarm condition, and establishing a third connection between the error code node and the root cause node. By the method, hardware, root cause problems, solutions and alarm error codes can be connected to form a complete knowledge graph, and a complete logic relationship is established, so that a component with faults, corresponding problems and corresponding solutions can be judged and found according to the error codes. Further, the establishing the first, second and third links includes establishing the first, second and third links. Through the mode, corresponding connection can be intuitively reflected through the connection line, so that the knowledge graph is more intuitively and vividly displayed. Further, the method further comprises the steps of establishing a universal component node, wherein the universal component node is connected with a plurality of component nodes, and establishing a universal root node, wherein the universal root node is connected with a plurality of root nodes. Through the method, the types of the general components and the general fault causes can be summarized, so that some common attributes and characteristics can be further abstracted and summarized, and basis and conditions are provided for summarizing and generalizing the knowledge graph. Further, the method further comprises the step of accumulating a weight value on a third link of the error code node and the root cause node according to the number of times of alarm conditions. By the method, the relation between different error codes and root causes can be reflected according to the accumulated weight values. In addition, the application also provides a device for constructing the knowledge graph, which comprises the following steps: the hardware node connection module is used for establishing a first connection based on a device node, a module node and a component node, wherein the component node is subordinate to the module node, and the module node is subordinate to the device node; the root node connection module is used for receiving input root nodes and corresponding solution nodes, and establishing a second connection between the root nodes and the component nodes, wherein the root nodes are connected with the solution nodes; and the error node connection module is used for receiving the error code node according to the alarm condition and establishing a third connection between the error code node and the root cause node. The application also provides a computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the above method when executing the computer program. The application also provides a computer readable storage medium