Knowledge graph construction method and device for electric power operation and inspection

文档序号:135783 发布日期:2021-10-22 浏览:14次 中文

阅读说明:本技术 一种电力运检的知识图谱构建方法和装置 (Knowledge graph construction method and device for electric power operation and inspection ) 是由 谈元鹏 刘丁枭 徐兆楠 张中浩 尚学军 戚艳 郑骁麟 于 2021-08-06 设计创作,主要内容包括:本发明实施例提供了一种具体涉及一种电力运检的知识图谱构建方法和装置,解决了在没有专业技术人员支持下,电力运检领域的知识图谱构建难以确保精度的问题。所述电力运检的知识图谱构建方法包括:获取数据信息;在所述数据信息中选择数据dump,并判断dump类型,根据所述dump类型构建对应的节点和新增节点;基于所述节点和所述新增节点得到所述节点和所述新增节点之间的关系;基于所述节点、所述新增节点、所述节点和所述新增节点之间的关系构建知识图谱数据库。(The embodiment of the invention provides a knowledge graph construction method and a knowledge graph construction device for electric power operation and inspection, and solves the problem that the construction of the knowledge graph in the field of electric power operation and inspection is difficult to ensure the precision without the support of professional technicians. The method for constructing the knowledge graph of the electric power operation and inspection comprises the following steps: acquiring data information; selecting data dump in the data information, judging the dump type, and constructing a corresponding node and a newly added node according to the dump type; obtaining a relationship between the node and the newly added node based on the node and the newly added node; and constructing a knowledge graph database based on the nodes, the newly added nodes and the relationship among the nodes and the newly added nodes.)

1. A knowledge graph construction method for electric power operation and inspection is characterized by comprising the following steps:

acquiring data information;

selecting data dump in the data information, and judging the type of the dump;

constructing a corresponding node and a newly added node according to the dump type, and obtaining a relation between the node and the newly added node based on the node and the newly added node;

and constructing a knowledge graph database based on the nodes, the newly added nodes and the relationship among the nodes and the newly added nodes.

2. The method of claim 1, wherein the step of obtaining the relationship between the nodes and the newly added nodes comprises:

and constructing a work order node, extracting a non-work order attribute column as a newly added node, filling the rest columns as the attributes of the work order node, and obtaining the relationship between the newly added node and the work order node after the data reading is finished.

3. The method of claim 1, wherein the step of obtaining the relationship between the nodes and the newly added nodes comprises:

and constructing equipment nodes, extracting non-equipment attribute columns as newly added nodes, filling the rest columns as the attributes of the equipment nodes, and reading the data of the row to obtain the relationship between the newly added nodes and the single equipment nodes.

4. The method of claim 1, wherein the step of obtaining the relationship between the nodes and the newly added nodes comprises:

constructing nodes of corresponding types, and judging whether the nodes of corresponding types are associated with work orders or equipment or not through rules; if so, acquiring a newly added node based on the node, and further constructing a relationship between the node and the newly added node; and if not, discarding the nodes of the corresponding types.

5. The method of constructing a knowledge graph database for electric power inspection according to claim 1, wherein the step of constructing a knowledge graph database based on the relationship among the nodes, the newly added nodes, the nodes and the newly added nodes comprises:

checking the data precision of the node, and judging whether the data precision is lower than a preset precision or not;

and if so, discarding the node, the newly added node, and the relationship among the nodes and the newly added node.

6. The method for constructing a knowledge graph database of power operation inspection according to claim 1, wherein the step of constructing a knowledge graph database based on the relationship among the nodes, the newly added nodes, the nodes and the newly added nodes further comprises:

acquiring newly added information data, and adding the newly added information data into a knowledge graph database;

enabling a stop word list, performing word segmentation and part-of-speech tagging on the operation and detection task description text, identifying terms and nouns outside the stop word list, and forming a set by the terms and nouns outside the stop word list;

carrying out encyclopedic accurate search and fuzzy search on entity nouns in the set, crawling the entity nouns and discarding the entity nouns with non-standard description conditions;

storing an entity and the crawled entity introduction into a key value pair into a first mapping table;

extracting introduction entity keywords to obtain an inverted index of the entity keywords, and storing the inverted index and the entity into a second mapping table;

persisting the first mapping table and the second mapping table.

7. The method for constructing a knowledge graph of electric power operation and inspection as claimed in claim 6, wherein the step of adding the new information data into a knowledge graph database comprises:

judging whether the newly added data exist in a database or not;

if yes, updating the existing attribute value and aligning and filling the new attribute to the existing node;

if not, adding new nodes in the knowledge map database.

8. The method for constructing a knowledge graph of electric power operation inspection according to claim 7, wherein the step of adding nodes in the knowledge graph database comprises:

taking the attribute labels of the existing work order nodes to construct a set, and taking the attribute values of the existing work order nodes to construct reverse mapping;

if the node attribute of the newly added data is in the set, storing the node attribute of the newly added data and the attribute value of the newly added data into a newly added node;

and if the node attribute of the newly added data is not in the set, performing similarity matching on the attribute value of the newly added data and each key in the reverse mapping, and selecting the attribute name of the attribute value of the newly added data with the highest similarity from the attribute values of the newly added data exceeding a threshold value as the new name of the node attribute of the newly added data to complete alignment.

9. A knowledge graph construction device for electric power operation and inspection is characterized by comprising:

an acquisition unit configured to acquire data information;

the selection judgment unit is used for selecting data dump in the data information and judging the type of the dump;

the construction unit is used for constructing corresponding nodes and newly added nodes according to the dump types; obtaining a relationship between the node and the newly added node based on the node and the newly added node; and constructing a knowledge graph database based on the nodes, the newly added nodes and the relationship among the nodes and the newly added nodes.

10. The apparatus of claim 9, further comprising:

the acquisition newly-added unit is used for acquiring newly-added information data and adding the newly-added information data into a knowledge map database;

the set construction unit is used for starting the stop word list, performing word segmentation and part-of-speech tagging on the operation and detection task description text, identifying out-of-stop word list term nouns, and forming a set by the out-of-stop word list term nouns;

the crawling unit is used for carrying out encyclopedic accurate search and fuzzy search on the entity nouns in the set, crawling the entity nouns and discarding the entity nouns with the non-standard description condition;

the first mapping table building unit is used for storing an entity and the crawled entity introduction into a key value pair into a first mapping table;

the second mapping table construction unit extracts introduction entity keywords to obtain an inverted index of the entity keywords, and stores the inverted index and the entity into a second mapping table;

a persistence unit to persist the first mapping table and the second mapping table.

Technical Field

The invention relates to the technical field of electric power, in particular to a knowledge graph construction method and device for electric power operation and inspection.

Background

Knowledge Graph (KG) is used as an important branch of an artificial intelligence technology of Knowledge engineering to be successfully applied in a big data environment, and the big data is combined to perform intelligent search, intelligent question answering, intelligent recommendation and intelligent decision making, so that the Knowledge Graph shows strong power in a plurality of fields such as medical treatment, finance and the like. The electric power system is a complex and knowledge-intensive electric energy production and consumption system, the concepts, entities, events and relations of the electric power system are complex and complicated, and the electric power system relates to a systematic knowledge system in multiple fields such as power generation, transmission and transformation. The power company provides various technical routes and application cases in the aspect of knowledge maps in the power field for realizing data communication, supporting power grid services and novel service development around service requirements. Knowledge entities in an open, flattened and weak-boundary power domain knowledge system are difficult to semantically expand. The electric power operation and inspection field knowledge is widely derived from structural data such as an electric power knowledge engineering system and expert knowledge, electric power standards, semi/unstructured data such as experience of experts and technicians, alias, abbreviation, spoken language and the like exist in the operation and inspection field knowledge and the operation and inspection data, the operation and inspection field knowledge is difficult to identify through a general word segmentation tool, and the precision is difficult to ensure without expert supervision learning and strong rule definition. Meanwhile, since programmers do not know the knowledge in the professional field, the follow-up functions of dynamic knowledge fusion, knowledge updating, map query and the like are difficult to realize after the operation and inspection data are newly added without the support of field professionals.

Disclosure of Invention

In view of this, the embodiment of the invention provides a knowledge graph construction method and device particularly relating to electric power operation and inspection, and solves the problem that the construction of the knowledge graph in the field of electric power operation and inspection is difficult to ensure the accuracy without the support of professional technicians.

The method for constructing the knowledge graph of the electric power operation and inspection provided by the embodiment of the invention comprises the following steps: acquiring data information; selecting data dump in the data information, judging the dump type, and constructing a corresponding node and a newly added node according to the dump type; obtaining a relationship between the node and the newly added node based on the node and the newly added node; and constructing a knowledge graph database based on the nodes, the newly added nodes and the relationship among the nodes and the newly added nodes.

In one embodiment, the step of constructing a knowledge graph database based on the nodes, the newly added nodes, and the relationship between the nodes and the newly added nodes includes: and checking the normativity of the node, and judging whether to discard the node, the newly added node and the relationship among the node and the newly added node based on the normativity of the node.

In one embodiment, the step of obtaining the relationship between the node and the newly added node comprises: and constructing a work order node, extracting a non-work order attribute column as a new node, filling the rest columns as the attributes of the work order node, and obtaining the relationship between the newly added node and the work order node after the data reading is finished.

In one embodiment, the step of obtaining the relationship between the node and the newly added node comprises: and constructing equipment nodes, extracting non-equipment attribute columns as new nodes, filling the rest columns as the attributes of the equipment nodes, and reading the data of the row to obtain the relationship between the new nodes and the single equipment nodes.

In one embodiment, the step of obtaining the relationship between the node and the newly added node comprises: constructing nodes of corresponding types, and judging whether the nodes of corresponding types are associated with work orders or equipment or not through rules; if so, acquiring a newly added node based on the node, and further constructing a relationship between the node and the newly added node; and if not, discarding the nodes of the corresponding types.

In one embodiment, after the step of constructing a knowledge graph database based on the nodes, the newly added nodes, and the relationships between the nodes and the newly added nodes, the method further includes: acquiring newly added information data, and adding the newly added information data into a knowledge graph database; enabling a stop word list, performing word segmentation and part-of-speech tagging on the operation and detection task description text, and identifying and adding term nouns outside the stop word list into a set; carrying out encyclopedic accurate search and fuzzy search on entity nouns, crawling the entity nouns and discarding the entity nouns with irregular description conditions, and storing the entity or the crawled entity nouns into a first mapping table to form key value pairs; extracting introduction entity keywords to obtain an inverted index of the entity keywords, and storing the inverted index and the entity into a second mapping table; persisting the first mapping table and the second mapping table.

In one embodiment, the adding the new information data and the adding the new information data into the knowledge graph database includes: judging whether the newly added data exist in a database or not; if yes, updating the existing attribute value and aligning and filling the new attribute to the existing node; if not, adding new nodes in the knowledge map database.

In one embodiment, the step of adding nodes to the knowledge graph database includes: taking the attribute labels of the existing work order nodes to construct a set, and taking the attribute values of the existing work order nodes to construct reverse mapping; if the node attribute of the newly added data is in the set, storing the node attribute of the newly added data and the attribute value of the newly added data into a newly added node; and if the node attribute of the newly added data is not in the set, performing similarity matching on the attribute value of the newly added data and each key in the reverse mapping, and selecting the attribute name of the attribute value of the newly added data with the highest similarity from the attribute values of the newly added data exceeding a threshold value as the new name of the node attribute of the newly added data to complete alignment.

A knowledge graph construction device for electric power operation and inspection comprises: the initialization unit is used for initializing the knowledge map database environment and acquiring data information; the selection judgment unit is used for selecting the data dump and judging the type of the dump; the construction unit is used for constructing corresponding nodes and newly added nodes according to the dump types; obtaining a relationship between the node and the newly added node based on the node and the newly added node; and constructing a knowledge graph database based on the nodes, the newly added nodes and the relationship among the nodes and the newly added nodes.

Optionally, it further includes:

the acquisition newly-added unit is used for acquiring newly-added information data and adding the newly-added information data into a knowledge map database;

the set construction unit is used for starting the stop word list, performing word segmentation and part-of-speech tagging on the operation and detection task description text, identifying out-of-stop word list term nouns, and forming a set by the out-of-stop word list term nouns;

the crawling unit is used for carrying out encyclopedic accurate search and fuzzy search on the entity nouns in the set, crawling the entity nouns and discarding the entity nouns with the non-standard description condition;

the first mapping table building unit is used for storing an entity and the crawled entity introduction into a key value pair into a first mapping table;

the second mapping table construction unit extracts introduction entity keywords to obtain an inverted index of the entity keywords, and stores the inverted index and the entity into a second mapping table;

a persistence unit to persist the first mapping table and the second mapping table.

The embodiment of the invention provides a knowledge graph construction method and a device for electric power operation and inspection, wherein the knowledge graph construction method for electric power operation and inspection comprises the steps of initializing a knowledge graph database environment and acquiring data information; selecting data dump, judging the dump type, and constructing a corresponding node and a newly added node according to the dump type; obtaining a relationship between the node and the newly added node based on the node and the newly added node; and constructing a knowledge graph database based on the nodes, the newly added nodes and the relationship among the nodes and the newly added nodes. Aiming at the original data automatically generated and artificially recorded in the electric power operation and inspection process, the relationship between the nodes and the newly added nodes is obtained through the nodes and the newly added nodes, and the relation between the data and the knowledge is analyzed, and a reasonable scheme is provided in the unsupervised mode for automatically constructing the knowledge map and the knowledge fusion updating aspect.

Drawings

Fig. 1 is a flowchart illustrating a method for constructing a knowledge graph of electric power operation and inspection according to an embodiment of the present invention;

fig. 2 is a flowchart illustrating a method for constructing a knowledge graph of electric power operation and inspection according to another embodiment of the present invention;

fig. 3 is a schematic structural diagram of a knowledge graph constructing apparatus for electric power operation and inspection according to an embodiment of the present invention;

fig. 4 is a schematic structural diagram of a knowledge graph constructing apparatus for electric power operation and inspection according to an embodiment of the present invention.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

The embodiment of the invention provides a knowledge graph construction method for electric power operation and inspection, which is shown in a reference figure 1 and comprises the following steps:

step 01, initializing a knowledge map database environment and acquiring data information. Optionally, the knowledge-map database is initialized to a Neo 4j environment. Alternatively, the data information may be as shown in table 1 below.

TABLE 1 partial data information

And 02, selecting data dump in the data information and judging the dump type. Alternatively, the dump type may be a work order or a device ledger, or the like.

And 03, constructing corresponding nodes and newly added nodes according to the dump types, and obtaining the relationship between the nodes and the newly added nodes based on the nodes and the newly added nodes.

Constructing a corresponding node and a newly added node according to the dump type, wherein the step of obtaining the relationship between the node and the newly added node based on the node and the newly added node may include: and constructing a new node, extracting non-work order attribute items (such as an organizer, a power station line, a local city and the like) to be used as the new node, filling < attributes, attribute values > as node contents into the node, and connecting the task node and other extracted nodes to form an (entity-relation-entity) structure (such as a task-organizer-staff) after the processing is finished.

Constructing a corresponding node and a newly added node according to the dump type, wherein the step of obtaining the relationship between the node and the newly added node based on the node and the newly added node may further include: and constructing a new node, extracting non-equipment items (such as an equipment owner, a manufacturer and the like) to be used as the new node, filling < attribute, attribute value > as node content into the node, and connecting the task node and other extracted nodes to form an (entity-relation-entity) structure (such as equipment-manufacturer) after the processing is finished.

Constructing a corresponding node and a newly added node according to the dump type, wherein the step of obtaining the relationship between the node and the newly added node based on the node and the newly added node may further include: constructing other types of nodes, and judging whether the nodes of the corresponding types are associated with work orders or equipment or not through rules; if so, acquiring a newly added node based on the node, and further constructing a relationship between the node and the newly added node; and if not, discarding the nodes of the corresponding types. For example: and if the modification record type data is judged to describe the equipment maintenance information, constructing a node by the modification record data entry, and connecting the node to the corresponding equipment node. And some data types that are not determined according to the rule are directly discarded.

And step 04, constructing a knowledge graph database based on the nodes, the newly added nodes and the relationship among the nodes and the newly added nodes. Submitting the nodes, adding the nodes, and the relationship among the nodes and the added nodes to a knowledge graph database, closing the database connection after the transaction is submitted, and ending the graph construction process.

In an embodiment of the present invention, in the step 03 of constructing the knowledge graph database based on the nodes, the newly added nodes, and the relationships between the nodes and the newly added nodes, a normative check is performed on the incomplete nodes produced in the step 02, and whether to discard the relationships between the nodes, the newly added nodes, and the nodes and the newly added nodes is determined based on the normative of the nodes. If the node has too many attribute null values and the entry is repeated (id is repeated, description is repeated, etc.), the node and the relation connected with the node are deleted.

In an embodiment of the present invention, after the initial atlas is constructed, the automated knowledge fusion and update task is completed by the following steps for the inspection task description text in the work order, as shown in fig. 2:

and 21, acquiring newly added information data, and adding the newly added information data into a knowledge graph database. If new work order data is needed, judging the type of the work order and respectively processing:

if the work order information (judgment id) exists, updating the existing attribute value and aligning and filling the new attribute to the existing node;

if the work order information does not exist, a work order node is newly established, each attribute and attribute value in the existing work order node in the map are taken to construct set (namely attribute name setP and attribute value setV), the attribute value constructs map < attribute value, and the attribute name > is used as reverse mapping, if Pi is in the set, Pi and Vi are stored in the newly added node, otherwise Vi is subjected to similarity matching with each key in the map, a plurality of short text similarity matching methods are adopted for fusion scoring, the attribute names exceeding the threshold are added into a priority queue pq by taking 0.8 as a similarity threshold, and finally the first element of the pq is taken as the finally selected attribute alignment name.

And storing the finally generated nodes into the graph database.

And 22, starting a stop word list, performing word segmentation and part-of-speech tagging on the operation and detection task description text, identifying terms and nouns outside the stop word list, and forming a set by the terms and nouns outside the stop word list. And starting a stop word list (Baidu stop words), segmenting the operation and detection task description text and labeling the part of speech. The text "eliminate [ QX20161229012 Cao Zi 750 switch cabinet 10-5 bus porcelain column discharge abnormal sound". 2016-12-2810:34:24, for example, the term "word segmentation and word part tagging" can extract two terms of switch cabinet and bus insulator, and then add the two terms into the set S. The set containing the whole term nouns can be obtained after the whole task description text is processed.

Step 23, carrying out encyclopedic accurate search and fuzzy search on entity nouns in the set, crawling the entity nouns and discarding the entity nouns with irregular description conditions, and storing an entity and the crawled entity introduction into a key value pair into a first mapping table;

and 24, extracting introduced entity keywords to obtain an inverted index of the entity keywords, and storing the inverted index and the entities into a second mapping table.

For each noun entity e in set S (ADSS for example):

and respectively carrying out encyclopedic accurate search and fuzzy search on the e, crawling term knowledge, eliminating irregular description conditions such as alternative names, abbreviations and the like, and discarding the entity e if no result is crawled. The method comprises the steps of performing encyclopedic knowledge accurate search and fuzzy search on term nouns ADSS respectively, crawling out term knowledge entity Optical cables behind the ADSS, and obtaining an ADSS whole alternative name set (ADSS, Optical cables, Optical Fiber Cable and high-voltage transmission line) and specific introduction of term entity contents, wherein entities which cannot obtain knowledge contents are deleted.

And (3) taking the entity and introducing the entity obtained by crawling to form a key value pair < the entity, and storing the introduction > in a first mapping table. And forming a key value pair < ADSS by using ADSS and the ADSS introduction obtained by crawling, and storing ADSS knowledge introduction > into the first mapping table.

Extracting introduction keywords by using TF-IDF and TextRank, and taking the first five keywords with the highest similarity as entity keywords to serve as inverted indexes < keywords, and storing entity > in a second mapping table; the words are divided into words of the ADSS introduction text by using the words, then the keywords in the ADSS introduction text are extracted by using the TF-IDF and the TextRank in a fusion and scoring mode, the text keywords exceeding the threshold value of 0.5 are used as the keywords of the introduction text, in the embodiment, two words of an optical cable and an optical fiber are extracted from the introduction, the two keywords are used as the keywords described by the ADSS and are used as inverted indexes < the keywords, and the ADSS > is stored in a second mapping table.

And 25, persisting the first mapping table and the second mapping table. And persistently storing the first mapping table and the second mapping table for later use.

After the task is completed, the integral structure of the term knowledge and the retrieval key words can be obtained, then newly added knowledge can be fused and updated in the mode, and hot updating of the atlas knowledge can be achieved after the backend service is persisted.

Aiming at the original data automatically generated and artificially recorded in the electric power operation and inspection process, the relationship between the nodes and the newly added nodes is obtained through the nodes and the newly added nodes, and the relation between the data and the knowledge is analyzed, and a reasonable scheme is provided in the unsupervised mode for automatically constructing the knowledge map and the knowledge fusion updating aspect.

In one embodiment, a knowledge graph system for electric power operation inspection is provided, wherein the knowledge graph system acquires data information by initializing a knowledge graph database environment; selecting data dump, judging the dump type, and constructing a corresponding node and a newly added node according to the dump type; obtaining a relationship between the node and the newly added node based on the node and the newly added node; and constructing a knowledge graph database based on the nodes, the newly added nodes and the relationship among the nodes and the newly added nodes.

Aiming at the original data automatically generated and artificially recorded in the electric power operation and inspection process, the relationship between the nodes and the newly added nodes is obtained through the nodes and the newly added nodes, and the relation between the data and the knowledge is analyzed, and a reasonable scheme is provided in the unsupervised mode for automatically constructing the knowledge map and the knowledge fusion updating aspect.

An embodiment of the present invention provides a knowledge graph constructing apparatus 100 for electric power operation and inspection, and as shown in fig. 3, the knowledge graph constructing apparatus 100 includes:

the obtaining unit 101 is configured to initialize a knowledge graph database environment and obtain data information.

And a selection judging unit 102, configured to select a data dump in the data information, and judge the dump type.

A constructing unit 103, configured to construct a corresponding node and a newly added node according to the dump type; obtaining a relationship between the node and the newly added node based on the node and the newly added node; and constructing a knowledge graph database based on the nodes, the newly added nodes and the relationship among the nodes and the newly added nodes.

An initialization unit initializes a knowledge map database environment and acquires data information; then the selection judgment unit 20 selects data dump and judges the type of the dump; the construction unit 30 constructs corresponding nodes and newly added nodes according to the dump types; obtaining a relationship between the node and the newly added node based on the node and the newly added node; and constructing a knowledge graph database based on the nodes, the newly added nodes and the relationship among the nodes and the newly added nodes.

The invention aims at the knowledge graph constructing device, which aims at the original data automatically generated and manually recorded in the electric power operation and inspection process, obtains the relationship between nodes and newly added nodes through the nodes and the newly added nodes, analyzes the relation between data and knowledge, and provides a more reasonable scheme in the aspect of automatically constructing the knowledge graph in an unsupervised mode and integrating and updating knowledge.

An embodiment of the present invention provides a knowledge graph constructing apparatus 200 for electric power inspection, which, after the initial graph is constructed, completes an automated knowledge fusion and update task through the following units with respect to an inspection task description text in a work order, as shown in fig. 4, and further includes,

the acquisition newly-added unit 201 is used for acquiring newly-added information data and adding the newly-added information data into a knowledge graph database;

the set construction unit 202 is used for starting the stop word list, performing word segmentation and part-of-speech tagging on the operation and detection task description text, identifying out-of-stop word list term nouns, and forming a set from the out-of-stop word list term nouns;

the crawling unit 203 is used for carrying out encyclopedic precise search and fuzzy search on the entity nouns in the set, crawling the entity nouns and discarding the entity nouns with the non-canonical description condition;

the first mapping table constructing unit 204 is configured to store an entity and the crawled introduction of the entity into a key value pair in a first mapping table;

a second mapping table constructing unit 205, extracting introduced entity keywords to obtain an inverted index of the entity keywords, and storing the inverted index and the entity in a second mapping table;

a persistence unit 206, configured to persist the first mapping table and the second mapping table.

The embodiment provides an electronic device, which may include a memory and a processor, wherein the memory stores a computer program, and the computer program is executed by the processor to implement the method for constructing the knowledge graph of the power physical examination according to the embodiment. It is to be appreciated that the electronic device can also include input/output (I/O) interfaces, as well as communication components.

The processor is used for executing the knowledge graph construction method of the power operation inspection in the first embodiment. All or part of the steps in (a). The memory is used to store various types of data, which may include, for example, instructions for any application or method in the electronic device, as well as application-related data.

The Processor may be an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a controller, a microcontroller, a microprocessor, or other electronic components, and is configured to execute the method for constructing a knowledge graph of power operation inspection in the first embodiment.

The Memory may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk or optical disk.

The present embodiments also provide a computer-readable storage medium. Each functional unit in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium.

Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention.

And the aforementioned storage medium includes: flash memory, hard disk, multimedia card, card type memory (e.g., SD or DX memory, etc.), Random Access Memory (RAM), Static Random Access Memory (SRAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), Programmable Read Only Memory (PROM), magnetic memory, magnetic disk, optical disk, server, APP application mall, etc., various media that can store program check codes, on which computer programs are stored, which when executed by a processor can implement the following method steps:

step S01: initializing a knowledge map database environment and acquiring data information.

Step S02: and selecting data dump, judging the dump type, and constructing a corresponding node and a newly added node according to the dump type.

Step S03: and obtaining the relationship between the node and the newly added node based on the node and the newly added node.

And S04, constructing a knowledge graph database based on the nodes, the newly added nodes and the relationship among the nodes and the newly added nodes.

The specific implementation and the resulting effects can be referred to the above embodiments, and the present invention is not described herein again.

Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention. It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.

In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form. The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.

The foregoing describes the general principles of the present application in conjunction with specific embodiments, however, it is noted that the advantages, effects, etc. mentioned in the present application are merely examples and are not limiting, and they should not be considered essential to the various embodiments of the present application. Furthermore, the foregoing disclosure of specific details is for the purpose of illustration and description and is not intended to be limiting, since the foregoing disclosure is not intended to be exhaustive or to limit the disclosure to the precise details disclosed.

The block diagrams of devices, apparatuses, systems referred to in this application are only given as illustrative examples and are not intended to require or imply that the connections, arrangements, configurations, etc. must be made in the manner shown in the block diagrams. These devices, apparatuses, devices, systems may be connected, arranged, configured in any manner, as will be appreciated by those skilled in the art.

It should also be noted that in the devices, apparatuses, and methods of the present application, the components or steps may be decomposed and/or recombined. These decompositions and/or recombinations are to be considered as equivalents of the present application.

The previous description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the application. Thus, the present application is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless explicitly specifically limited otherwise. All directional indicators in the embodiments of the present application (such as upper, lower, left, right, front, rear, top, bottom … …) are only used to explain the relative positional relationship between the components, the movement, etc. in a particular posture (as shown in the drawings), and if the particular posture is changed, the directional indicator is changed accordingly. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.

Furthermore, reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.

The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims. The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and the like that are within the spirit and principle of the present invention are included in the present invention. The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and the like that are within the spirit and principle of the present invention are included in the present invention.

The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and the like that are within the spirit and principle of the present invention are included in the present invention.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于注意力机制的知识图谱关系预测方法及装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!