Electric power safety knowledge graph construction method and device, electronic equipment and storage medium
By building a power safety knowledge graph, the problem that traditional power knowledge management methods cannot meet the power safety knowledge management needs is solved, and efficient management and unified expression of power safety knowledge is achieved, providing intelligent security guarantees for power enterprises.
Patent Information
- Application Number
- CN202411305872.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-19
- Publication Date
- 2024-12-20
AI Technical Summary
Traditional power knowledge management methods cannot meet the management needs of power safety knowledge, resulting in reduced grid work efficiency and increased complexity, making it difficult to effectively manage the safety knowledge of power systems.
By obtaining power safety data, processing and building a power safety knowledge graph including concept layer, object layer, state layer and relationship layer, unified expression of power safety knowledge models, processing structured, semi-structured and unstructured data, and realizing knowledge Effectively organize and manage.
It has improved the management efficiency of power safety knowledge, provided intelligent guarantees for power enterprises' production safety, equipment safety and safety education, and effectively processed and organized scattered and diversified data in the field of power safety.
Smart Images

Figure CN119168034A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of knowledge graph construction, and in particular to a method, device, electronic device and storage medium for constructing an electric power safety knowledge graph. Background Art
[0002] The power industry is a basic industry. Whether power production is safe or not is not only related to the benefits and development of the enterprise itself, but also affects the stability of the entire society, economic development and the normal life of the people. Therefore, safe production is the top priority of power companies. Doing a good job in safety knowledge education for production personnel is the premise for ensuring safe production and an important measure to ensure the safety and health of operators during the production process.
[0003] However, with the rapid development of the power system, the knowledge system in the power field has increasingly shown a trend of openness, flatness, and blurred boundaries, which has further aggravated the complexity of intelligent cognition in the power system. Traditional power knowledge management methods cannot meet the management needs of power safety knowledge, thereby reducing the efficiency of power grid work. Summary of the invention
[0004] The present invention provides a method, device, electronic device and storage medium for constructing an electric power safety knowledge graph, which obtains electric power safety data and establishes an electric power safety knowledge graph including a concept layer, an object layer, a state layer and a relationship layer based on the electric power safety data to improve the management efficiency of electric power safety knowledge.
[0005] According to one aspect of the present invention, a method for constructing an electric power safety knowledge graph is provided, the method comprising:
[0006] Acquiring power safety data, and processing the power safety data to determine a target power safety data file, wherein the power safety data includes structured data, semi-structured data, and unstructured data;
[0007] Determine a graph structure hierarchy corresponding to the target power safety data file, and establish the power safety knowledge graph according to the graph structure hierarchy and the target power safety data file, wherein the graph structure hierarchy includes a concept layer, an object layer, a state layer, and a relationship layer.
[0008] According to another aspect of the present invention, a device for constructing a power safety knowledge graph is provided, the device comprising:
[0009] A data processing module, used to obtain power safety data and process the power safety data to determine a target power safety data file, wherein the power safety data includes structured data, semi-structured data and unstructured data;
[0010] A graph construction module is used to determine the graph structure hierarchy corresponding to the target power safety data file, and establish the power safety knowledge graph according to the graph structure hierarchy and the target power safety data file, wherein the graph structure hierarchy includes a concept layer, an object layer, a state layer and a relationship layer.
[0011] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0012] at least one processor; and
[0013] a memory communicatively connected to the at least one processor; wherein,
[0014] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for constructing an electric power safety knowledge graph described in any embodiment of the present invention.
[0015] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for constructing an electric power safety knowledge graph described in any embodiment of the present invention when executed.
[0016] The technical solution of the embodiment of the present invention obtains power safety data, processes the power safety data, determines the target power safety data file, and then determines the graph structure level corresponding to the target power safety data file, and establishes the power safety knowledge graph according to the graph structure level and the target power safety data file. Based on the above technical solution, the power safety knowledge representation model is divided from top to bottom into the concept layer, object layer, state layer and relationship layer, and then the basic components and relationships of the power safety knowledge model are uniformly expressed through the power safety knowledge graph, and the scattered distribution of power safety knowledge and the data with diverse structures are effectively processed and organized, providing more intelligent protection for the production safety, equipment safety and safety education of power enterprises.
[0017] It should be understood that the contents described in this section are not intended to identify 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
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, 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 invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0019] Figure 1 It is a flow chart of a method for constructing a power safety knowledge graph provided by an embodiment of the present invention;
[0020] Figure 2 It is a schematic diagram of the structure of the power safety knowledge graph provided by an embodiment of the present invention;
[0021] Figure 3 It is a structural block diagram of a device for constructing a power safety knowledge graph provided by an embodiment of the present invention;
[0022] Figure 4 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0023] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme 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 only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0025] Embodiment 1
[0026] Figure 1This is a flow chart of a method for constructing a power safety knowledge graph provided by an embodiment of the present invention. This embodiment is applicable to the case where a power safety knowledge graph including a concept layer, an object layer, a state layer and a relationship layer is constructed based on power safety data. The method can be executed by a power safety knowledge graph construction device, which can be implemented in the form of hardware and / or software. The power safety knowledge graph construction device can be configured in an electronic device, which can be a terminal device or a server, etc. Figure 1 As shown, the method includes:
[0027] S110: Acquire power safety data, and process the power safety data to determine a target power safety data file.
[0028] Among them, power safety data can be understood as safety data used to regulate the operation of the power system. For example, power safety data includes: power knowledge engineering system, expert experience knowledge base, power standard data, power experience data, and it should be noted that power safety data includes structured data, semi-structured data and unstructured data. The target power safety data file can be a structured data file obtained after knowledge extraction of power safety data. The target power safety data file can include key entity information corresponding to the current power safety data, such as equipment, personnel, location, event, cause, impact, etc.
[0029] Specifically, power safety data may be collected from various data sources, including structured (such as database records), semi-structured (such as JSON, XML files) and unstructured (such as text reports, PDF documents) data. Exemplarily, power safety data may be obtained from internal data sources or external data sources, such as by periodically or in real time capturing data from various systems through API interfaces, database queries, etc. Non-digital data, such as paper reports, need to be manually entered or scanned and converted into electronic format.
[0030] It should be noted that since the safety knowledge in the power field is widely derived from structured data such as traditional power knowledge engineering systems, expert experience knowledge bases, and semi- / unstructured data such as power standards, systems, laws, regulations, and the experience of experts and technicians, it involves multiple business fields. Therefore, its knowledge can also be divided into two parts according to the degree of reuse: general knowledge and special knowledge. For example, information such as power safety regulations, safety accident handling, and fire emergency response are in demand in multiple business fields such as production, dispatching, and operation and inspection, which are called general knowledge in the power safety field; while safety knowledge in the fields of electrical safety equipment, special operations, and operating specifications is relatively special, and appears relatively single in business fields such as production, dispatching, and operation and inspection, and is identified as special knowledge in the power safety field. However, the boundary between general knowledge and special knowledge in the power safety field is often blurred. In actual operation, statistical analysis is required based on actual business to determine the boundary between general and special knowledge. Drawing on the knowledge representation case of the open domain knowledge graph, the knowledge ontology in the power field mainly includes entities, concepts, relationships, attributes, attribute values, functions, and constraints.
[0031] On the basis of the above technical solution, the processing of the power safety data to determine the target power safety data file includes: determining a data structure type corresponding to the power safety data, and determining the target power safety data file according to the data structure type.
[0032] The data structure type may be the structure type of the current power safety data, which is used to indicate whether the current power safety data is structured data.
[0033] Specifically, the collected power safety data is analyzed to identify its data structure type, such as structured data. Structured data is usually stored in relational database tables with clear row and column structures, such as equipment parameter tables, fault record tables, etc.; semi-structured data, such as JSON, XML and other formats, have a certain structure but are not as strict as structured data; unstructured data, such as text files, PDF reports, images, videos, etc., and then after determining the structure type corresponding to the power safety data, the corresponding data processing method is determined according to the structure type.
[0034] On the basis of the above technical solution, the determining the target power safety data file according to the data structure type includes: when the data structure type is structured data, standardizing the power safety data to determine the target power safety data file.
[0035] Specifically, the structured data is cleaned to remove duplicate, erroneous, missing and irrelevant data, and then after preliminary processing of the data, the processed data is standardized, such as unifying the date and time format, numerical format and text format of the power safety data, and then generating a target power safety data file based on the standardized data. The target power safety data file can be one or more structured data files, such as CSV, Excel files or database files, which contain standardized, cleaned and aggregated power safety data.
[0036] Based on the above technical solution, the target power safety data file is determined according to the data structure type, including: when the data structure type is unstructured data or semi-structured data, natural language processing is performed on the power safety data to obtain a target power safety data file corresponding to the power safety data.
[0037] Specifically, when it is determined that the current power safety data is unstructured data or semi-structured data, the unstructured or semi-structured data is first preprocessed. Irrelevant characters, punctuation marks, and stop words are removed through text cleaning, and the text is segmented into words, phrases, or sentences, and then the part of speech (such as noun, verb, adjective, etc.) is labeled for each word. After the preprocessing is completed, the named entity recognition technology in natural language processing is used to identify entities related to power safety from the text, such as equipment name, fault type, location name, etc. After the entity is identified, the relationship between the entities is further extracted. For example, the fault time and location of the current power equipment, etc. After the information extraction is completed, the extracted data is structured, for example, it is converted into a JSON object. It should be noted that the structured data should contain key information related to power safety, such as equipment ID, fault type, occurrence time, location, impact range, etc., and then based on the structured data, a target power safety data file is generated. The target power safety data file can be one or more files, such as CSV, Excel files or JSON files, which contain power safety information extracted and structured from unstructured or semi-structured data.
[0038] S120. Determine a graph structure level corresponding to the target power safety data file, and establish the power safety knowledge graph according to the graph structure level and the target power safety data file.
[0039] Among them, the graph structure levels include concept layer, object layer, state layer and relationship layer.
[0040] Specifically, knowledge representation is the basis and premise for knowledge application. From the perspective of the hierarchical framework, the power safety knowledge representation model is divided into four levels from top to bottom: concept layer, object layer, state layer and relationship layer. The concept layer is mainly used to express the concept description in the power safety knowledge system; the object layer is used to express the components of the power safety knowledge system, including specific production enterprises, production personnel, power facilities, etc.; the state layer includes the operation of equipment, whether safety knowledge is followed, and the accident handling caused by non-compliance; the relationship layer is used to express the relationship type in the power safety knowledge representation model. The basic components and their relationships of the power safety knowledge model are uniformly expressed through the concept layer, object layer, state layer and relationship layer.
[0041] like Figure 2 As shown in the figure, the concept layer mainly describes the concept classification system of power safety knowledge. The concept classification system includes various categories: safety regulations, accident handling, safety of electrical safety equipment, operating specifications and fire emergency safety, etc. Among them, safety regulations include: Work Safety Law, Electricity Law, Electricity Facility Protection Regulations, etc., and also include common sense of work safety, safety colors and safety signs, fire safety and emergency safety knowledge, etc. The knowledge in the concept layer exists independently in the form of nodes, and there are semantic relationships between different concepts.
[0042] According to the conceptual classification system of power safety knowledge, power safety knowledge is composed of many independent objects, so power safety knowledge can be represented from different angles. Safety regulations guide the production process of the entire power enterprise, and the objects include production enterprises and production personnel; at the same time, there are different safety rules and requirements for different electrical safety equipment; any safety accident will involve accident personnel and power equipment; there are also corresponding fire emergency plans, which constitute the objects of power safety knowledge. Let E be the subject of power safety knowledge, O be the object related to safety knowledge, and k represent the number of objects, then E can be expressed as: E = <O1,O2,…,O k >.
[0043] The state layer is the specific changes, actions or records of an object in time and space. According to the development process of an event, the object can be decomposed into different states, and the changes of the object can be represented by a set of states. The development process of the event itself can be expressed through the different states of the object. Let O be an object related to security knowledge, S be the state of object O, and k represent the number of states contained in the object, then it can be expressed as: O = <S1,S2,…,S k >.
[0044] The relationship layer can be the evolution process of the power safety knowledge system in the safety production process, which is composed of the connection of different object states in time and space. Process-based modeling is based on the evolution of power safety knowledge, and the evolution stages of different objects in the event are hierarchically abstracted. Therefore, different states of the same object are sequentially connected according to the time relationship to form a state sequence. o = o1 ,S o2 ,…,S ok >; Among them, S ok Represents the process of composing an object P o The state sequence is the basic unit of the actual operation of the power safety knowledge system. The state sequences of multiple objects together constitute the power safety knowledge system.
[0045] Taking typhoon disaster events as an example, the various elements that constitute typhoon disaster events are often related. Objects can be concepts, elements, and features, and relationships also focus on the connection between multiple objects. The determination of a relationship requires connecting at least two objects, which can be expressed as: R = <O A ,r,O B >; Among them, O A and O B These are different objects in the power safety knowledge system: r means O A and O B The type of relationship that exists between nodes. The relationship layer defines the types of relationships contained in the knowledge graph. In the knowledge graph, relationships can be seen as edges connecting two nodes. Relationships are used to connect concept nodes, object nodes, and feature nodes, etc.
[0046] On the basis of the above technical solution, the determination of the graph structure level corresponding to the target power safety data file includes: establishing a mapping relationship between the object layer and the target power safety data file based on a preset power safety object; identifying status information and relationship information associated with the preset power safety object from the target power safety data file based on the mapping relationship; filling the status information into the status layer corresponding to the preset power safety object, and filling the relationship information into the relationship layer corresponding to the preset power safety object.
[0047] Among them, the preset power safety objects can be understood as pre-set power safety management objects, for example, they may include production enterprises, staff, accident personnel, power facilities, safety signs and fire-fighting facilities.
[0048] Specifically, it is clarified that the key objects in the field of power safety include production enterprises, staff, accident personnel, power facilities, safety signs and fire-fighting facilities, etc., and the above objects will be used as the basis of the graph structure to construct the object layer, and then establish the mapping relationship between the object layer and the target power safety data file based on the preset power safety object, such as matching the preset power safety object according to the keywords in the target power safety data file, and then establish the mapping relationship between the object layer and the target power safety data file according to the matching result, and identify the state information and relationship information associated with the preset power safety object from the target power safety data file according to the mapping relationship. It should be noted that the state information may include the operating status of the equipment, the specific description of the fault, the safety status of the location, etc.; the relationship information may include the connection relationship between the equipment, the association between the fault and the equipment, the time sequence, etc. Finally, the identified state information is filled into the state layer corresponding to the preset power safety object, and the identified relationship information is filled into the relationship layer corresponding to the preset power safety object.
[0049] On the basis of the above technical solution, after establishing the power safety knowledge graph according to the graph structure hierarchy and the target power safety data file, it also includes: regularly updating the power safety data according to the data update cycle, and updating the power safety knowledge graph according to the updated power safety data; and / or, obtaining feedback information corresponding to the power safety knowledge graph, and adjusting the power safety knowledge graph according to the feedback information.
[0050] The data update cycle may be a preset update cycle, for example, updating the power safety data regularly every fifteen days. The feedback information may be understood as information corresponding to the power safety knowledge graph fed back by the safety management personnel.
[0051] Specifically, according to the characteristics and needs of power safety data, a reasonable data update cycle is set, such as daily, weekly or monthly, and then: when the update cycle arrives, the latest power safety data is collected from data sources (such as sensors, monitoring systems, manual reports, etc.), and the status information and relationship information related to the power safety object are extracted from the updated data, and the extracted information is compared with the existing power safety knowledge graph, and the corresponding status layer and relationship layer content are updated or added; it is also possible to collect user feedback on the use of the power safety knowledge graph through a user interface or questionnaire survey, and then identify problems or deficiencies in the graph based on the feedback information, and make corresponding adjustments and optimizations to the power safety knowledge graph based on the problems.
[0052] The technical solution of the embodiment of the present invention obtains power safety data, processes the power safety data, determines the target power safety data file, and then determines the graph structure level corresponding to the target power safety data file, and establishes the power safety knowledge graph according to the graph structure level and the target power safety data file. Based on the above technical solution, the power safety knowledge representation model is divided from top to bottom into the concept layer, object layer, state layer and relationship layer, and then the basic components and relationships of the power safety knowledge model are uniformly expressed through the power safety knowledge graph, and the scattered distribution of power safety knowledge and the data with diverse structures are effectively processed and organized, providing more intelligent protection for the production safety, equipment safety and safety education of power enterprises.
[0053] Embodiment 2
[0054] Figure 3 This is a structural block diagram of a device for constructing a power safety knowledge graph provided by an embodiment of the present invention. Figure 3 As shown, the device includes: a data processing module 310 and a graph construction module 320.
[0055] The data processing module 310 is used to obtain power safety data and process the power safety data to determine a target power safety data file, wherein the power safety data includes structured data, semi-structured data and unstructured data;
[0056] The graph construction module 320 is used to determine the graph structure hierarchy corresponding to the target power safety data file, and establish the power safety knowledge graph according to the graph structure hierarchy and the target power safety data file, wherein the graph structure hierarchy includes a concept layer, an object layer, a state layer and a relationship layer.
[0057] On the basis of the above technical solution, the data processing module is used to determine the data structure type corresponding to the power safety data, and determine the target power safety data file according to the data structure type.
[0058] On the basis of the above technical solution, the data processing module is used to perform standardization processing on the power safety data to determine the target power safety data file when the data structure type is structured data.
[0059] On the basis of the above technical solution, the data processing module is used to perform natural language processing on the power safety data when the data structure type is unstructured data or semi-structured data, so as to obtain a target power safety data file corresponding to the power safety data.
[0060] Based on the above technical solution, the graph construction module is used to establish a mapping relationship between the object layer and the target power safety data file based on a preset power safety object; identify status information and relationship information associated with the preset power safety object from the target power safety data file based on the mapping relationship; fill the status information into the status layer corresponding to the preset power safety object, and fill the relationship information into the relationship layer corresponding to the preset power safety object.
[0061] On the basis of the above technical solution, the power safety data includes: power knowledge engineering system, expert experience knowledge base, power standard data, and power experience data.
[0062] On the basis of the above technical solution, the device also includes: a graph update module, which is used to update the power safety data regularly according to the data update cycle after establishing the power safety knowledge graph according to the graph structure hierarchy and the target power safety data file, and update the power safety knowledge graph according to the updated power safety data; and / or obtain feedback information corresponding to the power safety knowledge graph, and adjust the power safety knowledge graph according to the feedback information.
[0063] The technical solution of the embodiment of the present invention obtains power safety data, processes the power safety data, determines the target power safety data file, and then determines the graph structure level corresponding to the target power safety data file, and establishes the power safety knowledge graph according to the graph structure level and the target power safety data file. Based on the above technical solution, the power safety knowledge representation model is divided from top to bottom into the concept layer, object layer, state layer and relationship layer, and then the basic components and relationships of the power safety knowledge model are uniformly expressed through the power safety knowledge graph, and the scattered distribution of power safety knowledge and the data with diverse structures are effectively processed and organized, providing more intelligent protection for the production safety, equipment safety and safety education of power enterprises.
[0064] The electric power safety knowledge graph construction device provided in the embodiment of the present invention can execute the electric power safety knowledge graph construction method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0065] Embodiment 3
[0066] Figure 4A schematic diagram of the structure of an electronic device 10 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 (such as helmets, glasses, watches, etc.) 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.
[0067] like Figure 4 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0068] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0069] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the method for constructing a power safety knowledge graph.
[0070] In some embodiments, the method for constructing a power safety knowledge graph may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method for constructing a power safety knowledge graph described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the method for constructing a power safety knowledge graph by any other appropriate means (e.g., by means of firmware).
[0071] 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.
[0072] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0073] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. 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 or flash memory), 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.
[0074] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device 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 a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0075] The systems and techniques described herein may be implemented in a computing system that includes backend 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 frontend 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 backend components, middleware components, or frontend 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), a blockchain network, and the Internet.
[0076] A computing 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 client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0077] 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.
[0078] 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 constructing a power safety knowledge graph, characterized in that: include: Acquiring power safety data, and processing the power safety data to determine a target power safety data file, wherein the power safety data includes structured data, semi-structured data, and unstructured data; Determine a graph structure hierarchy corresponding to the target power safety data file, and establish the power safety knowledge graph according to the graph structure hierarchy and the target power safety data file, wherein the graph structure hierarchy includes a concept layer, an object layer, a state layer, and a relationship layer.
2. The method according to claim 1, characterized in that The step of processing the power safety data to determine a target power safety data file includes: A data structure type corresponding to the power safety data is determined, and the target power safety data file is determined according to the data structure type.
3. The method according to claim 2, characterized in that The step of determining the target power safety data file according to the data structure type includes: When the data structure type is structured data, the power safety data is standardized to determine the target power safety data file.
4. The method according to claim 2, characterized in that: The step of determining the target power safety data file according to the data structure type includes: When the data structure type is unstructured data or semi-structured data, natural language processing is performed on the power safety data to obtain a target power safety data file corresponding to the power safety data.
5. The method according to claim 1, characterized in that The determining of the graph structure level corresponding to the target power safety data file includes: Establishing a mapping relationship between the object layer and the target power safety data file based on a preset power safety object; identifying, from the target power safety data file based on the mapping relationship, state information and relationship information associated with the preset power safety object; The state information is filled into the state layer corresponding to the preset power safety object, and the relationship information is filled into the relationship layer corresponding to the preset power safety object.
6. The method according to claim 1, characterized in that The power safety data includes: power knowledge engineering system, expert experience knowledge base, power standard data, and power experience data.
7. The method according to claim 1, characterized in that After establishing the power safety knowledge graph according to the graph structure level and the target power safety data file, the method further includes: updating the power safety data regularly according to a data update cycle, and updating the power safety knowledge graph according to the updated power safety data; and / or, Obtain feedback information corresponding to the power safety knowledge graph, and adjust the power safety knowledge graph according to the feedback information.
8. A device for constructing a power safety knowledge graph, characterized in that: include: A data processing module, used to obtain power safety data and process the power safety data to determine a target power safety data file, wherein the power safety data includes structured data, semi-structured data and unstructured data; A graph construction module is used to determine the graph structure hierarchy corresponding to the target power safety data file, and establish the power safety knowledge graph according to the graph structure hierarchy and the target power safety data file, wherein the graph structure hierarchy includes a concept layer, an object layer, a state layer and a relationship layer.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for constructing an electric power safety knowledge graph as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for constructing an electric power safety knowledge graph according to any one of claims 1 to 7 when executed.
Citation Information
Patent Citations
Construction method, device and equipment of electric power safety knowledge graph and medium
CN113190689A
Landslide scene ontology construction method oriented to whole process and related equipment
CN116756344A
Ecological environment risk assessment method and device, electronic equipment and storage medium
CN117634894A
Power grid risk knowledge graph construction method and system
CN118069861A
Expressway asset knowledge graph construction method
CN118297155A
Cited By
Knowledge graph construction method and device, electronic equipment and readable storage medium
CN120146174A
