CN112632194B - Method, device, equipment and storage medium for representing graphic visualization relationship of data - Google Patents

Method, device, equipment and storage medium for representing graphic visualization relationship of data Download PDF

Info

Publication number
CN112632194B
CN112632194B CN202011625423.4A CN202011625423A CN112632194B CN 112632194 B CN112632194 B CN 112632194B CN 202011625423 A CN202011625423 A CN 202011625423A CN 112632194 B CN112632194 B CN 112632194B
Authority
CN
China
Prior art keywords
data set
data
elements
sub
source
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011625423.4A
Other languages
Chinese (zh)
Other versions
CN112632194A (en
Inventor
师进凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Securities Co Ltd
Original Assignee
Ping An Securities Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Securities Co Ltd filed Critical Ping An Securities Co Ltd
Priority to CN202011625423.4A priority Critical patent/CN112632194B/en
Publication of CN112632194A publication Critical patent/CN112632194A/en
Application granted granted Critical
Publication of CN112632194B publication Critical patent/CN112632194B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • G06F16/285Clustering or classification
    • G06F16/287Visualization; Browsing
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application relates to big data technology, and discloses a graphic visual relationship representation method of data, which comprises the following steps: dividing an original data set into a plurality of sub-data sets according to types, and sequentially setting Y-axis coordinates for elements in each sub-data set according to data distribution of the original data set in a database to obtain a first data set; dividing the first dataset into a source dataset and a plurality of target datasets; setting X-axis coordinates for the elements in the source data set and the target data set according to the relation among the elements in the first data set to obtain a second data set; and outputting the graphic visualization relation of the original data set according to the X-axis coordinate and the Y-axis coordinate of each element in the second data set. The present application also relates to blockchain techniques in which a source data set and a target data set may be stored. The application can improve the efficiency of the graphic visualization scheme for displaying the complex relationship.

Description

Method, device, equipment and storage medium for representing graphic visualization relationship of data
Technical Field
The present application relates to the field of big data technologies, and in particular, to a method and apparatus for representing a graphic visualization relationship of data, an electronic device, and a computer readable storage medium.
Background
Currently, there are two main types of graphical visual representations of complex relationships: one is a tree-like presentation and one is a chart presentation. When the tree is displayed, the parent level elements and the child level elements of the same level cannot be cross-linked, so that the specific relationship between the elements of the same level cannot be displayed. The graph shows that when the number of elements is large and the relationship is complex and various, the relationship among the elements cannot be displayed quickly and clearly.
Disclosure of Invention
The application provides a method, a device, electronic equipment and a computer readable storage medium for representing a graphic visualization relation of data, and mainly aims to provide a method for displaying a graphic visualization scheme of a complex relation more efficiently.
In order to achieve the above object, the present application provides a method for representing a graphic visual relationship of data, including:
dividing an original data set into a plurality of sub-data sets according to types, and sequentially setting Y-axis coordinates for elements in each sub-data set according to data distribution of the original data set in a database to obtain a first data set;
dividing the first dataset into a source dataset and a plurality of target datasets;
setting X-axis coordinates for the elements in the source data set and the target data set according to the relation among the elements in the first data set to obtain a second data set;
and outputting the graphic visualization relation of the original data set according to the X-axis coordinate and the Y-axis coordinate of each element in the second data set.
Optionally, the sequentially setting Y-axis coordinates for the elements in each sub-dataset according to the data distribution of the original dataset in the database includes:
selecting one of the plurality of sub-data sets, and acquiring all elements contained in the sub-data set;
sorting the elements of the sub-data set according to the location distribution of the elements in the database;
setting Y-axis coordinates for each element in the subset data set according to the sorting result;
and selecting the next sub-data set, sorting the elements in the sub-data set, and setting Y-axis coordinates according to the sorting result.
Optionally, the dividing the first data set into a source data set and a plurality of target data sets includes:
and searching a source node in the first data set to obtain a source data set.
And searching target nodes in the first data set according to the relation between the source node and other elements to obtain a plurality of target data sets.
Optionally, the setting X-axis coordinates for the elements in the source data set and the target data set according to the relationship between the elements in the first data set includes:
dividing the source data set into a plurality of source data subsets by type;
sequentially selecting one of the source data subsets;
setting X-axis coordinates for elements in the source data subset, and selecting a source node in the source data subset;
selecting a target node with a direct sub-relationship with the source node in a target data set corresponding to the source node to obtain a sub-class element set;
sorting the elements in the sub-class element set, and setting X-axis coordinates for the elements in the sub-class element set according to the sorting result;
updating the sub-class element set until the source data subset and the corresponding elements of the target data set are set with X-axis coordinates;
and judging whether each source data subset is selected completely or not until the X-axis coordinates of the elements in the source data set and the target data sets are set.
Optionally, the updating the sub-class element set includes:
selecting a target node with a direct sub-relationship with the element of the sub-class element set in the target data set as the affiliated element of the sub-class element set;
and sorting the elements in the sub-class element set, and setting X-axis coordinate values for the elements in the sub-class element set according to the sorting result.
In order to solve the above problems, the present application also provides a graphic visual relationship representing apparatus of data, the apparatus comprising:
the Y-coordinate setting module is used for dividing an original data set into a plurality of sub-data sets according to types, sequentially setting Y-axis coordinates for elements in each sub-data set according to data distribution of the original data set in a database, and obtaining a first data set;
a data dividing module for dividing the first data set into a source data set and a plurality of target data sets;
the X coordinate setting module is used for setting X axis coordinates for the elements in the source data set and the target data set according to the relation among the elements in the first data set to obtain a second data set;
and the graphic relation output module is used for outputting the graphic visualization relation of the original data set according to the X-axis coordinate and the Y-axis coordinate of each element in the second data set.
Optionally, when sequentially setting the Y-axis coordinates for the elements in each sub-dataset according to the data distribution of the original dataset in the database, the Y-coordinate setting module performs the following operations:
selecting one of the plurality of sub-data sets, and acquiring all elements contained in the sub-data set;
sorting the elements of the sub-data set according to the location distribution of the elements in the database;
setting Y-axis coordinates for each element in the subset data set according to the sorting result;
and selecting the next sub-data set, sorting the elements in the sub-data set, and setting Y-axis coordinates according to the sorting result.
Optionally, the data dividing module is specifically configured to:
and searching a source node in the first data set to obtain a source data set.
And searching target nodes in the first data set according to the relation between the source node and other elements to obtain a plurality of target data sets.
In order to solve the above-mentioned problems, the present application also provides an electronic apparatus including:
a memory storing at least one instruction; a kind of electronic device with high-pressure air-conditioning system
And the processor executes the instructions stored in the memory to realize the method for representing the graphic visual relationship of the data.
In order to solve the above-mentioned problems, the present application also provides a computer-readable storage medium including a storage data area and a storage program area, the storage data area storing data, the storage program area storing a computer program, the computer program when executed by a processor implementing the graphical visual relationship representation method of data as described in any one of the above.
According to the embodiment of the application, an original data set is divided into a plurality of sub-data sets according to types, Y-axis coordinates are sequentially set for elements in each sub-data set according to data distribution of the original data set in a database, a first data set is obtained, and specific relations among peer elements can be displayed by using Y-axis distribution in the database; dividing the first data set into a source data set and a plurality of target data sets, reducing the data quantity processed by a computer each time, improving the efficiency and facilitating the subsequent calculation; according to the relation among the elements in the first data set, setting X-axis coordinates for the elements in the source data set and the target data set to obtain a second data set, and when the elements are more, the calculated amount can be reduced, and the working efficiency can be improved; and outputting the graphic visualization relation of the original data set according to the X-axis coordinate and the Y-axis coordinate of each element in the second data set, so as to display in a clearer and more visual mode, and facilitate the understanding of users. Therefore, the method, the device and the computer readable storage medium for representing the graphic visualization relationship of the data can improve the efficiency of the graphic visualization scheme for displaying the complex relationship.
Drawings
FIG. 1 is a flow chart of a method for representing a graphical visual relationship of data according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating a method for setting Y-coordinates of an element according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating a data set partitioning method according to an embodiment of the present application;
FIG. 4 is a flowchart illustrating a method for setting an X coordinate of an element according to an embodiment of the present application;
FIG. 5 is a schematic block diagram of a device for representing a graphic visual relationship of data according to an embodiment of the present application;
FIG. 6 is a schematic diagram of an internal structure of an electronic device for implementing a method for representing a graphic visual relationship of data according to an embodiment of the present application;
the achievement of the objects, functional features and advantages of the present application will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The execution subject of the method for representing the graphic visualization relationship of the data provided by the embodiment of the application includes, but is not limited to, at least one of a server, a terminal and the like capable of being configured to execute the method provided by the embodiment of the application. In other words, the method of graphically visualizing the relationship of data may be performed by software or hardware installed in a terminal device or a server device, and the software may be a blockchain platform. The service end includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like.
Referring to fig. 1, a flowchart of a rating method based on an algorithm model according to an embodiment of the application is shown. In this embodiment, the method for representing the graphic visual relationship of data includes:
s1, dividing an original data set into a plurality of sub-data sets according to types, and sequentially setting Y-axis coordinates for elements in each sub-data set according to data distribution of the original data set in a database to obtain a first data set.
In the embodiment of the application, the original data set comprises a plurality of elements and association relations among the elements. Preferably, in the embodiment of the present application, the original data set may be obtained from a preset database. Wherein the database is a graph database that stores structured data on a network (mathematically called a graph) rather than in tables for storing elements and relationships between elements, such as neo4j database.
Preferably, the embodiment of the application acquires the original data set from a preset database by the following method:
the database is connected through a built-in interface built in advance;
and inquiring in the database according to preset data screening conditions to obtain the original data set.
Further, in the embodiment of the application, the original data set is divided according to types by the pre-constructed data processing package, the data of the same type in the original data set is gathered to obtain a plurality of sub data sets, and the data volume required to be processed by the computer system is reduced, for example, in the relation of all staff members of a large company, the staff members of a certain company can be classified into the staff members of a certain specific department according to departments.
Preferably, the data processing package is a NumPy-based tool that incorporates a large library and some standard data model that can efficiently handle large data sets.
In detail, referring to fig. 2, the sequentially setting Y-axis coordinates for the elements in each sub-dataset according to the data distribution of the original dataset in the database includes:
s21, sequentially selecting one of the plurality of sub-data sets to acquire all elements contained in the sub-data set;
s22, sorting the elements of the sub-data sets according to the position distribution of the elements in the database;
s23, setting Y-axis coordinates for each element in the sub-data set according to the sorting result, for example, the Y-axis coordinates of the element arranged at the first position can be set to be 1, and the Y-axis coordinates of the following elements are sequentially added with 1;
and S24, judging whether each sub-data set is selected completely, returning to the step S21 until each sub-data set is selected completely, and executing S25 to collect all the sub-data sets and obtain a first data set if each element in each sub-data set is set with a Y-axis coordinate.
The elements of the sub-data set are ordered according to the position distribution of the elements in the database, and the ordering is performed according to the position of the elements in the database.
In the embodiment of the application, the Y-coordinate values of the elements in the first data set are positively correlated according to the position distribution in the database.
S2, dividing the first data set into a source data set and a plurality of target data sets.
In detail, referring to fig. 3, the S2 includes:
s30, searching a source node in the first data set to obtain a source data set;
s31, searching target nodes in the first data set according to the relation between the source nodes and other elements to obtain a plurality of target data sets.
The source node is an element of the first data set, except the element, which does not have a parent element, for example, in a family relationship, a first person on a family tree is the source node; the target node is the other elements except the source node in all elements contained in a relation; the source data set comprises a plurality of source nodes, and each target data set comprises a plurality of target nodes with association relation with one source node. The source node set and the target data set have larger data sizes, and the blockchain has high throughput, can process a large amount of data at a time, and can be stored in nodes of the blockchain.
Preferably, the embodiment of the present application searches the source node and the target node in the first data set through a preset data processing packet.
S3, according to the relation among the elements in the first data set, setting X-axis coordinates for the elements in the source data set and the target data set, and obtaining a second data set.
In detail, referring to fig. 4, the step S3 includes:
s41, dividing the source data set into a plurality of source data subsets according to types;
s42, sequentially selecting one of the source data subsets;
s43, setting X-axis coordinates for elements in the source data subset, and selecting a source node in the source data subset;
s44, selecting a target node with a direct sub-relationship with the source node in a target data set corresponding to the source node to obtain a sub-class element set;
s45, sorting the elements in the sub-class element set, and setting X-axis coordinates for the elements in the sub-class element set according to the sorting result;
s46, updating the sub-class element set until the source data subset and the corresponding elements of the target data set are set with X-axis coordinates;
and S47, judging whether each source data subset is selected completely, returning to the step S42, and obtaining and outputting a second data set in S48 when the X-axis coordinates of the elements in the source data set and the plurality of target data sets are set.
Further, the updating the sub-class element set includes: selecting a target node with a direct sub-relationship with the element of the sub-class element set in the target data set as the affiliated element of the sub-class element set; and sorting the elements in the sub-class element set, and setting X-axis coordinate values for the elements in the sub-class element set according to the sorting result.
Preferably, the embodiment of the application sets an X-axis coordinate for the elements in the source data subset according to the position distribution of the elements in the database; the sorting of the elements in the sub-class element set is based on the priority of the association between each element and the parent class element to which it belongs.
The embodiment of the application combines the elements of the source data set and the target data sets to obtain a second data set, wherein the X-axis coordinates and the Y-axis coordinates of the elements in the second data set are generated.
S4, outputting the graphic visualization relation of the original data set according to the X-axis coordinate and the Y-axis coordinate of each element in the second data set.
In detail, according to the X-axis coordinate and the Y-axis coordinate of each element in the second dataset, each element is displayed in a preset coordinate system according to the graphical identification of a dot, the association relationship between each element is connected with each element according to the graphical identification of a solid line, so that a graphical visualization relationship of the original dataset is formed, and the graphical visualization relationship is output.
According to the embodiment of the application, an original data set is divided into a plurality of sub-data sets according to types, Y-axis coordinates are sequentially set for elements in each sub-data set according to data distribution of the original data set in a database, a first data set is obtained, and specific relations among peer elements can be displayed by using Y-axis distribution in the database; dividing the first data set into a source data set and a plurality of target data sets, reducing the data quantity processed by a computer each time, improving the efficiency and facilitating the subsequent calculation; according to the relation among the elements in the first data set, setting X-axis coordinates for the elements in the source data set and the target data set to obtain a second data set, and when the elements are more, the calculated amount can be reduced, and the working efficiency can be improved; and outputting the graphic visualization relation of the original data set according to the X-axis coordinate and the Y-axis coordinate of each element in the second data set, so as to display in a clearer and more visual mode, and facilitate the understanding of users. Therefore, the method, the device and the computer readable storage medium for representing the graphic visualization relationship of the data can improve the efficiency of the graphic visualization scheme for displaying the complex relationship.
As shown in fig. 5, a functional block diagram of the apparatus for graphically visualizing relationship of data according to the present application is shown.
The graphical visual relationship representation apparatus 100 of the data according to the present application may be installed in an electronic device. The graphic visual relationship representing means of data may include a Y coordinate setting module 101, a data dividing module 102, an X coordinate setting module 103, and a graphic relationship output module 104 according to the implemented functions. The module of the present application may also be referred to as a unit, meaning a series of computer program segments capable of being executed by the processor of the electronic device and of performing fixed functions, stored in the memory of the electronic device.
In the present embodiment, the functions concerning the respective modules/units are as follows:
the Y coordinate setting module 101 is configured to divide an original data set into a plurality of sub data sets according to types, and sequentially set Y axis coordinates for elements in each sub data set according to data distribution of the original data set in a database, so as to obtain a first data set;
the data dividing module 102 is configured to divide the first data set into a source data set and a plurality of target data sets;
the X-coordinate setting module 103 is configured to set X-axis coordinates for elements in the source data set and the target data set according to a relationship between elements in the first data set, so as to obtain a second data set;
the graphic relationship output module 104 is configured to output a graphic visualization relationship of the original dataset according to the X-axis coordinate and the Y-axis coordinate of each element in the second dataset.
In detail, the specific implementation steps of each module of the data graphic visualization relation representation device are as follows:
the Y coordinate setting module 101 is configured to divide an original data set into a plurality of sub data sets according to types, and sequentially set Y axis coordinates for elements in each sub data set according to data distribution of the original data set in a database, so as to obtain a first data set.
In the embodiment of the application, the original data set comprises a plurality of elements and association relations among the elements. Preferably, in the embodiment of the present application, the original data set may be obtained from a preset database. Wherein the database is a graph database that stores structured data on a network (mathematically called a graph) rather than in tables for storing elements and relationships between elements, such as neo4j database.
Preferably, the embodiment of the present application acquires the original data set from a preset database by the following operations:
the database is connected through a built-in interface built in advance;
and inquiring in the database according to preset data screening conditions to obtain the original data set.
Further, in the embodiment of the application, the original data set is divided according to types by the pre-constructed data processing package, the data of the same type in the original data set is gathered to obtain a plurality of sub data sets, and the data volume required to be processed by the computer system is reduced, for example, in the relation of all staff members of a large company, the staff members of a certain company can be classified into the staff members of a certain specific department according to departments.
Preferably, the data processing package is a NumPy-based tool that incorporates a large library and some standard data model that can efficiently handle large data sets.
In detail, the sequentially setting the Y-axis coordinates for the elements in each sub-dataset according to the data distribution of the original dataset in the database includes:
sequentially selecting one of the plurality of sub-data sets to acquire all elements contained in the sub-data set;
sorting the elements of the sub-data set according to the location distribution of the elements in the database;
setting a Y-axis coordinate for each element in the subset data according to the sorting result, for example, the Y-axis coordinate of the element arranged at the first position can be set to be 1, and the Y-axis coordinates of the following elements are sequentially added with 1;
and judging whether each sub-data set is selected completely, selecting the next sub-data set until each sub-data set is selected completely, setting Y-axis coordinates for each element in each sub-data set, and executing all sub-data sets and obtaining a first data set.
The elements of the sub-data set are ordered according to the position distribution of the elements in the database, and the ordering is performed according to the position of the elements in the database.
In the embodiment of the application, the Y-coordinate values of the elements in the first data set are positively correlated according to the position distribution in the database.
The data dividing module 102 is configured to divide the first data set into a source data set and a plurality of target data sets.
In detail, the data dividing module specifically performs the following operations:
searching a source node in the first data set to obtain a source data set;
and searching target nodes in the first data set according to the relation between the source node and other elements to obtain a plurality of target data sets.
The source node is an element of the first data set, except the element, which does not have a parent element, for example, in a family relationship, a first person on a family tree is the source node; the target node is the other elements except the source node in all elements contained in a relation; the source data set comprises a plurality of source nodes, and each target data set comprises a plurality of target nodes with association relation with one source node. The source node set and the target data set have larger data sizes, and the blockchain has high throughput, can process a large amount of data at a time, and can be stored in nodes of the blockchain.
Preferably, the embodiment of the present application searches the source node and the target node in the first data set through a preset data processing packet.
The X-coordinate setting module 103 is configured to set X-axis coordinates for the elements in the source data set and the target data set according to the relationships between the elements in the first data set, so as to obtain a second data set.
In detail, the X coordinate setting module is specifically configured to:
dividing the source data set into a plurality of source data subsets by type;
sequentially selecting one of the source data subsets;
setting X-axis coordinates for elements in the source data subset, and selecting a source node in the source data subset;
selecting a target node with a direct sub-relationship with the source node in a target data set corresponding to the source node to obtain a sub-class element set;
sorting the elements in the sub-class element set, and setting X-axis coordinates for the elements in the sub-class element set according to the sorting result;
updating the sub-class element set until the source data subset and the corresponding elements of the target data set are set with X-axis coordinates;
and judging whether each source data subset is selected completely, and selecting the next source data subset until the source data set and the elements in the plurality of target data sets are set with X-axis coordinates, and obtaining and outputting a second data set.
Further, the updating the sub-class element set includes: selecting a target node with a direct sub-relationship with the element of the sub-class element set in the target data set as the affiliated element of the sub-class element set; and sorting the elements in the sub-class element set, and setting X-axis coordinate values for the elements in the sub-class element set according to the sorting result.
Preferably, the embodiment of the application sets an X-axis coordinate for the elements in the source data subset according to the position distribution of the elements in the database; the sorting of the elements in the sub-class element set is based on the priority of the association between each element and the parent class element to which it belongs.
The embodiment of the application combines the elements of the source data set and the target data sets to obtain a second data set, wherein the X-axis coordinates and the Y-axis coordinates of the elements in the second data set are generated.
The graphic relationship output module 104 is configured to output a graphic visualization relationship of the original dataset according to the X-axis coordinate and the Y-axis coordinate of each element in the second dataset.
In detail, according to the X-axis coordinate and the Y-axis coordinate of each element in the second dataset, each element is displayed in a preset coordinate system according to the graphical identification of a dot, the association relationship between each element is connected with each element according to the graphical identification of a solid line, so that a graphical visualization relationship of the original dataset is formed, and the graphical visualization relationship is output.
Fig. 6 is a schematic structural diagram of an electronic device implementing the method for representing a graphic visual relationship of data according to the present application.
The electronic device 1 may comprise a processor 10, a memory 11 and a bus, and may further comprise a computer program, such as a graphical visual relationship representation program 12 of data, stored in the memory 11 and executable on the processor 10.
The memory 11 includes at least one type of readable storage medium, including flash memory, a mobile hard disk, a multimedia card, a card memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device 1, such as a removable hard disk of the electronic device 1. The memory 11 may in other embodiments also be an external storage device of the electronic device 1, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the electronic device 1. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device 1. The memory 11 may be used not only for storing application software installed in the electronic device 1 and various types of data, such as codes of the graphic visual relationship expression program 12 of data, but also for temporarily storing data that has been output or is to be output.
The processor 10 may be comprised of integrated circuits in some embodiments, for example, a single packaged integrated circuit, or may be comprised of multiple integrated circuits packaged with the same or different functions, including one or more central processing units (Central Processing unit, CPU), microprocessors, digital processing chips, graphics processors, combinations of various control chips, and the like. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects respective parts of the entire electronic device using various interfaces and lines, executes or executes programs or modules (for example, a graphic visual relationship expression program or the like of execution data) stored in the memory 11, and invokes the data stored in the memory 11 to execute various functions of the electronic device 1 and process the data.
The bus may be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus or an extended industry standard architecture (extended industry standard architecture, EISA) bus, among others. The bus may be classified as an address bus, a data bus, a control bus, etc. The bus is arranged to enable a connection communication between the memory 11 and at least one processor 10 etc.
Fig. 6 shows only an electronic device with components, it being understood by a person skilled in the art that the structure shown in fig. 6 does not constitute a limitation of the electronic device 1, and may comprise fewer or more components than shown, or may combine certain components, or may be arranged in different components.
For example, although not shown, the electronic device 1 may further include a power source (such as a battery) for supplying power to each component, and preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that functions of charge management, discharge management, power consumption management, and the like are implemented through the power management device. The power supply may also include one or more of any of a direct current or alternating current power supply, recharging device, power failure detection circuit, power converter or inverter, power status indicator, etc. The electronic device 1 may further include various sensors, bluetooth modules, wi-Fi modules, etc., which will not be described herein.
Further, the electronic device 1 may also comprise a network interface, optionally the network interface may comprise a wired interface and/or a wireless interface (e.g. WI-FI interface, bluetooth interface, etc.), typically used for establishing a communication connection between the electronic device 1 and other electronic devices.
The electronic device 1 may optionally further comprise a user interface, which may be a Display, an input unit, such as a Keyboard (Keyboard), or a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch, or the like. The display may also be referred to as a display screen or display unit, as appropriate, for displaying information processed in the electronic device 1 and for displaying a visual user interface.
It should be understood that the embodiments described are for illustrative purposes only and are not limited to this configuration in the scope of the patent application.
The graphical visualization relationship of the data stored in the memory 11 in the electronic device 1 indicates that the program 12 is a combination of instructions that, when executed in the processor 10, may implement:
dividing an original data set into a plurality of sub-data sets according to types, and sequentially setting Y-axis coordinates for elements in each sub-data set according to data distribution of the original data set in a database to obtain a first data set;
dividing the first dataset into a source dataset and a plurality of target datasets;
setting X-axis coordinates for the elements in the source data set and the target data set according to the relation among the elements in the first data set to obtain a second data set;
and outputting the graphic visualization relation of the original data set according to the X-axis coordinate and the Y-axis coordinate of each element in the second data set.
Further, the modules/units integrated in the electronic device 1 may be stored in a computer readable storage medium if implemented in the form of software functional units and sold or used as separate products. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM).
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus, device and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be other manners of division when actually implemented.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical units, may be located in one place, or may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units can be realized in a form of hardware or a form of hardware and a form of software functional modules.
It will be evident to those skilled in the art that the application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential characteristics thereof.
The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any accompanying diagram representation in the claims should not be considered as limiting the claim concerned.
Furthermore, it is evident that the word "comprising" does not exclude other elements or steps, and that the singular does not exclude a plurality. A plurality of units or means recited in the system claims can also be implemented by means of software or hardware by means of one unit or means. The terms second, etc. are used to denote a name, but not any particular order.
Finally, it should be noted that the above-mentioned embodiments are merely for illustrating the technical solution of the present application and not for limiting the same, and although the present application has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications and equivalents may be made to the technical solution of the present application without departing from the spirit and scope of the technical solution of the present application.

Claims (7)

1. A method of graphically visualizing relationship representation of data, the method comprising:
dividing an original data set into a plurality of sub-data sets according to types, and sequentially setting Y-axis coordinates for elements in each sub-data set according to data distribution of the original data set in a database to obtain a first data set;
dividing the first dataset into a source dataset and a plurality of target datasets;
setting X-axis coordinates for the elements in the source data set and the target data set according to the relation among the elements in the first data set to obtain a second data set;
outputting a graphic visualization relationship of the original data set according to the X-axis coordinate and the Y-axis coordinate of each element in the second data set;
the Y-axis coordinates are set for the elements in each sub-data set in turn according to the data distribution of the original data set in the database, and the method comprises the following steps: selecting one of the plurality of sub-data sets, and acquiring all elements contained in the sub-data set; sorting the elements of the sub-data set according to the location distribution of the elements in the database; setting Y-axis coordinates for each element in the subset data set according to the sorting result; selecting a next sub-data set, sorting the elements in the sub-data set, and setting Y-axis coordinates according to the sorting result;
setting X-axis coordinates for elements in the source data set and the target data set according to relationships between elements in the first data set, including: dividing the source data set into a plurality of source data subsets by type; sequentially selecting one of the source data subsets; setting X-axis coordinates for elements in the source data subset, and selecting a source node in the source data subset; selecting a target node with a direct sub-relationship with the source node in a target data set corresponding to the source node to obtain a sub-class element set; sorting the elements in the sub-class element set, and setting X-axis coordinates for the elements in the sub-class element set according to the sorting result; updating the sub-class element set until the source data subset and the corresponding elements of the target data set are set with X-axis coordinates; judging whether each source data subset is selected completely or not until the X-axis coordinates of the elements in the source data set and the plurality of target data sets are set;
the updating the sub-class element set includes: selecting a target node with a direct sub-relationship with the element of the sub-class element set in the target data set as the affiliated element of the sub-class element set; and sorting the elements in the sub-class element set, and setting X-axis coordinate values for the elements in the sub-class element set according to the sorting result.
2. The method of graphically visualizing relationship representing of data as in claim 1, wherein said dividing said first dataset into a source dataset and a plurality of target datasets comprises:
searching a source node in the first data set to obtain a source data set;
and searching target nodes in the first data set according to the relation between the source node and other elements to obtain a plurality of target data sets.
3. A graphic visual relationship representing apparatus of data for realizing the graphic visual relationship representing method of data according to any one of claims 1 to 2, characterized in that the apparatus comprises:
the Y-coordinate setting module is used for dividing an original data set into a plurality of sub-data sets according to types, sequentially setting Y-axis coordinates for elements in each sub-data set according to data distribution of the original data set in a database, and obtaining a first data set;
a data dividing module for dividing the first data set into a source data set and a plurality of target data sets;
the X coordinate setting module is used for setting X axis coordinates for the elements in the source data set and the target data set according to the relation among the elements in the first data set to obtain a second data set;
and the graphic relation output module is used for outputting the graphic visualization relation of the original data set according to the X-axis coordinate and the Y-axis coordinate of each element in the second data set.
4. The graphic visual relationship representing apparatus of claim 3, wherein the Y-coordinate setting module performs the following operations when sequentially setting Y-axis coordinates for elements in each sub-data set according to a data distribution of the original data set in the database:
selecting one of the plurality of sub-data sets, and acquiring all elements contained in the sub-data set;
sorting the elements of the sub-data set according to the location distribution of the elements in the database;
setting Y-axis coordinates for each element in the subset data set according to the sorting result;
and selecting the next sub-data set, sorting the elements in the sub-data set, and setting Y-axis coordinates according to the sorting result.
5. The apparatus for graphically visualizing relationship of data as in claim 3, wherein the data partitioning module is specifically configured to:
searching a source node in the first data set to obtain a source data set;
and searching target nodes in the first data set according to the relation between the source node and other elements to obtain a plurality of target data sets.
6. An electronic device, the electronic device comprising:
a memory storing at least one instruction; a kind of electronic device with high-pressure air-conditioning system
A processor executing instructions stored in the memory to perform the method of graphically visualizing relationship of data as in any of claims 1 to 2.
7. A computer readable storage medium comprising a storage data area and a storage program area, the storage data area storing data, the storage program area storing a computer program, characterized in that the computer program, when executed by a processor, implements a method of graphically visualizing relationship of data as claimed in any one of claims 1 to 2.
CN202011625423.4A 2020-12-30 2020-12-30 Method, device, equipment and storage medium for representing graphic visualization relationship of data Active CN112632194B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011625423.4A CN112632194B (en) 2020-12-30 2020-12-30 Method, device, equipment and storage medium for representing graphic visualization relationship of data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011625423.4A CN112632194B (en) 2020-12-30 2020-12-30 Method, device, equipment and storage medium for representing graphic visualization relationship of data

Publications (2)

Publication Number Publication Date
CN112632194A CN112632194A (en) 2021-04-09
CN112632194B true CN112632194B (en) 2023-11-03

Family

ID=75290310

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011625423.4A Active CN112632194B (en) 2020-12-30 2020-12-30 Method, device, equipment and storage medium for representing graphic visualization relationship of data

Country Status (1)

Country Link
CN (1) CN112632194B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103049580A (en) * 2013-01-17 2013-04-17 北京工商大学 Method and device for visualization of layering data
CN105378797A (en) * 2013-05-31 2016-03-02 惠普发展公司,有限责任合伙企业 Three dimensional data visualization
CN107357846A (en) * 2017-06-26 2017-11-17 北京金堤科技有限公司 The methods of exhibiting and device of relation map
US10656779B1 (en) * 2018-09-10 2020-05-19 Tableau Software, Inc. Filtering popup secondary data visualizations according to selected data from primary data visualizations
CN111932147A (en) * 2020-09-02 2020-11-13 平安国际智慧城市科技股份有限公司 Visualization method and device for overall index, electronic equipment and storage medium
CN112148932A (en) * 2020-10-12 2020-12-29 平安科技(深圳)有限公司 Visualization method, system, computer device and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103049580A (en) * 2013-01-17 2013-04-17 北京工商大学 Method and device for visualization of layering data
CN105378797A (en) * 2013-05-31 2016-03-02 惠普发展公司,有限责任合伙企业 Three dimensional data visualization
CN107357846A (en) * 2017-06-26 2017-11-17 北京金堤科技有限公司 The methods of exhibiting and device of relation map
US10656779B1 (en) * 2018-09-10 2020-05-19 Tableau Software, Inc. Filtering popup secondary data visualizations according to selected data from primary data visualizations
CN111932147A (en) * 2020-09-02 2020-11-13 平安国际智慧城市科技股份有限公司 Visualization method and device for overall index, electronic equipment and storage medium
CN112148932A (en) * 2020-10-12 2020-12-29 平安科技(深圳)有限公司 Visualization method, system, computer device and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"基于本体可视化的关联数据集表达";王利鹏等;《科研信息化技术与应用》;全文 *

Also Published As

Publication number Publication date
CN112632194A (en) 2021-04-09

Similar Documents

Publication Publication Date Title
CN112948427B (en) Data query method, device, equipment and storage medium
CN111930962A (en) Document data value evaluation method and device, electronic equipment and storage medium
CN111652278B (en) User behavior detection method, device, electronic equipment and medium
CN113282795B (en) Data structure diagram generation and updating method and device, electronic equipment and storage medium
CN112364107A (en) System analysis visualization method and device, electronic equipment and computer readable storage medium
CN112579621B (en) Data display method and device, electronic equipment and computer storage medium
CN114090838B (en) Method, system, electronic device and storage medium for visually displaying big data
CN111768096A (en) Rating method and device based on algorithm model, electronic equipment and storage medium
CN111897831A (en) Service message generation method and device, electronic equipment and storage medium
CN111694844A (en) Enterprise operation data analysis method and device based on configuration algorithm and electronic equipment
CN114491047A (en) Multi-label text classification method and device, electronic equipment and storage medium
CN114021156A (en) Method, device and equipment for organizing vulnerability automatic aggregation and storage medium
CN112632194B (en) Method, device, equipment and storage medium for representing graphic visualization relationship of data
CN111932147A (en) Visualization method and device for overall index, electronic equipment and storage medium
CN109194703B (en) Processing method of communication load between cloud platform hosts, electronic device and medium
CN111241066A (en) Automatic operation and maintenance method and device for platform database and computer readable storage medium
CN116647560A (en) Method, device, equipment and medium for coordinated optimization control of Internet of things computer clusters
CN113626605B (en) Information classification method, device, electronic equipment and readable storage medium
CN111652281B (en) Information data classification method, device and readable storage medium
CN114547011A (en) Data extraction method and device, electronic equipment and storage medium
CN112016958B (en) Product selection method, device, electronic equipment and storage medium
CN111553133B (en) Report generation method and device, electronic equipment and storage medium
CN113918296A (en) Model training task scheduling execution method and device, electronic equipment and storage medium
CN114387021A (en) Service state generation method, device, equipment and storage medium
CN111930961A (en) Competitive relationship analysis method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant