Three-dimensional geologic model visual interaction method based on knowledge graph
By storing the stratigraphic relationships of the three-dimensional geological model into the knowledge graph, using multi-layer depth-first traversal and event-driven mode, efficient visualization and interaction of the three-dimensional geological model is achieved, solving the problems of complex and difficult stratigraphic relationships, and supporting data sharing and lightweight deployment under the B/S architecture.
Patent Information
- Application Number
- CN202510685503.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-27
- Publication Date
- 2025-07-08
AI Technical Summary
The existing three-dimensional geological models have complex stratigraphic relationships and are not intuitive, and the knowledge graph and three-dimensional geological models are difficult to interact, and there is a lack of visualization and sharing capabilities under the B/S architecture.
The stratigraphic relationships of the three-dimensional geological model are stored in the knowledge graph, and by defining the stratigraphic entities and relationships, the multi-layer depth-first traversal method is used to read and store entity relationships, combine the front-end graph visualization library and the three-dimensional WebGL engine to achieve visualization and interaction, and use event-driven mode for operation and control.
It realizes efficient visualization and interaction of knowledge graphs and three-dimensional geological models under the B/S architecture, solves the problem of unintuitive stratigraphic relationship expression, supports data sharing and lightweight deployment, and improves query efficiency.
Smart Images

Figure CN120277147A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of constructing natural resource geological structure models, and particularly relates to a three-dimensional geological model visualization interaction method based on a knowledge graph. Background Art
[0002] In the work of constructing the real scene of the national land space, the underground national land space mainly relies on three-dimensional geological models for simulation, expression, and analysis. However, at present, due to the regional differences and complexity of geological structures, there is no unified national stratigraphic division and geological modeling standard, resulting in different stratigraphic division types and hierarchical levels. However, the overall division method is to construct and refine layer by layer. For example, the Quaternary System (primary stratum) can be divided into secondary strata such as the Holocene Series and the Pleistocene Series. Among them, the Holocene Series can be divided into tertiary strata such as the Yellow River Formation and the Xukou Formation, and the Yellow River Formation can be further divided into clay, silt, silty clay, etc. (quaternary strata), and so on. Therefore, there is no unified standard and mode for the construction and visualization of three-dimensional geological models, and customized development needs to be carried out according to the actual stratigraphic structure and hierarchy.
[0003] In addition, the complex structure and hierarchy of geological structures bring great difficulties to the storage, expression, and query of stratigraphic relationships. As Figure 1 shown, at present, most three-dimensional geological models mainly use relational databases for storage, use tables or multi-level lists for the display and query of three-dimensional strata, and retrieve stratigraphic relationships by selecting different lists. Such an expression method is complex and the retrieval is inefficient. As a new type of semantic relationship expression technology, the knowledge graph can better realize the expression of stratigraphic relationships and is widely used in the semantic modeling of stratigraphic division. However, for complex stratigraphic and three-dimensional space characteristics, it cannot realize the fusion interaction between stratigraphic semantic relationships and three-dimensional models, and a large amount of manpower is required to construct the knowledge graph. In addition, the existing application of the knowledge graph in three-dimensional geological modeling is for C / S end software, lacking the visualization interaction between the knowledge graph and the three-dimensional geological model in the B / S architecture, which brings difficulties to the lightweight deployment and online sharing and use of the client.
[0004] Therefore, how to solve the problems of complex and unintuitive interpretation of the stratigraphic structure and relationships of three-dimensional geological models, as well as the problems of difficult sharing of the knowledge graph and three-dimensional geological models, and poor interaction between the knowledge graph and three-dimensional geological models, are urgent tasks for those skilled in the art. Summary of the Invention
[0005] Aiming at the problems existing in the current situation of the storage, query and visualization interaction of three-dimensional geological models in the prior art, the purpose of the present invention is to: store the complex stratigraphic relationships of three-dimensional geological models in a knowledge graph, and through the definition, reading and warehousing of stratigraphic entities and relationships, realize the automatic construction of a stratigraphic knowledge graph from three-dimensional geological models, realize the efficient visualization of the knowledge graph and three-dimensional geological models under the B / S architecture, realize the visualization of knowledge graph data based on a front-end graph visualization library, realize the visualization of three-dimensional geological models through a three-dimensional WebGL engine, complete the operation interaction between the knowledge graph and the three-dimensional geological model, realize the interaction and control of the three-dimensional geological model by registering events for the knowledge graph, provide users with simple and convenient query and visualization operations of three-dimensional geological models, and improve the query efficiency of three-dimensional geological models. A three-dimensional geological model visualization interaction method based on a knowledge graph.
[0006] To achieve the above object, the technical solution adopted by the present invention is: a three-dimensional geological model visualization interaction method based on a knowledge graph, including the following steps: Step 1: Slicing and publishing of three-dimensional geological models. The three-dimensional geological models are cached and sliced according to the LOD level. The sliced three-dimensional cache data will be stored in a folder, and the model cache and model dataset are published to generate a model three-dimensional scene and a model data service. Step 2: Definition of stratigraphic entity relationships. Entities and relationships are constructed using the subordination relationships between strata, and entity extraction and relationship establishment are performed on the data fields in the published data service. Step 3: Reading and warehousing of stratigraphic entity relationships. An HTTP request is used to read the published three-dimensional geological model data service, and a graph database is used for the warehousing and management of the knowledge graph. According to the published three-dimensional geological model data service, a multi-layer depth-first traversal method is used for the reading and warehousing of entity relationships. Step 4: Visualize the graph database using a front-end graph visualization library, perform three-dimensional visualization rendering of three-dimensional geological models using a three-dimensional WebGL engine, open the three-dimensional geological model service published in Step 1 through the three-dimensional model rendering function of the engine, automatically calculate the row and column numbers and hierarchical request parameters according to the view range of the current scene, generate a tile request queue, request the three-dimensional geological model slice files on the server for rendering, and perform visualization of the knowledge graph and three-dimensional geological models. Step 5: Query the knowledge graph using the CQL query method, adopt an event-driven mode for the interaction between the knowledge graph and the three-dimensional geological model, register click events for the nodes in the knowledge graph, obtain the stratigraphic type and stratigraphic code of the nodes through the click events, update the shared stratigraphic code variable, and realize the visualization of the corresponding graph nodes.
[0007] In the above-described visualization interaction method for a three-dimensional geological model based on a knowledge graph, in step 1, the fields of the model data include: ID, formation name, and formation code, and the formation name and formation code are set according to the order of different layers.
[0008] In the above-described visualization interaction method for a three-dimensional geological model based on a knowledge graph, in step 2, according to the field attributes in the data service, entities are defined as three-dimensional geological model entities and formation entities. The three-dimensional geological model entity is the specifically published three-dimensional geological model, and the formation entities are divided into level 1 formation entities, level 2 formation entities, level 3 formation entities, and level 4 formation entities according to the hierarchy.
[0009] In the above-described visualization interaction method for a three-dimensional geological model based on a knowledge graph, the relationship between formation entities is the belonging relationship. The level 1 formation entity belongs to the three-dimensional geological model entity, the level 2 formation entity belongs to the level 1 formation entity, the level 3 formation entity belongs to the level 2 formation entity, and the level 4 formation entity belongs to the level 3 formation entity.
[0010] In the above-described visualization interaction method for a three-dimensional geological model based on a knowledge graph, in step 3, the basic unit of the knowledge graph is a triple composed of entity-relationship-entity. In the graph database, the data consists of nodes and relationships. The nodes represent the entities in the knowledge graph, and the relationships represent the relationships in the knowledge graph. The method of multi-layer depth-first traversal is used to realize the reading of model data and the storage of nodes and relationships into the database.
[0011] In the above-described visualization interaction method for a three-dimensional geological model based on a knowledge graph, step 3 includes: Step 3-1: Create model nodes: Create a three-dimensional geological model node as the root node in the graph database, and at the same time set the attribute information of the node. Step 3-2: Create formation nodes and relationships. Use the multi-layer depth-first search method to traverse the model attributes. After creating a certain node and relationship, use the depth-first traversal method to create the next-level node and relationship until the creation of the subsequent nodes and relationships of this node is completed and then enter the next same-level formation node.
[0012] In the above-described visualization interaction method for a three-dimensional geological model based on a knowledge graph, step 3-2 includes: Step a: For the creation of each level of formation nodes, read the model attribute information according to rules. The current formation node needs to utilize each upper-level node, and strictly obtain the current formation node according to the hierarchy. The formula for the formation node creation process is: , where, , represents the total data set of the three-dimensional geological model. Represents any level, Represents the set of nodes at the th level of a certain node, Represents the set of parent nodes of the nodes at this level, Is selected from the total data set The nodes that meet the conditions at the th level, Represents the connection of logical AND, Is a function to obtain the hierarchical name, For the th-level parent node of the current formation, The function is to take the unique value that meets the conditions, When , traverse the 1st-level formations of the whole table to take unique values for creation. When , the attribute name of the upper-level node of the current node is consistent with the name of the upper-level associated node in the depth-first search; Step b: After creating the graph nodes using the depth-first search algorithm, create the relationship between the current node and the directly upper-level node. The formula is: , where Is the set of relationships between the nodes at the th level and the upper-level nodes, Is the th-level node in the node set of the th node, Is the associated upper-level parent node.
[0013] In the above method for visual interactive of 3D geological model based on knowledge graph, in step 5, when the variable data is updated, the rendering processing function is triggered. Query the model list of all encodings of the 3D geological model database using the formation code of the node after update, obtain the ID of the model list, store the obtained ID in an array, and then pass the ID array into the visualization method of the layer object returned by the 3D geological model visualization in step S4 to realize the visualization of the corresponding graph nodes.
[0014] The beneficial effects of a three-dimensional geological model visualization and interaction method based on a knowledge graph in the present invention are as follows: The present invention stores the complex stratigraphic relationships of the three-dimensional geological model in the knowledge graph, defines the entities and relationships between the three-dimensional geological model and the strata, realizes the reading and storage of entities and relationships, and solves the problem that the stratigraphic relationships of the three-dimensional geological model are not intuitively expressed. Based on the B / S side, querying, visualization, and interaction of knowledge graph data and the three-dimensional geological model are realized. The visualization of graph entity relationships and the three-dimensional geological model can be achieved on the B / S side, getting rid of the single-machine limitation and realizing data sharing. Controlling the three-dimensional geological model through graph nodes, and using graph node events to realize the display and hiding of the three-dimensional geological model, which is easy for geological staff to operate and interact with. Description of the Drawings
[0015] Figure 1 Schematic diagram of the tabular display method of the three-dimensional geological model in the prior art; Figure 2 Flowchart of the overall method in the embodiment of the present invention; Figure 3 Schematic diagram of the overall stratigraphic knowledge graph in the embodiment of the present invention; Figure 4 Schematic diagram of the Permian stratigraphic knowledge graph in the embodiment of the present invention; Figure 5 Schematic diagram of the Yangxin Series stratigraphic knowledge graph in the embodiment of the present invention; Figure 6 Schematic diagram of the Heishan Formation stratigraphic knowledge graph in the embodiment of the present invention; Figure 7 Schematic diagram of all nodes of the knowledge graph B / S front-end visualization in the embodiment of the present invention; Figure 8 Schematic diagram of local nodes of the knowledge graph B / S front-end visualization data in the embodiment of the present invention; Figure 9 Schematic diagram of the three-dimensional geological model B / S visualization in the embodiment of the present invention; Figure 10 Schematic diagram of node query using CQL statements in the embodiment of the present invention; Figure 11 Schematic diagram of the visualization interaction between the "Cambrian System" node and the three-dimensional geological model in the embodiment of the present invention; Figure 12 Schematic diagram of the visualization interaction between the "Second Series" node and the three-dimensional geological model in the embodiment of the present invention. Detailed Embodiment
[0016] To enable those skilled in the art to better understand the technical solutions of the present invention, the technical solutions of the present invention will be described below in conjunction with the detailed embodiments and the drawings.
[0017] Example 1 A three-dimensional geological model visualization and interaction method based on a knowledge graph, comprising the following steps.
[0018] Step 1: Slicing and publishing of the three-dimensional geological model. The three-dimensional geological model is cached and sliced according to the LOD (Level of Detail) hierarchy. The sliced three-dimensional cache data is stored in a folder. The model cache and the model dataset are published to generate a model three-dimensional scene and a model data service.
[0019] Step 2: Definition of formation entity relationships. The entity and relationship construction is carried out by using the subordination relationship between formations. Entity extraction and relationship establishment are performed on the data fields in the published data service.
[0020] Step 3: Reading and warehousing of formation entity relationships. The published three-dimensional geological model data service is read by using an HTTP request. A graph database is used for the warehousing and management of the knowledge graph. The entity relationship is read and warehoused by using a multi-layer depth-first traversal method according to the published three-dimensional geological model data service.
[0021] Step 4: Visualization of the graph database is performed by using a front-end graph visualization library. The three-dimensional geological model is visually rendered by using a three-dimensional WebGL engine. The three-dimensional geological model service published in Step 1 is opened through the three-dimensional model rendering function of the engine. The row and column numbers and the hierarchical request parameters are automatically calculated according to the view range of the current scene to generate a tile request queue. The three-dimensional geological model slice files on the server are requested for rendering to perform the visualization of the knowledge graph and the three-dimensional geological model.
[0022] Step 5: The knowledge graph is queried by using the CQL query method, and the interaction between the knowledge graph and the three-dimensional geological model is carried out by using an event-driven mode. A shared formation coding variable is created in the memory. By observing the change of the formation coding value of this variable, the corresponding three-dimensional geological model rendering processing function is triggered when the attribute value changes. By registering a click event for the nodes in the knowledge graph, the formation type and formation coding of the nodes are obtained through the click event, and the shared formation coding variable is updated. When the variable has data updates, the rendering processing function is triggered. The model list of all the encodings of the three-dimensional geological model database is queried by using the formation coding of the node after the update. The ID of the model list is obtained and stored in an array. Then the ID array is passed into the visualization method of the layer object returned by the three-dimensional geological model visualization in Step S4 to realize the visualization of the corresponding graph nodes.
[0023] (1) To solve the problems of complex and unintuitive interpretation of the stratigraphic structure and relationships in a 3D geological model, the present invention stores the complex stratigraphic relationships in the 3D geological model into a knowledge graph. By defining, reading, and storing the stratigraphic entities and relationships, the automatic construction of a stratigraphic knowledge graph from the 3D geological model is achieved.
[0024] (2) To solve the problem of difficult sharing between the knowledge graph and the 3D geological model, the present invention realizes the efficient visualization of the knowledge graph and the 3D geological model under the B / S architecture. The present invention realizes the visualization of the knowledge graph data based on a front-end graph visualization library, and realizes the visualization of the 3D geological model through a 3D WebGL engine.
[0025] (3) To solve the problem of poor interaction between the knowledge graph and the 3D geological model, the present invention realizes the operation interaction between the knowledge graph and the 3D geological model. By registering events for the knowledge graph, the interaction and control of the 3D geological model are achieved, providing users with simple and convenient query and visualization operations for the 3D geological model, and improving the query efficiency of the 3D geological model.
[0026] Embodiment 2 The present invention discloses a visualization interaction method for a 3D geological model based on a knowledge graph. The method first slices the 3D geological model, generates a model cache for publication; then defines the entities and relationships between the model and different levels of strata in the 3D geological model; according to the defined stratigraphic entities and relationships, the automatic storage into the graph database is realized through a multi-layer depth-first search method; the visualization of the knowledge graph and the 3D geological model is realized at the B / S end; finally, the interaction operation of the 3D geological model is realized by operating on the knowledge graph.
[0027] As Figure 2 shown, a visualization interaction method for a 3D geological model based on a knowledge graph specifically includes the following steps.
[0028] S1: Slicing and publishing of the 3D geological model.
[0029] The data used in the present invention is 3D geological model data. First, the 3D geological model is cached and sliced according to the LOD (Level of Detail) level. The sliced 3D cache data will be stored in a folder. The model cache and the model dataset are published to generate a model 3D scene and a model data service. The model data contains the following fields: ID, 1st-level stratigraphic name, 1st-level stratigraphic code, 2nd-level stratigraphic name, 2nd-level stratigraphic code, 3rd-level stratigraphic name, 3rd-level stratigraphic code, 4th-level stratigraphic name, 4th-level stratigraphic code, and so on for subsequent levels if any.
[0030] S2: Definition of stratigraphic entity relationships.
[0031] The basic unit of the knowledge graph is a triple composed of "entity - relationship - entity". Since the stratigraphic standards and types for 3D geological model modeling vary, in order to visualize the stratigraphic relationships between 3D geological models, the present invention constructs entities and relationships using the subordination relationships between strata, and entity extraction and relationship establishment need to be performed on the data fields in the published data service. According to the field attributes in the data service, the present invention defines corresponding entities, namely 3D geological model entities and stratigraphic entities. The 3D geological model entity is a specifically published 3D geological model, such as: a 3D geological model entity in a certain area. Stratigraphic entities can be classified by level into: level - 1 stratigraphic entities (such as: Quaternary System), level - 2 stratigraphic entities (such as: Holocene Series), level - 3 stratigraphic entities (such as: Huanghe Formation), level - 4 stratigraphic entities (such as: fine - silt sand). At the same time, the present invention defines the relationship between strata as the "belongs to" relationship, that is: level - 1 stratigraphic entities belong to 3D geological model entities, level - 2 stratigraphic entities belong to level - 1 stratigraphic entities, level - 3 stratigraphic entities belong to level - 2 stratigraphic entities, level - 4 stratigraphic entities belong to level - 3 stratigraphic entities, and so on subsequently.
[0032] S3: Reading and storing the relationships of stratigraphic entities.
[0033] After defining the entity relationships of the knowledge graph, it is necessary to read and store the entity relationships according to the published 3D geological model data service. In order to read the data related to stratigraphic entities in the data service, the present invention uses an HTTP request to read the published 3D geological model data service. In order to manage the knowledge graph data, the present invention uses a graph database for storing and managing the knowledge graph. In the graph database, data consists of nodes and relationships. Nodes represent entities in the knowledge graph, and relationships represent relationships in the knowledge graph. The present invention uses a multi - layer depth - first traversal method to implement the reading of model data and the storing of nodes and relationships. After storage, the node and relationship data of the knowledge graph can be seen Figures 3 - 6 as shown.
[0034] The steps for reading and storing entity relationships are as follows.
[0035] (1) Creating model nodes: Create 3D geological model nodes in the graph database as root nodes, and at the same time set the attribute information of the nodes including: name (model name) and bh (model number).
[0036] (2) Creating stratigraphic nodes and relationships: Use a multi - layer depth - first search method to traverse the model attributes, that is, after creating a certain node and relationship, instead of creating subsequent sibling nodes in the list, use the depth - first traversal method to first create the next - level nodes and relationships until the creation of subsequent nodes and relationships of this node is completed, and then enter the next sibling stratigraphic node. It mainly includes: creating graph nodes and graph relationships.
[0037] ① Creation of graph nodes.
[0038] For the creation of formation nodes at each level, it is necessary to read the model attribute information according to rules. To obtain the current formation node, it is necessary to utilize each upper-level node, and strictly obtain the current formation node according to the level. Assume that the total data set of the 3D geological model is , for any level , given as the set of nodes at the th layer of a certain node. The node consists of the current node type, node name, and node number. is the set of parent nodes of the nodes at this layer (when looping to the th-level node, the set of the first levels of nodes. When , is ). The specific creation process is shown in the following formula: , where .
[0039] When , traverse the 1st-level formations of the entire table to obtain unique values for creation. When , the upper-level node attribute name of the current node is consistent with the name of the superior associated node in the depth-first search (that is, when is 4, the names of the 1st, 2nd, and 3rd-level nodes of the current node are consistent with the names of the searched upper-level nodes). is to select the nodes that meet the conditions at the th layer from the total data set , represents the connection of logical AND, is a function for obtaining the hierarchical name, used to obtain the name of the th layer of the current formation ( ), is the th-level parent node of the current formation. The function is to obtain the unique value that meets the conditions to avoid duplicate nodes.
[0040] ② Creation of graph relationships.
[0041] After creating graph nodes using the depth-first search algorithm, it is necessary to create the relationship between the current node and the directly upper-level node, as follows: , where is the set of relationships between the nodes at the th layer and the upper-level nodes, is the th-level node's in the set of nodes at the nodes. For the associated upper - level parent node, create the "belongs to" relationship between the current node and the parent node.
[0042] Figures 3 - 6 To create a database for the stratigraphic relationship diagram of the 3D geological model after warehousing.
[0043] S4: Knowledge graph and 3D geological model visualization.
[0044] (1) Knowledge graph visualization.
[0045] As Figure 7 shown, in order to view the entities and relationships in the graph database on the B / S side, the present invention uses a front - end graph visualization library for graph database visualization. By setting the address, user, and password of the graph database, the connection to the graph database on the B / S side can be achieved. After completing the database connection, the graph node rendering visualization is realized by configuring the graph node symbol style, annotation font size, and symbol color. In order to realize the relationship connection of graph nodes, the start and end graph node numbers of the relationship nodes, and the width and color of the relationship connection lines are configured to realize the relationship connection of graph nodes, so as to realize the visualization of the graph database by connection.
[0046] (2) 3D geological model visualization.
[0047] As Figure 8 shown, in order to realize 3D geological model visualization, the present invention uses a 3D WebGL engine for 3D geological model visualization rendering. Based on the published geological model service, a 3D geological model scene is constructed. First, an empty 3D space scene is created. The 3D geological model service published in step S1 is opened through the 3D model rendering function of the engine. The row and column numbers and layer request parameters are automatically calculated according to the view range of the current scene, and a tile request queue is generated to request the 3D geological model slice files on the server for rendering. After the rendering is completed, the layer object in the scene will be returned.
[0048] S5: Knowledge graph query and model interaction.
[0049] (1) Knowledge graph query.
[0050] As Figure 9 shown, after realizing the visualization of the knowledge graph through step S4, the query of the knowledge graph can be realized through the provided CQL query method. By setting the CQL expression, relevant entities and relationships are queried and retrieved, Figure 10 in which is the node for querying all dolomites.
[0051] (2) Interaction between the knowledge graph and the 3D geological model.
[0052] As Figure 11, Figure 12 As shown, an event-driven mode is adopted for the interaction between the knowledge graph and the 3D geological model. In the present invention, a shared formation coding variable is created in the memory. By observing the change of the formation coding value of this variable, a corresponding 3D geological model rendering processing function is triggered when the attribute value changes. By registering click events for the nodes in the knowledge graph, the formation coding of the node is obtained through the click event, and the shared formation coding variable is updated. When the variable undergoes data update, the rendering processing function is triggered. The model list of all formations with this coding in the 3D geological model database is queried using the updated formation coding of the node, the ID of the model list is obtained, stored in an array, and then the ID array is passed into the visualization method of the layer object returned by the 3D geological model visualization in step S4 to realize the visualization of the corresponding graph node.
[0053] The above embodiments are only for illustrating the structural concept and characteristics of the present invention, aiming to enable those of ordinary skill in the art to understand the content of the present invention and implement it accordingly, and shall not be used to limit the protection scope of the present invention. Any equivalent changes or modifications made according to the essence of the content of the present invention should be covered within the protection scope of the present invention.
Claims
1. A three-dimensional geological model visualization and interaction method based on a knowledge graph, characterized in that It includes the following steps: Step 1: Slicing and publishing of the 3D geological model. The 3D geological model is cached and sliced according to the LOD level. The sliced 3D cache data is stored in a folder. The model cache and the model dataset are published to generate a model 3D scene and a model data service; Step 2: Definition of formation entity relationships. The membership relationships between formations are used to construct entities and relationships, and entity extraction and relationship establishment are performed on the data fields in the published data service; Step 3: Reading and storing of formation entity relationships. The published 3D geological model data service is read using an HTTP request. A graph database is used for the storage and management of the knowledge graph. The entity relationships are read and stored using the method of multi-layer depth-first traversal according to the published 3D geological model data service; Step 4: Visualization of the graph database using a front-end graph visualization library, and visualization rendering of the 3D geological model using a 3D WebGL engine. The 3D geological model service published in Step 1 is opened through the 3D model rendering function of the engine. The row and column numbers and the level request parameters are automatically calculated according to the view range of the current scene to generate a tile request queue, and the 3D geological model slice files on the server are requested for rendering to perform the visualization of the knowledge graph and the 3D geological model; Step 5: Query the knowledge graph using the CQL query method, and interact with the knowledge graph and the 3D geological model in an event-driven mode. By registering click events for the nodes in the knowledge graph, the formation type and formation code of the nodes are obtained through the click events, and the shared formation code variable is updated to achieve the visualization of the corresponding graph nodes.
2. The three-dimensional geological model visualization and interaction method based on a knowledge graph according to claim 1, characterized in that, In Step 1, the fields of the model data include: ID, formation name, formation code, and the formation name and formation code are set according to the order of different layers.
3. The three-dimensional geological model visualization and interaction method based on a knowledge graph according to claim 1, wherein, In Step 2, according to the field attributes in the data service, the entities are defined as 3D geological model entities and formation entities. The 3D geological model entity is the specifically published 3D geological model, and the formation entities are divided into level 1 formation entities, level 2 formation entities, level 3 formation entities, and level 4 formation entities according to the level.
4. The three-dimensional geological model visualization and interaction method based on a knowledge graph according to claim 3, characterized in that The relationship between formation entities is the belonging relationship. The level 1 formation entity belongs to the 3D geological model entity, the level 2 formation entity belongs to the level 1 formation entity, the level 3 formation entity belongs to the level 2 formation entity, and the level 4 formation entity belongs to the level 3 formation entity.
5. The three-dimensional geological model visualization and interaction method based on a knowledge graph according to claim 1, characterized in that In Step 3, the basic unit of the knowledge graph is a triple composed of entity-relationship-entity. In the graph database, the data consists of nodes and relationships. The nodes represent the entities in the knowledge graph, and the relationships represent the relationships in the knowledge graph. The method of multi-layer depth-first traversal is used to realize the reading of model data and the storage of nodes and relationships.
6. The three-dimensional geological model visualization and interaction method based on a knowledge graph according to claim 5, characterized in that The said Step 3 includes: Step 3-1: Create model nodes: Create 3D geological model nodes in the graph database as root nodes, and at the same time set the attribute information of the nodes; Step 3-2: Create formation nodes and relationships. Use the multi-layer depth-first search method to traverse the model attributes. After creating a certain node and relationship, use the depth-first traversal method to create the next-level nodes and relationships until the creation of the subsequent nodes and relationships of this node is completed, and then enter the next same-level formation node.
7. The three-dimensional geological model visualization and interaction method based on a knowledge graph according to claim 6, characterized in that The said step 3-2 includes: Step a: For the creation of each level of formation nodes, read the model attribute information according to the rules. The current formation node needs to utilize each upper-level node, and strictly obtain the current formation node according to the level. The formula for the formation node creation process is: , Among them, , represents the total data set of the 3D geological model, represents any level, represents the set of layer nodes of a certain node, represents the set of parent nodes of the layer nodes, is to select the layer nodes that meet the conditions from the total data set , represents the connection of logical AND, is the function for obtaining the level name, is the -level parent node of the current formation, The function is to take the only value that meets the conditions, When it is, traverse the 1st-level strata of the entire table to obtain unique values for creation. When it is, the upper-node attribute name of the current node is consistent with the name of the superior associated node in the depth-first search; Step b: After creating graph nodes using the depth-first search algorithm, create the relationship between the current node and the directly upper-level node. The formula is: , where is the set of relationships between the nodes in the th layer and the upper-level nodes, is the th node in the node set of the th level, is the associated upper-level parent node.
8. The 3D geological model visualization and interaction method based on a knowledge graph according to claim 1, characterized in that In step 5, when the variable undergoes data update, trigger the rendering processing function. Use the formation code of this node after the update to query all the model lists with this code in the 3D geological model database, obtain the IDs of the model lists, store the obtained IDs in an array, and then pass the ID array into the visualization method of the layer object returned by the 3D geological model visualization in step S4 to realize the visualization of the corresponding atlas nodes.