Ecological protection red line risk knowledge graph structure optimization method based on spatiotemporal hypergraph

Through the optimization method of ecological protection redline risk knowledge graph structure based on spatiotemporal hypergraph, it solves the problem that existing technology is difficult to express high-order spatiotemporal relationships, achieves accurate identification and propagation mode analysis of ecological protection redline risks, and adapts to different types and levels. risk modeling needs.

CN118313451BActive Publication Date: 2024-09-17SHENYANG INST OF APPL ECOLOGY CHINESE ACAD OF SCI +3
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410747898.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-11
Publication Date
2024-09-17
Estimated Expiration
2044-06-11

AI Technical Summary

Technical Problem

Existing knowledge graphs are difficult to effectively express high-order spatiotemporal relationships and complex ecological phenomena in the ecological environment, and are difficult to support diverse and universal descriptions of ecological changes.

Method used

The ecological protection red line risk knowledge graph structure optimization method based on spatiotemporal hypergraph is adopted. By acquiring knowledge data sources, the ecological protection red line risk knowledge ontology is constructed, graph nodes and hyperedges with time and space characteristics are defined, and the knowledge hypergraph theory is used for structural optimization. , forming a more refined knowledge graph.

Benefits of technology

It achieves more accurate identification of ecological protection redline risks and mining of propagation patterns, adapts to different types and levels of risk modeling needs, and provides more accurate identification of risk sources and analysis of propagation patterns.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118313451B
    Figure CN118313451B
Patent Text Reader

Abstract

An embodiment of the present invention provides a method for optimizing the structure of an ecological protection red line risk knowledge graph based on a spatiotemporal hypergraph. The method includes obtaining a knowledge data source in the field of ecological protection red line regional risks, analyzing the constituent elements of the knowledge system in the field of ecological protection red line regional risks according to the knowledge data source, and abstractly expressing the semantic description of the constituent elements as an ecological protection red line risk knowledge ontology; constructing knowledge triples to form a triple knowledge graph; defining knowledge expression rules and instance data, extracting graph nodes and graph edges with time characteristics and spatial characteristics, and defining mapping rules; structurally optimizing the graph nodes and graph edges in the triple knowledge graph to obtain a structurally optimized knowledge graph. In this way, it can adapt to risk modeling needs of different types and levels, and can directly represent the complex relationships between multiple entities, providing more accurate risk source identification and propagation pattern mining.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention generally relates to the technical field of ecological environment knowledge modeling, and more specifically, to an ecological protection red line risk knowledge graph structure optimization method based on a spatiotemporal hypergraph. Background Art

[0002] As human activities have an increasing impact on the natural environment, scientific monitoring and management of ecological redline areas have become particularly important. Knowledge graphs make ecological protection redline monitoring more accurate and efficient by building a structured and queryable knowledge base. It can integrate data from different sources, including remote sensing data, geographic information system (GIS) data, biodiversity records, and relevant policy and regulatory information to form a comprehensive knowledge system. In this way, knowledge graphs not only support real-time monitoring of the status of ecological protection redline areas, but also help analyze trends in ecosystem changes, predict possible risks, and provide a scientific basis for the formulation of protection measures and management strategies. Therefore, the study of knowledge graphs in the expression of ecological protection redline monitoring knowledge is of great significance for promoting ecological protection and achieving sustainable development.

[0003] The knowledge triple <knowledge entity, knowledge relationship, knowledge entity> is the basic element commonly used in the structured expression of knowledge graphs, and is also the main form of expressing the relationship between knowledge entities. However, as a complex giant system that describes environmental resources, explains ecological phenomena and ecological processes, the ecological environment knowledge system carries an increasingly high-order complexity of spatiotemporal relationships, which poses challenges to existing graph organization methods. On the one hand, most of the existing knowledge graph relationship construction methods are based on a single homogeneous triple structure unit form, which makes it difficult to show the diversity and internal connections of expressing high-order relationships at the content level. On the other hand, the description of ecological phenomena and processes by the triple structure unit still remains at the static text level, which makes it difficult to support universal, common and diverse expressions of ecological changes. Summary of the invention

[0004] According to an embodiment of the present invention, a scheme for optimizing the structure of ecological protection red line risk knowledge graph based on spatiotemporal hypergraph is provided. This scheme can adapt to the risk modeling needs of different types and levels, and can directly represent the complex relationship between multiple entities, providing more accurate risk source identification and propagation pattern mining.

[0005] In a first aspect of the present invention, a method for optimizing the ecological protection red line risk knowledge graph structure based on a spatiotemporal hypergraph is provided. The method comprises:

[0006] Acquire a knowledge data source in the field of ecological protection red line regional risk, analyze the constituent elements of the knowledge system in the field of ecological protection red line regional risk based on the knowledge data source, and abstractly express the semantic description of the constituent elements into an ecological protection red line risk knowledge ontology;

[0007] Construct knowledge triples according to the semantics and relational structure rules of the ecological protection red line risk knowledge ontology; organize the knowledge triples through the "graph node-graph edge" graph data structure to form a triple knowledge graph;

[0008] According to the knowledge expression rules and instance data defined in the ecological protection red line risk knowledge ontology, graph nodes and graph edges with time characteristics and spatial characteristics are extracted from the triple knowledge graph, wherein graph nodes are abstractions of entities or attributes, and graph edges are abstractions of first-order relationships between entities; knowledge hypergraph theory is used to define mapping rules of "graph nodes-graph edges" and "hypergraph nodes-hyperedges" based on time characteristics and spatial characteristics;

[0009] The graph nodes and graph edges in the triple knowledge graph are structurally optimized according to the mapping rules of "graph node-graph edge" and "hypergraph node-hyperedge" to obtain a structurally optimized knowledge graph.

[0010] Furthermore, the abstract expression of the semantic description of the constituent elements into an ecological protection red line risk knowledge ontology includes:

[0011] The constituent elements are abstractly expressed as classes. Based on the conceptual semantics and spatiotemporal description semantics of ecological protection red line risk factors, risk formation process and risk assessment process, the class attributes, class relationships and class instance construction rules are defined to form the ecological protection red line risk knowledge ontology.

[0012] Furthermore, the attributes of the class include: time attributes, spatial attributes and thematic attributes; wherein the time attributes include time points, time periods and time series units; the spatial attributes include spatial coordinates, spatial ranges and administrative divisions; the thematic attributes include ecological functions, risk levels and risk grades;

[0013] The relationships include logical relationships and thematic relationships, where logical relationships refer to relationships between classes based on logical reasoning, and thematic relationships refer to relationships specific to the ecological risk field;

[0014] The construction rules are: in, It is a conceptual set of ecological functional unit categories; It is the attribute set of ecological functional unit class; To express a relationship; It is a conceptual set of ecological risk source categories; is the attribute set of ecological risk source class; It is a conceptual set of ecological risk indicators; It is the attribute set of ecological risk indicator class.

[0015] Furthermore, the knowledge triples are constructed according to the semantics and relational structure rules of the ecological protection red line risk knowledge ontology, including:

[0016] Extract from the semantics in the form of <entity, has, attribute> to obtain semantic triples;

[0017] Extract from the relational structure rules in the form of <entity, relation, entity> to obtain relation triples;

[0018] The semantic triples and the relation triples together constitute the knowledge triples.

[0019] Furthermore, the knowledge triples are organized through a "graph node-graph edge" graph data structure to form a triple knowledge graph, including:

[0020] The entities or attributes in the knowledge triples are abstracted as graph nodes, and the first-order relationships are abstracted as graph edges. The graph nodes and graph edges constitute a triple knowledge graph.

[0021] Furthermore, the knowledge hypergraph theory is used to define the mapping rules of “graph node-graph edge” and “hypergraph node-hyperedge” based on temporal and spatial features, including:

[0022] Construct multiple identical graph nodes as a supergraph node;

[0023] A graph node and its adjacent graph nodes connected by graph edges of the same relationship category are constructed as a hyperedge;

[0024] A graph node and its chain-like graph nodes that are progressively connected through graph edges of the same relationship category are constructed as a hyperedge as a whole.

[0025] Furthermore, the structural optimization of graph nodes and graph edges in the triple knowledge graph according to the mapping rules of “graph node-graph edge” and “hypergraph node-hyperedge” includes:

[0026] The triple knowledge graph is organized and stored in a graph database with graph nodes and graph edges;

[0027] Use graph query language to perform global search on triple knowledge graph, and if there are multiple identical graph nodes, merge the identical graph nodes;

[0028] Taking a certain graph node in the triple knowledge graph as the center, search for adjacent graph nodes connected by graph edges of the same relationship category and merge adjacent graph nodes;

[0029] Starting from a certain graph node in the triple knowledge graph, the related graph nodes are retrieved. If they are connected through graph edges of the same category relationship, the retrieval is continued starting from the related graph node, and the above graph nodes and graph edges are organized in the form of subgraphs.

[0030] In a second aspect of the present invention, a device for optimizing the ecological protection red line risk knowledge graph structure based on a spatiotemporal hypergraph is provided. The device comprises:

[0031] An ontology expression module is used to obtain a knowledge data source in the field of ecological protection red line area risks, analyze the constituent elements of the knowledge system in the field of ecological protection red line area risks based on the knowledge data source, and abstractly express the semantic description of the constituent elements into an ecological protection red line risk knowledge ontology;

[0032] A triple knowledge graph construction module is used to construct knowledge triples according to the semantics and relational structure rules of the ecological protection red line risk knowledge ontology; the knowledge triples are organized through the "graph node-graph edge" graph data structure to form a triple knowledge graph;

[0033] A rule definition module is used to extract graph nodes and graph edges with time characteristics and spatial characteristics from the triple knowledge graph according to the knowledge expression rules and instance data defined in the ecological protection red line risk knowledge ontology, wherein the graph node is an abstraction of an entity or attribute, and the graph edge is an abstraction of a first-order relationship between entities; and to define mapping rules of "graph node-graph edge" and "hypergraph node-hyperedge" based on time characteristics and spatial characteristics using the knowledge hypergraph theory;

[0034] The structure optimization module is used to perform structural optimization on the graph nodes and graph edges in the triple knowledge graph according to the "hypergraph node-hyperedge" modeling rules to obtain a structurally optimized knowledge graph.

[0035] In a third aspect of the present invention, an electronic device is provided. The electronic device has at least one processor; and a memory connected to the at least one processor in communication; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the method of the first aspect of the present invention.

[0036] In a fourth aspect of the present invention, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute the method of the first aspect of the present invention.

[0037] It should be understood that the contents described in the summary of the invention are not intended to limit the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The above and other features, advantages and aspects of the embodiments of the present invention will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:

[0039] Figure 1 A flowchart of a method for optimizing the ecological protection red line risk knowledge graph structure based on a spatiotemporal hypergraph according to an embodiment of the present invention is shown;

[0040] Figure 2 A schematic diagram of the ecological protection red line risk knowledge ontology according to an embodiment of the present invention is shown;

[0041] Figure 3 A schematic diagram of a triple knowledge graph according to an embodiment of the present invention is shown;

[0042] Figure 4 A schematic diagram of constructing a knowledge hypergraph model according to an embodiment of the present invention is shown;

[0043] Figure 5 A block diagram of an ecological protection red line risk knowledge graph structure optimization device based on a spatiotemporal hypergraph according to an embodiment of the present invention is shown;

[0044] Figure 6 A block diagram of an exemplary electronic device capable of implementing embodiments of the present invention is shown;

[0045] Among them, 600 is an electronic device, 601 is a computing unit, 602 is a ROM, 603 is a RAM, 604 is a bus, 605 is an I / O interface, 606 is an input unit, 607 is an output unit, 608 is a storage unit, and 609 is a communication unit. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are 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.

[0047] In addition, the term "and / or" in this article is only a description of the association relationship between the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0048] In the present invention, the spatiotemporal characteristics of the ecological protection red line as a natural geographical system are fully considered, a knowledge hypergraph model that can express and organize high-order relationships such as "one-to-many" and "many-to-many" is constructed, the structure of the existing triple knowledge graph is optimized, and an explicit description of the risk evolution process, cascade and diffusion effects of the ecological protection red line is achieved.

[0049] Figure 1 A flow chart of an ecological protection red line risk knowledge graph structure optimization method based on a spatiotemporal hypergraph according to an embodiment of the present invention is shown.

[0050] The method includes:

[0051] S101. Acquire a knowledge data source in the field of ecological protection red line area risks, analyze constituent elements of the knowledge system in the field of ecological protection red line area risks based on the knowledge data source, and abstractly express the semantic description of the constituent elements as an ecological protection red line risk knowledge ontology.

[0052] The ecological protection red line refers to the spatial boundaries and management limits that need to be strictly protected in terms of natural ecological service functions, environmental quality safety, and natural resource utilization.

[0053] The knowledge data source refers to the knowledge data source in the risk field of ecological protection red line areas, including ecological protection red line monitoring data, ecological risk events, guidance documents, industry standards, etc.

[0054] In this embodiment, the constituent elements of the knowledge system in the field of ecological protection red line area risk refer to ecological function units (Unit), ecological risk sources (Source), and ecological risk indicators (Indicator), which serve as the core classes (concepts) of ontology construction.

[0055] like Figure 2 As shown in the figure, ecological functional units include forest system units, lake system units, and farmland system units; ecological risk sources include meteorological disasters (such as rainstorm disasters, etc.), industrial pollution, geological disasters, etc.; ecological risk indicators include ecological diversity, ecological risk index, vulnerability, etc. Among them, ecological functional units can affect ecological risk sources and ecological risk indicators, and ecological risk sources can affect ecological risk indicators. Ecological functional units, ecological risk sources, and ecological risk indicators together constitute the ecological protection red line risk entity.

[0056] Specifically, the concept set of ecological functional unit classes is defined , the concept set of ecological risk source categories , the concept set of ecological risk indicators , the elements in the collection are instances of this class.

[0057] Furthermore, the constituent elements are abstractly expressed as classes, and based on the conceptual semantics and spatiotemporal description semantics of ecological protection red line risk factors, risk formation process and risk assessment process, the class attributes, class relationships and class instance construction rules are defined to form the ecological protection red line risk knowledge ontology. The class attributes, class relationships and class instance construction rules define its scope and content.

[0058] Through the analysis of the ecological red line risk concept, risk formation and risk assessment process, the defined class attributes include: time attributes, spatial attributes and thematic attributes. Among them, the time attributes include time points, time periods and time series units, the spatial attributes include spatial coordinates, spatial ranges, administrative divisions, etc., and the thematic attributes include ecological functions, risk levels, risk grades, etc.

[0059] The relationship includes a logical relationship Relationship with the topic , where logical relations refer to relations between classes based on logical reasoning (such as influence relations, cause relations, etc.), and thematic relations refer to relations specific to the ecological risk field (such as dependency relations, belonging relations, etc.). The impact relation represents the impact of a risk event on an entity, such as flood → impact → residential area.

[0060] The construction rules are: in, It is a conceptual set of ecological functional unit categories; It is the attribute set of ecological functional unit class; To express a relationship; It is a conceptual set of ecological risk source categories; is the attribute set of ecological risk source class; It is a conceptual set of ecological risk indicators; It is the attribute set of ecological risk indicator class.

[0061] In this embodiment, the property is a semantic description of a class feature, the relationship is a description of a connection between classes, and the instance is the smallest element of a class set.

[0062] S102. Construct knowledge triples according to the semantics and relational structure rules of the ecological protection red line risk knowledge ontology; organize the knowledge triples through the "graph node-graph edge" graph data structure to form a triple knowledge graph.

[0063] In this embodiment, knowledge triples are constructed according to the semantics and relational structure rules of the ecological protection red line risk knowledge ontology, including:

[0064] First, extract the semantics in the form of <entity, has, attribute> to obtain semantic triples;

[0065] Secondly, extract the relation triples from the relation structure rules in the form of <entity, relation, entity>;

[0066] Finally, the semantic triples and the relation triples together constitute the knowledge triples.

[0067] Specifically, based on structured, semi-structured and unstructured ecological red line risk domain knowledge data sources such as monitoring data and document data, prompt logic rules suitable for the LLM model are generated according to the semantics and relational structure rules of the ontology, and knowledge instances of the knowledge ontology classes (concepts), class attributes and relationships are extracted in combination with manual annotation, correction and verification, and knowledge triples are constructed in the form of <entity, has, attribute> and <entity, relationship, entity>.

[0068] like Figure 3 As shown, for example, the triples <heavy rain disaster, has, January 1>, <heavy rain disaster, affects, forest system>, <heavy rain disaster, has, Fengjie County>, <heavy rain disaster, destroys, vegetation>, <forest system, has, Fengjie County>, <forest system, exists, vegetation>, <forest system, indicators, biodiversity>, <vegetation system, has, January 2>, etc.

[0069] The entity of the ecological red line risk knowledge triple <entity, has, attribute> , the relationship of <entity, relationship, entity> .

[0070] In this embodiment, the knowledge triples are organized through the "graph node-graph edge" graph data structure to form a triple knowledge graph, including: abstracting the entities or attributes in the knowledge triples as graph nodes, abstracting the first-order relationships as graph edges, and the graph nodes and graph edges form a triple knowledge graph, which is organized and stored through a graph database such as Neo4j or ArangoDB.

[0071] It can be seen that this embodiment fully analyzes the ecological red line risk field knowledge data sources such as ecological red line monitoring data, ecological risk events, guidance documents, industry standards, etc. from the perspective of ecological field knowledge description. Through the analysis of ecological red line risk concepts, risk formation and risk assessment processes, an ecological red line risk knowledge ontology is constructed with ecological functional units, ecological risk sources and ecological risk indicators as core concepts to meet the risk modeling needs of different types and levels.

[0072] S103. According to the knowledge expression rules and instance data defined in the ecological protection red line risk knowledge ontology, graph nodes and graph edges with time characteristics and spatial characteristics are extracted from the triple knowledge graph, wherein graph nodes are abstractions of entities or attributes, and graph edges are abstractions of first-order relationships between entities; knowledge hypergraph theory is used to define mapping rules of "graph node-graph edge" and "hypergraph node-hyperedge" based on time characteristics and spatial characteristics.

[0073] The hypergraph is a special graph structure consisting of hypergraph nodes. and super edge Each hyperedge can be composed of any number of nodes, which can abstract the mathematical model: in, is a hypergraph; express Hypergraph nodes. Represents m graph nodes.

[0074] In this embodiment, the hypergraph needs to consider spatial and temporal relationships, wherein the spatial relationship is a relationship defined based on geographical location, such as the proximity of distances between ecological functional units, spatial connectivity of risk transmission, etc. The temporal relationship is a relationship that changes over time, such as periodic disaster risk cycles and ecological boundaries that change with climate change.

[0075] In this embodiment, the knowledge hypergraph theory is used to define the "hypergraph node-hyperedge" modeling rules for the association and mapping between entities, attributes, and relationships based on temporal and spatial features, that is, the nodes connected by the attributes of an entity and its first-order relationships are abstracted as a hypergraph node. : in, , Represents any different classes defined; Represents a defined class relationship.

[0076] In this embodiment, the mapping rules of “graph node-graph edge” and “hypergraph node-hyperedge” based on time features and space features are defined by using knowledge hypergraph theory, including:

[0077] Construct multiple identical graph nodes as a supergraph node;

[0078] A graph node and its adjacent graph nodes connected by graph edges of the same relationship category are constructed as a hyperedge;

[0079] A graph node and its chain-like graph nodes that are progressively connected through graph edges of the same relationship category are constructed as a hyperedge as a whole.

[0080] As an embodiment of the present invention, hyperedge types are defined according to the temporal and spatial characteristics of the hypergraph nodes to obtain a knowledge hypergraph model that takes into account the temporal and spatial characteristics. The hyperedge types include risk temporal evolution hyperedges , Risk spatial differentiation hyperedge The obtained knowledge hypergraph model taking into account the temporal and spatial characteristics is: In this embodiment, if Figure 4 As shown, define the hypergraph nodes:

[0081] Node 1: A collection node of rainstorm disasters and attributes such as rainstorm range, rainstorm duration, and rainfall;

[0082] Node 2: a collection node of forest system units and their spatial locations, biological species and other attributes;

[0083] Node 3 is a collection node of biodiversity and diversity index and other attributes;

[0084] Define hyperedges: soil and water loss risk {node 1, node 2}, biological imbalance risk {node 1, node 2, node 3}.

[0085] In this embodiment, from the perspective of optimizing the construction of the knowledge graph, the hypergraph model can directly represent the complex relationships between multiple entities instead of simplifying them into multiple binary relationships. It can provide a more refined description of the risk process, including the interaction of risk factors, risk propagation paths, etc., and provide more accurate risk source identification and propagation pattern mining.

[0086] S104. Structural optimization is performed on graph nodes and graph edges in the triple knowledge graph according to the mapping rules of “graph node-graph edge” and “hypergraph node-hyperedge” to obtain a structurally optimized knowledge graph.

[0087] Specifically, first, the triple knowledge graph is organized and stored in the form of graph nodes and graph edges using a graph database;

[0088] Secondly, use the graph query language to perform a global search on the triple knowledge graph. If there are multiple identical graph nodes, delete or merge them.

[0089] Furthermore, a depth-first search is performed on the triple knowledge graph. Taking a certain graph node as the center, adjacent graph nodes connected by graph edges of the same relationship category are searched out, and adjacent node merging operations are performed to obtain newly added hyperedges.

[0090] Furthermore, a heuristic search is performed on the triple knowledge graph. Starting from a certain graph node, the related graph nodes are retrieved. If they are connected by graph edges of the same category relationship, the retrieval is continued from the related graph node, and the above graph nodes and graph edges are organized in the form of subgraphs.

[0091] By carrying out the above steps simultaneously according to the parallel search mechanism, the structural optimization of the ecological protection red line risk knowledge graph based on the spatiotemporal hypergraph is achieved.

[0092] According to the embodiments of the present invention, 1) from the aspect of ecological field knowledge description, the ecological red line monitoring data, ecological risk events, guidance documents, industry standards and other ecological red line risk field knowledge data sources are fully analyzed, and through the analysis of ecological red line risk concepts, risk formation and risk assessment processes, an ecological red line risk knowledge ontology with ecological functional units, ecological risk sources and ecological risk indicators as core concepts is constructed to meet the risk modeling needs of different types and levels; 2) from the aspect of knowledge graph optimization construction, the hypergraph model can directly represent the complex relationships between multiple entities, rather than simplifying them into multiple binary relationships, and can perform more refined risk process descriptions, including the interaction of risk factors, risk transmission paths, etc., to provide more accurate risk source identification and transmission pattern mining.

[0093] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described order of actions, because according to the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present invention.

[0094] The above is an introduction to a method embodiment. The following is a further explanation of the scheme of the present invention through a device embodiment having the same inventive concept as the method in the aforementioned embodiment.

[0095] like Figure 5 As shown, the device 500 includes:

[0096] The ontology expression module 510 is used to obtain a knowledge data source in the field of ecological protection red line area risk, analyze the constituent elements of the knowledge system in the field of ecological protection red line area risk according to the knowledge data source, and abstractly express the constituent elements and their semantic descriptions as an ecological protection red line risk knowledge ontology;

[0097] A triple knowledge graph construction module 520 is used to construct knowledge triples according to the semantics and relational structure rules of the ecological protection red line risk knowledge ontology; organize the knowledge triples through a "node-edge" graph data structure to form a triple knowledge graph;

[0098] The knowledge hypergraph model construction module 530 is used to extract entities, attributes and relationships with time characteristics and spatial characteristics from the knowledge triples according to the knowledge expression rules and instance data defined in the ecological protection red line risk knowledge ontology; use the knowledge hypergraph theory to define the "hypergraph node-hyperedge" modeling rules for the association and mapping between entities, attributes and relationships based on time characteristics and spatial characteristics, and construct a knowledge hypergraph model that takes into account time and space characteristics;

[0099] The structure optimization module 560 is used to perform "hypergraph node-hyperedge" structure optimization on the triple knowledge graph according to the knowledge hypergraph model taking into account the temporal and spatial characteristics, and generate a structurally optimized ecological protection red line risk knowledge graph.

[0100] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the described module can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0101] In the technical solution of the present invention, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0102] According to an embodiment of the present invention, the present invention further provides an electronic device and a readable storage medium.

[0103] Figure 6 A schematic block diagram of an electronic device 600 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0104] The electronic device 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 602 or a computer program loaded from a storage unit 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 can also be stored. The computing unit 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.

[0105] Multiple components in the electronic device 600 are connected to the I / O interface 605, including: an input unit 606, such as a keyboard, a mouse, etc.; an output unit 607, such as various types of displays, speakers, etc.; a storage unit 608, such as a disk, an optical disk, etc.; and a communication unit 609, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 609 allows the electronic device 600 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0106] The computing unit 601 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 601 performs the various methods and processes described above, such as methods S101 to S104. For example, in some embodiments, methods S101 to S104 may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 608. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 600 via the ROM 602 and / or the communication unit 609. When the computer program is loaded into the RAM 603 and executed by the computing unit 601, one or more steps of the methods S101 to S104 described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to execute methods S101 - S104 in any other appropriate manner (eg, by means of firmware).

[0107] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0108] The program code for implementing the method of the present invention can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.

[0109] In the context of the present invention, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0110] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0111] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0112] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0113] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0114] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for optimizing the ecological protection red line risk knowledge graph structure based on spatiotemporal hypergraph, It is characterized in that include: Acquire a knowledge data source in the field of ecological protection red line regional risk, analyze the constituent elements of the knowledge system in the field of ecological protection red line regional risk based on the knowledge data source, and abstractly express the semantic description of the constituent elements into an ecological protection red line risk knowledge ontology; Construct knowledge triples according to the semantics and relational structure rules of the ecological protection red line risk knowledge ontology; organize the knowledge triples through the "graph node-graph edge" graph data structure to form a triple knowledge graph; According to the knowledge expression rules and instance data defined in the ecological protection red line risk knowledge ontology, graph nodes and graph edges with time characteristics and spatial characteristics are extracted from the triple knowledge graph, where graph nodes are abstractions of entities or attributes, and graph edges are abstractions of first-order relationships between entities; knowledge hypergraph theory is used to define mapping rules of "graph nodes-graph edges" and "hypergraph nodes-hyperedges" based on time characteristics and spatial characteristics; According to the mapping rules of "graph node-graph edge" and "hypergraph node-hyperedge", the graph nodes and graph edges in the triple knowledge graph are structurally optimized to obtain a structurally optimized knowledge graph; The mapping rules between "graph node-graph edge" and "hypergraph node-hyperedge" based on temporal and spatial features are defined by using knowledge hypergraph theory, including: Construct multiple identical graph nodes as a supergraph node; A graph node and its adjacent graph nodes connected by graph edges of the same relationship category are constructed as a hyperedge; A graph node and its chain-like graph nodes that are progressively connected through graph edges of the same relationship category are constructed as a hyperedge; The structural optimization of graph nodes and graph edges in the triple knowledge graph according to the mapping rules of "graph node-graph edge" and "hypergraph node-hyperedge" includes: The triple knowledge graph is organized and stored in a graph database with graph nodes and graph edges; Use graph query language to perform global search on triple knowledge graph, and if there are multiple identical graph nodes, merge the identical graph nodes; Taking a certain graph node in the triple knowledge graph as the center, search for adjacent graph nodes connected by graph edges of the same relationship category and merge adjacent graph nodes; Starting from a certain graph node in the triple knowledge graph, related graph nodes are retrieved. If they are connected by graph edges of the same category relationship, the retrieval is continued starting from the related graph node, and the above graph nodes and graph edges are organized in the form of subgraphs; The abstract expression of the semantic description of the constituent elements into the ecological protection red line risk knowledge ontology includes: The constituent elements are abstractly expressed as classes. Based on the conceptual semantics and spatiotemporal description semantics of ecological protection red line risk factors, risk formation process and risk assessment process, the class attributes, class relationships and class instance construction rules are defined to form the ecological protection red line risk knowledge ontology.

2. The method according to claim 1, It is characterized in that The attributes of the class include: time attributes, spatial attributes and thematic attributes; among which, time attributes include time points, time periods and time series units; spatial attributes include spatial coordinates, spatial ranges and administrative divisions; thematic attributes include ecological functions, risk levels and risk grades; The relationships between the classes include logical relationships and thematic relationships, where logical relationships refer to relationships between classes based on logical reasoning, and thematic relationships refer to relationships specific to the field of ecological risk; The construction rules are: in, It is a conceptual set of ecological functional unit categories; It is the attribute set of ecological functional unit class; To express a relationship; It is a conceptual set of ecological risk source categories; is the attribute set of ecological risk source class; It is a conceptual set of ecological risk indicators; It is the attribute set of ecological risk indicator class.

3. The method according to claim 1, It is characterized in that The knowledge triples are constructed according to the semantics and relational structure rules of the ecological protection red line risk knowledge ontology, including: Extract from the semantics in the form of <entity, has, attribute> to obtain semantic triples; Extract from the relational structure rules in the form of <entity, relation, entity> to obtain relation triples; The semantic triples and the relation triples together constitute the knowledge triples.

4. The method according to claim 3, It is characterized in that The knowledge triples are organized through the "graph node-graph edge" graph data structure to form a triple knowledge graph, including: The entities or attributes in the knowledge triples are abstracted as graph nodes, and the first-order relationships are abstracted as graph edges. The graph nodes and graph edges constitute a triple knowledge graph.

5. An ecological protection red line risk knowledge graph structure optimization device based on spatiotemporal hypergraph, It is characterized in that include: An ontology expression module is used to obtain a knowledge data source in the field of ecological protection red line area risks, analyze the constituent elements of the knowledge system in the field of ecological protection red line area risks based on the knowledge data source, and abstractly express the semantic description of the constituent elements into an ecological protection red line risk knowledge ontology; A triple knowledge graph construction module is used to construct knowledge triples according to the semantics and relational structure rules of the ecological protection red line risk knowledge ontology; the knowledge triples are organized through the "graph node-graph edge" graph data structure to form a triple knowledge graph; A rule definition module is used to extract graph nodes and graph edges with time characteristics and spatial characteristics from the triple knowledge graph according to the knowledge expression rules and instance data defined in the ecological protection red line risk knowledge ontology, wherein the graph node is an abstraction of an entity or attribute, and the graph edge is an abstraction of a first-order relationship between entities; and to define mapping rules of "graph node-graph edge" and "hypergraph node-hyperedge" based on time characteristics and spatial characteristics using the knowledge hypergraph theory; A structure optimization module, used for performing structural optimization on the graph nodes and graph edges in the triple knowledge graph according to the mapping rules of "graph node-graph edge" and "hypergraph node-hyperedge" to obtain a structure-optimized knowledge graph; The mapping rules between "graph node-graph edge" and "hypergraph node-hyperedge" based on temporal and spatial features are defined by using knowledge hypergraph theory, including: Construct multiple identical graph nodes as a supergraph node; A graph node and its adjacent graph nodes connected by graph edges of the same relationship category are constructed as a hyperedge; A graph node and its chain-like graph nodes that are progressively connected through graph edges of the same relationship category are constructed as a hyperedge; The structural optimization of graph nodes and graph edges in the triple knowledge graph according to the mapping rules of "graph node-graph edge" and "hypergraph node-hyperedge" includes: The triple knowledge graph is organized and stored in a graph database with graph nodes and graph edges; Use graph query language to perform global search on triple knowledge graph, and if there are multiple identical graph nodes, merge the identical graph nodes; Taking a certain graph node in the triple knowledge graph as the center, search for adjacent graph nodes connected by graph edges of the same relationship category and merge adjacent graph nodes; Starting from a certain graph node in the triple knowledge graph, related graph nodes are retrieved. If they are connected by graph edges of the same category relationship, the retrieval is continued starting from the related graph node, and the above graph nodes and graph edges are organized in the form of subgraphs; The abstract expression of the semantic description of the constituent elements into the ecological protection red line risk knowledge ontology includes: The constituent elements are abstractly expressed as classes. Based on the conceptual semantics and spatiotemporal description semantics of ecological protection red line risk factors, risk formation process and risk assessment process, the class attributes, class relationships and class instance construction rules are defined to form the ecological protection red line risk knowledge ontology.

6. An electronic device comprising at least one processor; and a memory in communication connection with the at least one processor; It is characterized in that The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 4.

7. A non-transitory computer-readable storage medium storing computer instructions, It is characterized in that The computer instructions are used to make a computer execute the method according to any one of claims 1-4.