A method and device for checking a power grid graph database and electronic equipment

By constructing metadata for the power grid diagram database and using a visualization client for data verification, the problem of low verification efficiency of the power grid diagram database during visualization display is solved, achieving more efficient data verification and flexible visualization display.

CN116756228BActive Publication Date: 2026-02-06GLOBAL ENERGY INTERCONNECTION RES INST CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310619680.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-29
Publication Date
2026-02-06
Estimated Expiration
2043-05-29

AI Technical Summary

Technical Problem

The power grid diagram database suffers from low verification efficiency when used for visualization, especially when processing large amounts of data, making it difficult to meet the specific verification logic and condition constraints of smart power grid applications.

Method used

By constructing metadata for the graph database, and using a visualization client to verify the point and edge data, including the preset set of connection edge types for points, the set of adjacent point types, the preset set of connection point types for edges, the preset degree of points, and attribute value information, the verification and display of graph database data can be achieved.

Benefits of technology

It reduces the processing load on the graph database server, improves the understandability of the data, provides flexible visualization, and solves the problem of low verification efficiency of power grid graph databases.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116756228B_ABST
    Figure CN116756228B_ABST
Patent Text Reader

Abstract

The application provides a power grid graph database verification method and device and electronic equipment, and the method comprises the following steps: constructing meta metadata of a graph database according to a type set of a preset connection edge of a point, a type set of a preset adjacent point of the point, a type set of a preset connection point of an edge, a preset degree of the point and attribute value information of the point or the edge, the meta metadata of the graph database is structural information describing the schema structural metadata of the graph database; and verifying to-be-entered data of the graph database by using a visual client according to the meta metadata of the graph database. Through the application, the problem of low verification efficiency of the power grid graph database in the related art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of graph database, and particularly relates to a verification method and device for a power grid graph database and electronic equipment. BACKGROUND

[0002] The power grid graph database is a specific field graph database for the power grid field and intelligent business application, introduces specific optimization for the power grid in the metadata management, graph data storage query analysis and other core components of the graph database, is suitable for business modeling of the power grid business scenario, and can improve the graph database processing capability in the power grid field application environment. In the database field, metadata is data about data, and is data describing the structure and establishment method of data in the database. The power grid intelligent application visualization is to display application information in the form of charts and graphs, provides visual information for terminal users, makes data present in a more intuitive, visual and easy-to-receive manner, and improves the understandability of data. Graph data visualization is an important field in information visualization, and can help users intuitively feel the correlation between objects, help users observe and analyze data, and help analysts reveal the rules behind the data.

[0003] The conventional power grid intelligent application based on the graph database has the following problems in the process of visual display: the power grid intelligent application has specific input verification logic, for example, a certain device or component can only be connected to a certain device or a few devices, or a certain device can only be connected to other devices through a cable with certain electrical properties; the power grid intelligent application has many conditions in data modeling, for example, the number of edges connected to the point corresponding to a certain device in the finally generated graph data model has an upper limit, and these verification logics are difficult to execute on the graph database side; the display of the visualization client of the power grid intelligent application is relatively complex, and when hundreds, thousands or even more points and edge data need to be visualized and displayed, the visualization client often faces performance problems. Therefore, the existing technology has the problem of great data verification pressure of the power grid graph database server. SUMMARY

[0004] The present application provides a verification method and device for a power grid graph database and electronic equipment, to at least solve the problem of low verification efficiency of the power grid graph database in the related art.

[0005] According to a first aspect of an embodiment of the present application, a method for data verification of a power grid graph database is provided, which comprises: constructing meta metadata of the graph database according to a type set of preset connection edges of a point, a type set of preset adjacent points of the point, a type set of preset connection points of an edge, a preset degree of the point, and attribute value information of the point or the edge, wherein the meta metadata of the graph database is structural information describing the schema structural metadata of the graph database; and verifying data in the graph database by using a visual client according to the meta metadata of the graph database.

[0006] Optionally, the type set of preset connection points of the edge comprises a starting point type set and / or a target point type set; the preset degree of the point comprises a degree of all type adjacent edges of the point, a degree of any type adjacent edge of the point, and a degree of all type adjacent edges or a degree of any type adjacent edge of the point with any type and target attribute value; and the attribute value information of the point or the edge comprises a maximum value, a minimum value, an enumeration value, an illegal value, and any combination of predicates of any attribute of any type point or edge, wherein the predicate is a word describing an attribute value range.

[0007] Optionally, the verifying data in the graph database by using the visual client according to the meta metadata of the graph database comprises: when an edge is added in the visual client, verifying whether starting points and target points of the added edge conform to the meta metadata of the graph database according to the type set of preset connection edges of the point, the type set of preset adjacent points of the point, and the type set of preset connection points of the edge.

[0008] Optionally, the verifying data in the graph database by using the visual client according to the meta metadata of the graph database further comprises: verifying whether the preset degree of the point conforms to the meta metadata of the graph database according to the degree of all type adjacent edges of the point and / or the degree of any type adjacent edge of the point; and verifying whether the preset degree of the point with any type and target attribute value conforms to the meta metadata of the graph database according to the degree of all type adjacent edges or the degree of any type adjacent edge of the point with any type and target attribute value.

[0009] Optionally, the visual client acquires attribute values input by a user, and the verifying data in the graph database by using the visual client according to the meta metadata of the graph database further comprises: verifying whether the modified attribute values conform to the meta metadata of the graph database according to the attribute value information of any type point or edge after the attribute values are modified.

[0010] Optionally, the method further comprises: expanding the meta metadata of the graph database according to a priority of a power grid equipment type; and displaying points and edges in the graph database by using the visual client according to the expanded meta metadata of the graph database.

[0011] Optionally, the displaying the points and edges in the graph database according to the extended meta metadata of the graph database by the visualization client comprises: displaying the points and edges of the target priority and not displaying the points and edges of the non-target priority; displaying the points and edges of the target priority and the points and edges of the non-target priority according to the first proportion and the second proportion respectively; displaying the points and edges of the target priority and the points and edges of the non-target priority according to the first size and the second size respectively; and displaying the points or edges of the non-target priority within a preset degree range when the points or edges of the target priority are selected.

[0012] According to the second aspect of the embodiments of the present application, a data verification device for a power grid graph database is further provided, which comprises: a construction module configured to construct meta metadata of a graph database according to a type set of preset connection edges of a point, a type set of preset adjacent points of the point, a type set of preset connection points of an edge, a preset degree of the point, and attribute value information of the point or the edge, wherein the meta metadata of the graph database is structural information describing a schema structural metadata of the graph database; and a verification module configured to verify data in the graph database by a visualization client according to the meta metadata of the graph database.

[0013] Optionally, the type set of preset connection points of the edge comprises a starting point type set and / or a target point type set; the preset degree of the point comprises a degree of all type adjacent edges of the point, a degree of any type adjacent edge of the point, and a degree of all type adjacent edges or a degree of any type adjacent edge of the point with any type and target attribute value; and the attribute value information of the point or the edge comprises a maximum value, a minimum value, an enumeration value, an illegal value, and any combination of predicates of any attribute of any type point or edge, wherein the predicate is a word describing an attribute value range.

[0014] Optionally, the verification module comprises: a first verification unit configured to verify whether starting points and target points of an added edge meet the meta metadata of the graph database according to the type set of preset connection edges of a point, the type set of preset adjacent points of the point, and the type set of preset connection points of an edge when the edge is added by the visualization client.

[0015] Optionally, the verification module further comprises: a second verification unit configured to verify whether the preset degree of a point meets the meta metadata of the graph database according to a degree of all type adjacent edges of the point and / or a degree of any type adjacent edge of the point; and a third verification unit configured to verify whether the preset degree of a point with any type and target attribute value meets the meta metadata of the graph database according to a degree of all type adjacent edges or a degree of any type adjacent edge of the point with any type and target attribute value.

[0016] Optionally, the visualization client obtains an attribute value input by a user, and the checking module further comprises a fourth checking unit configured to check whether the modified attribute value conforms to the meta metadata of the graph database according to the attribute value information of any type point or edge when the attribute value is modified.

[0017] Optionally, the apparatus further comprises an expanding module configured to expand the meta metadata of the graph database according to the priority of the power grid equipment type; and a display module configured to display the points and edges in the graph database by using the visualization client according to the expanded meta metadata of the graph database.

[0018] Optionally, the display module comprises a first display unit configured to display the points and edges of the target priority and not display the points and edges of the non-target priority; a second display unit configured to display the points and edges of the target priority and the points and edges of the non-target priority according to a first proportion and a second proportion respectively; a third display unit configured to display the points and edges of the target priority and the points and edges of the non-target priority according to a first size and a second size respectively; and a fourth display unit configured to display the points or edges of the non-target priority within a preset degree range when the points or edges of the target priority are selected.

[0019] According to a third aspect of the embodiments of the present application, an electronic device is further provided, which comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete communication with each other through the communication bus; the memory is configured to store a computer program; and the processor is configured to execute the data checking method for the power grid graph database in any of the above-mentioned embodiments by running the computer program stored in the memory.

[0020] According to a fourth aspect of the embodiments of the present application, a computer readable storage medium is further provided, which stores a computer program, wherein the computer program is configured to execute the data checking method for the power grid graph database in any of the above-mentioned embodiments when running.

[0021] In the embodiment of the present application, the meta metadata of the graph database is constructed according to the type set of the preset connection edge of the point, the type set of the preset adjacent point of the point, the type set of the preset connection point of the edge, the preset degree of the point, and the attribute value information of the point or the edge, the meta metadata of the graph database is the structural information of the schema structural metadata describing the graph database, and the data in the graph database is checked by the visualization client according to the meta metadata of the graph database. Since the embodiment of the present application supports the original graph database server side data checking, and checks the point and edge data according to the meta metadata by the visualization client, a simple and feasible checking method is provided for checking the data in the graph database according to the power grid equipment inspection logic, that is, the type set of the preset connection edge of the point, the type set of the preset adjacent point of the point, the type set of the preset connection point of the edge, and the like, thereby achieving the technical effects of reducing the processing load of the graph database server side and improving the understandability of the data. The problem of low checking efficiency of the power grid graph database in the related art is solved.

[0022] In the embodiment of the present application, the meta metadata of the graph database is expanded according to the priority of the power grid equipment type, and the point and the edge in the graph database are displayed by the visualization client according to the expanded meta metadata of the graph database. Since the meta metadata of the graph data introduces the data based on the schema and the attribute level, the hierarchical display of the visualization interface is realized, thereby achieving the effect of providing more flexible visualization display information for the visualization interface. BRIEF DESCRIPTION OF DRAWINGS

[0023] The accompanying drawings, which are incorporated into and form a part of the specification, illustrate an embodiment consistent with the present application and, together with the description, serve to explain the principles of the application.

[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the accompanying drawings needed to be used in the embodiments or the prior art description will be briefly introduced as follows. Obviously, those skilled in the art can obtain other drawings from these drawings without any creative effort.

[0025] Figure 1 is a schematic diagram of a hardware environment of an optional power grid graph database oriented data checking method according to an embodiment of the present application;

[0026] Figure 2 is a flowchart of an optional power grid graph database oriented data checking method according to an embodiment of the present application;

[0027] Figure 3 is a whole flowchart of an optional power grid graph database oriented data checking method according to an embodiment of the present application;

[0028] Figure 4 is a structural block diagram of an optional power grid diagram database-oriented data verification device according to an embodiment of the present application;

[0029] Figure 5 is a structural block diagram of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0030] In order to make the personnel in the art better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work should belong to the protection scope of the present application.

[0031] It should be noted that, in the description of the present application, the terms "first", "second", and the like are used to distinguish similar objects, and do not necessarily have to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device that includes a series of steps or units does not have to be limited to those steps or units clearly listed, but can include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices. The terms "mount", "connect", "connect" should be understood broadly, for example, it can be a fixed connection, or a detachable connection, or an integral connection; it can be a mechanical connection, or an electrical connection; it can be directly connected, or indirectly connected through an intermediate medium, or it can be the internal communication of two elements, it can be wireless connection, or wired connection. For those skilled in the art, the specific meaning of the above terms in the present application can be understood according to the specific circumstances.

[0032] In addition, if "and / or" appears in the present application, it includes three parallel schemes, for example, "A and / or B" includes A scheme, or B scheme, or A and B scheme. In addition, the technical solutions of each embodiment can be combined with each other, but it must be based on the fact that those skilled in the art can realize it, when the combination of technical solutions appears contradictory or unachievable, it should be considered that the combination of technical solutions does not exist, nor within the protection scope claimed by the present application.

[0033] According to an aspect of some embodiments of the present application, a method for data verification of a power grid graph database is provided. Optionally, the method for data verification of a power grid graph database can be applied in a hardware environment as shown in Figure 1 As shown in Figure 1 The terminal 102 can include a memory 104, a processor 106, and a display 108 (optional component). The terminal 102 can be connected to a server 112 through a network 110. The server 112 can provide services (such as application services) for the terminal or a client installed on the terminal. A database 114 can be set on the server 112 or independently of the server 112 to provide data storage services for the server 112. In addition, the server 112 can run a processing engine 116, which can be used to execute the steps performed by the server 112.

[0034] Optionally, the terminal 102 can be, but is not limited to, a terminal that can calculate data, such as a mobile terminal (for example, a mobile phone, a tablet computer), a notebook computer, a PC (Personal Computer), and the like. The network can include, but is not limited to, a wireless network or a wired network. The wireless network includes Bluetooth, WIFI (Wireless Fidelity), and other wireless communication networks. The wired network can include, but is not limited to, a wide area network, a metropolitan area network, and a local area network. The server 112 can include, but is not limited to, any hardware device that can perform calculations.

[0035] In addition, in the present embodiment, the method for data verification of a power grid graph database can also be applied in a processing device with strong processing capability without data interaction. For example, the processing device can be, but is not limited to, a terminal device with strong processing capability, that is, each operation in the method for data verification of a power grid graph database can be integrated in a separate processing device. The above is only an example, and the present embodiment does not make any limitation in this regard.

[0036] Optionally, in the present embodiment, the method for data verification of a power grid graph database can be executed by the server 112, or by the terminal 102, or by both the server 112 and the terminal 102. The terminal 102 can also execute the method for data verification of a power grid graph database by a client installed thereon.

[0037] Taking the method for data verification of a power grid graph database applied in a central processing unit as an example, Figure 2 is a flowchart of an optional method for data verification of a power grid graph database according to an embodiment of the present application, as shown in Figure 2As shown, the flow of the method can include the following steps:

[0038] In step S201, the meta metadata of the graph database is constructed according to the type set of the preset connection edge of the point, the type set of the preset adjacent point of the point, the type set of the preset connection point of the edge, the preset degree of the point, and the attribute value information of the point or the edge. The meta metadata of the graph database is the structural information of the structural metadata describing the schema of the graph database. Optionally, in the database field, the metadata is the data about the data, which can help the analyst find the target data. The metadata is the data describing the structure and the establishment method of the data in the database. In the field of graph database, the schema is often introduced to describe, that is, the description of the structure and the characteristics of the graph database, which only involves the description of the type and does not involve the specific value. In the process of visualizing the power grid intelligent business system based on the power grid special graph database, the meta metadata of the power grid graph database is innovatively introduced in the embodiment of the application. Since the power grid intelligent application has its specific input verification logic, for example, a certain device or component can only be connected to a certain device or a few devices, or a certain device can only be connected to other devices through a cable with certain electrical characteristics. The verification logic is converted into the type set of the preset connection edge of the point, the type set of the preset adjacent point of the point, the type set of the preset connection point of the edge, the preset degree of the point, and the attribute value information of the point or the edge, and the meta metadata of the graph database is constructed according to the information. It should be noted that the metadata of the database refers to the data about the data, which is the structural information of the point and edge data in the graph database. The type set of the preset connection edge of the point, the type set of the preset adjacent point of the point, and other information introduced in this embodiment are structural information about the structural information on the basis of the structural information of the point and edge data.

[0039] In step S202, the data in the graph database is verified by the visualization client according to the meta metadata of the graph database. Optionally, the meta metadata constructed in step S201 can be used for data verification or restrictive detection in the visualization client when the terminal user of the power grid intelligent application performs data entry. In addition to the type set of the preset connection edge of the point, the type set of the preset adjacent point of the point, the type set of the preset connection point of the edge, the preset degree of the point, and the attribute value information of the point or the edge, the meta metadata can be expanded according to the input verification logic of the power grid intelligent application.

[0040] In the embodiment of the present application, the meta metadata of the graph database is constructed according to the type set of the preset connection edge of the point, the type set of the preset adjacent point of the point, the type set of the preset connection point of the edge, the preset degree of the point, and the attribute value information of the point or the edge, the meta metadata of the graph database is the structural information of the schema structural metadata describing the graph database, and the data in the graph database is checked by the visualization client according to the meta metadata of the graph database. Since the embodiment of the present application supports the original graph database server side data checking, and checks the point and edge data according to the meta metadata by the visualization client, a simple and feasible checking method is provided for checking the data in the graph database according to the power grid equipment checking logic, that is, the type set of the preset connection edge of the point, the type set of the preset adjacent point of the point, the type set of the preset connection point of the edge, and the like, thereby achieving the technical effects of reducing the processing load of the graph database server side and improving the understandability of the data. The problem of low checking efficiency of the power grid graph database in the related art is solved.

[0041] As an optional embodiment, the type set of the preset connection point of the edge includes a starting point type set and / or a target point type set; the preset degree of the point includes the degree of all type adjacent edges of the point, the degree of any type adjacent edge of the point, and the degree of all type adjacent edges or the degree of any type adjacent edge of the point with a target attribute value; and the attribute value information of the point or the edge includes the maximum value, the minimum value, the enumeration value, the illegal value, and any combination of the predicate of any attribute of any type point or edge, and the predicate is a word describing the attribute value range.

[0042] Optionally, the type set of the preset connection edge of the point, that is, the point connection edge type limiting meta metadata, introduces the type set of the edge that can be connected in the point schema definition, that is, the type of the edge that can be connected by a certain type of point; similarly, the type set of the preset adjacent point of the point, that is, the point connection neighbor point limiting meta metadata, introduces the type set of the neighbor point that can be connected in the point schema definition, that is, the type of the neighbor point that can be connected by a certain type of point.

[0043] The type set of the preset connection point of the edge, that is, the edge connection type limiting meta metadata, introduces the type of the point that can be connected by the edge in the edge schema, that is, the type set of the starting point, the type set of the target point, or the combination of the type set of the starting point and the type set of the target point that can be connected by a certain type of edge.

[0044] The preset degree of a point, i.e., the degree-related metadata of the point, introduces a degree limit for the point. The preset degree of the point includes: the degree of all types of adjacent edges of the point, i.e., the degree of all connectable edge types (edge schema) of the point; the degree of any type of adjacent edge of the point, i.e., the degree of the point specifying one or more edge schemas; the degree of all types of adjacent edges of the point or the degree of any type of adjacent edge of the point of any type and target attribute value, i.e., the degree of the point corresponding to a specific attribute value of a specific point schema, i.e., the points of the same schema can have different degree limits when the attribute values are different, and it can be limited that the degree is for all types of edges or for one or more types of edges. Wherein, the degree can refer to the maximum out-degree, the maximum in-degree or the maximum total degree (the sum of the maximum out-degree and the maximum in-degree). When performing power grid specific device data warehousing, the degree limit can be introduced for the point according to the category of the device (i.e., the schema category), the device specific model identified by a certain characteristic (such as a specific attribute value), the interface number characteristic, and the like, thereby avoiding the emergence of non-standard design.

[0045] The attribute value information of a point or an edge, i.e., the metadata about the value range of the attribute, the value range setting of a certain attribute corresponding to a certain schema can include any combination of maximum value, minimum value, enumeration value, illegal value and predicate, wherein the enumeration value refers to the limited and allowed value in the list defined at the time of creation; the illegal value refers to the value that cannot be equal to; the predicate is a word describing the value range of the attribute, such as "equal to a certain value", "greater than a certain value", "value within a certain range", etc. The above attribute value information can be combined to form the metadata about the value range of the attribute.

[0046] As an optional embodiment, the data in the graph database is verified by a visual client according to the metadata of the graph database, including: when a visual client adds an edge, verifying whether the starting point and the target point of the added edge conform to the metadata of the graph database according to the preset type set of connected edges of the point, the preset type set of adjacent points of the point and the preset type set of connected points of the edge. Optionally, according to the above metadata, the power grid business system supports data verification when the visual client is used to enter the power grid device management data. Specifically, the visual interface can contain all or part of the point and edge information in many cases, so the data verification in this step refers to the data verification of the visual client (non-graph database server side), thereby avoiding the process of verifying the data verification logic on the graph database server side, achieving the purpose of saving network overhead and server side processing resources.

[0047] When the edge is added to the visualization client, if the type set of the preset connection edge of the point is contained in the meta metadata, it is checked whether the start point and the target point of the added edge meet the requirement of the "point-connectable edge". If the type set of the preset adjacent point of the point is contained in the meta metadata, it is checked whether the added edge meets the requirement of the "point-connectable adjacent point" of the start point and the target point respectively. If the type set of the preset connection point of the edge is contained in the meta metadata, it is checked whether the start point and the target point of the added edge meet the requirement of the "edge-connectable point" of the edge. When the edge is added through the visualization interface, the visualization interface usually displays the two connection points of the added edge, and thus the above checking process can be completed through the visualization interface.

[0048] As an optional embodiment, the data in the graph database is checked by the visualization client according to the meta metadata of the graph database, and further includes: checking whether the preset degree of the point meets the meta metadata of the graph database according to the degree of the all-type adjacent edge of the point and / or the degree of the any-type adjacent edge of the point; checking whether the preset degree of the point of any type and target attribute value meets the meta metadata of the graph database according to the degree of the all-type adjacent edge of the point of any type and target attribute value or the degree of the any-type adjacent edge.

[0049] Optionally, when the edge is added, the degree limitation check of the start point and the target point of the edge is performed, that is, it is checked whether the start point and the target point of the added edge meet the preset degree of the point in the meta metadata, so as to ensure that the degree limitation of the start point and the target point of the edge meets the requirement after the new edge is added. When the edge is added through the visualization interface, the pre-determination needs to be performed to determine the condition of the check of the visualization interface. For example, after all the adjacent edges of the start point and the target point of the added edge are displayed (or the visualization interface is loaded), the data is checked according to the degree of the all-type adjacent edge of the point; for another example, after all the edges corresponding to one or more edge schemas of the start point and the target point of the added edge are displayed (or the visualization interface is loaded), the data is checked according to the degree of the any-type adjacent edge of the point; for another example, after the specific attribute value of the start point and the target point of the added edge is loaded on the visualization interface, the data is checked according to the preset degree of the point of the specific type and attribute value, and the specific content of the preset degree of the point can be referred to the description in other embodiments, which will not be described herein.

[0050] As an optional embodiment, the visualization client acquires the attribute value input by the user, and verifies the data in the graph database according to the meta metadata of the graph database by using the visualization client, and further comprises: when the attribute value is modified, verifying whether the modified attribute value conforms to the meta metadata of the graph database according to the attribute value information of any type point or edge. Optionally, the visualization client can acquire the attribute value input by the user, and when it is detected that the attribute value is modified, the data can be verified according to the attribute value information of the point or edge in the meta metadata. It can be understood that the attribute value information of the point or edge can also be verified when the point is created, and the specific content of the attribute value information of the point or edge can be referred to the description in other embodiments, which will not be described here.

[0051] As an optional embodiment, the method further comprises: expanding the meta metadata of the graph database according to the priority of the power grid equipment type; and displaying the points and edges in the graph database according to the expanded meta metadata of the graph database by using the visualization client. Optionally, the meta metadata is structural information describing the schema structural metadata of the graph database, such as the type set of the preset connection edge of the point, the type set of the preset adjacent point of the point, and the like. The meta metadata can be expanded according to application requirements. For example, priority information of the power grid equipment type is introduced in the meta metadata, that is, different power grid equipment types set by the schema or different attribute values are set with display priorities in the meta metadata. When there are too many display elements in the visualization interface, the priority of the power grid equipment type in the meta metadata can be used to determine the points and edges that need to be displayed. It should be noted that the scenario of too many display elements is, for example, that there are thousands or more point and edge elements to be displayed in the visualization interface, or there are too many attribute information to be displayed, or the screen size is smaller compared with the display elements.

[0052] As an optional embodiment, displaying the points and edges in the graph database according to the expanded meta metadata of the graph database by using the visualization client comprises: displaying the points and edges of the target priority, and not displaying the points and edges of the non-target priority; displaying the points and edges of the target priority and the points and edges of the non-target priority according to a first proportion and a second proportion respectively; displaying the points and edges of the target priority and the points and edges of the non-target priority according to a first size and a second size respectively; and when the point or edge of the target priority is selected, displaying the points or edges of the non-target priority within a preset degree range.

[0053] Optionally, when there are too many display elements, the visualization display strategy according to the priority includes but is not limited to the following examples:

[0054] (1) Only display the element types of the target priority, and do not display the element types of the non-target priority.

[0055] (2) Display a certain number of elements with high priority in a large proportion, i.e., a first proportion, and display a certain number of elements with low priority in a small proportion, i.e., a second proportion. For example, display 80% of points and edges of target priority and display 20% of points and edges of non-target priority.

[0056] (3) In terms of display effect, elements with high priority are displayed in a large size, i.e., a first size, and elements with low priority are displayed in a small size, i.e., a second size, in the case of display (e.g., in proportion).

[0057] (4) In terms of interaction, when a displayed point or edge with high priority in a certain region is clicked, points or edges with low priority that are not displayed in the region (e.g., within a preset degree range, i.e., a point with low priority is connected to a point with high priority by an edge) are displayed.

[0058] In the embodiment of the present application, the visualization client can know the size of the display region and the number of elements to be displayed, and in combination with the meta metadata information expanded in the embodiment of the present application, a suitable display strategy can be selected to display the point and edge data in the "too many display elements" scenario. Thus, hierarchical display of the visualization interface is realized, and the effect of providing more flexible visualization display information for the visualization interface is achieved.

[0059] As an optional embodiment, Figure 3 is a schematic diagram of the overall flow of a data verification method for a power grid graph database according to an embodiment of the present application. As shown in Figure 3 , the flow of the method can include the following steps:

[0060] Step S301: Introduce meta metadata information of metadata for data verification of intelligent business application data of a power grid. Optionally, metadata is data about data. If the general characteristics of a "single point" form the structural metadata of a schema, the structural information of a "certain type of point" is introduced in this step, thereby forming the meta metadata of the metadata. The meta metadata introduced in this embodiment includes a type set of preset connection edges of a point, a type set of preset adjacent points of a point, a type set of preset connection points of an edge, a preset degree of a point, and attribute value information of a point or an edge.

[0061] Step S302: Perform data verification when a power grid device management data is input by a visualization client. Optionally, according to the meta metadata obtained in step S301, the point data and edge data are verified by the visualization client according to the type set of preset connection edges of a point, the type set of preset adjacent points of a point, and the type set of preset connection points of an edge in the meta metadata.

[0062] Step S303: Introduce metadata definitions for visualizing display priority. Optionally, the metadata obtained in step S301 can be expanded to include metadata for visualizing display priority.

[0063] In step S304, the visualization interface displays points and edges based on the priority metadata. Based on the expanded metadata from step S303, an appropriate display strategy is selected for the points and edges.

[0064] According to another aspect of the present invention, a data verification device for a power grid diagram database is also provided. Figure 4 This is a structural block diagram of an optional data verification device for a power grid diagram database according to an embodiment of the present invention, such as... Figure 4 As shown, the device may include: a construction module 401, used to construct the metadata of the graph database based on the preset set of connection edge types of the points, the preset set of adjacent point types of the points, the preset set of connection point types of the edges, the preset degree of the points, and the attribute value information of the points or edges, wherein the metadata of the graph database is structural information describing the structural metadata of the graph database schema; and a verification module 402, used to verify the data in the graph database using a visual client based on the metadata of the graph database.

[0065] It should be noted that the construction module 401 in this embodiment can be used to perform the above step S201, and the verification module 402 in this embodiment can be used to perform the above step S202.

[0066] Through the modules described above, while supporting data verification on the original graph database server side, a visual client is used to verify point and edge data based on metadata. This provides a simple and feasible verification method for data in the graph database based on the power grid equipment verification logic, namely the preset set of connection edge types for points, the preset set of adjacent point types for points, and the preset set of connection point types for edges. This achieves the technical effect of reducing the processing load on the graph database server side and improving data understandability. It also solves the problem of low verification efficiency in power grid graph databases in related technologies.

[0067] As an optional embodiment, the preset connection point type set of the edge includes a starting point type set and / or a target point type set; the preset degree of the point includes the degree of all types of adjacent edges of the point, the degree of any type of adjacent edge of the point, and the degree of all types of adjacent edges or any type of adjacent edge of any type of point with a target attribute value; the attribute value information of the point or edge includes the maximum value, minimum value, enumerated value, illegal value, and any combination of predicates for any attribute of any type of point or edge, where the predicate is a word describing the range of attribute values.

[0068] As an optional embodiment, the checking module comprises: a first checking unit configured to check, when the visual client joins an edge, whether the start point and the target point of the joined edge conform to the meta metadata of the graph database according to the preset type set of the connected edges of the point, the preset type set of the adjacent points of the point, and the preset type set of the connected points of the edge.

[0069] As an optional embodiment, the checking module further comprises: a second checking unit configured to check whether the preset degree of the point conforms to the meta metadata of the graph database according to the degrees of all type adjacent edges of the point and / or the degrees of any type adjacent edges of the point; and a third checking unit configured to check whether the preset degree of the point of any type and target attribute value conforms to the meta metadata of the graph database according to the degrees of all type adjacent edges of the point of any type and target attribute value or the degrees of any type adjacent edges.

[0070] As an optional embodiment, the visual client acquires an attribute value input by a user, and the checking module further comprises: a fourth checking unit configured to check, when the attribute value is modified, whether the modified attribute value conforms to the meta metadata of the graph database according to the attribute value information of the point or edge of any type.

[0071] As an optional embodiment, the apparatus further comprises: an expanding module configured to expand the meta metadata of the graph database according to the priority of the power grid equipment type; and a display module configured to display the points and edges in the graph database by using the visual client according to the expanded meta metadata of the graph database.

[0072] As an optional embodiment, the display module comprises: a first display unit configured to display the points and edges of the target priority and not display the points and edges of the non-target priority; a second display unit configured to display the points and edges of the target priority and the points and edges of the non-target priority according to a first proportion and a second proportion respectively; a third display unit configured to display the points and edges of the target priority and the points and edges of the non-target priority according to a first size and a second size respectively; and a fourth display unit configured to display the points or edges of the non-target priority within a preset degree range when the points or edges of the target priority are selected.

[0073] It should be noted that the above modules have the same examples and application scenarios as the corresponding steps, but are not limited to the content disclosed in the above embodiments. It should be noted that the above modules as part of the apparatus can run in the hardware environment as shown in Figure 1 , and can be implemented by software or hardware, wherein the hardware environment includes a network environment.

[0074] According to another aspect of the embodiments of the present application, an electronic device for implementing the above data checking method for the power grid oriented graph database is also provided, which can be a server, a terminal, or a combination thereof.

[0075] Figure 5 This is a structural block diagram of an optional electronic device according to an embodiment of the present invention, such as... Figure 5 As shown, the system includes a processor 501, a communication interface 502, a memory 503, and a communication bus 504. The processor 501, communication interface 502, and memory 503 communicate with each other via the communication bus 504. The memory 503 stores computer programs. When the processor 501 executes the computer program stored in the memory 503, it performs the following steps:

[0076] The metadata of the graph database is constructed based on the preset set of edge types of a point, the preset set of adjacent point types of a point, the preset set of edge types of a point, the preset degree of a point, and the attribute value information of a point or edge. The metadata of the graph database is the structural information describing the structural metadata of the graph database schema. Based on the metadata of the graph database, the data in the graph database is verified using a visual client.

[0077] Optionally, in this embodiment, the communication bus can be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. This communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0078] The communication interface is used for communication between the aforementioned electronic devices and other devices.

[0079] The memory may include RAM, or non-volatile memory, such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor.

[0080] As an example, such as Figure 5 As shown, the memory 503 may include, but is not limited to, the construction module 401 and the verification module 402 in the data verification device for the power grid diagram database. Furthermore, it may include, but is not limited to, other module units in the data verification device for the power grid diagram database, which will not be described further in this example.

[0081] The processor can be a general processor, which can include but is not limited to a CPU (Central Processing Unit), a NP (Network Processor), etc., and can also be a DSP (Digital Signal Processing), an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component.

[0082] In addition, the electronic device further includes a display configured to display a data verification result facing the power grid map database.

[0083] Optionally, specific examples in the embodiment can refer to examples described in the above embodiments, and the embodiment will not be described here again.

[0084] Those skilled in the art can understand that, Figure 5 The structure shown is only schematic, and the device for implementing the above method of data verification facing the power grid map database can be a terminal device, which can be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile Internet Device (MID), a PAD, etc. Figure 5 The structure of the electronic device is not limited. For example, the terminal device can further include more or less components (such as a network interface, a display device, etc.) than those shown in the above embodiment, or have a different configuration from that shown in the above embodiment. Figure 5 The structure of the electronic device is not limited. For example, the terminal device can further include more or less components (such as a network interface, a display device, etc.) than those shown in the above embodiment, or have a different configuration from that shown in the above embodiment. Figure 5 The structure of the electronic device is not limited. For example, the terminal device can further include more or less components (such as a network interface, a display device, etc.) than those shown in the above embodiment, or have a different configuration from that shown in the above embodiment.

[0085] Those skilled in the art can understand that all or part of the steps of the various methods in the above embodiments can be completed by a program instructing the related hardware of the terminal device, and the program can be stored in a computer readable storage medium, which can include a flash disk, a ROM, a RAM, a magnetic disk or an optical disk, etc.

[0086] According to another aspect of the embodiment of the present application, a storage medium is also provided. Optionally, in the embodiment, the storage medium can be used to store program codes for implementing the method of data verification facing the power grid map database.

[0087] Optionally, in the embodiment, the storage medium can be located on at least one of the network devices in the network shown in the above embodiment.

[0088] Optionally, in the embodiment, the storage medium is configured to store program code for executing the following steps:

[0089] According to the type set of preset connection edges of the point, the type set of preset adjacent points of the point, the type set of preset connection points of the edge, the preset degree of the point, and the attribute value information of the point or the edge, meta metadata of the graph database is constructed, the meta metadata of the graph database is structural information describing the schema structural metadata of the graph database; and according to the meta metadata of the graph database, data in the graph database is verified by using a visualization client.

[0090] Optionally, specific examples in the embodiment can refer to examples described in the above-described embodiments, and details are not described herein.

[0091] Optionally, in the embodiment, the storage medium can include but is not limited to a U disk, a ROM, a RAM, a mobile hard disk, a magnetic disk or an optical disk, and various storage media that can store program codes.

[0092] According to still another aspect of the embodiment of the present application, a computer program product or a computer program is also provided, the computer program product or the computer program including computer instructions stored in a computer readable storage medium; a processor of a computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions, so that the computer device executes the data verification method for a power grid oriented graph database in any one of the above-described embodiments.

[0093] The above-described serial numbers of the embodiments of the present application are only for description, and do not represent advantages or disadvantages of the embodiments.

[0094] The integrated units in the above-described embodiments, if realized in the form of software function units and sold or used as independent products, can be stored in the above-described computer readable storage medium. Based on such understanding, the technical solutions of the present application or the whole or part of the technical solutions that essentially contribute to the prior art can be embodied in the form of a software product, the computer software product is stored in a storage medium, and includes a plurality of instructions for causing one or more computer devices (which can be personal computers, servers or network devices, etc.) to execute all or part of the steps of the data verification method for a power grid oriented graph database.

[0095] In the above-described embodiments of the present application, the description of each embodiment has its own focus, and parts not described in detail in a certain embodiment can be referred to the related description of other embodiments.

[0096] In several embodiments provided by the present application, it should be understood that the disclosed client can be implemented in other manners. For example, the described unit embodiments are merely schematic and the division of units is merely logical function division. There can be other division manners in actual implementation. For example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections can be indirect couplings or communication connections through some interfaces, units or modules, and can be in electrical, mechanical or other forms.

[0097] The units described as separated components can or can not be physically separated, and the components displayed as units can or can not be physical units, i.e., can be located in one place or distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purposes of the solutions provided in the embodiments.

[0098] In addition, each functional unit in the various embodiments of the present application can be integrated in a processing unit, or each unit can exist physically as a separate unit, or two or more units can be integrated in one unit. The integrated unit can be implemented in the form of hardware or in the form of a software functional unit.

[0099] The above description is merely preferred embodiments of the present application, and it should be pointed out that, for those skilled in the art, some improvements and refinements can be made without departing from the principles of the present application, and these improvements and refinements should also be considered as falling within the protection scope of the present application.

Claims

1. A data verification method for power grid diagram databases, characterized in that, The method comprises: According to the type set of the preset connection edge of the point, the type set of the preset adjacent point of the point, the type set of the preset connection point of the edge, the preset degree of the point and the attribute value information of the point or the edge, the meta metadata of the graph database is constructed, and the meta metadata of the graph database is the structural information of the schema structural metadata describing the graph database; According to the meta metadata of the graph database, the visual client is used to check the to-be-entered data of the graph database; The type set of the preset connection point of the edge comprises a starting point type set and / or a target point type set; The preset degree of the point comprises the degree of all type adjacent edges of the point, the degree of any type adjacent edge of the point, and the degree of all type adjacent edges or the degree of any type adjacent edge of the point with any type and target attribute value; The attribute value information of the point or the edge comprises the maximum value, the minimum value, the enumeration value, the illegal value and the arbitrary combination of the predicate of any attribute of any type point or edge, and the predicate is a word describing the attribute value range; The visual client is used to check the to-be-entered data of the graph database according to the meta metadata of the graph database, which comprises: When the edge is added in the visual client, whether the starting point and the target point of the added edge meet the meta metadata of the graph database is checked according to the type set of the preset connection edge of the point, the type set of the preset adjacent point of the point and the type set of the preset connection point of the edge; According to the meta metadata of the graph database, the visual client is used to check the to-be-entered data of the graph database, which further comprises: Whether the preset degree of the point meets the meta metadata of the graph database is checked according to the degree of all type adjacent edges of the point and / or the degree of any type adjacent edge of the point; Whether the preset degree of the point with any type and target attribute value meets the meta metadata of the graph database is checked according to the degree of all type adjacent edges or the degree of any type adjacent edge of the point with any type and target attribute value.

2. The grid graph database oriented data validation method of claim 1, wherein, The visual client acquires the attribute value input by the user, and according to the meta metadata of the graph database, the visual client is used to check the to-be-entered data of the graph database, which further comprises: When the attribute value is modified, whether the modified attribute value meets the meta metadata of the graph database is checked according to the attribute value information of any type point or edge.

3. The grid graph database oriented data validation method of claim 1, wherein, The method further comprises: The meta metadata of the graph database is expanded according to the priority of the power grid equipment type; According to the expanded meta metadata of the graph database, the visual client is used to display the points and edges in the graph database.

4. The grid graph database oriented data verification method of claim 3, wherein, According to the expanded meta metadata of the graph database, the visual client is used to display the points and edges in the graph database, which comprises: The points and edges of the target priority are displayed, and the points and edges of the non-target priority are not displayed; The points and edges of the target priority and the points and edges of the non-target priority are respectively displayed according to the first proportion and the second proportion; The points and edges of the target priority and the points and edges of the non-target priority are respectively displayed according to the first size and the second size; When the point or the edge of the target priority is selected, the points or edges of the non-target priority within the preset degree range are displayed.

5. A data verification apparatus for a power grid graph database, characterized by, The device comprises: The construction module is configured to construct meta metadata of the graph database according to a type set of preset connection edges of the point, a type set of preset adjacent points of the point, a type set of preset connection points of the edge, a preset degree of the point, and attribute value information of the point or the edge, wherein the meta metadata of the graph database is structural information of schema structural metadata of the graph database. The verification module is configured to verify data in the graph database by using the visualization client according to the meta metadata of the graph database. The type set of preset connection points of the edge includes a starting point type set and / or a target point type set; the preset degree of the point includes a degree of all type adjacent edges of the point, a degree of any type adjacent edge of the point, and a degree of all type adjacent edges or a degree of any type adjacent edge of the point of any type and target attribute value; and the attribute value information of the point or the edge includes a maximum value, a minimum value, an enumeration value, an illegal value, and any combination of predicates of any attribute of any type point or edge, wherein the predicate is a word describing an attribute value range. The verification module includes a first verification unit configured to verify whether starting points and target points of added edges meet the meta metadata of the graph database according to the type set of preset connection edges of the point, the type set of preset adjacent points of the point, and the type set of preset connection points of the edge when the visualization client adds the edges. The verification module further includes a second verification unit configured to verify whether the preset degree of the point meets the meta metadata of the graph database according to the degree of all type adjacent edges of the point and / or the degree of any type adjacent edge of the point; and a third verification unit configured to verify whether the preset degree of any type and target attribute value point meets the meta metadata of the graph database according to the degree of all type adjacent edges or the degree of any type adjacent edge of the point of any type and target attribute value.

6. An electronic device comprising a processor, a communication interface, a memory and a communication bus, wherein, The processor, the communication interface, and the memory complete communication with each other through the communication bus. The memory is configured to store a computer program. The processor is configured to execute the power grid-oriented graph database data verification method in any one of claims 1 to 4 by running the computer program stored on the memory.

7. A computer readable storage medium, characterized in that, The storage medium stores a computer program, and the computer program is executed by the processor to implement the power grid-oriented graph database data verification method in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Method and device for querying data type of List list container in graph database

    CN115203490A

  • Multi-source data importing method and device for graph database system

    CN115658978A