Knowledge graph-based process flow file data analysis method and device

By analyzing process flow file data based on knowledge graph, the problem of low sharing and conversion efficiency of BIM data formats on multiple platforms is solved, and the applicability and universality of data is improved, ensuring the matching of business information and geometric information.

CN119271634APending Publication Date: 2025-01-07MCC CAPITAL ENGINEERING & RESEARCH INC LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411262777.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-10
Publication Date
2025-01-07

AI Technical Summary

Technical Problem

Existing BIM data formats (such as DGN) are difficult to view or share on the network side and other design platforms, and are inefficient in conversion, increasing system complexity and development costs, and business information does not match geometric information.

Method used

Using a process flow file data analysis method based on knowledge graph, obtaining two-dimensional design data, generating facility knowledge graphs and label groups, performing matching and correlation, output target analysis data, and realizing data format conversion. It is suitable for multiple design platforms to ensure business Information integrity.

Benefits of technology

It realizes a data format with stronger sharing of process flow file data, strong applicability and versatility, reduces system complexity and development costs, improves conversion efficiency, and ensures the degree of matching between business information and geometric information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119271634A_ABST
    Figure CN119271634A_ABST
Patent Text Reader

Abstract

The invention provides a technological process file data analysis method and device based on a knowledge graph. The method comprises the steps of obtaining two-dimensional design data of a technological process file; performing data reconstruction according to the two-dimensional design data, and generating a facility knowledge graph and a facility label group; matching and associating the facility knowledge graph and the facility label group to generate a facility combination label corresponding relation; and on the basis of the facility combination tag corresponding relation, associating the facility knowledge graph with the queried service data, and outputting target analysis data of the process flow file according to a preset data format, so that the two-dimensional design data of the process flow file is converted into the target analysis data in the data format with higher sharing performance. Checking or sharing can be carried out on a multi-design platform system, and the applicability and universality are high; the business information integrity of the target analysis data is ensured, so that the matching degree of the business information and the geometric information is ensured, the system complexity is reduced, the development cost is saved, and the conversion efficiency 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 data processing technology, and in particular to a method and device for analyzing process flow file data based on a knowledge graph. Background Art

[0002] With the deepening of the application of building information modeling (BIM), how to integrate and share information models on various platforms has become a key issue. Common BIM data mainly comes from the modeling results of three-dimensional design software. The exported design exchange format (DGN) data format cannot be viewed or shared on the network (Web) side and other design platform systems. It is also easy to lose business information, resulting in a mismatch between business information and geometric information. In related technologies, three-dimensional data format conversion is performed by developing plug-ins or by converting DGN models into lightweight models to achieve three-dimensional data conversion. These two methods can only be applied to three-dimensional data conversion, have poor applicability, and are subject to certain environmental restrictions and lack of versatility. In addition, the development of plug-ins also increases the complexity and development cost of the system, and the conversion efficiency is low. Summary of the invention

[0003] One object of the present invention is to provide a process flow file data parsing method based on a knowledge graph, so as to realize the conversion of two-dimensional design data of a process flow file into target parsing data in a more shareable data format, which can be viewed or shared on multiple design platform systems, and has strong applicability and versatility; the integrity of the business information of the target parsing data is ensured, thereby ensuring the matching degree between the business information and the geometric information, reducing the complexity of the system, saving development costs, and improving conversion efficiency. Another object of the present invention is to provide a process flow file data parsing device based on a knowledge graph. Another object of the present invention is to provide a computer-readable medium. Still another object of the present invention is to provide a computer device.

[0004] In order to achieve the above objectives, the present invention discloses a method for analyzing process flow file data based on a knowledge graph, comprising:

[0005] Obtain 2D design data of process flow files;

[0006] Reconstruct data based on the two-dimensional design data to generate facility knowledge graphs and facility label groups;

[0007] Match and associate the facility knowledge graph and the facility label group to generate the corresponding relationship of the facility combination label;

[0008] Based on the correspondence between facility combination labels, the facility knowledge graph and the queried business data are associated, and the target parsed data of the process flow file is output according to the preset data format.

[0009] Preferably, data reconstruction is performed based on the two-dimensional design data to generate a facility knowledge graph and a facility label group, including:

[0010] Extract geometric elements from two-dimensional design data and generate geometric element data structure;

[0011] Through geometric shape processing tools and network analysis tools, facility knowledge graphs corresponding to different facility categories are constructed based on the geometric element data structure;

[0012] According to the preset label naming rules, the facilities are classified according to the geometric element data structure, and the facility label groups corresponding to the different facility categories are generated.

[0013] Preferably, a facility knowledge graph corresponding to different facility categories is constructed based on the geometric element data structure by using a geometric shape processing tool and a network analysis tool, including:

[0014] Through the geometric shape processing tool, the geometric element data structure is parsed and classified to generate the geometric shapes of the geometric elements corresponding to different facility categories;

[0015] Through geometric shape processing tools and network analysis tools, facility knowledge graphs corresponding to different facility categories are constructed according to the geometric shapes of geometric elements corresponding to different facility categories.

[0016] Preferably, the facility categories include equipment and pipelines;

[0017] Through the geometry processing tool, the geometric element data structure is parsed and classified to generate the geometric shapes of geometric elements corresponding to different facility categories, including:

[0018] By using geometric shape processing tools, the geometric element data structure is parsed to generate the geometric shape of the geometric element;

[0019] According to the preset color facility category correspondence and the color information in the geometric element data structure, the geometric shapes of the geometric elements are classified to generate the geometric shapes of the geometric elements corresponding to the equipment and the geometric shapes of the geometric elements corresponding to the pipeline.

[0020] Preferably, the facility categories include equipment and pipelines, and the geometric shapes of the geometric elements corresponding to different facility categories include the geometric shapes of the geometric elements corresponding to the equipment and the geometric shapes of the geometric elements corresponding to the pipelines;

[0021] Through geometric shape processing tools and network analysis tools, facility knowledge graphs corresponding to different facility categories are constructed according to the geometric shapes of geometric elements corresponding to different facility categories, including:

[0022] Through the geometric shape processing tool, the geometric element data structure is parsed to generate the connection relationship between the geometric elements;

[0023] According to the connection relationship between the geometric elements, the geometric shapes of the geometric elements corresponding to the equipment and the geometric shapes of the geometric elements corresponding to the pipeline, an undirected graph of the geometric elements corresponding to the equipment and an undirected graph of the geometric elements corresponding to the pipeline are constructed;

[0024] Through network analysis tools, the connected components of the undirected graph of geometric elements corresponding to the equipment and the undirected graph of geometric elements corresponding to the pipeline are extracted to construct the device knowledge graph corresponding to the equipment and the pipeline knowledge graph corresponding to the pipeline.

[0025] Preferably, the label naming rules include equipment label rules and pipeline label rules;

[0026] According to the preset label naming rules, the facilities are classified according to the geometric element data structure, and facility label groups corresponding to different facility categories are generated, including:

[0027] According to the device tag rules, the geometric element data structure is matched to generate a device tag group;

[0028] According to the pipeline label rules, the geometric element data structure is matched to generate a pipeline label group.

[0029] Preferably, matching and associating the facility knowledge graph and the facility label group to generate a corresponding relationship of the facility combination label includes:

[0030] Traverse the facility tag group and query the center point of the facility tag element;

[0031] Calculate the geometric center point of each geometric element undirected graph and the center point of the facility label element in the facility knowledge graph to generate the center point distance corresponding to each geometric element undirected graph;

[0032] The geometric element undirected graph corresponding to the minimum center point distance is determined as the monomer facility combination corresponding to the center point of the facility label element, and the determined monomer facility combination is associated with the facility label indicated by the center point of the facility label element to generate a facility combination label correspondence relationship;

[0033] The center point of the facility label element is filtered out from the facility label group, and the steps of traversing the facility label group and querying the center point of the facility label element are repeated until the facility label group is empty.

[0034] Preferably, the facility combination label correspondence relationship includes the correspondence relationship between the single facility combination and the facility label;

[0035] Based on the corresponding relationship between facility combination labels, the facility knowledge graph and the queried business data are associated, and the target parsed data of the process flow file is output according to the preset data format, including:

[0036] According to the facility label, query the business data corresponding to the single facility combination from the preset business database;

[0037] Associate facility labels, single facility combinations, corresponding business data and the facility indication maps to which they belong, and generate and output target parsing data for the process flow file in accordance with a preset data format.

[0038] The present invention also discloses a process flow file data parsing device based on knowledge graph, comprising:

[0039] A two-dimensional design data acquisition unit, used for acquiring two-dimensional design data of a process flow file;

[0040] A data reconstruction unit, used for reconstructing data according to the two-dimensional design data to generate a facility knowledge graph and a facility label group;

[0041] An association unit, used to match and associate the facility knowledge graph with the facility label group to generate a corresponding relationship between the facility combination labels;

[0042] The data output unit is used to associate the facility knowledge graph and the queried business data based on the correspondence between the facility combination labels, and output the target parsed data of the process flow file in a preset data format.

[0043] Preferably, the data reconstruction unit is specifically used to extract geometric elements from two-dimensional design data and generate a geometric element data structure; through geometric shape processing tools and network analysis tools, a facility knowledge graph corresponding to different facility categories is constructed according to the geometric element data structure; according to preset label naming rules, facilities are classified according to the geometric element data structure, and facility label groups corresponding to different facility categories are generated.

[0044] Preferably, the data reconstruction unit is specifically used to parse and classify the geometric element data structure through a geometric shape processing tool to generate geometric shapes of geometric elements corresponding to different facility categories; and to construct facility knowledge graphs corresponding to different facility categories based on the geometric shapes of geometric elements corresponding to different facility categories through geometric shape processing tools and network analysis tools.

[0045] Preferably, the facility categories include equipment and pipelines;

[0046] The data reconstruction unit is specifically used to parse the geometric element data structure through a geometric shape processing tool to generate the geometric shape of the geometric element; according to the preset color facility category correspondence and the color information in the geometric element data structure, the geometric shape of the geometric element is classified to generate the geometric shape of the geometric element corresponding to the device and the geometric shape of the geometric element corresponding to the pipeline.

[0047] Preferably, the facility categories include equipment and pipelines, and the geometric shapes of the geometric elements corresponding to different facility categories include the geometric shapes of the geometric elements corresponding to the equipment and the geometric shapes of the geometric elements corresponding to the pipelines;

[0048] The data reconstruction unit is specifically used to parse the geometric element data structure through a geometric shape processing tool to generate a connection relationship between the geometric elements; construct an undirected graph of geometric elements corresponding to the device and an undirected graph of geometric elements corresponding to the pipeline according to the connection relationship between the geometric elements, the geometric shapes of the geometric elements corresponding to the device and the geometric shapes of the geometric elements corresponding to the pipeline; through a network analysis tool, the connected components of the undirected graph of geometric elements corresponding to the device and the undirected graph of geometric elements corresponding to the pipeline are extracted to construct a device knowledge graph corresponding to the device and a pipeline knowledge graph corresponding to the pipeline.

[0049] Preferably, the label naming rules include equipment label rules and pipeline label rules;

[0050] The data reconstruction unit is specifically used to match the geometric element data structure according to the device label rule to generate the device label group; and to match the geometric element data structure according to the pipeline label rule to generate the pipeline label group.

[0051] Preferably, the association unit is specifically used to traverse the facility label group and query the center point of the facility label element; calculate the geometric center point of each geometric element undirected graph in the facility knowledge graph and the center point of the facility label element, and generate the center point distance corresponding to each geometric element undirected graph; determine the geometric element undirected graph corresponding to the minimum center point distance as the monomer facility combination corresponding to the center point of the facility label element, and associate the determined monomer facility combination with the facility label indicated by the center point of the facility label element to generate a facility combination label correspondence; filter the center point of the facility label element from the facility label group, and repeat the steps of traversing the facility label group and querying the center point of the facility label element until the facility label group is empty.

[0052] Preferably, the facility combination label correspondence relationship includes the correspondence relationship between the single facility combination and the facility label;

[0053] The data output unit is specifically used to query the business data corresponding to the single facility combination from the preset business database according to the facility label; associate the facility label, the single facility combination, the corresponding business data and the corresponding facility indication map, and generate and output the target analysis data of the process flow file according to the preset data format.

[0054] The present invention also discloses a computer-readable medium on which a computer program is stored. When the program is executed by a processor, the method described above is implemented.

[0055] The present invention also discloses a computer device, including a memory and a processor, wherein the memory is used to store information including program instructions, the processor is used to control the execution of program instructions, and the processor implements the above method when executing the program.

[0056] The present invention also discloses a computer program product, including a computer program / instruction, and the method described above is implemented when the computer program / instruction is executed by a processor.

[0057] The present invention obtains two-dimensional design data of a process flow file; reconstructs data according to the two-dimensional design data to generate a facility knowledge graph and a facility label group; matches and associates the facility knowledge graph and the facility label group to generate a facility combination label correspondence; based on the facility combination label correspondence, associates the facility knowledge graph and the queried business data, outputs the target parsing data of the process flow file in a preset data format, and realizes conversion of the two-dimensional design data of the process flow file into target parsing data in a data format with stronger sharing, which can be viewed or shared on multiple design platform systems and has strong applicability and versatility; ensures the integrity of business information of the target parsing data, thereby ensuring the matching degree of business information and geometric information, reducing system complexity, saving development costs, and improving conversion efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0059] Figure 1 A flowchart of a method for parsing process flow file data based on a knowledge graph provided in an embodiment of the present invention;

[0060] Figure 2 A flowchart of another method for parsing process flow document data based on a knowledge graph provided in an embodiment of the present invention;

[0061] Figure 3 A schematic diagram of the structure of a device knowledge graph provided by an embodiment of the present invention;

[0062] Figure 4 A schematic diagram of the structure of a spectrum of a single device provided by an embodiment of the present invention;

[0063] Figure 5 A partial enlarged view of target parsed data in SVG format provided by an embodiment of the present invention;

[0064] Figure 6 A schematic diagram of the structure of a process flow file data parsing device based on a knowledge graph provided in an embodiment of the present invention;

[0065] Figure 7 A schematic diagram of the structure of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0066] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0067] It should be noted that the method and device for parsing process flow file data based on knowledge graph disclosed in the present application can be used in the field of artificial intelligence technology, and can also be used in any field outside the field of artificial intelligence technology. The application field of the method and device for parsing process flow file data based on knowledge graph disclosed in the present application is not limited.

[0068] In order to facilitate the understanding of the technical solution provided by this application, the relevant contents of the technical solution of this application are first explained below. This application processes the process flow diagram (PID) file in DGN format into an XML-based data format through Python. This data format is more versatile and can be applied to the Web and other design platform systems or compatible with other software, thereby meeting the needs of more users. More importantly, it ensures the integrity of the original data information. The original data information includes but is not limited to equipment codes, standards, and materials.

[0069] The following takes the process flow file data parsing device based on the knowledge graph as an example of the execution subject to illustrate the implementation process of the process flow file data parsing method based on the knowledge graph provided by the embodiment of the present invention. It can be understood that the execution subject of the process flow file data parsing method based on the knowledge graph provided by the embodiment of the present invention includes but is not limited to the process flow file data parsing device based on the knowledge graph.

[0070] Figure 1 A flowchart of a method for parsing process flow file data based on a knowledge graph provided by an embodiment of the present invention, such as Figure 1 As shown, the method includes:

[0071] Step 101: Obtain two-dimensional design data of a process flow file.

[0072] Step 102: Reconstruct data based on the two-dimensional design data to generate a facility knowledge graph and a facility label group.

[0073] Step 103: Match and associate the facility knowledge graph and the facility label group to generate a corresponding relationship between the facility combination labels.

[0074] Step 104: Based on the corresponding relationship between the facility combination labels, the facility knowledge graph and the queried business data are associated, and the target parsed data of the process flow file is output according to a preset data format.

[0075] In the technical solution provided by the embodiment of the present invention, two-dimensional design data of a process flow file is obtained; data reconstruction is performed based on the two-dimensional design data to generate a facility knowledge graph and a facility label group; the facility knowledge graph and the facility label group are matched and associated to generate a facility combination label correspondence relationship; based on the facility combination label correspondence relationship, the facility knowledge graph and the queried business data are associated, and the target parsing data of the process flow file is output in a preset data format, so as to realize conversion of the two-dimensional design data of the process flow file into target parsing data in a data format with stronger sharing ability, which can be viewed or shared on multiple design platform systems and has strong applicability and versatility; the business information integrity of the target parsing data is ensured, thereby ensuring the matching degree of business information and geometric information, reducing system complexity, saving development costs, and improving conversion efficiency.

[0076] Figure 2 A flowchart of another method for parsing process flow file data based on knowledge graph provided in an embodiment of the present invention is as follows: Figure 2 As shown, the method includes:

[0077] Step 201: Obtain two-dimensional design data of a process flow file.

[0078] In the embodiment of the present invention, each step is executed by a process flow file data parsing device based on a knowledge graph.

[0079] In the embodiment of the present invention, the process flow file is a PID file, and the two-dimensional design data in the PID file is in a DGN data format.

[0080] Step 202: extract geometric elements from the two-dimensional design data to generate a geometric element data structure.

[0081] In the embodiment of the present invention, the two-dimensional design data includes geometric element information of geometric elements, and the geometric elements include but are not limited to line segments, paths, pipelines, polygons, circles, labels, and label movements.

[0082] Specifically, the software development kit is used to extract geometric elements from the two-dimensional design data to obtain geometric element information; and the geometric element information of the geometric elements is converted into a geometric element data structure through Python string processing. The geometric element data structure is a data structure that meets the SVG data standard to achieve lossless conversion of the two-dimensional design data DGN data to the XML data format.

[0083] For the line segment geometric element (line), the data structure that complies with the SVG data standard is:<line x1="943.273"y1="224.556"x2="889.151"y2="224.556"stroke="red"stroke-width="0.35" / > Among them, line indicates that the geometric element type is a line segment element; (x1, y1) and (x2, y2) are the coordinate positions of the two points of the line segment; stroke indicates the color of the line segment; and stroke-width indicates the thickness of the line segment.

[0084] For the path geometric element (path), the data structure that complies with the SVG data standard is: <path d="M506.43,133.71A19.33,9.66 0.00 1,0 467.77,133.71"fill="none"stroke="red"stroke-width="0.35" / > . Among them, path indicates that the geometric element type is a path element; M indicates that moving to the coordinate (506.43, 133.71) will not draw any lines; A represents an elliptical arc command; (19.33, 9.66) represents the two radii of the elliptical arc, rx and ry; "0.00" represents the rotation angle of the elliptical arc; 1 represents the large-arc-flag, and a value of 1 means drawing a large arc; 0 represents the clockwise flag (sweep-flag), and a value of 0 means drawing an arc counterclockwise; (467.77, 133.71) is the final coordinate of the elliptical arc; fill indicates whether to fill; stroke indicates the path color; and stroke-width indicates the path thickness.

[0085] For the polyline geometric element, the data structure that complies with the SVG data standard is: <polylinepoints="721.15,656.76,771.04,656.76,771.04,287.96,881.06,281.96"fill="none"stroke="blue"stroke-width="0.35" / > Among them, polyline indicates that the geometric element type is a pipeline element, and the coordinates of the above points constitute a polyline; fill indicates whether to fill; stroke indicates the pipeline color; stroke-width indicates the thickness of the pipeline.

[0086] For polygon geometric elements (polygon), the data structure that complies with the SVG data standard is: <polygonpoints="948.49,627.55,948.48,627.40,948.44,627.23,948.38,627.10,948.28,627.01,948.15,626.95,948.00,626.93,947.92,626.94,947.76,626.98,947.62,627.07,947.52,627.20,947.51,627.20,947.51,626.97,947.05,626.97,947.05,628.46,947.51,628.46,947.51,627.61,947.52,627.52,947.59,627.37,947.63,627.34,947.79,627.28,947.93,627.32,948.01,627.44,948.03,627.63,948.03,628.46,948.49,628.46"fill="black"fill-opacity="0.5"stroke="rgb(150,150,150)"stroke-width="0.35" / > Among them, polygon indicates that the geometric element type is a polygon (arc) element, and the coordinates of the above vertices form a closed polygon; fill indicates whether to fill; fill-opacity indicates the fill transparency; stroke indicates the polygon color; and stroke-width indicates the polygon thickness.

[0087] For the circle geometric element (circle), the data structure that complies with the SVG data standard is:<circle cx="722.145"cy="656.76"r="0"fill="none"stroke="red"stroke-width="0.35" / > Among them, circle indicates that the geometric element type is an arc element; (cx, cy) indicates the coordinates of the center of the arc; r indicates the radius of the arc; fill indicates whether to fill; stroke indicates the color of the circle; and stroke-width indicates the thickness of the circle.

[0088] For the tag geometric element (text), the data structure that complies with the SVG data standard is: <text x="36.2235"y="10.3496"font-size="3.65279"font-family="ISOCPEUR"stroke="rgb(150,150,150)"fill="rgb(150,150,150)"stroke-width="0"> 1. Here, text indicates that the geometric element type is a label information element; (x, y) is the label coordinate; font-size and font-family indicate the font size and font type respectively; fill indicates whether to fill; stroke indicates the label color; and stroke-width indicates the thickness of the label.

[0089] For label moving geometric elements (text transform), the data structure that complies with the SVG data standard is: <text transform="translate(22.18 700.80)rotate(270.00)"font-size="2.19168"font-family="ISOCPEUR"stroke="rgb(150,150,150)"fill="rgb(150,150,150)"stroke-width="0"> The information contained therein is confidential. It shall not be copied, duplicated.. Translate means translating the text to the coordinate (22.18700.80); rotate means rotating the text 270 degrees clockwise; font-size and font-family respectively indicate the font size and font type; fill indicates whether to fill; stroke indicates the label movement color; and stroke-width indicates the thickness of the label movement.

[0090] Furthermore, the constructed geometric element data structure is imported into the program, the geometric element information is parsed, and the geometric shape of the element is obtained.

[0091] Step 203: Use geometric shape processing tools and network analysis tools to construct facility knowledge graphs corresponding to different facility categories based on the geometric element data structure.

[0092] In the embodiment of the present invention, the facility categories include equipment, pipelines and other categories.

[0093] In the embodiment of the present invention, step 203 specifically includes:

[0094] Step 2031: Use a geometric shape processing tool to parse and classify the geometric element data structure, and generate geometric shapes of geometric elements corresponding to different facility categories.

[0095] In an embodiment of the present invention, a geometric shape processing tool is used for plane geometry analysis and manipulation, specifically for creating, querying, modifying and analyzing two-dimensional geometric shapes; it provides rich functions for processing geometric objects such as points, lines, polygons, etc., and supports spatial relationships and geometric operations between these objects, such as intersection, union, difference, boundary, center point and other operations.

[0096] In the embodiment of the present invention, step 2031 specifically includes:

[0097] Step a1: parse the geometric element data structure through a geometric shape processing tool to generate the geometric shape of the geometric element.

[0098] Specifically, for polygon (elliptical arc) geometric elements, call the geometric shape processing tool to convert the points that make up the arc into Linestring objects, so that these points form several line segments for approximating the elliptical arc; use regular expressions to extract the coordinates of the label geometric elements; for line segment and pipeline geometric elements, information can be obtained through the coordinates of the points; the geometric elements of the circle can be obtained through the coordinates of the center of the circle and the radius.

[0099] Among them, the Linestring object is a class that represents a linear geometric shape, which is usually used to store a series of ordered points in two-dimensional or three-dimensional space. These points are connected to form a continuous line.

[0100] Step a2: According to the preset color facility category correspondence and the color information in the geometric element data structure, the geometric shapes of the geometric elements are classified to generate the geometric shapes of the geometric elements corresponding to the equipment and the geometric shapes of the geometric elements corresponding to the pipeline.

[0101] In the embodiment of the present invention, the color facility category correspondence relationship includes multiple facility categories and the color corresponding to each facility category. As an optional solution, the color corresponding to the equipment is red; the color corresponding to the pipeline is blue; and the color corresponding to other categories such as frames and text is gray.

[0102] Specifically, the geometric shapes with red color in the geometric element data structure are classified as devices, and the geometric shapes of the geometric elements corresponding to the devices are generated; the geometric shapes with blue color in the geometric element data structure are classified as pipelines, and the geometric shapes of the geometric elements corresponding to the pipelines are generated.

[0103] Step 2032: Use geometric shape processing tools and network analysis tools to construct facility knowledge graphs corresponding to different facility categories based on the geometric shapes of geometric elements corresponding to different facility categories.

[0104] In the embodiment of the present invention, the geometric shapes of the geometric elements corresponding to different facility categories include the geometric shapes of the geometric elements corresponding to the equipment and the geometric shapes of the geometric elements corresponding to the pipeline.

[0105] In the embodiment of the present invention, step 2032 specifically includes:

[0106] Step b1: parse the geometric element data structure through a geometric shape processing tool to generate connection relationships between geometric elements.

[0107] Specifically, the geometric element data structure is parsed through the geometric shape processing tool to check whether there is a spatial connection relationship between the geometric elements. The spatial connection relationship includes but is not limited to intersection, overlap and inclusion, and the geometric element pairs that are checked to have a spatial connection relationship are extracted.

[0108] Step b2: construct an undirected graph of geometric elements corresponding to the equipment and an undirected graph of geometric elements corresponding to the pipeline according to the connection relationship between the geometric elements, the geometric shapes of the geometric elements corresponding to the equipment and the geometric shapes of the geometric elements corresponding to the pipeline.

[0109] For the geometric shapes of geometric elements whose facility category is equipment, specifically, the geometric shapes of the geometric elements are used as nodes, and pairs of geometric elements that have spatial connection relationships are determined as edges to construct an undirected graph of geometric elements corresponding to the equipment.

[0110] For the geometric shapes of geometric elements whose facility category is pipelines, specifically, the geometric shapes of the geometric elements are taken as nodes, and pairs of geometric elements that have spatial connection relationships are determined as edges to construct an undirected graph of geometric elements corresponding to the pipelines.

[0111] Step b3: Use network analysis tools to extract connected components from the undirected graph of geometric elements corresponding to the device and the undirected graph of geometric elements corresponding to the pipeline, and construct a device knowledge graph corresponding to the device and a pipeline knowledge graph corresponding to the pipeline.

[0112] In the embodiment of the present invention, the network analysis tool is a library for creating, operating and studying complex network structures.

[0113] Specifically, the connected_components function is called through the network analysis tool to query all the connected components in the undirected graph of geometric elements corresponding to the device, and the device knowledge graph corresponding to the device is constructed. Among them, each connected component represents the set of all intersecting elements of a device. The combination of all connected entities is a single device.

[0114] Specifically, the connected_components function is called through the network analysis tool to query all the connected components in the undirected graph of geometric elements corresponding to the pipeline, and the pipeline knowledge graph corresponding to the pipeline is constructed. Among them, each connected component represents the set of all intersecting elements of a pipeline. The combination of all connected entities is a single pipeline.

[0115] Take equipment as an example. Figure 3 A schematic diagram of the structure of a device knowledge graph provided by an embodiment of the present invention is shown in FIG. Figure 3 As shown, the red solid dots represent device entities, the black connecting lines represent the spatial connection relationship between devices, and the connected entities are combined into a single device. Figure 4 A schematic diagram of the structure of a single device provided by an embodiment of the present invention, such as Figure 4 As shown, the red solid dots represent device entities, and the black connecting lines represent the spatial connection relationships between the devices. The spatial connection relationships include but are not limited to intersection, overlap, and inclusion.

[0116] It is worth noting that the pipeline knowledge graph is similar to the equipment knowledge graph, the difference is that the color of the pipeline entity is blue, which will not be elaborated in the embodiment of the present invention.

[0117] Step 204: Classify facilities according to the preset label naming rules and the geometric element data structure, and generate facility label groups corresponding to different facility categories.

[0118] In the embodiment of the present invention, the label naming rules include equipment label rules and pipeline label rules.

[0119] It is worth noting that both the equipment label rule and the pipeline label rule can be set according to actual needs, and the embodiment of the present invention does not limit this.

[0120] In the embodiment of the present invention, step 204 specifically includes:

[0121] Step 2041: Match the geometric element data structure according to the device tag rule to generate a device tag group.

[0122] As an alternative, the equipment label rule is: start with a letter or number, followed by one or more letters or numbers connected by a period character (.). For example: the label of the process gas dehydration tower equipment is 260A.3082.1.

[0123] In the embodiment of the present invention, each label geometric element in the geometric element data structure is matched according to the device label rule using a regular expression, and all geometric element data structures that meet the device label rule are screened out; the screened label geometric elements are classified into a device label group.

[0124] Step 2042: Match the geometric element data structure according to the pipeline label rule to generate a pipeline label group.

[0125] As an alternative, the pipeline label rule is: start with a letter, followed by one or more letters or numbers connected by a hyphen (-) and a dot (.). For example: PG-20-AD01PG-FA00.109.

[0126] In an embodiment of the present invention, each label geometric element in the geometric element data structure is matched according to the pipeline label rule using a regular expression, and all geometric element data structures that meet the pipeline label rule are screened out; the screened label geometric elements are classified into a pipeline label group.

[0127] Step 205: traverse the facility tag group and query the center point of the facility tag element.

[0128] In the embodiment of the present invention, in order to match the label for each single equipment combination and pipeline combination, all label elements in the facility label group are first traversed to calculate the center point of each label element. Specifically, the center point is calculated according to the position coordinates in the geometric element data structure to obtain the center point of the facility label element.

[0129] Step 206: Calculate the geometric center point of each geometric element undirected graph and the center point of the facility label element in the facility knowledge graph to generate the center point distance corresponding to each geometric element undirected graph.

[0130] In the embodiment of the present invention, each geometric element undirected graph corresponds to a sub-element combination of each monomer device or a sub-element combination of each monomer pipeline. For each monomer device or pipeline, the position coordinates of the sub-elements in the multiple geometric element undirected graphs are respectively calculated to obtain multiple geometric center points, and one geometric center point corresponds to one monomer device or pipeline.

[0131] Specifically, the distances between the center point of the facility label element and multiple geometric center points are calculated to obtain multiple center point distances, each center point distance corresponds to the distance between a geometric center point and the center point of the facility label element, that is, the center point distance corresponding to each geometric element undirected graph.

[0132] Step 207: determine the geometric element undirected graph corresponding to the minimum center point distance as the monomer facility combination corresponding to the center point of the facility label element, and associate the determined monomer facility combination with the facility label indicated by the center point of the facility label element to generate a facility combination label correspondence relationship.

[0133] In the embodiment of the present invention, the monomer facility combination includes a monomer device or a monomer pipeline.

[0134] In an embodiment of the present invention, multiple center point distances are compared to screen out the smallest center point distance; the geometric element undirected graph corresponding to the smallest center point distance is determined as the monomer facility combination corresponding to the center point of the facility label element; the determined monomer facility combination is associated with the facility label indicated by the center point of the facility label element to generate a facility combination label correspondence relationship.

[0135] In the embodiment of the present invention, through the matching and associating method of the facility tag and the single facility combination, each device can be matched with a corresponding device tag, and each pipeline can be matched with a corresponding pipeline tag.

[0136] In the embodiment of the present invention, the facility combination label correspondence relationship includes the correspondence relationship between the single facility combination and the facility label. Specifically, the facility combination label correspondence relationship includes the single equipment and the corresponding equipment label, and the single pipeline and the corresponding pipeline label.

[0137] Step 208: filter out the center point of the facility tag element from the facility tag group, and repeat the step of traversing the facility tag group to query the center point of the facility tag element until the facility tag group is empty.

[0138] In an embodiment of the present invention, the center point of the facility label element is filtered out from the facility label group, and the geometric element undirected graph is filtered out from the facility knowledge graph. The above calculation is repeated for the remaining facility label elements and geometric element undirected graphs until the facility label group and the facility knowledge graph are both empty, indicating that the matching of all facility combination label correspondences is completed.

[0139] Step 209: According to the facility tag, query the business data corresponding to the single facility combination from the preset business database.

[0140] In the embodiment of the present invention, the business database is a pre-configured database, and the business database stores a plurality of facility tags and business data corresponding to each facility tag, and the business data includes but is not limited to name, material and pressure.

[0141] It is worth noting that each facility tag uniquely identifies a facility. The facility tag includes an equipment code and a pipeline number. The equipment code uniquely identifies a device, and the pipeline number uniquely identifies a pipeline.

[0142] Furthermore, the business data is added to the SVG node.

[0143] Step 210: Associate facility labels, single facility combinations, corresponding business data and the corresponding facility indication maps, and generate and output target parsing data of the process flow file in accordance with a preset data format.

[0144] In the embodiment of the present invention, the preset data format is SVG format data.

[0145] Specifically, the facility labels, the combination of single facilities, the corresponding business data and the corresponding facility indication map are exported and associated, and stored as target parsed data in SVG format.

[0146] Figure 5 A partial enlarged view of target parsed data in SVG format provided by an embodiment of the present invention, such as Figure 5 As shown in the figure, red represents the process gas dehydration tower equipment, the equipment label is 260A.3082.1, and blue represents the pipeline, which is connected to the process gas dehydration tower equipment. It is worth noting that the business data is Figure 5 Not shown, in actual application, the business data can be displayed by the user clicking or moving the cursor. The specific method can be set according to actual needs, and the embodiment of the present invention does not limit this.

[0147] Furthermore, the target parsed data of the SVG format data is imported into the digital delivery platform so that developers can view the two-dimensional design data and the associated facility labels, single facility combinations, corresponding business data and the facility indication maps to which they belong.

[0148] It is worth noting that other facility-related data may also be exported and associated, and may be selected according to actual needs, and the embodiments of the present invention will not be listed one by one here.

[0149] This application achieves data standardization by converting geometric elements into SVG format. SVG is a widely supported vector graphics format, and the standardized data format facilitates subsequent processing, storage and sharing; by searching the business information database according to the tag value, more business data of equipment and pipelines can be obtained. This integration method can not only provide geometric information, but also provide comprehensive equipment and pipeline information in combination with business data, retaining key business information; converting the DGN format file of the PID file into the more shareable XML-based SVG format, which is suitable for a variety of design software and has strong data sharing.

[0150] It is worth noting that the acquisition, storage, use, and processing of data in the technical solution of this application are in compliance with the relevant provisions of laws and regulations. The user information in the embodiments of this application is obtained through legal and compliant channels, and the acquisition, storage, use, and processing of user information are authorized and agreed by the customer.

[0151] It is worth noting that the information collected in this application is information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data comply with the relevant laws, regulations and standards of relevant countries and regions, take necessary confidentiality measures, do not violate public order and good customs, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0152] It is worth noting that the technical solution provided in this application provides users with corresponding operation entrances for them to choose to agree or reject the automated decision-making results; if the user chooses to reject, the expert decision-making process will be entered.

[0153] In the technical solution of the process flow file data parsing method based on knowledge graph provided in the embodiment of the present invention, two-dimensional design data of the process flow file is obtained; data is reconstructed according to the two-dimensional design data to generate a facility knowledge graph and a facility label group; the facility knowledge graph and the facility label group are matched and associated to generate a facility combination label correspondence relationship; based on the facility combination label correspondence relationship, the facility knowledge graph and the queried business data are associated, and the target parsing data of the process flow file is output in a preset data format, so as to realize the conversion of the two-dimensional design data of the process flow file into the target parsing data in a data format with stronger sharing, which can be viewed or shared on multiple design platform systems and has strong applicability and versatility; the business information integrity of the target parsing data is ensured, thereby ensuring the matching degree of business information and geometric information, reducing system complexity, saving development costs, and improving conversion efficiency.

[0154] Figure 6A schematic diagram of the structure of a process flow document data parsing device based on a knowledge graph provided in an embodiment of the present invention, the device is used to execute the process flow document data parsing method based on a knowledge graph, such as Figure 6 As shown, the device includes: a two-dimensional design data acquisition unit 11, a data reconstruction unit 12, an association unit 13 and a data output unit 14.

[0155] The two-dimensional design data acquisition unit 11 is used to acquire the two-dimensional design data of the process flow file.

[0156] The data reconstruction unit 12 is used to reconstruct data according to the two-dimensional design data to generate a facility knowledge graph and a facility label group.

[0157] The association unit 13 is used to match and associate the facility knowledge graph with the facility label group to generate a facility combination label correspondence.

[0158] The data output unit 14 is used to associate the facility knowledge graph and the queried business data based on the corresponding relationship between the facility combination labels, and output the target parsed data of the process flow file in a preset data format.

[0159] In an embodiment of the present invention, the data reconstruction unit 12 is specifically used to extract geometric elements from two-dimensional design data and generate a geometric element data structure; through geometric shape processing tools and network analysis tools, a facility knowledge graph corresponding to different facility categories is constructed according to the geometric element data structure; according to a preset label naming rule, facilities are classified according to the geometric element data structure, and facility label groups corresponding to different facility categories are generated.

[0160] In an embodiment of the present invention, the data reconstruction unit 12 is specifically used to parse and classify the geometric element data structure through a geometric shape processing tool to generate geometric shapes of geometric elements corresponding to different facility categories; through geometric shape processing tools and network analysis tools, facility knowledge graphs corresponding to different facility categories are constructed according to the geometric shapes of geometric elements corresponding to different facility categories.

[0161] In the embodiment of the present invention, the facility category includes equipment and pipelines; the data reconstruction unit 23 is specifically used to parse the geometric element data structure through a geometric shape processing tool to generate the geometric shape of the geometric element; according to the preset color facility category correspondence, according to the color information in the geometric element data structure, the geometric shape of the geometric element is classified to generate the geometric shape of the geometric element corresponding to the equipment and the geometric shape of the geometric element corresponding to the pipeline.

[0162] In an embodiment of the present invention, facility categories include equipment and pipelines, and the geometric shapes of geometric elements corresponding to different facility categories include the geometric shapes of geometric elements corresponding to equipment and the geometric shapes of geometric elements corresponding to pipelines; the data reconstruction unit 12 is specifically used to parse the geometric element data structure through a geometric shape processing tool to generate a connection relationship between the geometric elements; construct an undirected graph of geometric elements corresponding to the equipment and an undirected graph of geometric elements corresponding to the pipelines according to the connection relationship between the geometric elements, the geometric shapes of the geometric elements corresponding to the equipment and the geometric shapes of the geometric elements corresponding to the pipelines; extract connected components from the undirected graph of geometric elements corresponding to the equipment and the undirected graph of geometric elements corresponding to the pipelines through a network analysis tool to construct a device knowledge graph corresponding to the equipment and a pipeline knowledge graph corresponding to the pipelines.

[0163] In an embodiment of the present invention, the label naming rules include device label rules and pipeline label rules; the data reconstruction unit 12 is specifically used to match the geometric element data structure according to the device label rules to generate a device label group; according to the pipeline label rules, the geometric element data structure is matched to generate a pipeline label group.

[0164] In an embodiment of the present invention, the association unit 13 is specifically used to traverse the facility label group and query the center point of the facility label element; calculate the geometric center point of each geometric element undirected graph in the facility knowledge graph and the center point of the facility label element to generate the center point distance corresponding to each geometric element undirected graph; determine the geometric element undirected graph corresponding to the minimum center point distance as the monomer facility combination corresponding to the center point of the facility label element, and associate the determined monomer facility combination with the facility label indicated by the center point of the facility label element to generate a facility combination label correspondence relationship; filter the center point of the facility label element from the facility label group, and repeat the steps of traversing the facility label group and querying the center point of the facility label element until the facility label group is empty.

[0165] In an embodiment of the present invention, the facility combination label correspondence includes the correspondence between the single facility combination and the facility label; the data output unit 14 is specifically used to query the business data corresponding to the single facility combination from a preset business database according to the facility label; associate the facility label, the single facility combination, the corresponding business data and the facility indication map to which it belongs, and generate and output the target parsing data of the process flow file in accordance with a preset data format.

[0166] In the scheme of the embodiment of the present invention, the two-dimensional design data of the process flow file is obtained; data reconstruction is performed based on the two-dimensional design data to generate a facility knowledge graph and a facility label group; the facility knowledge graph and the facility label group are matched and associated to generate a facility combination label correspondence relationship; based on the facility combination label correspondence relationship, the facility knowledge graph and the queried business data are associated, and the target parsing data of the process flow file is output in a preset data format, so as to realize the conversion of the two-dimensional design data of the process flow file into the target parsing data in a data format with stronger sharing ability, which can be viewed or shared on multiple design platform systems and has strong applicability and versatility; the business information integrity of the target parsing data is ensured, thereby ensuring the matching degree of business information and geometric information, reducing system complexity, saving development costs, and improving conversion efficiency.

[0167] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer device, and specifically, the computer device may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0168] An embodiment of the present invention provides a computer device, including a memory and a processor, the memory is used to store information including program instructions, the processor is used to control the execution of the program instructions, and the program instructions, when loaded and executed by the processor, implement the steps of the embodiment of the above-mentioned process flow file data parsing method based on the knowledge graph. For a specific description, please refer to the embodiment of the above-mentioned process flow file data parsing method based on the knowledge graph.

[0169] Reference below Figure 7 , which shows a schematic diagram of the structure of a computer device 600 suitable for implementing an embodiment of the present application.

[0170] like Figure 7 As shown, the computer device 600 includes a central processing unit (CPU) 601, which can perform various appropriate operations and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the computer device 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0171] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal feedback device (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed as needed as the storage section 608.

[0172] In particular, according to an embodiment of the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present invention includes a computer program product, which includes a computer program tangibly contained on a machine-readable medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 609, and / or installed from the removable medium 611.

[0173] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0174] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0175] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0176] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0177] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0178] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity 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, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0179] The acquisition, storage, use, and processing of data in the technical solution of this application comply with the relevant provisions of national laws and regulations.

[0180] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.

[0181] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0182] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0183] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0184] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A method for analyzing process flow document data based on knowledge graph, characterized in that: The method comprises: Obtain 2D design data of process flow files; Reconstruct data according to the two-dimensional design data to generate a facility knowledge graph and a facility label group; Matching and associating the facility knowledge graph and the facility label group to generate a corresponding relationship between facility combination labels; Based on the corresponding relationship between the facility combination labels, the facility knowledge graph and the queried business data are associated, and the target parsed data of the process flow file is output according to a preset data format.

2. The process flow document data analysis method based on knowledge graph according to claim 1 is characterized in that: The step of reconstructing data according to the two-dimensional design data to generate a facility knowledge graph and a facility label group includes: Extracting geometric elements from the two-dimensional design data to generate a geometric element data structure; By using geometric shape processing tools and network analysis tools, constructing facility knowledge graphs corresponding to different facility categories according to the geometric element data structure; According to the preset label naming rules, facilities are classified according to the geometric element data structure to generate facility label groups corresponding to different facility categories.

3. The method for analyzing process flow file data based on knowledge graph according to claim 2 is characterized in that: The facility knowledge graph corresponding to different facility categories is constructed according to the geometric element data structure by using the geometric shape processing tool and the network analysis tool, including: By using a geometric shape processing tool, the geometric element data structure is parsed and classified to generate geometric shapes of geometric elements corresponding to different facility categories; By using geometric shape processing tools and network analysis tools, facility knowledge graphs corresponding to different facility categories are constructed according to the geometric shapes of the geometric elements corresponding to the different facility categories.

4. The method for analyzing process flow document data based on knowledge graph according to claim 3 is characterized in that: The facility categories mentioned include equipment and pipelines; The geometric shape processing tool is used to parse and classify the geometric element data structure to generate geometric shapes of geometric elements corresponding to different facility categories, including: Parsing the geometric element data structure by a geometric shape processing tool to generate a geometric shape of the geometric element; According to the preset color facility category correspondence and the color information in the geometric element data structure, the geometric shapes of the geometric elements are classified to generate the geometric shapes of the geometric elements corresponding to the equipment and the geometric shapes of the geometric elements corresponding to the pipeline.

5. The method for analyzing process flow document data based on knowledge graph according to claim 3 is characterized in that: The facility categories include equipment and pipelines, and the geometric shapes of the geometric elements corresponding to the different facility categories include the geometric shapes of the geometric elements corresponding to the equipment and the geometric shapes of the geometric elements corresponding to the pipelines; The method of constructing facility knowledge graphs corresponding to different facility categories according to the geometric shapes of the geometric elements corresponding to the different facility categories by using the geometric shape processing tool and the network analysis tool includes: By using the geometric shape processing tool, the geometric element data structure is parsed to generate connection relationships between geometric elements; Constructing an undirected graph of geometric elements corresponding to the equipment and an undirected graph of geometric elements corresponding to the pipeline according to the connection relationship between the geometric elements, the geometric shapes of the geometric elements corresponding to the equipment and the geometric shapes of the geometric elements corresponding to the pipeline; Through the network analysis tool, connected components are extracted from the undirected graph of geometric elements corresponding to the equipment and the undirected graph of geometric elements corresponding to the pipeline, and a device knowledge graph corresponding to the equipment and a pipeline knowledge graph corresponding to the pipeline are constructed.

6. The method for analyzing process flow document data based on knowledge graph according to claim 2, characterized in that: The label naming rules include equipment label rules and pipeline label rules; The method of classifying facilities according to the geometric element data structure according to the preset label naming rules to generate facility label groups corresponding to different facility categories includes: According to the device tag rule, the geometric element data structure is matched to generate a device tag group; According to the pipeline label rule, the geometric element data structure is matched to generate a pipeline label group.

7. The method for analyzing process flow document data based on knowledge graph according to claim 1, characterized in that: The matching and associating the facility knowledge graph and the facility label group to generate a facility combination label correspondence relationship includes: Traversing the facility tag group to find out the center point of the facility tag element; Calculate the geometric center point of each geometric element undirected graph in the facility knowledge graph and the center point of the facility label element to generate the center point distance corresponding to each geometric element undirected graph; Determine the geometric element undirected graph corresponding to the minimum center point distance as the monomer facility combination corresponding to the center point of the facility label element, and associate the determined monomer facility combination with the facility label indicated by the center point of the facility label element to generate a facility combination label correspondence relationship; The center point of the facility tag element is filtered out from the facility tag group, and the step of traversing the facility tag group to query the center point of the facility tag element is repeated until the facility tag group is empty.

8. The method for analyzing process flow document data based on knowledge graph according to claim 1, characterized in that: The facility combination label correspondence relationship includes the correspondence relationship between the single facility combination and the facility label; The step of associating the facility knowledge graph and the queried business data based on the facility combination label correspondence, and outputting the target parsed data of the process flow file in a preset data format includes: According to the facility tag, query the business data corresponding to the single facility combination from the preset business database; The facility labels, the combination of single facilities, the corresponding business data and the corresponding facility indication maps are associated, and the target parsing data of the process flow file is generated and output according to a preset data format.

9. A process flow document data analysis device based on knowledge graph, characterized in that: The device comprises: A two-dimensional design data acquisition unit, used for acquiring two-dimensional design data of a process flow file; A data reconstruction unit, used for performing data reconstruction according to the two-dimensional design data to generate a facility knowledge graph and a facility label group; An association unit, used to match and associate the facility knowledge graph with the facility label group to generate a corresponding relationship between the facility combination labels; A data output unit is used to associate the facility knowledge graph and the queried business data based on the corresponding relationship between the facility combination labels, and output the target parsed data of the process flow file in a preset data format.

10. The process flow document data analysis device based on knowledge graph according to claim 9, characterized in that: The data reconstruction unit is specifically used to extract geometric elements from the two-dimensional design data and generate a geometric element data structure; construct a facility knowledge graph corresponding to different facility categories based on the geometric element data structure through geometric shape processing tools and network analysis tools; classify facilities according to the geometric element data structure according to preset label naming rules, and generate facility label groups corresponding to different facility categories.

11. The process flow document data analysis device based on knowledge graph according to claim 10, characterized in that: The data reconstruction unit is specifically used to parse and classify the geometric element data structure through a geometric shape processing tool to generate geometric shapes of geometric elements corresponding to different facility categories; and to construct facility knowledge graphs corresponding to different facility categories based on the geometric shapes of geometric elements corresponding to different facility categories through geometric shape processing tools and network analysis tools.

12. The process flow document data analysis device based on knowledge graph according to claim 11, characterized in that: The facility categories mentioned include equipment and pipelines; The data reconstruction unit is specifically used to parse the geometric element data structure through a geometric shape processing tool to generate a geometric shape of the geometric element; According to the preset color facility category correspondence and the color information in the geometric element data structure, the geometric shapes of the geometric elements are classified to generate the geometric shapes of the geometric elements corresponding to the equipment and the geometric shapes of the geometric elements corresponding to the pipeline.

13. The process flow document data analysis device based on knowledge graph according to claim 11, characterized in that: The facility categories include equipment and pipelines, and the geometric shapes of the geometric elements corresponding to the different facility categories include the geometric shapes of the geometric elements corresponding to the equipment and the geometric shapes of the geometric elements corresponding to the pipelines; The data reconstruction unit is specifically used to parse the geometric element data structure through the geometric shape processing tool to generate the connection relationship between the geometric elements; according to the connection relationship between the geometric elements, the geometric shapes of the geometric elements corresponding to the equipment and the geometric shapes of the geometric elements corresponding to the pipeline, construct an undirected graph of the geometric elements corresponding to the equipment and an undirected graph of the geometric elements corresponding to the pipeline; Through the network analysis tool, connected components are extracted from the undirected graph of geometric elements corresponding to the equipment and the undirected graph of geometric elements corresponding to the pipeline, and a device knowledge graph corresponding to the equipment and a pipeline knowledge graph corresponding to the pipeline are constructed.

14. The process flow document data analysis device based on knowledge graph according to claim 10, characterized in that: The label naming rules include equipment label rules and pipeline label rules; The data reconstruction unit is specifically used to match the geometric element data structure according to the device label rule to generate a device label group; and to match the geometric element data structure according to the pipeline label rule to generate a pipeline label group.

15. The process flow document data analysis device based on knowledge graph according to claim 9, characterized in that: The association unit is specifically used to traverse the facility label group and query the center point of the facility label element; calculate the geometric center point of each geometric element undirected graph in the facility knowledge graph and the center point of the facility label element to generate the center point distance corresponding to each geometric element undirected graph; determine the geometric element undirected graph corresponding to the minimum center point distance as the monomer facility combination corresponding to the center point of the facility label element, and associate the determined monomer facility combination with the facility label indicated by the center point of the facility label element to generate a facility combination label correspondence relationship; filter the center point of the facility label element from the facility label group, and repeat the steps of traversing the facility label group and querying the center point of the facility label element until the facility label group is empty.

16. The process flow document data analysis device based on knowledge graph according to claim 9, characterized in that: The facility combination label correspondence relationship includes the correspondence relationship between the single facility combination and the facility label; The data output unit is specifically used to query the business data corresponding to the single facility combination from a preset business database according to the facility label; associate the facility label, the single facility combination, the corresponding business data and the corresponding facility indication map, and generate and output the target analysis data of the process flow file according to a preset data format.

17. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, it implements the process flow file data parsing method based on knowledge graph as described in any one of claims 1 to 8.

18. A computer device comprising a memory and a processor, wherein the memory is used to store information including program instructions, and the processor is used to control the execution of the program instructions, characterized in that: When the program instructions are loaded and executed by the processor, the process flow file data parsing method based on the knowledge graph described in any one of claims 1 to 8 is implemented.

19. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the process flow document data parsing method based on knowledge graph described in any one of claims 1 to 8 is implemented.

Citation Information

Cited By

  • Dam potential safety hazard propagation path analysis method and system based on knowledge graph

    CN119646952A