Oilfield joint station safety knowledge base construction method and computer equipment

Through knowledge graph technology and natural language processing technology, the emergency plan of the oil field joint station is structured and a safe knowledge base is constructed, which solves the problem of low efficiency of emergency plan management, realizes efficient query and update, and improves the effectiveness of emergency response. sex.

CN114595335BActive Publication Date: 2024-09-27PETROCHINA CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011430634.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-07
Publication Date
2024-09-27
Estimated Expiration
2040-12-07

AI Technical Summary

Technical Problem

The emergency plan of the oilfield joint station is mainly managed through unstructured documents, which results in low query and update efficiency and difficulty in effective management and utilization.

Method used

Knowledge graph technology and natural language processing technology are used to construct a safety knowledge base for oilfield joint stations. By determining the ontology and entities of the knowledge graph, the emergency plan text is structured and a graph database is established to achieve efficient query and update of emergency plans.

Benefits of technology

It improves the efficiency of querying and updating emergency plans, reduces the labor cost of repeated learning, avoids human bias through automatic reasoning functions, and improves the effectiveness of emergency response measures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114595335B
    Figure CN114595335B
Patent Text Reader

Abstract

The present application discloses a method and computer equipment for constructing a safety knowledge base of an oilfield joint station, and belongs to the field of information technology. The present application uses knowledge graph technology and natural language processing technology to structure the unstructured emergency plan text of the oilfield joint station, thereby establishing a safety knowledge base of the oilfield joint station, and realizing the query and update of knowledge based on the constructed knowledge graph, which facilitates the query and update of the emergency plan and improves the query efficiency and update efficiency of the emergency plan.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of information technology, and in particular to a method for constructing a safety knowledge base of an oilfield joint station and computer equipment. Background Art

[0002] The oilfield joint station is the hub for gathering, transporting and processing crude oil in the oilfield. The oilfield joint station has currently formed a large number of emergency plans for a large number of potential risk failures. The current emergency plans are mainly managed through unstructured documents, which makes it very inconvenient to query and update the emergency plans. Summary of the invention

[0003] The embodiment of the present application provides a method for constructing a safety knowledge base of an oilfield joint station and a computer device, which helps to improve the query efficiency and update efficiency of emergency plans. The technical solution is as follows:

[0004] On the one hand, a method for constructing a safety knowledge base of an oilfield joint station is provided, the method being applied to a computer device, the computer device storing an emergency plan text of the oilfield joint station, the method comprising:

[0005] Determine the ontology and entities of the knowledge graph, wherein the ontology of the knowledge graph includes equipment, phenomena, risks and measures. The equipment included in the ontology describes the subject where abnormal working conditions occur, the phenomena included in the ontology describe the parameter changes monitored by the equipment, the risks included in the ontology describe the problems and failures that may be caused, and the measures included in the ontology describe the countermeasures that need to be taken to solve the abnormal working conditions. The entities of the knowledge graph include equipment entities, phenomenon entities, risk entities and measure entities. The equipment entities include three-phase separators, deoilers, lift pumps and settling tanks. The phenomenon entity refers to a specific abnormal phenomenon that may occur in a device, the risk entity refers to a specific failure and risk caused by an abnormal phenomenon in a device, and the measure entity refers to a specific emergency measure and operation taken for an abnormal working condition;

[0006] According to the ontology and entities of the knowledge graph, a natural language processing operation is performed on the stored text of the emergency plan of the oilfield joint station, thereby extracting emergency plan knowledge from the text of the emergency plan of the oilfield joint station, wherein the emergency plan knowledge includes entities of the knowledge graph, relationships between entities, and attributes of entities;

[0007] Performing a knowledge fusion operation on the emergency plan knowledge to obtain fused emergency plan knowledge;

[0008] Storing the fused emergency plan knowledge in a graph database;

[0009] The emergency plan is queried and updated based on the graph database.

[0010] In some embodiments, performing a knowledge fusion operation on the emergency plan knowledge to obtain fused emergency plan knowledge includes:

[0011] An entity alignment operation and an entity disambiguation operation are performed on the emergency plan knowledge.

[0012] In some embodiments, querying and updating the emergency plan based on the graph database includes:

[0013] An entity query request sent by a receiving terminal includes an entity identifier of an entity to be queried in the knowledge graph;

[0014] Querying the graph database using the entity identifier as an index, and generating an entity query response according to the queried entity, wherein the entity query response includes the queried entity;

[0015] The entity query response is sent to the terminal.

[0016] In some embodiments, querying and updating the emergency plan based on the graph database includes:

[0017] Receiving a relationship query request sent by a terminal, wherein the relationship query request includes identifiers of multiple entities in the knowledge graph;

[0018] Querying the graph database using the identifiers of the multiple entities as indexes to query the relationships between the multiple entities, and generating a relationship query response based on the queried relationships, wherein the relationship query response includes the queried relationships;

[0019] The relationship query response is sent to the terminal.

[0020] In some embodiments, querying and updating the emergency plan based on the graph database includes:

[0021] Receiving an attribute query request sent by a terminal, the attribute query request including an attribute identifier of an attribute to be queried in the knowledge graph and an entity identifier of an entity to which the attribute belongs;

[0022] Querying the graph database with the attribute identifier and the entity identifier index, generating an attribute query response according to the queried attributes, wherein the attribute query response includes the queried attributes;

[0023] The attribute query response is sent to the terminal.

[0024] In some embodiments, querying and updating the emergency plan based on the graph database includes:

[0025] receiving a knowledge expansion request sent by a terminal, wherein the knowledge expansion request includes a newly added emergency plan;

[0026] According to the newly added emergency plan, newly added entities, newly added relationships, and newly added attributes are obtained;

[0027] The newly added entities, the newly added relationships, and the newly added attributes are stored in the graph database.

[0028] In some embodiments, querying and updating the emergency plan based on the graph database includes:

[0029] receiving a knowledge update request sent by a terminal, wherein the knowledge update request includes an updated emergency plan;

[0030] According to the updated emergency plan, obtaining updated entities, updated relationships, and updated attributes;

[0031] According to the updated entities, the updated relationships and the updated attributes, the entities, relationships and attributes stored in the graph database are updated respectively.

[0032] In some embodiments, after storing the fused emergency plan knowledge in a graph database, the method further includes:

[0033] At preset time intervals, the emergency plan knowledge stored in the graph database is pushed to the terminals that have subscribed to the emergency plan knowledge.

[0034] In some embodiments, after storing the fused emergency plan knowledge in a graph database, the method further includes:

[0035] Generate a knowledge graph interface based on the entities, relationships and attributes in the integrated emergency plan knowledge, where the elements in the knowledge graph interface are entities, relationships or attributes;

[0036] The knowledge graph interface is displayed on the screen.

[0037] On the other hand, a computer device is provided, which includes one or more processors and one or more memories, wherein at least one computer program is stored in the one or more memories, and the at least one computer program is loaded and executed by the one or more processors to implement the above-mentioned oilfield joint station safety knowledge base construction method or various optional implementation methods of the oilfield joint station safety knowledge base construction method.

[0038] On the other hand, a computer-readable storage medium is provided, in which at least one computer program is stored. The at least one computer program is loaded and executed by a processor to implement the above-mentioned oilfield joint station safety knowledge base construction method or various optional implementation methods of the oilfield joint station safety knowledge base construction method.

[0039] On the other hand, a computer program product or a computer program is provided, the computer program product or the computer program includes a program code, the program code is stored in a computer-readable storage medium. A processor of a computer device reads the program code from the computer-readable storage medium, and the processor executes the program code, so that the computer device executes the above-mentioned oilfield joint station safety knowledge base construction method or various optional implementations of the oilfield joint station safety knowledge base construction method.

[0040] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:

[0041] The method provided in the embodiment of the present application uses knowledge graph technology and natural language processing technology to structure the unstructured oilfield joint station emergency plan text, thereby establishing an oilfield joint station safety knowledge base, and realizing knowledge query and update based on the constructed knowledge graph, which facilitates the query and update of emergency plans and improves the query efficiency and update efficiency of emergency plans. In particular, the introduction of knowledge graph technology enables the station and library safety knowledge to be passed on in a more intelligent way, reducing the labor cost caused by repeated learning. At the same time, the automatic reasoning function of the knowledge graph enables the diagnosis and treatment of emergency conditions to avoid the influence of human bias and improves the effectiveness of emergency treatment measures. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0043] Figure 1 It is a flow chart of a method for constructing a safety knowledge base of an oilfield joint station provided in an embodiment of the present application;

[0044] Figure 2 It is a flowchart of a method for constructing a safety knowledge base of an oilfield joint station based on knowledge graph technology provided in an embodiment of the present application;

[0045] Figure 3 It is a flowchart of a process of building an oilfield safety knowledge base provided by an embodiment of the present application;

[0046] Figure 4 It is a structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0047] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0048] The following is an introduction to some terminology-related concepts involved in the embodiments of the present application.

[0049] Knowledge graph: It aims to describe various entities or concepts and their relationships in the real world. It forms a huge semantic network diagram, where nodes represent entities or concepts and edges are composed of attributes or relationships. The knowledge graph is constructed from the most original data (including structured, semi-structured, and unstructured data), using a series of automatic or semi-automatic technical means to extract knowledge facts from the original database and third-party database, and store them in the data layer and model layer of the knowledge base. This process includes four processes: information extraction, knowledge representation, knowledge fusion, and knowledge reasoning. Each update iteration includes these four stages.

[0050] Entity: refers to something that is distinguishable and exists independently, such as a person, a city, a plant, a commodity, etc. Entity is the most basic element in the knowledge graph, and different entities have different relationships.

[0051] Node: represents an entity record, similar to a record in a relational database. A node contains multiple attributes and labels.

[0052] Relationship: Used to connect nodes to form a graph. Relationship is also called edge in graph theory.

[0053] Attributes: Both nodes and relationships can have multiple attributes, which consist of key-value pairs.

[0054] Knowledge extraction: For unstructured text data, the extracted knowledge includes entities, relationships, and attributes. There are three corresponding research issues. The first is entity extraction, also known as named entity recognition. The entities here include concepts, people, organizations, place names, time, etc. The second is relationship extraction, that is, the relationship between entities, which is also important knowledge in the text. Certain technical means are needed to extract relationship information. The third is attribute extraction, that is, the attribute information of the entity, which is similar to the relationship. The relationship reflects the external connection of the entity, and the attribute reflects the internal characteristics of the entity.

[0055] Knowledge fusion: Simply put, it is the process of integrating knowledge from multiple knowledge bases to form a knowledge base. In this process, the main problem that needs to be solved is entity alignment. Different knowledge bases have different focuses on collecting knowledge. For the same entity, some knowledge bases may focus on describing a certain aspect of the entity itself, while others may focus on describing the relationship between the entity and other entities. The purpose of knowledge fusion is to integrate the descriptions of entities from different knowledge bases to obtain a complete description of the entity.

[0056] Knowledge reasoning: Knowledge reasoning is to obtain new knowledge or conclusions based on existing data models and data and according to reasoning rules. The new knowledge or conclusions should satisfy semantics.

[0057] See attached Figure 1 , attached Figure 1 Attached is a flow chart of a method for constructing a safety knowledge base of an oilfield joint station provided in an embodiment of the present application. Figure 1 The method shown is applied to a computer device, which stores an emergency plan text of an oilfield joint station.

[0058] For example, Figure 1 The method shown includes steps S110 to S150.

[0059] Step S110, determine the ontology and entities of the knowledge graph.

[0060] The ontology of the knowledge graph includes equipment, phenomena, risks, and measures.

[0061] The equipment included in the ontology describes the subject where the abnormal working condition occurs, the phenomena included in the ontology describe the changes in parameters monitored by the equipment, the risks included in the ontology describe the possible problems and failures, and the measures included in the ontology describe the countermeasures that need to be taken to resolve the abnormal working condition.

[0062] The entities of the knowledge graph include equipment entities, phenomenon entities, risk entities and measure entities. Equipment entities include three-phase separators, oil removers, lift pumps and settling tanks. Phenomenon entities refer to specific abnormal phenomena that may occur in a device. Risk entities refer to specific failures and risks caused by abnormal phenomena in a device. Measure entities refer to specific emergency measures and operations taken for an abnormal operating condition.

[0063] Step S120: Perform natural language processing operations on the stored oilfield joint station emergency plan text according to the ontology and entities of the knowledge graph, thereby extracting emergency plan knowledge from the oilfield joint station emergency plan text. The emergency plan knowledge includes entities of the knowledge graph, relationships between entities, and attributes of entities.

[0064] Step S130: perform a knowledge fusion operation on the emergency plan knowledge to obtain fused emergency plan knowledge.

[0065] Step S140: Store the integrated emergency plan knowledge in the graph database.

[0066] Step S150: query and update the emergency plan based on the graph database.

[0067] In some embodiments, performing a knowledge fusion operation on the emergency plan knowledge to obtain fused emergency plan knowledge includes:

[0068] Perform entity alignment and entity disambiguation operations on emergency plan knowledge.

[0069] In some embodiments, querying and updating the emergency plan based on the graph database includes:

[0070] An entity query request sent by a receiving terminal includes an entity identifier of an entity to be queried in the knowledge graph; the entity query request is used to request a query for an entity in the knowledge graph.

[0071] The graph database is queried using the entity identifier as an index, and an entity query response is generated according to the queried entity, wherein the entity query response includes the queried entity;

[0072] Send an entity query response to the endpoint.

[0073] The terminal receives the entity query response, and the entity query response obtains the queried entity, thereby accurately querying the equipment, phenomena, risks and measures.

[0074] In some embodiments, querying and updating the emergency plan based on the graph database includes:

[0075] A relationship query request sent by the receiving terminal includes identifiers of multiple entities in the knowledge graph; the relationship query request is used to request a query on the relationship between different entities in the knowledge graph.

[0076] Using the identifiers of the multiple entities as indexes to query the graph database, query the relationships between the multiple entities, and generate a relationship query response based on the queried relationships, wherein the relationship query response includes the queried relationships;

[0077] Send a relationship query response to the endpoint.

[0078] In some embodiments, querying and updating the emergency plan based on the graph database includes:

[0079] An attribute query request sent by a receiving terminal includes an attribute identifier of an attribute to be queried in the knowledge graph and an entity identifier of an entity to which the attribute belongs;

[0080] The graph database is queried by indexing the attribute identifier and the entity identifier, and an attribute query response is generated according to the queried attributes. The attribute query response includes the queried attributes; the attribute query request is used to request to query the attributes of the entities in the knowledge graph.

[0081] Send an attribute query response to the endpoint.

[0082] In some embodiments, querying and updating the emergency plan based on the graph database includes:

[0083] receiving a knowledge expansion request sent by a terminal, the knowledge expansion request including a newly added emergency plan;

[0084] According to the newly added emergency plan, obtain the newly added entities, newly added relationships and newly added attributes;

[0085] Store the newly added entities, newly added relationships, and newly added attributes in the graph database.

[0086] In some embodiments, querying and updating the emergency plan based on the graph database includes:

[0087] receiving a knowledge update request sent by a terminal, the knowledge update request including an updated emergency plan;

[0088] According to the updated emergency plan, updated entities, updated relationships, and updated attributes are obtained;

[0089] According to the updated entities, updated relationships and updated attributes, the entities, relationships and attributes stored in the graph database are updated respectively.

[0090] In some embodiments, after storing the integrated emergency plan knowledge in the graph database, the method further includes:

[0091] At preset time intervals, the emergency plan knowledge stored in the graph database is pushed to the terminals that have subscribed to the emergency plan knowledge.

[0092] In this way, the intelligent push of the oilfield joint station safety knowledge base is realized.

[0093] In some embodiments, after storing the integrated emergency plan knowledge in the graph database, the method further includes:

[0094] Generate a knowledge graph interface based on the entities, relationships and attributes in the integrated emergency plan knowledge, where the elements in the knowledge graph interface are entities, relationships or attributes;

[0095] Display the knowledge graph interface on the screen.

[0096] In this way, the visualization of the safety knowledge base of the oilfield joint station is achieved.

[0097] This application proposes a method for constructing a safety knowledge base for an oilfield joint station based on knowledge graph technology. By using knowledge graph technology, unstructured emergency plan documents are structured to establish a safety knowledge base for an oilfield joint station, which can realize accurate query and intelligent push of various emergency plans.

[0098] The overall flow chart of this application is as follows Figure 2 As shown. The purpose of this application includes: using natural language processing technology to extract and annotate the text of the oilfield joint station emergency plan, structuring the knowledge, and building an oilfield joint station safety knowledge base based on knowledge graph technology. The introduction of knowledge graph technology enables knowledge to be passed on in a more intelligent way, reducing the labor cost caused by repeated learning. At the same time, the automatic reasoning function of the knowledge graph enables the diagnosis and treatment of emergency conditions to avoid the influence of human bias and improves the effectiveness of emergency response measures.

[0099] The overall technical solution of this application is as follows Figure 3 The main contents are to establish a knowledge system for station security, extract and annotate text, update knowledge, and finally realize the application of knowledge.

[0100] Emergency plan knowledge system: mainly determines the ontology and entities of emergency plan knowledge, and determines the basic information such as the relationship and attributes between entities.

[0101] Knowledge extraction: Extract knowledge from unstructured emergency plan documents, use natural language processing technology to annotate and extract knowledge from the text, and extract four types of knowledge: equipment information, phenomena, risks, and measures.

[0102] Knowledge fusion: The extracted emergency plan knowledge is integrated, and operations such as entity alignment and disambiguation are performed to determine the final knowledge ontology and update the knowledge.

[0103] Knowledge graph construction: Use Neo4j and other graph databases to build a knowledge graph of station emergency plans to achieve visualization of the knowledge base.

[0104] Knowledge application: Realize the retrieval and fusion application of knowledge based on the constructed knowledge graph.

[0105] The main application effects of this application include:

[0106] 1) Using natural language processing technology to annotate and extract knowledge from unstructured texts such as emergency plans, improving the level of knowledge management;

[0107] 2) The knowledge system of emergency plan for oilfield joint stations was constructed, and the ontology and entity construction methods of the knowledge graph were determined;

[0108] 3) The knowledge management process of the emergency plan of the oilfield joint station was determined to facilitate the expansion and improvement of knowledge in the future.

[0109] Each step in the above method is further described in detail as follows:

[0110] 1) Establish an emergency plan knowledge system for oilfield joint stations.

[0111] Constructing the knowledge graph system of the station emergency plan mainly involves determining the ontology and entities of the knowledge graph.

[0112] The main body includes:

[0113] Equipment: Describes the subject where the abnormal condition occurs.

[0114] Phenomenon: Describes changes in parameters monitored by the device.

[0115] Risks: Describe the problems and failures that may result.

[0116] Action: Describe the actions that need to be taken to resolve abnormal conditions.

[0117] Entities include:

[0118] Equipment: Three-phase separators, oil removers, lift pumps, sedimentation tanks and other production equipment within the oilfield joint station are all equipment entities.

[0119] Phenomenon: refers to the specific abnormal phenomenon that may occur in a device.

[0120] Risk: Specific failures and risks caused by abnormal phenomena in a certain equipment.

[0121] Measures: Specific emergency measures and operations taken in response to an abnormal operating condition.

[0122] 2) Knowledge extraction:

[0123] Business experts, in accordance with the determined emergency plan knowledge system, annotate the emergency plan text, extract entity information from it, and determine the entity's attributes, relationships, and other information.

[0124] 3) Knowledge fusion process:

[0125] Users can perform entity alignment, disambiguation and other operations based on the extracted knowledge content, and evaluate the quality of knowledge nodes. Knowledge can be expanded and updated based on new emergency plans.

[0126] 4) Knowledge application process:

[0127] Add knowledge nodes to the entity knowledge nodes of the Neo4j graph database, and gradually expand to cover all emergency plan knowledge. At the same time, based on the Neo4j graph database, emergency plan knowledge can be accurately queried and retrieved, and corresponding interfaces can be developed based on the knowledge graph to meet the needs of information system integration.

[0128] Figure 4 It is a structural diagram of a computer device provided in an embodiment of the present application. The computer device 400 may have relatively large differences due to different configurations or performances, and may include one or more processors (Central Processing Units, CPU) 401 and one or more memories 402, wherein the memory 402 stores at least one computer program, and the at least one computer program is loaded and executed by the processor 401 to implement the oilfield joint station security knowledge base construction method provided in the above-mentioned various method embodiments. Of course, the computer device may also have components such as wired or wireless network interfaces and input and output interfaces for input and output, and the computer device may also include other components for realizing device functions, which will not be repeated here.

[0129] In an exemplary embodiment, a computer-readable storage medium is also provided, such as a memory including at least one computer program, and the at least one computer program is executable by a processor to complete the oilfield joint station security knowledge base construction method in the above embodiment. For example, the computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, etc.

[0130] In an exemplary embodiment, a computer program product or a computer program is also provided, the computer program product or the computer program includes a program code, the program code is stored in a computer-readable storage medium. A processor of a computer device reads the program code from the computer-readable storage medium, and the processor executes the program code, so that the computer device executes the above-mentioned oilfield joint station safety knowledge base construction method.

[0131] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0132] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0133] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present application should be included in the protection scope of the present application.

Claims

1. A method for constructing a safety knowledge base for an oilfield joint station. It is characterized in that The method is applied to a computer device, wherein the computer device stores an emergency plan text of an oilfield joint station, and the method comprises: Determine the ontology and entities of the knowledge graph, wherein the ontology of the knowledge graph includes equipment, phenomena, risks and measures. The equipment included in the ontology describes the subject where abnormal working conditions occur, the phenomena included in the ontology describe the parameter changes monitored by the equipment, the risks included in the ontology describe the problems and failures that may be caused, and the measures included in the ontology describe the countermeasures that need to be taken to solve the abnormal working conditions. The entities of the knowledge graph include equipment entities, phenomenon entities, risk entities and measure entities. The equipment entities include three-phase separators, deoilers, lift pumps and settling tanks. The phenomenon entity refers to a specific abnormal phenomenon that may occur in a device, the risk entity refers to a specific failure and risk caused by an abnormal phenomenon in a device, and the measure entity refers to a specific emergency measure and operation taken for an abnormal working condition; According to the ontology and entities of the knowledge graph, a natural language processing operation is performed on the stored text of the emergency plan of the oilfield joint station, thereby extracting emergency plan knowledge from the text of the emergency plan of the oilfield joint station, wherein the emergency plan knowledge includes entities of the knowledge graph, relationships between entities, and attributes of entities; Performing a knowledge fusion operation on the emergency plan knowledge to obtain fused emergency plan knowledge; Storing the fused emergency plan knowledge in a graph database; Query and update the emergency plan based on the graph database; The querying and updating of the emergency plan based on the graph database includes any one of the following situations: Receive an entity query request sent by a terminal, the entity query request including an entity identifier of an entity to be queried in the knowledge graph; query the graph database using the entity identifier as an index, generate an entity query response based on the queried entity, the entity query response including the queried entity; send the entity query response to the terminal; Receiving a relationship query request sent by a terminal, the relationship query request includes identifiers of multiple entities in the knowledge graph; querying the graph database with the identifiers of the multiple entities as indexes, querying the relationships between the multiple entities, generating a relationship query response based on the queried relationships, the relationship query response includes the queried relationships; and sending the relationship query response to the terminal; Receive an attribute query request sent by a terminal, the attribute query request including an attribute identifier of an attribute to be queried in the knowledge graph and an entity identifier of an entity to which the attribute belongs; query the graph database with the attribute identifier and the entity identifier index, generate an attribute query response according to the queried attribute, the attribute query response including the queried attribute; send the attribute query response to the terminal; Receiving a knowledge expansion request sent by a terminal, the knowledge expansion request including a newly added emergency plan; acquiring a newly added entity, a newly added relationship, and a newly added attribute according to the newly added emergency plan; and storing the newly added entity, the newly added relationship, and the newly added attribute in the graph database; A knowledge update request sent by a receiving terminal, wherein the knowledge update request includes an updated emergency plan; based on the updated emergency plan, updated entities, updated relationships, and updated attributes are obtained; and based on the updated entities, the updated relationships, and the updated attributes, the entities, relationships, and attributes stored in the graph database are updated respectively.

2. The method according to claim 1, It is characterized in that The performing of a knowledge fusion operation on the emergency plan knowledge to obtain fused emergency plan knowledge includes: An entity alignment operation and an entity disambiguation operation are performed on the emergency plan knowledge.

3. The method according to claim 1, It is characterized in that After storing the fused emergency plan knowledge in the graph database, the method further includes: At preset time intervals, the emergency plan knowledge stored in the graph database is pushed to the terminals that have subscribed to the emergency plan knowledge.

4. The method according to claim 1, It is characterized in that After storing the fused emergency plan knowledge in the graph database, the method further includes: Generate a knowledge graph interface based on the entities, relationships and attributes in the integrated emergency plan knowledge, where the elements in the knowledge graph interface are entities, relationships or attributes; The knowledge graph interface is displayed on the screen.

5. A computer device, It is characterized in that The computer device includes one or more processors and one or more memories, wherein at least one computer program is stored in the one or more memories, and the at least one computer program is loaded and executed by the one or more processors to implement the method for constructing a safety knowledge base of an oilfield joint station as described in any one of claims 1 to 4.