An interactive method and system for data extension grouping and configuration based on graph data
Through the data expansion grouping and configuration method based on graph data, the problem of data grouping and scalability in the intelligent report interactive system is solved. The efficient correlation query of the graph database is used to realize automatic expansion of data and table display, improve efficiency and support reports. Export.
Patent Information
- Application Number
- CN202310594220.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-24
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2043-05-24
AI Technical Summary
It is difficult for the existing intelligent report interaction system to implement data grouping, automatic expansion, data drill-down and automatic completion styles through simple configuration, resulting in low efficiency.
Using the data expansion grouping and configuration method based on graph data, the configuration information is formed by obtaining the grouping and expansion direction of the data fields, and is saved in the graph database. The query conditions are set according to the configuration information, the associated nodes that meet the conditions are queried, and the same data nodes are merged. , forming tabular data to be displayed in tabular form.
It realizes the grouping and scalability of data fields, makes full use of the high efficiency of edge relationship query in graph database, improves data processing efficiency, meets various business needs and supports report export.
Smart Images

Figure CN116775944B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information technology, and in particular to the application of edge relations in a distributed graph database in a reporting system, and automatic expansion calculation of graph data implemented in the reporting system, and specifically to an interactive method and system for data expansion grouping and configuration based on graph data. Background Art
[0002] In recent years, various data platforms have carried a massive amount of entity information. Faced with a massive amount of entity information, how to accurately analyze the complex intertwined relationships hidden behind these data will help information inference and decision modeling, which has also led to a sharp increase in the demand for searching multi-layer extended relationships between data items.
[0003] How to achieve the functions of grouping, automatic data expansion, data drilling, and automatic style completion through simple configuration to achieve the goal of improving efficiency is a technical challenge facing the current intelligent report interaction system. Summary of the invention
[0004] The present application provides an interactive method and system for data expansion grouping and configuration based on graph data, which is used to solve the problem of how to achieve the functions of grouping, automatic data expansion, data drilling down, and automatic style completion through simple configuration, so as to achieve the purpose of improving efficiency.
[0005] A first aspect of the present invention provides an interactive method for data extension grouping and configuration based on graph data, characterized in that the method comprises:
[0006] Acquire the grouping and expansion direction of the data field, and form configuration information with the report function corresponding to the grouping and the expansion direction, wherein the report function represents the calling function corresponding to the data field in the report;
[0007] Saving the configuration information in a graph database;
[0008] According to the grouping information in the configuration information, setting a query condition, and marking the query condition as a head node;
[0009] According to the edge corresponding to the head node, query the associated nodes that meet the conditions, wherein the associated nodes that meet the conditions represent the nodes that meet the query conditions;
[0010] If there are associated nodes with the same data among the associated nodes that meet the conditions, the associated nodes with the same data are merged;
[0011] The associated nodes that meet the conditions are formed into table data, and the table data is displayed in the form of a table.
[0012] In one practicable manner, the step of obtaining the grouping and expansion direction of the data field and forming the configuration information with the report function corresponding to the grouping and the expansion direction includes:
[0013] According to the grouping of the data fields, a function for searching the data fields in the report is established to form the report function;
[0014] Configuration information for forming groups of the report functions;
[0015] A configuration information interface is established for the configuration information.
[0016] In one practicable manner, the step of saving the configuration information into a graph database includes:
[0017] Saving the configuration information interface into the graph database;
[0018] According to the configuration information interface, the associated nodes in the graph database are called, wherein the associated nodes are associated in the graph database through the edges.
[0019] In one practicable manner, the step of searching for associated nodes that meet the conditions according to the edge corresponding to the head node includes:
[0020] According to the head node and the edge, and in combination with the expansion direction, searching the associated node associated with the head node in the graph database;
[0021] The associated nodes found are arranged in sequence.
[0022] In one practicable manner, the step of searching for associated nodes that meet the conditions according to the edge corresponding to the head node further includes:
[0023] Acquire the attributes of the head node, wherein the attributes of the head node at least include a field style;
[0024] The attributes of the head node are assigned to the associated nodes that meet the conditions found out, so that the associated nodes have the attributes of the head node.
[0025] In one practicable manner, if there are associated nodes with the same data among the associated nodes that meet the condition, the step of merging the associated nodes with the same data includes:
[0026] Compare the found associated nodes to determine whether the data in each associated node is the same;
[0027] If there are associated nodes with the same data, the associated nodes with the same data are merged to form an associated node of one data.
[0028] In one practicable manner, the step of forming table data of the associated nodes that meet the conditions and displaying the table data in the form of a table includes:
[0029] Creating a table according to the grouping information and the configuration information;
[0030] The associated nodes that meet the conditions are formed into table data and filled in the table, and the table data is displayed under the grouping information.
[0031] The second aspect of the present application provides an interactive system for data extension grouping and configuration based on graph data, characterized in that it includes the aforementioned interactive method for data extension grouping and configuration based on graph data, and the system includes a UI interface, a grouping module, an extension direction module, a presentation area, a graph database, and an execution unit;
[0032] The grouping module is displayed on the left side of the UI interface, the expansion direction module is displayed on the right side, and the presentation area is displayed in the middle. The UI interface is used to present the grouping module, the expansion direction module and the presentation area, and present the data of the associated nodes in the graph database in the presentation area, wherein the grouping module is presented in the UI interface in a draggable manner;
[0033] The grouping module and the extension direction module constitute a configuration information module, and the configuration information module is stored in the graph database through an interface, each of the grouping modules corresponds to a data field, and the extension direction module is used to set the extension direction of the query condition according to the grouping information;
[0034] The presentation area is used to present the associated nodes obtained in the graph database according to the configuration information module;
[0035] The execution unit is connected to the UI interface, the grouping module, the expansion direction module, the presentation area and the graph database respectively, and the execution unit is configured as follows:
[0036] Acquire the grouping and expansion direction of the data field, and form configuration information with the report function corresponding to the grouping and the expansion direction, wherein the report function represents the calling function corresponding to the data field in the report;
[0037] Saving the configuration information in a graph database;
[0038] According to the grouping information in the configuration information, setting a query condition, and marking the query condition as a head node;
[0039] According to the edge corresponding to the head node, query the associated nodes that meet the conditions, wherein the associated nodes that meet the conditions represent nodes that meet the expansion direction and the query conditions;
[0040] If there are associated nodes with the same data among the associated nodes that meet the conditions, the associated nodes with the same data are merged;
[0041] The associated nodes that meet the conditions are formed into table data, and the table data is displayed in the form of a table.
[0042] A third aspect of the present application provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and wherein the processor implements the steps of the aforementioned interactive method for data expansion grouping and configuration based on graph data when executing the computer program.
[0043] A fourth aspect of the present application provides a computer storage medium having a computer program stored thereon, characterized in that when the computer program is executed by a processor, the steps of the aforementioned interactive method for data expansion grouping and configuration based on graph data are implemented.
[0044] Beneficial effects of the present invention:
[0045] The present application discloses an interactive method for data expansion grouping and configuration based on graph data. First, the grouping and expansion direction of the data field are obtained, and the report function corresponding to the grouping and the expansion direction is formed into configuration information, wherein the report function represents the call function corresponding to the data field in the report; and the configuration information is saved in the graph database; secondly, according to the grouping information in the configuration information, the query condition is set, and the query condition is marked as the head node; next, according to the edge corresponding to the head node, the associated nodes that meet the condition are queried, wherein the associated nodes that meet the condition represent the nodes that meet the expansion direction and the query condition; the same data is processed, and if there are associated nodes with the same data in the associated nodes that meet the condition, the associated nodes with the same data are merged; finally, the associated nodes that meet the condition are formed into table data, and the table data is displayed in the form of a table. The above method realizes the grouping and extensibility of the data field, and fully utilizes the high efficiency of edge relationship query in the graph database.
[0046] In addition, the present application provides an interactive system for data expansion grouping and configuration based on graph data, which can perform drag-and-drop operations on data fields, group data fields in the reporting system and set extended attributes, implement and save data for corresponding operations through the UI interface, and then use the graph database to parse and calculate the saved data, making full use of the high efficiency of edge relationship queries to process the data into the structure required by the reporting system. Then, the reporting system can perform style rendering and data loading according to the data, which can not only meet various business needs, but also support report export. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0048] Figure 1 A flowchart of an interactive method for data expansion grouping and configuration based on graph data of the present invention;
[0049] Figure 2 A UI interface of an interactive method for data expansion grouping and configuration based on graph data of the present invention;
[0050] Figure 3 The present invention is a schematic diagram of an interactive method for data expansion grouping and configuration based on graph data. DETAILED DESCRIPTION
[0051] In the description of the embodiments of the present invention, those skilled in the art should know that the embodiments of the present invention can be implemented as methods, devices, electronic devices and computer-readable storage media. Therefore, the embodiments of the present invention can be specifically implemented in the following forms: complete hardware, complete software (including firmware, resident software, microcode, etc.), a combination of hardware and software. In addition, in some embodiments, the embodiments of the present invention can also be implemented in the form of a computer program product in one or more computer-readable storage media, and the computer-readable storage medium contains computer program code.
[0052] The above-mentioned computer-readable storage medium may adopt any combination of one or more computer-readable storage media. Computer-readable storage media include: electrical, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or devices, or any combination of the above. More specific examples of computer-readable storage media include: portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM), flash memories, optical fibers, compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices or any combination of the above. In an embodiment of the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device, or device.
[0053] The computer program code contained in the above-mentioned computer-readable storage medium can be transmitted using any appropriate medium, including: wireless, wire, optical cable, radio frequency (RF) or any suitable combination thereof.
[0054] The computer program code for performing the operation of the embodiments of the present invention can be written in assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, integrated circuit configuration data, or in one or more programming languages or a combination thereof, the programming language including an object-oriented programming language, such as Java, Smalltalk, C++, and also including a conventional procedural programming language, such as C language or a similar programming language. The computer program code can be executed completely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer, partially on a remote computer, and completely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer or to an external computer through any type of network, including a local area network (LAN) or a wide area network (WAN).
[0055] The embodiments of the present invention describe the provided methods, devices, and electronic devices through flowcharts and / or block diagrams.
[0056] It should be understood that each box in the flowchart and / or block diagram and the combination of boxes in the flowchart and / or block diagram can be implemented by computer-readable program instructions. These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine, and these computer-readable program instructions are executed by a computer or other programmable data processing device to produce a device that implements the functions / operations specified by the boxes in the flowchart and / or block diagram.
[0057] These computer-readable program instructions may also be stored in a computer-readable storage medium that enables a computer or other programmable data processing device to work in a specific manner. In this way, the instructions stored in the computer-readable storage medium produce an instruction device product including functions / operations specified in the blocks in the flowchart and / or block diagram.
[0058] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device, so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby enabling the instructions executed on the computer or other programmable data processing apparatus to provide a process for implementing the functions / operations specified in the blocks in the flowchart and / or block diagram.
[0059] The terms "first" and "second" in the description and claims of the embodiments of the present invention are used to distinguish different objects rather than to describe a specific order of objects. For example, a first target object and a second target object are used to distinguish different target objects rather than to describe a specific order of target objects.
[0060] In the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0061] In the description of the embodiments of the present invention, unless otherwise specified, the meaning of "multiple" refers to two or more than two. For example, multiple processing units refer to two or more processing units; multiple systems refer to two or more systems.
[0062] Reporting systems mostly use commonly used relational databases, such as MySQL and Oracle, which have performance bottlenecks when processing huge amounts of data in reports, because strict data normalization is required during design, dividing data into different tables and deleting duplicate data. This normalization ensures strong data consistency and supports ACID transactions. However, this also brings limitations to relational queries. The use of graph databases solves this problem very well. Graph databases have strong advantages in relational query performance when processing highly correlated data and natural graph problem scenarios. Because traditional relational databases need to perform expensive table joins (JOIN) when performing relational queries, involving a large number of IO operations and memory consumption. Graph databases have targeted optimizations for relational queries, which can prevent queries for local data from triggering the reading of all data, and can efficiently query related data. Secondly, complex reports also have high requirements for the front end. Whether it is a grouped header, an extended data field, or a merged cell, or data drill-down, a large amount of style calculations are required to correctly display the final effect of the table.
[0063] Therefore, the present application provides an interactive method for data extension grouping and configuration based on graph data.
[0064] Figure 1 This is a flowchart of an interactive method for data expansion grouping and configuration based on graph data of the present application.
[0065] Figure 2 This is a schematic diagram of an interactive method for data expansion grouping and configuration based on graph data in the present application.
[0066] An interactive method for data extension grouping and configuration based on graph data includes the following steps:
[0067] S100: Acquire the grouping and expansion direction of the data field, and form configuration information with the report functions corresponding to the grouping and expansion direction.
[0068] Among them, the report function represents the calling function corresponding to the data field in the report.
[0069] Data fields are understood to be key fields or representative fields, such as date, province, city, transportation volume, etc. In other words, data fields represent the content displayed by the group. Under the date group, the date in the report is displayed. Correspondingly, under the city group, the districts contained in the city are displayed. Provinces and transportation volume are no longer enumerated.
[0070] According to the grouping of data fields, a function for searching data fields in the report is established to form a report function. The report function is formed into grouped configuration information. A configuration information interface is established for the configuration information.
[0071] Specifically, the data under the grouping of the data field is obtained through the report. It should be noted that the report may include multiple data, and not all of these data are what the grouping of the data field wants to obtain. In this way, it is necessary to use a function to filter the data in the report to obtain the data that is desired under the grouping of the data field.
[0072] There may be multiple reports, and the report function can be used to determine the report called by the data field.
[0073] It should be noted that the configuration information for forming a group using a report function includes the report function. In this way, when a configuration information interface is established for the configuration information, the report function can be used to filter the report. The report function is used as a condition for filtering data in the report, so that when previewing the table, the data in the report can be obtained through the report function.
[0074] S200: Save the configuration information into the graph database.
[0075] The configuration information interface is saved in the graph database. In this way, the corresponding data in the graph database can be found by using the configuration information interface.
[0076] According to the configuration information interface, the associated nodes in the graph database are called, wherein the associated nodes are associated through edges in the graph database.
[0077] It should be noted that the data in the graph database is stored in the form of nodes and edges. Each node has corresponding data, and the nodes are connected by edges, forming related data.
[0078] For example, a node is found through the configuration information interface, and then the next node is found on the edge passing through this node. In this way, the two nodes can be called associated nodes. All associated nodes that form an association in the graph database can be found through the report function included in the configuration information. In addition, the associated nodes can also be filtered through the function to obtain the desired associated nodes (indicating the data of the nodes that are desired).
[0079] S300: Setting query conditions according to the grouping information in the configuration information, and marking the query conditions as head nodes.
[0080] The query condition is marked as the head node, where the query condition can be understood as a report function, for example, Figure 2 As shown, Figure 2 "Report-Function.Transportation Volume" is the query condition, which is the head node. The head node finds the associated node associated with the head node according to the configuration information interface.
[0081] S400: Query the associated nodes that meet the conditions according to the edge corresponding to the head node.
[0082] The associated nodes that meet the conditions represent the nodes that meet the query conditions.
[0083] Specifically, according to the head node and the edge, and in combination with the expansion direction, the associated nodes associated with the head node are searched in the graph database. The searched associated nodes are arranged in order. The found associated nodes are arranged in order, wherein the order can be arranged according to the order in which they are found, or according to the size, etc., which is not limited by the present application.
[0084] It should be noted that the attributes of the head node are obtained, wherein the attributes of the head node at least include the field style. Exemplarily, the attributes of the head node may represent indentation of two spaces, or other attributes that limit the field style, which is not limited in this application.
[0085] Next, the attributes of the head node are assigned to the queried associated nodes that meet the conditions, so that the associated nodes have the attributes of the head node. That is to say, when the head node has attributes, all the associated nodes that meet the adjustment queried according to the head node are assigned corresponding attributes. For example, the attribute of the head node is indented by two spaces, and all the associated nodes are also indented by two spaces. This can ensure the uniformity of the field style of the found associated nodes and improve readability. It should also be noted that the attributes of the head node can be understood as the standardization of the found associated nodes.
[0086] S500: If there are associated nodes with the same data among the associated nodes that meet the conditions, the associated nodes with the same data are merged.
[0087] The found associated nodes are compared to determine whether the data in each associated node is the same. If there are associated nodes with the same data, the associated nodes with the same data are merged to form an associated node for one piece of data.
[0088] Specifically, the same data may appear in the associated nodes, so the data needs to be merged. For example, when 20 identical data appear, the identical data needs to be merged. For example, in a table, cells are merged through row and column merging information, and the merged data style is also recalculated to distinguish the merged data from the unmerged data, so that the viewer can intuitively know which data is merged.
[0089] S600: Form a table of associated nodes that meet the conditions, and display the table.
[0090] Among them, a table is established according to the grouping information and the configuration information; the associated nodes that meet the conditions are formed into table data and filled in the table, and the table data is displayed under the grouping information.
[0091] Specifically, the table header is determined according to the grouping information, and the data content of the table is determined according to the configuration information. In this way, a table is first established according to the grouping information and the configuration information, and the associated nodes that meet the conditions are formed; the data required in the table are filled in the table. For example, a cell in a row in the table is used as a group, and the grouping information (data field) is displayed, and then the data of the associated nodes are displayed in the form of columns below this cell.
[0092] The second aspect of the present application also provides an interactive system for data expansion grouping and configuration based on graph data, including the aforementioned interactive method for data expansion grouping and configuration based on graph data, and the system includes a UI interface, a grouping module, an expansion direction module, a presentation area, a graph database and an execution unit.
[0093] The left side of the UI interface displays the grouping module, the right side displays the expansion direction module, and the middle displays the presentation area. The UI interface is used to present the grouping module, the expansion direction module and the presentation area, and to present the data of the associated nodes in the graph database in the presentation area. The grouping module is presented in the UI interface in a draggable manner.
[0094] The grouping module and the expansion direction module constitute a configuration information module, which is stored in the graph database through an interface. Each grouping module corresponds to a data field, and the expansion direction module is used to set the expansion direction of the query condition according to the grouping information.
[0095] The presentation area is used to present the associated nodes obtained in the graph database according to the configuration information module.
[0096] The execution unit is connected to the UI interface, the grouping module, the expansion direction module, the presentation area and the graph database respectively, and the execution unit is configured as follows:
[0097] Acquire the grouping and expansion direction of the data field, and form configuration information with the report function corresponding to the grouping and expansion direction, wherein the report function represents the calling function corresponding to the data field in the report;
[0098] Save the configuration information to the graph database;
[0099] According to the grouping information in the configuration information, set the query condition and mark the query condition as the head node;
[0100] According to the edge corresponding to the head node, query the associated nodes that meet the conditions, where the associated nodes that meet the conditions represent the nodes that meet the expansion direction and the query conditions;
[0101] If there are associated nodes with the same data among the associated nodes that meet the conditions, the associated nodes with the same data will be merged;
[0102] The associated nodes that meet the conditions are formed into tabular data, and the tabular data is displayed in the form of a table.
[0103] Working principle:
[0104] When the server returns the final result of the graph database calculation to the client (the client is a computer with a reporting system), the reporting system (system) will render the expanded data fields and some key fields used for table styles according to the grouping. Specifically, based on the HTML5 Canvas canvas, the report is divided into several modules, such as edge drawing, cell merging, data filling, row and column freezing, etc. First, the reporting system will draw the entire table area according to the configuration information, and draw the area edges according to the information after grouping expansion, which is the final presentation area of the table; merge the cells through the information of row and column merging, and recalculate the merged style; after the style calculation is completed, data filling begins, and the text is drawn into the cell according to the value in the cell attributes and several style fields. The composite header also involves the drawing of oblique lines, which can be connected by calculating the coordinates of the center of the triangle and then connecting the lines. The algorithm does not limit the number of oblique lines; the freezing information of the rows and columns is uniformly set at the end, which is actually a simulated scrolling of the partitions.
[0105] Example:
[0106] 1. This application is a report system based on B / S (browser / server) architecture, which depends on the browser's operating environment. Log in to the system through your account. When editing a report, you can add any data table, and the data fields will be automatically brought out. You can then drag and drop the fields into the report, such as Figure 2 As shown on the left;
[0107] 2. Click the field with the mouse to select it. At this time, the property editing panel will appear on the right side of the system. Here you can set the grouping properties and expansion direction of the field to tell the graph database how to perform automatic calculations. Some settings such as indentation and conditional styles are also here, such as Figure 2 As shown on the right;
[0108] 3. In addition to the field property settings on the right, you can also set the field style, that is, operate through the function buttons on the top toolbar. Table slashes, border colors, cell merges and other functions are all performed here, such as Figure 2 Shown at top.
[0109] To sum up, compared with the prior art, the present application solves the data grouping and extensibility of the reporting system. The traditional reporting system can only calculate and display values according to formulas, and cannot be closely integrated with the business layer, so it is even more impossible to achieve data grouping and expansion. Some reporting systems, although supported by data fields, still rely on traditional relational databases, which still have the problem of low efficiency when calculating complex relational data and processing large amounts of data. The present application can drag and drop data fields, group and set extended attributes for data fields in the report, implement and save the data of the corresponding operations through the UI interface of the client system, and then use the graph database to parse and calculate the saved data, making full use of the high efficiency of edge relationship queries to process the data into the structure required by the reporting system, and then the reporting system can perform style rendering and data loading according to the data, which can not only meet various business needs, but also support report export.
[0110] The third aspect of the present application provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and is characterized in that when the processor executes the computer program, the steps of the aforementioned interactive method for data expansion grouping and configuration based on graph data are implemented.
[0111] A fourth aspect of the present application provides a computer storage medium having a computer program stored thereon, characterized in that when the computer program is executed by a processor, the steps of the aforementioned interactive method for data expansion grouping and configuration based on graph data are implemented.
[0112] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. An interactive method for data expansion grouping and configuration based on graph data, characterized in that: Methods include: Acquire the grouping and expansion direction of the data field, and form configuration information with the report function corresponding to the grouping and the expansion direction, wherein the report function represents the calling function corresponding to the data field in the report; Saving the configuration information in a graph database; According to the grouping information in the configuration information, setting a query condition, and marking the query condition as a head node; According to the edge corresponding to the head node, query the associated nodes that meet the conditions, wherein the associated nodes that meet the conditions represent the nodes that meet the query conditions; If there are associated nodes with the same data among the associated nodes that meet the conditions, the associated nodes with the same data are merged; The associated nodes that meet the conditions are formed into table data, and the table data is displayed in the form of a table.
2. According to claim 1, the interactive method for data expansion grouping and configuration based on graph data is characterized in that: The step of obtaining the grouping and expansion direction of the data field, and forming the report function corresponding to the grouping and the expansion direction into configuration information includes: According to the grouping of the data fields, a function for searching the data fields in the report is established to form the report function; Configuration information for forming groups of the report functions; A configuration information interface is established for the configuration information.
3. The interactive method for data expansion grouping and configuration based on graph data according to claim 2, characterized in that: The step of saving the configuration information into the graph database includes: Saving the configuration information interface into the graph database; According to the configuration information interface, the associated nodes in the graph database are called, wherein the associated nodes are associated in the graph database through the edges.
4. The interactive method for data expansion grouping and configuration based on graph data according to claim 1, characterized in that: The step of searching for associated nodes that meet the conditions according to the edge corresponding to the head node includes: According to the head node and the edge, and in combination with the expansion direction, searching the associated node associated with the head node in the graph database; The associated nodes found are arranged in sequence.
5. The interactive method for data expansion grouping and configuration based on graph data according to claim 4, characterized in that: The step of searching for associated nodes that meet the conditions according to the edge corresponding to the head node also includes: Acquire the attributes of the head node, wherein the attributes of the head node at least include a field style; The attributes of the head node are assigned to the associated nodes that meet the conditions found out, so that the associated nodes have the attributes of the head node.
6. The interactive method for data expansion grouping and configuration based on graph data according to claim 1, characterized in that: If there are associated nodes with the same data among the associated nodes that meet the conditions, the step of merging the associated nodes with the same data includes: Compare the found associated nodes to determine whether the data in each associated node is the same; If there are associated nodes with the same data, the associated nodes with the same data are merged to form an associated node of one data.
7. The interactive method for data expansion grouping and configuration based on graph data according to claim 1, characterized in that: The step of forming table data from the associated nodes that meet the conditions and displaying the table data in the form of a table includes: Creating a table according to the grouping information and the configuration information; The associated nodes that meet the conditions are formed into table data and filled in the table, and the table data is displayed under the grouping information.
8. An interactive system for data expansion grouping and configuration based on graph data, characterized in that: An interactive method for data expansion grouping and configuration based on graph data according to any one of claims 1 to 7, wherein the system comprises a UI interface, a grouping module, an expansion direction module, a presentation area, a graph database and an execution unit; The grouping module is displayed on the left side of the UI interface, the expansion direction module is displayed on the right side, and the presentation area is displayed in the middle. The UI interface is used to present the grouping module, the expansion direction module and the presentation area, and present the data of the associated nodes in the graph database in the presentation area, wherein the grouping module is presented in the UI interface in a draggable manner; The grouping module and the extension direction module constitute a configuration information module, and the configuration information module is stored in the graph database through an interface, each of the grouping modules corresponds to a data field, and the extension direction module is used to set the extension direction of the query condition according to the grouping information; The presentation area is used to present the associated nodes obtained in the graph database according to the configuration information module; The execution unit is connected to the UI interface, the grouping module, the expansion direction module, the presentation area and the graph database respectively, and the execution unit is configured as follows: Acquire the grouping and expansion direction of the data field, and form configuration information with the report function corresponding to the grouping and the expansion direction, wherein the report function represents the calling function corresponding to the data field in the report; Saving the configuration information in a graph database; According to the grouping information in the configuration information, setting a query condition, and marking the query condition as a head node; According to the edge corresponding to the head node, query the associated nodes that meet the conditions, wherein the associated nodes that meet the conditions represent nodes that meet the expansion direction and the query conditions; If there are associated nodes with the same data among the associated nodes that meet the conditions, the associated nodes with the same data are merged; The associated nodes that meet the conditions are formed into table data, and the table data is displayed in the form of a table.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the processor implements the steps of an interactive method for data expansion grouping and configuration based on graph data as described in any one of claims 1 to 7.
10. A computer storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of an interactive method for data expansion grouping and configuration based on graph data as described in any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Data-driven visualization method and system of graph database
CN107545019A
Automatic data grouping report interaction device based on graph data
CN116644217A
Tool to build and store a data model and queries for a graph database
US20220342932A1
