Knowledge graph multi-layout visualization display method and system supporting server-side computing

By introducing server-side computing into the knowledge graph visualization system, switching and display of multiple layout methods is achieved, the problem of single layout and low efficiency in the existing technology is solved, and the efficiency and fluency of graph display are improved.

CN118643094BActive Publication Date: 2024-12-03金现代信息产业股份有限公司
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202411116606.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-15
Publication Date
2024-12-03
Estimated Expiration
2044-08-15

AI Technical Summary

Technical Problem

The existing knowledge graph visualization system only supports a single layout method, which results in long layout, high equipment performance requirements, and does not support layout parameter configuration, making it impossible to achieve efficient and accurate layout switching.

Method used

Using the multi-layout visual display method of knowledge graph supporting server-side computing, we can use node data and relational data to determine whether the server-side layout is enabled. If it is enabled, layout operations and rendering are performed on the server. Otherwise, the default force-oriented layout is adopted to provide Various layout methods such as force-oriented, radiation, ring, concentric circle, grid and brain map tree layout are used to perform layout operations using AntVG6 and NodeJS, and the front-end receives a graph with coordinates for display.

Benefits of technology

It realizes flexible switching of multiple layout methods of knowledge graphs, reduces front-end resource overhead, improves layout efficiency and display fluency, is suitable for multiple display scenarios, and reduces customer front-end performance requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118643094B_ABST
    Figure CN118643094B_ABST
Patent Text Reader

Abstract

The present invention provides a method and system for visualizing multiple layouts of a knowledge graph that supports server-side calculations, and belongs to the field of data processing technology. When a layout switching request is received, if the server-side layout is turned on, the configuration parameters, node data, and relationship data of the layout switching request are sent to the server through an interface call, so that the server performs calculations of the layout to be switched, obtains the calculation results of the server, and renders the layout after switching; if the server-side layout is not turned on, the layout after switching is directly calculated, rendered, and displayed according to the configuration parameters, node data, and relationship data of the layout switching request; the present invention can realize multiple visual layout modes of the knowledge graph, and multiple layout modes of the knowledge graph can be flexibly switched, and when the server intervenes in the layout, it can avoid occupying front-end resources, thereby improving the efficiency of the visual layout.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a knowledge graph multi-layout visualization display method and system that supports server-side computing. Background Art

[0002] The statements in this section merely provide background art related to the present invention and do not necessarily constitute prior art.

[0003] The knowledge graph is a knowledge system that abstracts structured data into data objects as points in the graph, abstracts the relationships between data into lines in the graph, and uses graphs to intuitively express the logical relationships between data. It uses visualization technology to intuitively display knowledge and their relationships.

[0004] Knowledge graphs are called knowledge domain visualization or knowledge domain mapping maps in the library and information industry. They are a series of different graphics that show the development process and structural relationship of knowledge. They are based on the data structure of graphs and consist of nodes (entities) and edges (relationships). Each node represents an "entity" and each edge represents the "relationship" between entities. Knowledge graphs have the characteristics of visualization. Specifically, they can graphically display the core structure, development history, frontier fields and overall knowledge architecture of the knowledge field.

[0005] However, current knowledge graph visualization generally only supports a single layout method. The layout takes a long time, has high requirements on device performance, and does not support layout parameter configuration. It is impossible to achieve efficient and accurate layout switching and visualization of the layout after switching. Summary of the invention

[0006] In order to address the shortcomings of the prior art, the present invention provides a knowledge graph multi-layout visualization display method and system that supports server-side computing, which can realize a variety of visualization layout modes of the knowledge graph. The various layout modes of the knowledge graph can be flexibly switched, and when the server intervenes in the layout, it can avoid occupying front-end resources, thereby improving the efficiency of the visualization layout.

[0007] In order to achieve the above object, the present invention adopts the following technical solution:

[0008] In a first aspect, the present invention provides a knowledge graph multi-layout visualization display method that supports server-side computing.

[0009] A knowledge graph multi-layout visualization method supporting server-side computing, applied to the front end, includes the following processes:

[0010] Obtain node data and relationship data of the knowledge graph;

[0011] Determine whether the server-side layout is turned on. If so, perform layout operations on the server based on the node data and relationship data, obtain the server-side calculation results for rendering and display; if not, directly use the default force-directed layout method for data visualization.

[0012] As a further limitation of the first aspect of the present invention, when a layout switching request is received, if the server layout is turned on, the configuration parameters, node data and relationship data of the layout switching request are sent to the server through an interface call, so that the server calculates the layout to be switched, obtains the calculation result of the server, and renders it to display the layout after switching;

[0013] If the server-side layout is not enabled, the layout after switching is calculated, rendered, and displayed directly based on the configuration parameters, node data, and relationship data of the layout switching request.

[0014] As a further limitation of the first aspect of the present invention, the server calculates the layout to be switched, including: the server virtualizes a canvas according to the configuration parameters, node data and relationship data of the layout switching request, and the front end receives the calculated knowledge graph with coordinates, and the front end directly displays it according to the knowledge graph with coordinates.

[0015] As a further limitation of the first aspect of the present invention, the layout modes include: force-directed layout, radial layout, ring layout, concentric circle layout, grid layout and mind map tree layout, wherein:

[0016] Force-directed layout, which is used to perform layout operations based on the size of the configuration center force, the size of the node and relationship forces, the size of the node, the maximum movement speed, and the maximum number of iterations;

[0017] Radial layout, used to perform layout operations based on the radiation center point, node force size, node size, node spacing, and layout order;

[0018] Ring layout, used to perform layout operations based on the radius of the circle, the starting radius of the spiral layout, the ending radius, and the clockwise or counterclockwise sorting;

[0019] Concentric circle layout, which is used to perform layout operations based on arc size, arc difference between the first node and the last node, clockwise or counterclockwise direction, and node ordering;

[0020] Grid layout, which is used to perform layout operations based on node start position, layout direction, alignment, node spacing, and layer spacing;

[0021] The mind map tree layout is used to perform layout operations based on the layout direction, horizontal node spacing, and vertical node spacing.

[0022] As a further limitation of the first aspect of the present invention, the server performs layout calculations in a manner based on AntVG6 and NodeJS.

[0023] In a second aspect, the present invention provides a knowledge graph multi-layout visualization display system that supports server-side computing.

[0024] A knowledge graph multi-layout visualization display system supporting server-side computing, comprising a server and a front end, wherein the front end is communicatively connected with the server;

[0025] The front end is configured as follows:

[0026] Get the node data and relationship data of the knowledge graph; determine whether the server-side layout is turned on. If so, perform layout operations on the server based on the node data and relationship data, and obtain the calculation results on the server for rendering and display; if not, directly use the default force-directed layout method for data visualization.

[0027] In a third aspect, the present invention provides a knowledge graph multi-layout visualization display system that supports server-side computing.

[0028] A knowledge graph multi-layout visualization display system supporting server-side computing, comprising:

[0029] The data acquisition unit is configured to: acquire node data and relationship data of the knowledge graph;

[0030] The visualization display unit is configured to: determine whether the server-side layout is turned on. If so, perform layout operations on the server based on the node data and relationship data, obtain the calculation results of the server, and render them for display; if not, directly use the default force-directed layout method to perform data visualization.

[0031] In a fourth aspect, the present invention provides a computer device, comprising: a processor and a computer-readable storage medium;

[0032] a processor adapted to execute a computer program;

[0033] A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by the processor, the method for visualizing the multi-layout display of a knowledge graph supporting server-side computing as described in the first aspect of the present invention is implemented.

[0034] In a fifth aspect, the present invention provides a computer-readable storage medium storing a computer program, wherein the computer program is suitable for being loaded by a processor and executing the knowledge graph multi-layout visualization display method supporting server-side computing as described in the first aspect of the present invention.

[0035] In a sixth aspect, the present invention provides a computer program product, comprising a computer program, which, when executed by a processor, implements the knowledge graph multi-layout visualization display method supporting server-side computing as described in the first aspect of the present invention.

[0036] Compared with the prior art, the present invention has the following beneficial effects:

[0037] The present invention effectively solves the problem of a single knowledge graph layout method, integrates multiple layout methods into the same page, and can switch the graph layout with one click, making the graph suitable for multiple display scenarios. There is no need to carry out separate customized development for each type of scene display.

[0038] The present invention reduces the front-end performance requirements, reduces the layout time, optimizes the page display, and can enable server-side layout calculation. The front-end only needs to obtain the data after the layout is completed through interface calls, and directly renders according to the node position coordinates, which greatly reduces the resource overhead of the front-end and reduces the performance requirements for the client front-end. The server on the server side is used to reduce the layout calculation time, making the page display smoother.

[0039] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0041] Figure 1 A schematic diagram of initialization display provided in Example 1 of the present invention;

[0042] Figure 2 A schematic diagram of layout switching provided by Embodiment 1 of the present invention;

[0043] Figure 3 A schematic diagram of layout type and parameter analysis and graph engine calculation provided in Example 1 of the present invention;

[0044] Figure 4 A schematic diagram of a knowledge graph multi-layout visualization display system supporting server-side computing provided in Example 3 of the present invention. DETAILED DESCRIPTION

[0045] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0046] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.

[0047] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.

[0048] Embodiment 1:

[0049] This implementation proposes a knowledge graph multi-layout visualization method that supports server-side computing. The following is a brief introduction to the technical terms and related concepts involved in this processing solution, including:

[0050] Knowledge graph: A knowledge graph is a large knowledge network that describes concepts, entities and their relationships in the objective world in a structured form. AntVG6: AntVG6 is a graph visualization engine that provides basic graph visualization capabilities such as graph drawing, layout, analysis, interaction, and animation.

[0051] The specific knowledge graph multi-layout visualization display method includes the following processes:

[0052] First, initialize the page, such as Figure 1 As shown, the graph data (node ​​data and relationship data) is obtained through the server interface, and the data is visualized according to the default force-directed layout method. It is determined whether the server layout is enabled. If it is enabled, the layout calculation is completed on the server, and the front-end rendering is returned after the calculation is completed;

[0053] Secondly, switch the layout, such as Figure 2 As shown, by clicking the corresponding layout mode button under the layout settings, a layout switching request is issued to determine whether the server layout is enabled. If enabled, the configuration parameters and graph data are sent to the server through the interface call method. The layout calculation is completed on the server, and the front-end rendering is returned after the calculation is completed. If it is not enabled, the front-end resources are used to calculate the layout according to the configuration parameters.

[0054] Again, if Figure 3 As shown, the server virtualizes a canvas according to the configuration parameters, and performs layout calculations according to the layout parameters of different layout methods. The calculation method is consistent with the front-end calculation method. The difference is that the calculation is placed on the server, and the calculated data with coordinates is returned to the front-end.

[0055] Finally, the front end directly displays the calculated node coordinates. If the server-side layout is enabled, the client's front-end resources will no longer be used to calculate the layout.

[0056] In this implementation, the force-directed layout supports the configuration of parameters such as the size of the central force, the size of the force acting on the nodes and relationships, the size of the node, the maximum moving speed, and the maximum number of iterations for layout operations; the radial layout supports the configuration of the radial center point, the size of the node force, the size of the node, the node spacing, and the layout sorting; the ring layout supports the configuration of the radius of the circle, the starting radius of the spiral layout, the ending radius, and the clockwise or counterclockwise sorting; the concentric circle layout supports the configuration of the arc size, the arc difference between the first node and the last node, the clockwise or counterclockwise direction, and the node sorting; the grid layout supports the configuration of the node start position, the layout direction (top to bottom, bottom to top, left to right, right to left), the alignment (aligned to the upper left corner, the lower left corner, the upper right corner, the lower right corner), the node spacing, and the layer spacing; the mind map tree layout supports the configuration of the layout direction (left and right), the horizontal spacing of the nodes, and the vertical spacing of the nodes.

[0057] In this implementation, the server adopts a server-side calculation method based on AntVG6 and NodeJS. By adopting this method, the calculation that could only be performed on the front end can be transformed into a layout service that can be run on the server. It can be called through interface requests to meet the needs of server-side calculations and reduce the front-end calculation pressure. The specific calculation method of the layout is to introduce AntVG6 related dependency packages, use the AntVG6 visualization engine, and perform calculations according to different parameter configurations.

[0058] The present invention is based on the secondary development and packaging of the AntVG6 graph visualization engine, and can realize a variety of visualization layout modes of the knowledge graph. The various layout modes of the knowledge graph can be flexibly switched, including but not limited to force-directed layout, radial layout, ring layout, concentric circle layout, grid layout, hierarchical layout, and mind map tree layout. It supports the use of the server for layout calculation, and solves the problems of poor client front-end performance and slow knowledge graph display layout.

[0059] Embodiment 2:

[0060] This implementation provides a knowledge graph multi-layout visualization display system supporting server-side computing, including a server and a front end, wherein the front end is communicatively connected with the server;

[0061] The front end is configured as follows:

[0062] Get the node data and relationship data of the knowledge graph; determine whether the server-side layout is turned on. If so, perform layout operations on the server based on the node data and relationship data, and obtain the calculation results on the server for rendering and display; if not, directly use the default force-directed layout method for data visualization.

[0063] The specific working method is shown in the method process details in Example 1, which will not be repeated here.

[0064] Embodiment 3:

[0065] like Figure 4 As shown, this implementation provides a knowledge graph multi-layout visualization display system supporting server-side computing, including:

[0066] The data acquisition unit is configured to: acquire node data and relationship data of the knowledge graph;

[0067] The visualization display unit is configured to: determine whether the server-side layout is turned on. If so, perform layout operations on the server based on the node data and relationship data, obtain the calculation results of the server, and render them for display; if not, directly use the default force-directed layout method to perform data visualization.

[0068] It may also include: a layout switching unit, which is configured to: when a layout switching request is received, if the server-side layout is turned on, send the configuration parameters, node data and relationship data of the layout switching request to the server through an interface call, so that the server calculates the layout to be switched, obtains the calculation results of the server, and renders to display the layout after switching; if the server-side layout is not turned on, directly calculates, renders and displays the layout after switching according to the configuration parameters, node data and relationship data of the layout switching request.

[0069] The specific working method is shown in the method process details in Example 1, which will not be repeated here.

[0070] It is understandable that the above-mentioned modules can be separately or completely combined into one or several other units to constitute, or one (some) of the units can be further divided into multiple smaller units in function to constitute, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application. The above-mentioned units are divided based on logical functions. In practical applications, the function of one unit can also be implemented by multiple units, or the functions of multiple units can be implemented by one unit. In other embodiments of the present application, the visual display system may also include other units. In practical applications, these functions can also be implemented with the assistance of other units, and can be implemented by the collaboration of multiple units.

[0071] According to another embodiment of the present application, the system described in this embodiment can be constructed and the visualization display method of the embodiment of the present application can be implemented by running a computer program (including program code) capable of executing the steps involved in the corresponding method described in Example 1 on a general computing device such as a computer including processing elements and storage elements such as a central processing unit (CPU), random access memory (RAM), and read-only memory (ROM). The computer program can be recorded on, for example, a computer-readable recording medium, and loaded into the above-mentioned computing device through the computer-readable recording medium and run therein.

[0072] Embodiment 4:

[0073] This implementation provides an electronic device, which includes a processor, a communication interface, and a computer-readable storage medium, wherein the processor, the communication interface, and the computer-readable storage medium may be connected via a bus or other means.

[0074] Among them, the communication interface is used to receive and send data, the computer-readable storage medium can be stored in the memory of the electronic device, the computer-readable storage medium is used to store a computer program, the computer program includes program instructions, and the processor is used to execute the program instructions stored in the computer-readable storage medium.

[0075] A processor (or CPU (Central Processing Unit)) is the computing core and control core of an electronic device, which is suitable for implementing one or more instructions, and specifically suitable for loading and executing one or more instructions to implement corresponding method flows or corresponding functions.

[0076] The processor is configured to perform the following process:

[0077] Obtain node data and relationship data of the knowledge graph;

[0078] Determine whether the server layout is turned on. If so, perform layout operations on the server based on the node data and relationship data, obtain the server calculation results for rendering and display; if not, directly use the default force-directed layout method for data visualization;

[0079] When receiving a layout switching request, if the server layout is turned on, the configuration parameters, node data and relationship data of the layout switching request are sent to the server through an interface call, so that the server calculates the layout to be switched, obtains the calculation results of the server, and renders to display the layout after switching;

[0080] If the server-side layout is not enabled, the layout after switching is calculated, rendered, and displayed directly based on the configuration parameters, node data, and relationship data of the layout switching request.

[0081] Embodiment 5:

[0082] This implementation provides a computer-readable storage medium (Memory), which is a memory device in an electronic device for storing programs and data. It is understandable that the computer-readable storage medium here can include both built-in storage media in the electronic device and, of course, extended storage media supported by the electronic device. The computer-readable storage medium provides a storage space that stores the processing system of the electronic device.

[0083] In addition, the storage space also stores one or more instructions suitable for being loaded and executed by the processor, and these instructions may be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk storage; optionally, it may also be at least one computer-readable storage medium located away from the aforementioned processor.

[0084] In one embodiment, the computer-readable storage medium stores one or more instructions; the processor loads and executes the one or more instructions stored in the computer-readable storage medium to implement the following process:

[0085] Determine whether the server layout is turned on. If so, perform layout operations on the server based on the node data and relationship data, obtain the server calculation results for rendering and display; if not, directly use the default force-directed layout method for data visualization;

[0086] When receiving a layout switching request, if the server layout is turned on, the configuration parameters, node data and relationship data of the layout switching request are sent to the server through an interface call, so that the server calculates the layout to be switched, obtains the calculation results of the server, and renders to display the layout after switching;

[0087] If the server-side layout is not enabled, the layout after switching is calculated, rendered, and displayed directly based on the configuration parameters, node data, and relationship data of the layout switching request.

[0088] Embodiment 6:

[0089] The present implementation provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device performs the following process:

[0090] Determine whether the server layout is turned on. If so, perform layout operations on the server based on the node data and relationship data, obtain the server calculation results for rendering and display; if not, directly use the default force-directed layout method for data visualization;

[0091] When receiving a layout switching request, if the server layout is turned on, the configuration parameters, node data and relationship data of the layout switching request are sent to the server through an interface call, so that the server calculates the layout to be switched, obtains the calculation results of the server, and renders to display the layout after switching;

[0092] If the server-side layout is not enabled, the layout after switching is calculated, rendered, and displayed directly based on the configuration parameters, node data, and relationship data of the layout switching request.

[0093] A person skilled in the art can appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in this application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. A person skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0094] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted through a computer-readable storage medium. The computer instructions can be transmitted from a website site, a computer, a server or a data center to another website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data processing device such as a server, a data center, etc. that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.

[0095] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A knowledge graph multi-layout visualization method supporting server-side computing, characterized in that: Applied to the front end, it includes the following processes: Obtain node data and relationship data of the knowledge graph; Determine whether the server layout is turned on. If so, perform layout operations on the server based on the node data and relationship data, obtain the server calculation results for rendering and display; if not, directly use the default force-directed layout method for data visualization; When receiving a layout switching request, if the server layout is turned on, the configuration parameters, node data and relationship data of the layout switching request are sent to the server through an interface call, so that the server calculates the layout to be switched, obtains the calculation results of the server, and renders to display the layout after switching; If the server layout is not enabled, the layout after switching is calculated, rendered, and displayed directly based on the configuration parameters, node data, and relationship data of the layout switching request; The server calculates the layout to be switched, including: the server virtualizes a canvas according to the configuration parameters, node data and relationship data of the layout switching request, and the front end receives the calculated knowledge graph with coordinates, and the front end directly displays it according to the knowledge graph with coordinates; The front end directly displays the calculated node coordinates. If the server-side layout is enabled, the client's front-end resources will no longer be used to calculate the layout. The server side uses a server-side computing method based on AntVG6 and NodeJS. By adopting this method, the calculation that could only be performed on the front end is transformed into a layout service running on the server side, and is called through an interface request; Based on the AntVG6 graph visualization engine, secondary development and packaging are carried out to realize various visualization layout methods of the knowledge graph. The various layout methods of the knowledge graph can be flexibly switched, and layout calculation can be supported using the server.

2. The knowledge graph multi-layout visualization display method supporting server-side computing according to claim 1, characterized in that: Layout methods include: force-directed layout, radial layout, ring layout, concentric circle layout, grid layout and mind map tree layout, among which: Force-directed layout, which is used to perform layout operations based on the size of the configuration center force, the size of the node and relationship forces, the size of the node, the maximum movement speed, and the maximum number of iterations; Radial layout, used to perform layout operations based on the radiation center point, node force size, node size, node spacing, and layout order; Ring layout, used to perform layout operations based on the radius of the circle, the starting radius of the spiral layout, the ending radius, and the clockwise or counterclockwise sorting; Concentric circle layout, which is used to perform layout operations based on arc size, arc difference between the first node and the last node, clockwise or counterclockwise direction, and node ordering; Grid layout, which is used to perform layout operations based on node start position, layout direction, alignment, node spacing, and layer spacing; The mind map tree layout is used to perform layout operations based on the layout direction, horizontal node spacing, and vertical node spacing.

3. A knowledge graph multi-layout visualization display system supporting server-side computing, characterized in that: It includes a server and a front end, wherein the front end is communicatively connected with the server; The front end is configured as follows: Obtain node data and relationship data of the knowledge graph; Determine whether the server layout is turned on. If so, perform layout operations on the server based on the node data and relationship data, obtain the server calculation results for rendering and display; if not, directly use the default force-directed layout method for data visualization; When receiving a layout switching request, if the server layout is turned on, the configuration parameters, node data and relationship data of the layout switching request are sent to the server through an interface call, so that the server calculates the layout to be switched, obtains the calculation results of the server, and renders to display the layout after switching; If the server layout is not enabled, the layout after switching is calculated, rendered, and displayed directly based on the configuration parameters, node data, and relationship data of the layout switching request; The server calculates the layout to be switched, including: the server virtualizes a canvas according to the configuration parameters, node data and relationship data of the layout switching request, and the front end receives the calculated knowledge graph with coordinates, and the front end directly displays it according to the knowledge graph with coordinates; The front end directly displays the calculated node coordinates. If the server-side layout is enabled, the client's front-end resources will no longer be used to calculate the layout. The server side uses a server-side computing method based on AntVG6 and NodeJS. By adopting this method, the calculation that could only be performed on the front end is transformed into a layout service running on the server side, and is called through an interface request; Based on the AntVG6 graph visualization engine, secondary development and packaging are carried out to realize various visualization layout methods of the knowledge graph. The various layout methods of the knowledge graph can be flexibly switched, and layout calculation can be supported using the server.

4. A knowledge graph multi-layout visualization display system supporting server-side computing, characterized in that: include: The data acquisition unit is configured to: acquire node data and relationship data of the knowledge graph; The visualization display unit is configured to: determine whether the server-side layout is turned on, if so, perform layout calculations on the server side according to the node data and the relationship data, obtain the calculation results of the server side for rendering for display; if not, directly use the default force-directed layout mode for data visualization display; When receiving a layout switching request, if the server layout is turned on, the configuration parameters, node data and relationship data of the layout switching request are sent to the server through an interface call, so that the server calculates the layout to be switched, obtains the calculation results of the server, and renders to display the layout after switching; If the server layout is not enabled, the layout after switching is calculated, rendered, and displayed directly based on the configuration parameters, node data, and relationship data of the layout switching request; The server calculates the layout to be switched, including: the server virtualizes a canvas according to the configuration parameters, node data and relationship data of the layout switching request, and the front end receives the calculated knowledge graph with coordinates, and the front end directly displays it according to the knowledge graph with coordinates; The front end directly displays the calculated node coordinates. If the server-side layout is enabled, the client's front-end resources will no longer be used to calculate the layout. The server side uses a server-side computing method based on AntVG6 and NodeJS. By adopting this method, the calculation that could only be performed on the front end is transformed into a layout service running on the server side, and is called through an interface request; Based on the AntVG6 graph visualization engine, secondary development and packaging are carried out to realize various visualization layout methods of the knowledge graph. The various layout methods of the knowledge graph can be flexibly switched, and layout calculation can be supported using the server.

5. A computer device, characterized in that: include: A processor and a computer readable storage medium; a processor adapted to execute a computer program; A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by the processor, the method for visualizing the multi-layout display of a knowledge graph supporting server-side computing as described in any one of claims 1 to 2 is implemented.

6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which is suitable for being loaded by a processor and executing the knowledge graph multi-layout visualization display method supporting server-side computing as described in any one of claims 1 to 2.

7. A computer program product, characterized in that The computer program product includes a computer program, and when the computer program is executed by a processor, it implements the knowledge graph multi-layout visualization display method supporting server-side computing as described in any one of claims 1 to 2.

Citation Information

Patent Citations

  • Knowledge graph construction method and device, terminal and storage medium

    CN110929037A

  • Refined question-answering method based on intelligent question-answering robot, storage medium and intelligent equipment

    CN112035640A

  • Knowledge graph display method and system

    CN114186077A

  • Visual intelligence graph issuing method, visual intelligence graph viewing method and visual intelligence graph issuing device

    CN115481259A

  • Lightweight knowledge base design applied to product quality analysis

    CN115562660A