CN114297370A - Knowledge graph display method and device, computer storage medium and electronic equipment - Google Patents

Knowledge graph display method and device, computer storage medium and electronic equipment Download PDF

Info

Publication number
CN114297370A
CN114297370A CN202111628403.7A CN202111628403A CN114297370A CN 114297370 A CN114297370 A CN 114297370A CN 202111628403 A CN202111628403 A CN 202111628403A CN 114297370 A CN114297370 A CN 114297370A
Authority
CN
China
Prior art keywords
node
knowledge graph
displayed
region
knowledge
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.)
Pending
Application number
CN202111628403.7A
Other languages
Chinese (zh)
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.)
Beijing Jindi Technology Co Ltd
Original Assignee
Beijing Jindi Technology 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 Beijing Jindi Technology Co Ltd filed Critical Beijing Jindi Technology Co Ltd
Priority to CN202111628403.7A priority Critical patent/CN114297370A/en
Publication of CN114297370A publication Critical patent/CN114297370A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the disclosure provides a knowledge graph display method and device, a computer storage medium and electronic equipment, and belongs to the technical field of computer technology and data processing. The display method of the knowledge graph comprises the following steps: aiming at a knowledge graph displayed hierarchically in a webpage interface, responding to the monitored operation of a target node in the knowledge graph, and generating a corresponding operation event according to the monitored operation, wherein in the hierarchically displayed knowledge graph, nodes at different levels are displayed in different hierarchical regions, nodes at the same level are displayed in the same hierarchical region, and the knowledge graph comprises an enterprise and legal relation knowledge graph; and updating the display state of the knowledge graph in the webpage interface according to the type of the operation event and based on the target node.

Description

Knowledge graph display method and device, computer storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of computer technology and data processing technology, and in particular, to a method and an apparatus for displaying a knowledge graph, a computer storage medium, and an electronic device.
Background
Based on a big data solution, a series of deep mining such as cleaning analysis and sorting is performed on the collected enterprise data, so that data comprehensive query or classified query service is provided, such as querying enterprise-related information.
The method specifically utilizes an investment knowledge graph to embody the detailed investment of enterprises by taking the intuitive investment condition display as an example, the investment knowledge graph can comprise a plurality of nodes, each node corresponds to one enterprise, and the relationship among the nodes is drawn into a tree structure so as to intuitively display the investment relationship among the enterprises.
One of the functions of the knowledge graph is to facilitate users to intuitively and clearly understand information of interest (including but facilitating enterprise information, investment information, organization and architecture information, etc.), but in the knowledge graph such as the investment knowledge graph, because of a large number of nodes included therein and the relationship among intricate and complex nodes, the display difficulty of the knowledge graph is large, and the existing display mode is not favorable for users to intuitively and clearly understand information of interest, thereby making user experience poor.
Disclosure of Invention
The embodiment of the disclosure provides a display method and device of a knowledge graph, a computer storage medium and an electronic device, which are used for overcoming or relieving the technical problems in the prior art.
The technical scheme adopted by the disclosure is as follows:
a method of displaying a knowledge graph, comprising:
aiming at a knowledge graph displayed hierarchically in a webpage interface, responding to the monitoring of the operation aiming at a target node in the knowledge graph, and generating a corresponding operation event according to the monitored operation, wherein in the hierarchically displayed knowledge graph, nodes at different levels are displayed in different hierarchical regions, nodes at the same level are displayed in the same hierarchical region, and the knowledge graph comprises an enterprise and legal relation knowledge graph; and
and updating the display state of the knowledge graph in the webpage interface according to the type of the operation event and based on the target node.
Optionally, the knowledge graph is displayed hierarchically in the web interface by:
in the initialization process, a root node of the knowledge graph is displayed in a first area of the webpage interface, and child nodes directly related to the root node are displayed in a second area of the webpage interface.
Optionally, the first region and the second region are adjacent and arranged in parallel.
Optionally, the first region is a closed region, and the second region is adjacent to and surrounds the first region in the middle.
Optionally, displaying, in a second area of the web interface, a child node directly associated with the root node, including:
displaying all child nodes directly associated with the root node in the second area of the webpage interface; or
And displaying at least one child node in all child nodes directly associated with the root node in the second area of the webpage interface.
Optionally, the method further comprises:
determining at least one target child node having a downstream node among the at least one child node or all of the child nodes; and
and displaying a corresponding expansion and retraction identification for each of the at least one target child node in the second area so as to expand or retract the corresponding downstream node.
Optionally, the method further comprises: for each of the child nodes directly associated with the root node but not yet exposed within the second region, a corresponding deployment retract flag is exposed in the first region.
Optionally, updating, according to the type of the operation event and based on the target node, a display state of the knowledge graph in the web interface, where the display state of the knowledge graph includes at least one of: in the case that the operation event is a first type of operation event, highlighting a penetrating relationship from a root node of the knowledge graph to the target node in the webpage interface; and displaying a downstream node of the target node in the webpage interface, wherein the downstream node and the target node are displayed in the webpage interface in a layered mode.
Optionally, updating, according to the type of the operation event and based on the target node, a display state of the knowledge graph in the web interface, where the display state of the knowledge graph includes at least one of:
displaying a downstream node of the target node in the web interface under the condition that the operation event is a second type of operation event, wherein the downstream node and the target node are displayed in the web interface in a layered mode; and when the operation event is a third type of operation event, the display of the downstream node of the target node in the webpage interface is received, wherein the downstream node and the target node are displayed in the webpage interface in a layered mode.
Optionally, the object represented by the root node includes: an enterprise or enterprise legal person or an enterprise actual controller; the objects represented by child nodes directly associated with the root node include: the object represented by the root node controls the enterprise that shares or participates in stock.
Optionally, the method further comprises: and zooming the displayed nodes of each level in the current knowledge graph while displaying the downstream nodes of the target node in the webpage interface.
A display device of a knowledge graph, comprising:
the operation event generation unit is used for responding to the monitored operation of a target node in a knowledge graph aiming at the knowledge graph displayed hierarchically in the webpage interface and generating a corresponding operation event according to the monitored operation, wherein in the knowledge graph displayed hierarchically, nodes at different levels are displayed in different hierarchical regions, nodes at the same level are displayed in the same hierarchical region, and the knowledge graph comprises an enterprise and legal relation knowledge graph; and
and the map state updating unit is used for updating the display state of the knowledge map in the webpage interface according to the type of the operation event and based on the target node.
A computer storage medium having stored thereon a computer-executable program that is executed to implement a method according to any one of the embodiments of the present disclosure.
An electronic device comprising a memory for storing thereon a computer-executable program and a processor for executing the computer-executable program to implement a method according to any of the embodiments of the present disclosure.
A computer program product comprising a computer program which, when executed by a processor, implements a method according to any one of the embodiments of the present disclosure.
According to the embodiment of the disclosure, by aiming at the knowledge graph displayed hierarchically in the webpage interface, responding to the monitoring of the operation aiming at the target node in the knowledge graph, and generating the corresponding operation event according to the monitored operation; and updating the display state of the knowledge graph in the webpage interface according to the type of the operation event and based on the target node, and when the knowledge graph is displayed, updating the display state of the knowledge graph in real time based on the type of the operation event on the basis of the knowledge graph displayed in a layered mode, so that the displayed nodes can be dynamically adjusted in real time in a limited webpage interface, the number of the displayed nodes is controllable, a user can conveniently and visually and clearly know the information concerned by the user, the user experience is improved, and the display difficulty of the knowledge graph is reduced.
Drawings
Fig. 1A schematically shows a flow chart of a method for displaying a knowledge graph according to an embodiment of the present disclosure.
FIG. 1B schematically shows a knowledge-graph diagram at initialization according to an embodiment of the disclosure.
FIG. 1C schematically illustrates a knowledge-graph diagram upon initialization according to an embodiment of the disclosure.
FIG. 1D schematically illustrates a knowledge-graph diagram upon initialization according to an embodiment of the disclosure.
Fig. 1E schematically illustrates a flow chart of setting up to expand or collapse a corresponding downstream node according to an embodiment of the present disclosure.
Fig. 1F schematically illustrates a schematic diagram of setting up deployment of a corresponding downstream node according to an embodiment of the present disclosure.
Fig. 1G schematically illustrates a schematic diagram of setting up deployment of a corresponding downstream node according to an embodiment of the present disclosure.
Fig. 1H schematically illustrates a schematic diagram of displaying a corresponding deployment and retraction identifier in the first area for each of the child nodes not yet displayed in the second area according to an embodiment of the present disclosure.
Fig. 1I schematically illustrates a schematic diagram of displaying a corresponding deployment and retraction identifier in the first area for each of the child nodes not yet displayed in the second area according to an embodiment of the present disclosure.
Fig. 1J schematically illustrates a schematic diagram of a first type of operation event causing a downstream node of the target node to be shown in the web interface according to an embodiment of the present disclosure.
Fig. 1K schematically shows a schematic diagram highlighting the penetration relationship according to an embodiment of the present disclosure.
FIG. 1L is a schematic diagram that schematically illustrates a hierarchical presentation based on a second type of operation event according to an embodiment of the present disclosure.
Fig. 1M schematically illustrates a schematic diagram of implementing the initialization based on entity data according to an embodiment of the present disclosure.
Fig. 2 schematically shows a schematic diagram of a display device of a knowledge graph according to an embodiment of the present disclosure.
Fig. 3 schematically illustrates an electronic device according to an embodiment of the present disclosure.
Detailed Description
To make the technical problems, technical solutions and advantages to be solved by the present disclosure clearer, the following detailed description is made with reference to the accompanying drawings and specific embodiments.
According to the embodiment of the disclosure, by aiming at the knowledge graph displayed hierarchically in the webpage interface, responding to the monitoring of the operation aiming at the target node in the knowledge graph, and generating the corresponding operation event according to the monitored operation; and updating the display state of the knowledge graph in the webpage interface according to the type of the operation event and based on the target node, and when the knowledge graph is displayed, updating the display state of the knowledge graph in real time based on the type of the operation event on the basis of the knowledge graph displayed in a layered mode, so that the displayed nodes can be dynamically adjusted in real time in a limited webpage interface, the number of the displayed nodes is controllable, a user can conveniently and visually and clearly know the information concerned by the user, the user experience is improved, and the display difficulty of the knowledge graph is reduced.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, apparatus, steps, etc. In other instances, well-known structures, methods, devices, implementations, or operations are not shown or described in detail to avoid obscuring aspects of the disclosure.
Furthermore, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present disclosure, "a plurality" means at least two, e.g., two, three, etc., unless explicitly specifically limited otherwise. The symbol "/" generally indicates that the former and latter associated objects are in an "or" relationship.
In the present disclosure, unless otherwise expressly specified or limited, the terms "connected" and the like are to be construed broadly, e.g., as meaning electrically connected or in communication with each other; may be directly connected or indirectly connected through an intermediate. The specific meaning of the above terms in the present disclosure can be understood by those of ordinary skill in the art as appropriate.
In the following embodiments, the investment knowledge graph is taken as an example for explanation, and therefore, the relationship between graph nodes is an investment relationship. Of course, in other embodiments, the aspects of the present disclosure may also be applied to other knowledge graphs, such as organizational structure knowledge graphs, collaborative knowledge graphs, and the like.
The form of the knowledge graph is not particularly limited, and may be, for example, a tree form.
Fig. 1A schematically shows a flow chart of a method for displaying a knowledge graph according to an embodiment of the present disclosure. As shown in fig. 1A, it includes:
s101, aiming at a knowledge graph displayed hierarchically in a webpage interface, responding to the monitored operation of a target node in the knowledge graph, and generating a corresponding operation event according to the monitored operation, wherein in the hierarchically displayed knowledge graph, nodes at different levels are displayed in different hierarchical regions, nodes at the same level are displayed in the same hierarchical region, and the knowledge graph comprises an enterprise and legal relation knowledge graph.
Optionally, the knowledge graph is displayed hierarchically in the web interface by: in the initialization process, a root node of the knowledge graph is displayed in a first area of the webpage interface, and child nodes directly related to the root node are displayed in a second area of the webpage interface.
Specifically, the root node and the child node may respectively correspond to an entity, including but not limited to a legal person, a natural person, and a social group.
Optionally, displaying, in a second area of the web interface, a child node directly associated with the root node, including: displaying all child nodes directly associated with the root node in the second area of the webpage interface; or at least one child node in all child nodes directly associated with the root node is shown in the second area of the web interface.
In the embodiment of the disclosure, the root node of the knowledge graph is displayed in the first area, and simultaneously, all the child nodes or at least one child node directly associated with the root node is displayed in the second area, which is equivalent to displaying only information of a part of entities, but not completely displaying all the nodes at one time, so that the storage space of a web interface is saved, and the influence on user experience caused by too slow rendering process is avoided.
FIG. 1B schematically shows a knowledge-graph diagram at initialization according to an embodiment of the disclosure. As shown in fig. 1B, optionally, the first region and the second region are adjacent and arranged in parallel. Specifically, as shown in fig. 1B, the first region and the second region are adjacent to each other in the up-down direction, and the arrangement direction is from left to right (or may be referred to as from right to left). The root node is arranged in the first area, and all child nodes or at least one child node directly related to the root node is arranged in the second area, so that the quantity of display nodes of the initialized knowledge graph in a webpage is controllable, the storage space of a webpage interface is saved, and the influence on user experience caused by too slow rendering process is avoided.
Here, it should be noted that the embodiment of fig. 1B is merely an example, and is not limited only, and actually, for a person having ordinary skill in the art, it may be implemented that the first area and the second area are arranged adjacently and in parallel according to an application scenario, a root node is disposed in the first area, and all or at least one of the child nodes directly associated with the root node is disposed in the second area.
FIG. 1C schematically illustrates a knowledge-graph diagram upon initialization according to an embodiment of the disclosure. As shown in fig. 1C, optionally, the first region is a closed region, and the second region is adjacent to and surrounds the first region in the middle. Specifically, in this embodiment, the first region is a circular or approximately circular region, the second region is a circular ring or approximately circular ring region, and the second region surrounds the first region.
FIG. 1D schematically illustrates a knowledge-graph diagram upon initialization according to an embodiment of the disclosure. As shown in fig. 1D, optionally, the first region is a closed region, and the second region is adjacent to and surrounds the first region in the middle. Specifically, in this embodiment, the first region is a rectangular or approximately rectangular region, the second region is a rectangular ring or approximately rectangular ring region, and the second region surrounds the first region.
Fig. 1E schematically illustrates a flow chart of setting up to expand or collapse a corresponding downstream node according to an embodiment of the present disclosure. As shown in fig. 1E, setting to deploy or stow the corresponding downstream node includes:
S100A, determining at least one target child node with downstream nodes in the at least one child node or all child nodes.
S100B, displaying a corresponding expansion and retraction mark for each of the at least one target child node in the second area so as to expand or retract the corresponding downstream node.
The above steps S100A, S100B may be performed before step S101.
Fig. 1F schematically illustrates a schematic diagram of setting up deployment of a corresponding downstream node according to an embodiment of the present disclosure. As shown in fig. 1F, in the schematic diagram of fig. 1B, specific deployment and retraction identifiers (specifically, deployment identifiers) are added to some target sub-nodes to deploy their downstream nodes.
Fig. 1G schematically illustrates a schematic diagram of setting up deployment of a corresponding downstream node according to an embodiment of the present disclosure. As shown in fig. 1G, a specific deployment and retraction identifier (switched to a retraction identifier) is added to some target sub-nodes on the schematic diagram of fig. 1B to retract the deployed downstream nodes.
Optionally, the method further comprises: for each of the child nodes directly associated with the root node but not yet exposed within the second region, a corresponding deployment retract flag is exposed in the first region. This step may include being performed before step S101 described above.
Specifically, fig. 1H schematically illustrates a schematic diagram of one embodiment of the present disclosure showing a corresponding deployment and retraction identifier in the first area for each of the child nodes not yet shown in the second area. Fig. 1I schematically illustrates a schematic diagram of displaying a corresponding deployment and retraction identifier in the first area for each of the child nodes not yet displayed in the second area according to an embodiment of the present disclosure. As shown in fig. 1H and 1I, before being deployed, the deployment flag is specifically configured, and after being deployed, the deployment flag is switched to the stowage flag.
And S102, updating the display state of the knowledge graph in the webpage interface according to the type of the operation event and based on the target node.
Optionally, in this embodiment, updating, according to the type of the operation event and based on the target node, the display state of the knowledge graph in the web interface includes at least one of: in the case that the operation event is a first type of operation event, highlighting a penetrating relationship from a root node of the knowledge graph to the target node in the webpage interface; and displaying a downstream node of the target node in the webpage interface, wherein the downstream node and the target node are displayed in the webpage interface in a layered mode. Through highlighting the penetrating relation from the root node of the knowledge graph to the target node, a user can conveniently and visually and clearly know the concerned information, and the user experience is improved.
Fig. 1J schematically illustrates a schematic diagram of a first type of operation event causing a downstream node of the target node to be shown in the web interface according to an embodiment of the present disclosure. As shown in fig. 1J, the cursor hovers over a child node, which is the target node, which has downstream nodes, thereby exposing the downstream nodes of the target node in response to the cursor hover event.
Fig. 1K schematically shows a schematic diagram highlighting the penetration relationship according to an embodiment of the present disclosure. As shown in fig. 1K, specifically, the first type of operation event is, for example, a cursor hover event, where the cursor hover event is, for example: the cursor is suspended on a downstream node which is used as a target node, and a connecting line from the root node to the target node is thickened so as to highlight the penetrating relation.
Optionally, updating, according to the type of the operation event and based on the target node, a display state of the knowledge graph in the web interface, where the display state of the knowledge graph includes at least one of:
displaying a downstream node of the target node in the web interface under the condition that the operation event is a second type of operation event, wherein the downstream node and the target node are displayed in the web interface in a layered mode; and when the operation event is a third type of operation event, the display of the downstream node of the target node in the webpage interface is received, wherein the downstream node and the target node are displayed in the webpage interface in a layered mode.
Specifically, fig. 1L schematically illustrates a schematic diagram of performing hierarchical display based on the second type of operation event according to an embodiment of the present disclosure. As shown in fig. 1L, the second type of operation event is generated, for example, by clicking the expansion and retraction identifier, similarly to fig. 1J, a child node is used as a target node, and the expansion and retraction identifier of the target node is clicked, so that a downstream node of the target node is expanded, specifically, an area of the downstream node is a third area below the second area, thereby implementing the hierarchical display, and after the expansion, the expansion and retraction identifier is switched to the retraction identifier.
Specifically, the node downstream of the target node is collapsed by clicking the collapse flag in fig. 1L.
Here, although the second type of operation event and the third type of operation event are generated by taking the click expansion and contraction flag as an example in fig. 1L, the second type of operation event and the third type of operation event are not limited to be generated only based on the expansion and contraction flag, and actually, it is enough for those skilled in the art to make an adaptive configuration according to the requirements of the application scenario and the form of the knowledge graph.
In summary, the dynamic adjustment of the display nodes can be realized according to the operation events, or the display can be called as hierarchical display, so that the number of the displayed nodes is controllable, a user can conveniently and visually and clearly know the information concerned by the user, and the user experience is improved. In addition, all the nodes are not completely displayed at one time, so that the storage space of the webpage interface is saved, and the too slow rendering process is avoided.
Optionally, in a specific application scenario, for example, the application to the investment knowledge graph, the objects represented by the root node include: an enterprise or enterprise legal person or an enterprise actual controller; the objects represented by child nodes directly associated with the root node include: the object represented by the root node controls the enterprise that shares or participates in stock. The penetration relationship is highlighted as an investment relationship.
Further, optionally, the method further comprises: and zooming the displayed nodes of each level in the current knowledge graph while displaying the downstream nodes of the target node in the webpage interface.
Specifically, when downstream nodes of the target node are displayed in the web interface, and the number of displayed nodes is large, and the displayed nodes cannot be completely displayed, the displayed nodes in each level in the current knowledge graph are zoomed, so that the nodes in each level are completely displayed in the web interface.
Here, it should be noted that, in the above embodiments, the specific number of nodes and the number of regions shown in the knowledge graph are merely examples and are not limited. More nodes and regions can be shown in specific applications.
In this embodiment, when the node is displayed in step S102, a page element rendering operation may be performed according to entity data corresponding to the node to be displayed, so as to display the node in the web interface.
Specifically, the entity data includes entity relationship data, and entity attribute data; the entity relationship data is data representing the relationship between entities, and the entity attribute data is data representing the attribute of the entity. Illustratively, the entity relationship data and the entity attribute data are, for example, ternary arrays. For example, for the entity "belgium", the physical relationship data is (belgium-wife-melinda-gaitz), (belgium-president-microsoft), and the entity attribute data is (belgium-man-americans). Here, the entity relationship data and the entity attribute data are merely examples, which are determined specifically according to the description dimension of the entity.
Referring to the above operation of rendering page elements based on entity data to display nodes in a web interface, fig. 1M schematically illustrates a schematic diagram of implementing the above initialization based on entity data according to an embodiment of the present disclosure. As shown in fig. 1M, when hierarchically displaying through initialization in step S101, displaying a root node of the knowledge-graph in a first area of the web interface and displaying a child node directly associated with the root node in a second area of the web interface, includes:
s111, acquiring entity data forming the root node based on the ID of the root node.
For example, a lookup is performed from a pre-constructed fact expression library according to the root node ID to obtain corresponding entity data, where one entity data corresponds to one fact, and all the entity data form the fact expression library, and the fact expression library is, for example, a graph database because the entities involved in the knowledge graph and the relationships between the entities are complex.
S121, determining all child nodes or at least one node directly related to the root node and corresponding entity data according to the root node ID.
For example, in step S111, all child nodes or at least one node directly associated with the root node and corresponding entity data may be determined according to the entity data of the node based on the inter-node relationship description matrix.
In this embodiment, the relationship between the entities is visually recorded in the inter-node relationship description matrix, and for convenience of understanding, a simple example is given, for example, the first row and the first column of the inter-node relationship description matrix are respectively entity IDs, and according to a row-column crossing manner, if two entities have an association relationship, the matrix element where the entity ID located in the row direction and the entity ID located in the column direction cross in the row-column direction is 1, otherwise, is 0. Of course, this is merely an example and not a limitation.
Specifically, when determining the entity data of all the child nodes or at least one node directly associated with the root node, the relationship description matrix between the nodes may be specifically searched by using the entity ID in the entity data.
Since both the entity relationship data and the entity attribute data include the entity ID, the entity data used in the above steps may be the entity relationship data or the entity attribute data.
S131, performing page element rendering on the root node ID and entity data corresponding to all child nodes or at least one node directly associated with the root node, and displaying all child nodes or at least one child node in all child nodes directly associated with the root node in the second area of the webpage interface.
It can be seen that, due to initialization, the first area of the web interface shows the root node, and the second area shows all child nodes directly associated with the root node; or at least one child node in all child nodes directly associated with the root node is displayed in the second area of the web interface, so that the number of displayed nodes in the web interface is relatively limited, the display difficulty of the knowledge graph is reduced, in addition, the number of displayed nodes is controllable, and the interference caused to the user by other nodes which are not concerned by the user and displayed in the web interface is avoided, so that the user can be ensured to visually and clearly know the information concerned by the user, and the user experience is improved.
Fig. 2 schematically shows a schematic diagram of a display device of a knowledge graph according to an embodiment of the present disclosure. As shown in fig. 2, the knowledge-graph displaying apparatus 200 includes:
the operation event generating unit 201 is configured to generate, for a knowledge graph hierarchically displayed in the web interface, a corresponding operation event according to monitored operations in response to monitoring that operations are performed on target nodes in the knowledge graph, where in the hierarchically displayed knowledge graph, nodes at different levels are displayed in different hierarchical regions, nodes at the same level are displayed in the same hierarchical region, and the knowledge graph includes an enterprise and legal relationship knowledge graph.
And the graph state updating unit 202 is configured to update the display state of the knowledge graph in the web interface according to the type of the operation event and based on the target node.
Optionally, the apparatus further includes a layering unit, configured to hierarchically present the knowledge graph in the web interface by: in the initialization process, a root node of the knowledge graph is displayed in a first area of the webpage interface, and child nodes directly related to the root node are displayed in a second area of the webpage interface.
Optionally, the first region and the second region are adjacent and arranged in parallel.
Optionally, the first region is a closed region, and the second region is adjacent to and surrounds the first region in the middle.
Optionally, the hierarchical unit is specifically configured to: displaying all child nodes directly associated with the root node in the second area of the webpage interface; or at least one child node in all child nodes directly associated with the root node is shown in the second area of the web interface.
Optionally, the hierarchical unit is further specifically configured to: determining at least one target child node having a downstream node among the at least one child node or all of the child nodes; and displaying a corresponding deployment and retraction identifier for each of the at least one target child node within the second area so as to deploy or retract the corresponding downstream node.
Optionally, the hierarchical unit is further specifically configured to: for each of the child nodes directly associated with the root node but not yet exposed within the second region, a corresponding deployment retract flag is exposed in the first region.
Optionally, when the display state of the knowledge graph is updated in the web interface according to the type of the operation event and based on the target node, the graph state updating unit includes at least one of: in the case that the operation event is a first type of operation event, highlighting a penetrating relationship from a root node of the knowledge graph to the target node in the webpage interface; and displaying a downstream node of the target node in the webpage interface, wherein the downstream node and the target node are displayed in the webpage interface in a layered mode.
Optionally, when the display state of the knowledge graph is updated in the web interface according to the type of the operation event and based on the target node, the graph state updating unit includes at least one of: displaying a downstream node of the target node in the web interface under the condition that the operation event is a second type of operation event, wherein the downstream node and the target node are displayed in the web interface in a layered mode; and when the operation event is a third type of operation event, the display of the downstream node of the target node in the webpage interface is received, wherein the downstream node and the target node are displayed in the webpage interface in a layered mode.
Optionally, the object represented by the root node includes: an enterprise or enterprise legal person or an enterprise actual controller; the objects represented by child nodes directly associated with the root node include: the object represented by the root node controls the enterprise that shares or participates in stock.
Optionally, the graph state updating unit is further configured to zoom the displayed nodes of each level in the current knowledge graph while displaying the nodes downstream of the target node in the web interface.
Fig. 3 schematically illustrates an electronic device according to an embodiment of the present disclosure. As shown in fig. 3, the electronic device 300 comprises a memory 301 for storing thereon a computer-executable program and a processor 302 for running the computer-executable program to implement the method according to any of the embodiments of the present disclosure.
A computer program product comprising a computer program which, when executed by a processor, implements a method according to any one of the embodiments of the present disclosure.
A computer storage medium having stored thereon a computer-executable program that is executed to implement a method according to any one of the embodiments of the present disclosure.
The above-mentioned embodiments are merely specific embodiments of the present disclosure, which are used for illustrating the technical solutions of the present disclosure and not for limiting the same, and the scope of the present disclosure is not limited thereto, and although the present disclosure is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive of the technical solutions described in the foregoing embodiments or equivalent technical features thereof within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present disclosure, and should be construed as being included therein. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (15)

1. A method for displaying a knowledge graph is characterized by comprising the following steps:
aiming at a knowledge graph displayed hierarchically in a webpage interface, responding to the monitoring of the operation aiming at a target node in the knowledge graph, and generating a corresponding operation event according to the monitored operation, wherein in the hierarchically displayed knowledge graph, nodes at different levels are displayed in different hierarchical regions, nodes at the same level are displayed in the same hierarchical region, and the knowledge graph comprises an enterprise and legal relation knowledge graph; and
and updating the display state of the knowledge graph in the webpage interface according to the type of the operation event and based on the target node.
2. The method of claim 1, wherein the knowledge-graph is hierarchically exposed in the web interface by:
in the initialization process, a root node of the knowledge graph is displayed in a first area of the webpage interface, and child nodes directly related to the root node are displayed in a second area of the webpage interface.
3. The method of claim 2, wherein the first region and the second region are arranged adjacent and in parallel.
4. The method of claim 2, wherein the first region is a closed region and the second region is adjacent to and surrounds the first region in the middle.
5. The method of any of claims 2 to 4, wherein exposing child nodes directly associated with the root node in a second area of the web interface comprises:
displaying all child nodes directly associated with the root node in the second area of the webpage interface; or
And displaying at least one child node in all child nodes directly associated with the root node in the second area of the webpage interface.
6. The method of claim 5, further comprising:
determining at least one target child node having a downstream node among the at least one child node or all of the child nodes; and
and displaying a corresponding expansion and retraction identification for each of the at least one target child node in the second area so as to expand or retract the corresponding downstream node.
7. The method of claim 5 or 6, further comprising:
for each of the child nodes directly associated with the root node but not yet exposed within the second region, a corresponding deployment retract flag is exposed in the first region.
8. The method of claim 1, wherein updating the presentation state of the knowledge-graph in the web interface based on the target node according to the type of the operational event comprises at least one of: in the case where the operational event is of a first type,
highlighting in the web interface a penetration relationship from a root node of the knowledge-graph to the target node;
and displaying a downstream node of the target node in the webpage interface, wherein the downstream node and the target node are displayed in the webpage interface in a layered mode.
9. The method of claim 1 or 8, wherein updating the presentation state of the knowledge-graph in the web interface according to the type of the operation event and based on the target node comprises at least one of:
displaying a downstream node of the target node in the web interface under the condition that the operation event is a second type of operation event, wherein the downstream node and the target node are displayed in the web interface in a layered mode;
and when the operation event is a third type of operation event, the display of the downstream node of the target node in the webpage interface is received, wherein the downstream node and the target node are displayed in the webpage interface in a layered mode.
10. The method of claim 2, wherein:
the object represented by the root node includes: an enterprise or enterprise legal person or an enterprise actual controller;
the objects represented by child nodes directly associated with the root node include: the object represented by the root node controls the enterprise that shares or participates in stock.
11. The method of claim 8 or 9, further comprising: while the downstream node of the target node is exposed in the web interface,
the level nodes exposed in the current knowledge-graph are scaled.
12. A knowledge graph display apparatus, comprising:
the operation event generation unit is used for responding to the monitored operation of a target node in a knowledge graph aiming at the knowledge graph displayed hierarchically in the webpage interface and generating a corresponding operation event according to the monitored operation, wherein in the knowledge graph displayed hierarchically, nodes at different levels are displayed in different hierarchical regions, nodes at the same level are displayed in the same hierarchical region, and the knowledge graph comprises an enterprise and legal relation knowledge graph; and
and the map state updating unit is used for updating the display state of the knowledge map in the webpage interface according to the type of the operation event and based on the target node.
13. A computer storage medium having stored thereon a computer-executable program that is executed to implement the method of any one of claims 1-11.
14. An electronic device comprising a memory for storing thereon a computer-executable program and a processor for executing the computer-executable program to implement the method of any of claims 1-11.
15. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-11.
CN202111628403.7A 2021-12-28 2021-12-28 Knowledge graph display method and device, computer storage medium and electronic equipment Pending CN114297370A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111628403.7A CN114297370A (en) 2021-12-28 2021-12-28 Knowledge graph display method and device, computer storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111628403.7A CN114297370A (en) 2021-12-28 2021-12-28 Knowledge graph display method and device, computer storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN114297370A true CN114297370A (en) 2022-04-08

Family

ID=80970820

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111628403.7A Pending CN114297370A (en) 2021-12-28 2021-12-28 Knowledge graph display method and device, computer storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN114297370A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114595343A (en) * 2022-05-07 2022-06-07 北京金堤科技有限公司 Map display method and device, storage medium and electronic equipment
CN116049326A (en) * 2022-12-22 2023-05-02 广州奥咨达医疗器械技术股份有限公司 Medical instrument knowledge base construction method, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110633364A (en) * 2019-09-23 2019-12-31 中国农业大学 Graph database-based food safety knowledge graph construction method and display mode
CN113010686A (en) * 2021-03-04 2021-06-22 北京顶象技术有限公司 Knowledge graph display method
CN113282689A (en) * 2021-07-22 2021-08-20 药渡经纬信息科技(北京)有限公司 Retrieval method and device based on domain knowledge graph and search engine
CN113297392A (en) * 2021-06-02 2021-08-24 江苏数兑科技有限公司 Intelligent data service method based on knowledge graph

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110633364A (en) * 2019-09-23 2019-12-31 中国农业大学 Graph database-based food safety knowledge graph construction method and display mode
CN113010686A (en) * 2021-03-04 2021-06-22 北京顶象技术有限公司 Knowledge graph display method
CN113297392A (en) * 2021-06-02 2021-08-24 江苏数兑科技有限公司 Intelligent data service method based on knowledge graph
CN113282689A (en) * 2021-07-22 2021-08-20 药渡经纬信息科技(北京)有限公司 Retrieval method and device based on domain knowledge graph and search engine

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114595343A (en) * 2022-05-07 2022-06-07 北京金堤科技有限公司 Map display method and device, storage medium and electronic equipment
WO2023216671A1 (en) * 2022-05-07 2023-11-16 北京金堤科技有限公司 Graph display method and apparatus, storage medium and electronic device
CN116049326A (en) * 2022-12-22 2023-05-02 广州奥咨达医疗器械技术股份有限公司 Medical instrument knowledge base construction method, electronic equipment and storage medium
CN116049326B (en) * 2022-12-22 2024-03-08 广州奥咨达医疗器械技术股份有限公司 Medical instrument knowledge base construction method, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US11789961B2 (en) Interaction with particular event for field selection
US11405301B1 (en) Service analyzer interface with composite machine scores
US10866991B1 (en) Monitoring service-level performance using defined searches of machine data
US10887191B2 (en) Service monitoring interface with aspect and summary components
US9256501B1 (en) High availability scheduler for scheduling map-reduce searches
US9146954B1 (en) Creating entity definition from a search result set
US9146962B1 (en) Identifying events using informational fields
CN114297370A (en) Knowledge graph display method and device, computer storage medium and electronic equipment
US20160092045A1 (en) Event View Selector
US20150026167A1 (en) Discovering fields to filter data returned in response to a search
US20160104090A1 (en) State determination using per-entity thresholds
US11831521B1 (en) Entity lifecycle management in service monitoring system
US12021698B1 (en) Entity retirement in service monitoring system
CN112464056B (en) Visual monitoring system
CN118210406A (en) Device data display method and device of medical device and computer device

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20220408

RJ01 Rejection of invention patent application after publication