Search

CN-114077672-B - Knowledge graph updating method and device, storage medium and electronic equipment

CN114077672BCN 114077672 BCN114077672 BCN 114077672BCN-114077672-B

Abstract

The invention discloses a knowledge graph updating method, a storage medium and electronic equipment. The method comprises the steps of displaying a first graph node and a first group of graph nodes on a first interactive interface, displaying corresponding keywords on each graph node in the first graph node and the first group of graph nodes, enabling the keywords on the first graph node to have association relations with the keywords on the first group of graph nodes, acquiring a first interactive operation for selecting a second graph node on the first interactive interface, and displaying a newly added second group of graph nodes on the first interactive interface in response to the first interactive operation. The invention solves the technical problems that the user needs are difficult to truly adapt and the accuracy of the updated and recommended content is low in the related technology.

Inventors

  • CAI LEI

Assignees

  • 腾讯科技(深圳)有限公司

Dates

Publication Date
20260512
Application Date
20200820

Claims (20)

  1. 1. The method for updating the knowledge graph is characterized by being applied to the field of audio recommendation and comprising the following steps of: Displaying a target knowledge graph on a first interactive interface, wherein the target knowledge graph comprises a first graph node and a first group of graph nodes, wherein the first graph node is adjacent to the first graph node, and the keywords on the first graph node have an association relationship with the keywords on the first group of graph nodes; In response to a first interactive operation performed on a second graph node in the first group of graph nodes, displaying a newly added second group of graph nodes in the target knowledge graph on the first interactive interface, and canceling to display a group of graph nodes except the second graph node in the first group of graph nodes, wherein when the keywords displayed on the second group of graph nodes are singers, the graph nodes corresponding to the keywords are displayed as photos and names of the singers, when the keywords displayed on the graph nodes are songs, the corresponding songs are directly played, additional data of the keywords corresponding to the second group of graph nodes are displayed on the second group of graph nodes, the second group of graph nodes are adjacent nodes of the second graph nodes, each graph node in the second group of graph nodes is displayed with the corresponding keywords, the keywords on the second group of graph nodes have an association relationship with the keywords on the second group of graph nodes, the keywords on the second group of graph nodes are different in the keyword, and the keyword on the graph nodes are different in the animation effect; Displaying a target node on the first interactive interface, displaying keywords which are not directly displayed in the graph nodes by using the target node, wherein the target node is an adjacent node of the second graph node, triggering a drop-down menu to display a third group of keywords in response to a third interactive operation performed on the target node, wherein the third group of keywords represent keywords which are not displayed in the second group of graph nodes after being subjected to heat sorting; The method further comprises the steps of acquiring second interaction operation executed on the first map node on the first interaction interface under the condition that the display of the map nodes except the second map node in the first map node is canceled, and responding to the second interaction operation, and displaying the map nodes except the second map node in the first map node on the first interaction interface.
  2. 2. The method according to claim 1, wherein the method further comprises: And under the condition that the second interactive operation executed on the first map node is acquired on the first interactive interface, the second group of map nodes are not displayed on the first interactive interface.
  3. 3. The method of claim 1, wherein displaying a newly added second set of graph nodes on the first interactive interface comprises: acquiring a group of keywords with association relation with the keywords on the second map node from a first information set; and displaying the group of keywords in the corresponding map nodes in the second group of map nodes, wherein the group of keywords are in one-to-one correspondence with the second group of map nodes.
  4. 4. A method according to claim 3, wherein the obtaining, in the first information set, a set of keywords having an association relationship with the keywords on the second map node includes: acquiring a first group of keywords with association relation with the keywords on the second map node from a first information set; sorting the first group of keywords according to the heat degree of the keywords to obtain a second group of keywords; and selecting N keywords with top hotness ranking from the second group of keywords to obtain the group of keywords, wherein N is a natural number.
  5. 5. The method of claim 1, wherein displaying a newly added second set of graph spectrum nodes on the first interactive interface comprises: And displaying the third map node by using a first display mode and displaying the fourth map node by using a second display mode on the first interactive interface under the condition that the second group of map nodes comprises the third map node and the fourth map node, wherein the keywords on the third map node and the keywords on the fourth map node are different types of keywords.
  6. 6. The method of claim 5, wherein the method further comprises: And under the condition that a third group of graph spectrum nodes are displayed on the first interactive interface, the second group of graph spectrum nodes are not displayed on the first interactive interface, wherein the third group of graph spectrum nodes are in one-to-one correspondence with the fourth group of keywords, and the third group of graph spectrum nodes are displayed as adjacent nodes of the second graph spectrum nodes.
  7. 7. The method according to any one of claims 1 to 6, further comprising: displaying a first group of media information matched with the keywords on the second map node on a second interactive interface under the condition that the newly added second group of map nodes are displayed on the first interactive interface, or Displaying a second group of media information matched with the keywords on the second map nodes and the keywords on part or all of the map nodes in the second group of map nodes on a second interactive interface under the condition that the newly added second group of map nodes are displayed on the first interactive interface, or And displaying a third group of media information matched with the keywords on part or all of the second group of graph nodes on the second interactive interface under the condition that the newly added second group of graph nodes are displayed on the first interactive interface.
  8. 8. The method according to any one of claims 1 to 6, further comprising: Before the first interactive operation executed on the second graph nodes is acquired on the first interactive interface, displaying a fourth group of media information on the second interactive interface, wherein the fourth group of media information is matched with keywords on a fourth group of graph nodes selected in the target knowledge graph; Under the condition that the newly added second group of graph spectrum nodes are displayed on the first interactive interface, the method further comprises the step of updating the fourth group of media information displayed on the second interactive interface into a fifth group of media information, wherein the fifth group of media information is matched with keywords on the selected fifth group of graph spectrum nodes in the target knowledge graph, and the fifth group of graph spectrum nodes comprise the second graph spectrum nodes.
  9. 9. The method according to any one of claims 1 to 6, wherein displaying the target knowledge-graph on the first interactive interface comprises: Displaying an audio knowledge graph on the first interactive interface, wherein the target knowledge graph comprises the audio knowledge graph, and the keyword on each graph node in the audio knowledge graph is a keyword of audio media information Displaying a video knowledge graph on the first interactive interface, wherein the target knowledge graph comprises the video knowledge graph, and the keyword on each graph node in the video knowledge graph is a keyword of video media information Displaying a text knowledge graph on the first interactive interface, wherein the target knowledge graph comprises the text knowledge graph, and the keyword on each graph node in the text knowledge graph is a keyword of text media information And displaying a picture knowledge graph on the first interactive interface, wherein the target knowledge graph comprises the picture knowledge graph, and the keyword on each graph node in the picture knowledge graph is a keyword of picture media information.
  10. 10. The utility model provides a knowledge graph's updating device which characterized in that is applied to in the audio recommendation field, includes: The first display module is used for displaying a target knowledge graph on a first interactive interface, wherein the target knowledge graph comprises a first graph node and a first group of graph nodes, the first graph node is a neighboring node of the first graph node, the keywords on the first graph node and the keywords on the first group of graph nodes have an association relation, and the graph nodes are represented by using different shapes according to different keyword types, wherein the graph nodes are used for representing the graph nodes of which the keywords are songs by using circles, the graph nodes of which the keywords are singers by using squares, and the graph nodes of which the keywords are regions of the singers by using diamonds; The device is also used for responding to a first interaction operation executed on a second graph node in the first graph node, displaying a newly added second graph node in the target knowledge graph on the first interaction interface, and canceling to display a group of graph nodes except the second graph node in the first graph node, wherein when the keywords displayed on the second graph node are singers, the graph node corresponding to the keywords are displayed as photos and names of the singers, when the keywords displayed on the graph node are songs, the corresponding songs are directly played, additional data of the keywords corresponding to the second graph node are displayed on the second graph node, wherein the second graph node is an adjacent node of the second graph node, each graph node in the second graph node is provided with a corresponding keyword, the keywords on the second node have an association relationship with the keywords on the second graph node, the keywords on the second node are different in the second graph node, the keyword on the second graph node is provided with a different keyword, the keyword on the second graph node is provided with the same animation graph, and the keyword on the second graph node is provided with the same keyword on the animation graph is provided; Displaying a target node on the first interactive interface, displaying keywords which are not directly displayed in the graph nodes by using the target node, wherein the target node is an adjacent node of the second graph node, triggering a drop-down menu to display a third group of keywords in response to a third interactive operation performed on the target node, wherein the third group of keywords represent keywords which are not displayed in the second group of graph nodes after being subjected to heat sorting; The device is further used for acquiring a second interaction operation executed on the first map node on the first interaction interface under the condition that the display of the map nodes except the second map node in the first map node is canceled, and displaying the map nodes except the second map node in the first map node on the first interaction interface in response to the second interaction operation.
  11. 11. The apparatus of claim 10, wherein the apparatus is further configured to: And under the condition that the second interactive operation executed on the first map node is acquired on the first interactive interface, the second group of map nodes are not displayed on the first interactive interface.
  12. 12. The apparatus of claim 10, wherein the apparatus is configured to display a second, additional set of graph nodes on the first interactive interface by: acquiring a group of keywords with association relation with the keywords on the second map node from a first information set; and displaying the group of keywords in the corresponding map nodes in the second group of map nodes, wherein the group of keywords are in one-to-one correspondence with the second group of map nodes.
  13. 13. The apparatus of claim 12, wherein the apparatus is configured to obtain, from a first information set, a set of keywords having an association with keywords on the second graph node by: acquiring a first group of keywords with association relation with the keywords on the second map node from a first information set; sorting the first group of keywords according to the heat degree of the keywords to obtain a second group of keywords; and selecting N keywords with top hotness ranking from the second group of keywords to obtain the group of keywords, wherein N is a natural number.
  14. 14. The apparatus of claim 10, wherein the apparatus is configured to display a second, additional set of graph nodes on the first interactive interface by: And displaying the third map node by using a first display mode and displaying the fourth map node by using a second display mode on the first interactive interface under the condition that the second group of map nodes comprises the third map node and the fourth map node, wherein the keywords on the third map node and the keywords on the fourth map node are different types of keywords.
  15. 15. The apparatus of claim 14, wherein the apparatus is further configured to: And under the condition that a third group of graph spectrum nodes are displayed on the first interactive interface, the second group of graph spectrum nodes are not displayed on the first interactive interface, wherein the third group of graph spectrum nodes are in one-to-one correspondence with the fourth group of keywords, and the third group of graph spectrum nodes are displayed as adjacent nodes of the second graph spectrum nodes.
  16. 16. The apparatus according to any one of claims 10 to 15, further characterized in that the apparatus is adapted to: displaying a first group of media information matched with the keywords on the second map node on a second interactive interface under the condition that the newly added second group of map nodes are displayed on the first interactive interface, or Displaying a second group of media information matched with the keywords on the second map nodes and the keywords on part or all of the map nodes in the second group of map nodes on a second interactive interface under the condition that the newly added second group of map nodes are displayed on the first interactive interface, or And displaying a third group of media information matched with the keywords on part or all of the second group of graph nodes on the second interactive interface under the condition that the newly added second group of graph nodes are displayed on the first interactive interface.
  17. 17. The apparatus according to any one of claims 10 to 15, further characterized in that the apparatus is adapted to: Before the first interactive operation executed on the second graph nodes is acquired on the first interactive interface, displaying a fourth group of media information on the second interactive interface, wherein the fourth group of media information is matched with keywords on a fourth group of graph nodes selected in the target knowledge graph; and under the condition that the newly added second group of graph spectrum nodes are displayed on the first interactive interface, updating the fourth group of media information displayed on the second interactive interface into a fifth group of media information, wherein the fifth group of media information is matched with keywords on the selected fifth group of graph spectrum nodes in the target knowledge graph, and the fifth group of graph spectrum nodes comprise the second graph spectrum nodes.
  18. 18. The apparatus according to any one of claims 10 to 15, wherein the apparatus is configured to display the target knowledge-graph on the first interactive interface by: Displaying an audio knowledge graph on the first interactive interface, wherein the target knowledge graph comprises the audio knowledge graph, and the keyword on each graph node in the audio knowledge graph is a keyword of audio media information Displaying a video knowledge graph on the first interactive interface, wherein the target knowledge graph comprises the video knowledge graph, and the keyword on each graph node in the video knowledge graph is a keyword of video media information Displaying a text knowledge graph on the first interactive interface, wherein the target knowledge graph comprises the text knowledge graph, and the keyword on each graph node in the text knowledge graph is a keyword of text media information And displaying a picture knowledge graph on the first interactive interface, wherein the target knowledge graph comprises the picture knowledge graph, and the keyword on each graph node in the picture knowledge graph is a keyword of picture media information.
  19. 19. A computer readable storage medium comprising a stored program, wherein the program when run performs the method of any one of claims 1 to 9.
  20. 20. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of the claims 1 to 9 by means of the computer program.

Description

Knowledge graph updating method and device, storage medium and electronic equipment Technical Field The present invention relates to the field of computers, and in particular, to a method and apparatus for updating a knowledge graph, a storage medium, and an electronic device. Background At present, in the process of acquiring user demands and feeding back the user demands, a search or recommendation algorithm is mostly adopted to realize the process, wherein in the process of searching through a user, the user directly inputs keywords to search, the content required by the user is selected from returned results, the user needs to search in a targeted manner, the feedback required to be obtained has definite purposes, products required by the user are difficult to effectively recommend to the user under the condition that the user cannot acquire targets, the program uses various recommendation algorithms based on user behaviors (such as song listening) through program recommendation, the program is displayed in APP (application) in a list form at a proper time, the user selects songs interesting by himself/herself, in the process, the user cannot accurately understand why the program recommends the songs, the user is in a passive state, and the type of recommended service is more and more single and difficult to really meet the user demands due to the fact that the user is continuously recommended by the program recommendation algorithm. In view of the above problems, no effective solution has been proposed at present. Disclosure of Invention The embodiment of the invention provides a method and a device for updating a knowledge graph, a storage medium and electronic equipment, which at least solve the technical problems that the method and the device are difficult to truly adapt to the requirements of users and the accuracy of updated and recommended content is low in the related technology. According to one aspect of the embodiment of the invention, a method for updating a knowledge graph is provided, which comprises the steps of displaying a target knowledge graph on a first interaction interface, wherein the target knowledge graph comprises a first graph node and a first group of graph nodes, corresponding keywords are displayed on each graph node in the first graph node, the first group of graph nodes are displayed as adjacent nodes of the first graph node, keywords on the first graph node and keywords on the first group of graph nodes have an association relationship, acquiring a first interaction operation executed on a second graph node on the first interaction interface, wherein the second graph node is a graph node in the first group of graph nodes, the first interaction operation is used for selecting the second node, a newly added second group of graph nodes are displayed on the first interaction interface in response to the first interaction operation, the second group of graph nodes are displayed as adjacent nodes of the first graph node, the keywords on the second group of graph nodes have an association relationship with the keywords on the second graph node, and the second interaction operation comprises the second graph node in the second group of graph node. Optionally, the method further comprises the step of canceling display of the map nodes except the second map node in the first group of map nodes or a group of map nodes except the second map node in the first group of map nodes on the first interactive interface in response to the first interactive operation, wherein keywords on the group of map nodes are the same type of keywords as keywords on the second map node. Optionally, the method further comprises acquiring a second interaction operation executed on the first graph node on the first interaction interface under the condition that the graph nodes except the second graph node in the first graph node are not displayed on the first interaction interface, responding to the second interaction operation, displaying the graph nodes except the second graph node in the first graph node on the first interaction interface, acquiring the second interaction operation executed on the first graph node on the first interaction interface under the condition that the graph nodes except the second graph node in the first graph node are not displayed on the first interaction interface, responding to the second interaction operation, and displaying the graph nodes except the second graph node in the first graph node on the first interaction interface. Optionally, the method further comprises the step of canceling the display of the second group of graph nodes on the first interactive interface in the case that the second interactive operation performed on the first graph nodes is acquired on the first interactive interface. Optionally, the displaying of the newly added second group of graph spectrum nodes on the first interactive interface comprises the steps of obtaining a group of keywords with