CN112765283A - Entity link relation management method and device, electronic equipment and storage medium - Google Patents

Entity link relation management method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112765283A
CN112765283A CN202110070661.1A CN202110070661A CN112765283A CN 112765283 A CN112765283 A CN 112765283A CN 202110070661 A CN202110070661 A CN 202110070661A CN 112765283 A CN112765283 A CN 112765283A
Authority
CN
China
Prior art keywords
entity
node
linked
fusion
reconstructed
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
CN202110070661.1A
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.)
Shanghai Minglue Artificial Intelligence Group Co Ltd
Original Assignee
Shanghai Minglue Artificial Intelligence Group 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 Shanghai Minglue Artificial Intelligence Group Co Ltd filed Critical Shanghai Minglue Artificial Intelligence Group Co Ltd
Priority to CN202110070661.1A priority Critical patent/CN112765283A/en
Publication of CN112765283A publication Critical patent/CN112765283A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • G06F16/288Entity relationship models
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • G06F16/9024Graphs; Linked lists
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/25Fusion techniques

Abstract

The application provides a management method and device of entity link relation, electronic equipment and a storage medium, which are used for acquiring entity information of an entity to be searched, which is input by a user; acquiring a plurality of pieces of description information of the entity to be linked from different databases based on the entity information; generating an entity link graph of the entity to be linked based on the plurality of pieces of description information; responding to a change instruction which is applied to the entity link graph and used for changing the entity link graph, and adjusting the connection relation among all entity nodes in the entity link graph according to change operation indicated by the change instruction to obtain an adjusted entity link graph. Therefore, the generated entity link diagram can be changed, so that the entity link result is continuously optimized along with the use of the user, the accuracy of the search result is improved, and the search time of the user can be saved.

Description

Entity link relation management method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of information processing technologies, and in particular, to a method and an apparatus for managing an entity link relationship, an electronic device, and a storage medium.
Background
With the continuous development of computer and network information technology, the amount of data and information in various fields in the internet is also increasing sharply. The advent of the big data age has generated a large amount of real-time data streams with large volume, multiple types and various structures, and the data sources are complicated (different types of relational databases) and the structures are heterogeneous (SQL, NoSQL databases, text files, Hive big data and the like). The integration and fusion of multi-source heterogeneous data are an important ring in the entity linking process. Therefore, how to accurately determine the link result of the entity becomes a problem to be solved urgently.
Disclosure of Invention
In view of the above, an object of the present application is to provide a method, an apparatus, an electronic device, and a storage medium for managing an entity link relationship, which can change a generated entity link diagram, thereby being helpful to improve the accuracy of a search result and saving the search time of a user.
The embodiment of the application provides a management method of an entity link relationship, which comprises the following steps:
acquiring entity information of an entity to be linked input by a user;
acquiring a plurality of pieces of description information of the entity to be linked from different databases based on the entity information;
generating an entity link graph of the entity to be linked based on the plurality of pieces of description information;
and responding to a change instruction for changing the entity link diagram, and adjusting the connection relation between each entity node in the entity link diagram according to the change operation indicated by the change instruction to obtain the adjusted entity link diagram.
Further, when the change operation includes a splitting operation, the adjusting, according to the change operation indicated by the change instruction, the connection relationship between the entity nodes in the entity link map according to the change instruction to change the entity link map, so as to obtain an adjusted entity link map, including:
responding to the change instruction, and determining a fusion node to be split and a splitting mode of the fusion node to be split from entity nodes in the entity link graph;
determining at least one original node to be reconstructed which is linked with the fusion node to be split;
and adjusting the link relation of each original node to be reconstructed according to the splitting mode to obtain an adjusted entity link graph.
Further, when the splitting manner is integral splitting, the adjusting the link relationship of each original node to be reconstructed according to the splitting manner to obtain an adjusted entity link graph, including:
aiming at each original node to be reconstructed, calculating to obtain a fusion node to be linked corresponding to the original node to be reconstructed based on the description information to which the original node to be reconstructed belongs;
and connecting the original node to be reconstructed and the fusion node to be linked to obtain an adjusted entity link graph.
Further, when the splitting manner is attribute splitting, the adjusting the link relationship of each original node to be reconstructed according to the splitting manner to obtain an adjusted entity link graph, including:
for each original node to be reconstructed, determining the attribute of the original node to be reconstructed based on the description information to which the original node to be reconstructed belongs;
dividing original nodes to be reconstructed with the same attribute into the same group to be linked;
aiming at each group to be linked, calculating to obtain a fusion node to be linked corresponding to the group to be linked based on the description information to which each original node to be reconstructed in the group to be linked belongs;
and respectively connecting each original node to be reconstructed in the group to be linked with the fusion node to be linked to obtain the adjusted entity link graph.
Further, when the change operation includes a merge operation, the modifying operation, in response to the change instruction for changing the entity link diagram, according to the change operation indicated by the change instruction, adjusting a link relationship between each entity node in the entity link diagram to obtain an adjusted entity link diagram, including:
in response to the change instruction, determining at least two fusion nodes to be merged from the entity nodes in the entity link graph;
taking any one to-be-merged fusion node of the at least two to-be-merged fusion nodes as a master fusion node, and taking other to-be-merged fusion nodes except the master fusion node of the at least two to-be-merged fusion nodes as slave fusion nodes;
for each slave fusion node, connecting at least one original node to be merged with a link between the slave fusion nodes to the master fusion node;
and deleting the slave fusion nodes to obtain the adjusted entity link graph.
An embodiment of the present application further provides a management apparatus for entity link relationship, where the management apparatus includes:
the first acquisition module is used for acquiring entity information of the entity to be linked, which is input by a user;
the second acquisition module is used for acquiring a plurality of pieces of description information of the entity to be linked from different databases based on the entity information;
a generating module, configured to generate an entity link map of the entity to be linked based on the plurality of pieces of description information;
and the adjusting module is used for responding to a change instruction for changing the entity link diagram, and adjusting the connection relation between the entity nodes in the entity link diagram according to the change operation indicated by the change instruction to obtain the adjusted entity link diagram.
Further, when the change operation includes a split operation, the adjusting module is configured to, in response to a change instruction for changing the entity link diagram, adjust a connection relationship between each entity node in the entity link diagram according to the change operation indicated by the change instruction, and obtain an adjusted entity link diagram, the adjusting module is configured to:
responding to the change instruction, and determining a fusion node to be split and a splitting mode of the fusion node to be split from entity nodes in the entity link graph;
determining at least one original node to be reconstructed which is linked with the fusion node to be split;
and adjusting the link relation of each original node to be reconstructed according to the splitting mode to obtain an adjusted entity link graph.
Further, when the splitting manner is integral splitting, the adjusting module is configured to adjust the link relationship of each original node to be reconstructed according to the splitting manner to obtain an adjusted entity link map, and the adjusting module is configured to:
aiming at each original node to be reconstructed, calculating to obtain a fusion node to be linked corresponding to the original node to be reconstructed based on the description information to which the original node to be reconstructed belongs;
and connecting the original node to be reconstructed and the fusion node to be linked to obtain an adjusted entity link graph.
Further, when the splitting manner is attribute splitting, the adjusting module is configured to adjust the link relationship of each original node to be reconstructed according to the splitting manner to obtain an adjusted entity link map, and the adjusting module is configured to:
for each original node to be reconstructed, determining the attribute of the original node to be reconstructed based on the description information to which the original node to be reconstructed belongs;
dividing original nodes to be reconstructed with the same attribute into the same group to be linked;
aiming at each group to be linked, calculating to obtain a fusion node to be linked corresponding to the group to be linked based on the description information to which each original node to be reconstructed in the group to be linked belongs;
and respectively connecting each original node to be reconstructed in the group to be linked with the fusion node to be linked to obtain the adjusted entity link graph.
Further, when the change operation includes a merge operation, the adjusting module is configured to, in response to a change instruction for changing the entity link diagram, adjust a connection relationship between each entity node in the entity link diagram according to the change operation indicated by the change instruction, and obtain an adjusted entity link diagram, the adjusting module is configured to:
in response to the change instruction, determining at least two fusion nodes to be merged from the entity nodes in the entity link graph;
taking any one to-be-merged fusion node of the at least two to-be-merged fusion nodes as a master fusion node, and taking other to-be-merged fusion nodes except the master fusion node of the at least two to-be-merged fusion nodes as slave fusion nodes;
for each slave fusion node, connecting at least one original node to be merged with a link between the slave fusion nodes to the master fusion node;
and deleting the slave fusion nodes to obtain the adjusted entity link graph.
An embodiment of the present application further provides an electronic device, including: a processor, a memory and a bus, wherein the memory stores machine readable instructions executable by the processor, the processor and the memory communicate through the bus when the electronic device runs, and the machine readable instructions are executed by the processor to execute the steps of the method for managing entity link relation.
The embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method for managing entity link relationships as described above are performed.
The method, the device, the electronic equipment and the storage medium for managing the entity link relationship, provided by the embodiment of the application, are used for acquiring entity information of an entity to be linked, which is input by a user; acquiring a plurality of pieces of description information of the entity to be linked from different databases based on the entity information; generating an entity link graph of the entity to be linked based on the plurality of pieces of description information; responding to a change instruction which is applied to the entity link graph and used for changing the entity link graph, and adjusting the connection relation among all entity nodes in the entity link graph according to change operation indicated by the change instruction to obtain an adjusted entity link graph. Therefore, the generated entity link diagram can be changed, so that the entity link result is continuously optimized along with the use of the user, the accuracy of the search result is improved, and the search time of the user can be saved.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a flowchart of a method for managing entity link relationships according to an embodiment of the present application;
fig. 2 is a flowchart of another entity link relationship management method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of information fusion;
FIG. 4 is one of the split diagrams of a fusion node;
FIG. 5 is a second exemplary fusion node split view;
fig. 6 is a schematic structural diagram of a management apparatus for entity link relationship according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. Every other embodiment that can be obtained by a person skilled in the art without making creative efforts based on the embodiments of the present application falls within the protection scope of the present application.
Research shows that the arrival of the big data era generates a large amount of real-time data streams with large volume, multiple types and various structures, and the data sources are complicated (different types of relational databases), and the structures are heterogeneous (SQL, NoSQL databases, text files, Hive big data and the like). The integration and fusion of multi-source heterogeneous data are an important ring in the entity linking process. Therefore, how to accurately determine the link result of the entity becomes a problem to be solved urgently.
Based on this, the embodiment of the application provides a management method for entity link relations, which is helpful for improving the accuracy of search results and saving the search time of users.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for managing an entity link relationship according to an embodiment of the present disclosure. As shown in fig. 1, a method for managing an entity link relationship provided in an embodiment of the present application includes:
s101, acquiring entity information of the entity to be linked, which is input by a user.
In the step, the entity information of the entity to be linked, which is input in the client by the user, is obtained.
Here, the entity information input by the user may be a sentence, a word, etc.
S102, acquiring a plurality of pieces of description information of the entity to be linked from different databases based on the entity information.
In this step, based on the entity information input by the user, a plurality of pieces of description information describing the entity to be linked, which the user wants to search, are acquired from different databases.
Here, there is heterogeneity between description information acquired from different databases, where heterogeneity means that different data sources have different representations of the same concept or attribute, and semantic heterogeneity exists, and for example, regarding the concept of "product", some data sources are represented by "product", some are represented by "article", and for example, regarding the category attribute of product, some data sources are represented by "belonging category", some are represented by "category", and some are represented by "classification", and further, there are problems such as cross-language of description information acquired from different databases.
S103, generating an entity link diagram of the entity to be linked based on the plurality of pieces of description information.
In this step, because the description information of the same entity has certain difference due to different databases, and certainly, the description information acquired by different databases has the problems of crossing and repetition, an entity link map corresponding to the entity to be linked needs to be generated based on the acquired pieces of description information in order to obtain more comprehensive description of the entity to be linked.
Here, the information in the entity link graph is generally based on a data specification as a premise, that is, in the case that information about attributes, name descriptions and the like of entities to be linked is consistent, it is determined whether a plurality of pieces of description information describe the same entity to be linked, and if so, the plurality of pieces of description information are converted into entity nodes and are fused. For example, there may be a product "name: apple, category: handset ", there may be a product" name: apple, category: fruit' and entity linking refers to judging whether a plurality of pieces of description information acquired from different databases refer to entities to be linked, and generating an entity link diagram corresponding to the entities to be linked after judgment.
S104, responding to a change instruction for changing the entity link diagram, and adjusting the link relation between each entity node in the entity link diagram according to the change operation indicated by the change instruction to obtain an adjusted entity link diagram.
In the step, in response to a received change instruction for changing the entity link diagram, according to a change operation indicated by the change instruction, the connection relationship between each entity node in the entity link diagram is adjusted, so that a query mode of 'searching and improving' is realized. Here, "search and improvement" means that, in the process of data query by a user, calibration optimization can be performed on the query result, the optimized query result is recorded, and the optimized query result is used in subsequent applications.
Here, the modification of the query result, that is, the modification of the generated entity link graph, may be a modification that a user perceives according to the user himself, for example, the user may select a corresponding entity node to be modified, and change a connection relationship between the entity nodes; or the client or the server detects the generated entity link diagram, that is, the connection relation between each entity node in the entity link diagram is automatically detected, and if the connection relation is found to have a problem, a change instruction is automatically generated.
In this way, the entity linking result of the data can be continuously optimized according to the use of the user, and no additional manpower and time investment is needed.
Further, when the modification operation includes a merge operation, step S104 includes: in response to the change instruction, determining at least two fusion nodes to be merged from the entity nodes in the entity link graph; taking any one to-be-merged fusion node of the at least two to-be-merged fusion nodes as a master fusion node, and taking other to-be-merged fusion nodes except the master fusion node of the at least two to-be-merged fusion nodes as slave fusion nodes; for each slave fusion node, connecting at least one original node to be merged with a link between the slave fusion nodes to the master fusion node; and deleting the slave fusion nodes to obtain the adjusted entity link graph.
In the step, in response to a change instruction, at least two fusion nodes to be merged are determined from entity nodes in a generated entity link graph, and any one of the two fusion nodes to be merged is taken as a main fusion node and is at least used; and taking the other fusion nodes to be merged except the main fusion node in the two fusion nodes to be merged as slave fusion nodes.
And aiming at each slave fusion node, connecting at least one original node to be merged, which has a link with the slave fusion node, to the master fusion node, and deleting the slave fusion node to obtain an adjusted entity link graph.
The management method of the entity link relation provided by the embodiment of the application obtains entity information of an entity to be linked, which is input by a user; acquiring a plurality of pieces of description information of the entity to be linked from different databases based on the entity information; generating an entity link graph of the entity to be linked based on the plurality of pieces of description information; responding to a change instruction which is applied to the entity link graph and used for changing the entity link graph, and adjusting the connection relation among all entity nodes in the entity link graph according to change operation indicated by the change instruction to obtain an adjusted entity link graph. Therefore, the generated entity link diagram can be changed, so that the entity link result is continuously optimized along with the use of the user, the accuracy of the search result is improved, and the search time of the user can be saved.
Referring to fig. 2, fig. 2 is a flowchart illustrating another entity link relationship management method according to an embodiment of the present application. As shown in fig. 2, a method for managing an entity link relationship provided in an embodiment of the present application includes:
s201, acquiring entity information of the entity to be linked, which is input by a user.
S202, acquiring a plurality of pieces of description information of the entity to be linked from different databases based on the entity information;
s203, generating an entity link diagram of the entity to be linked based on the plurality of pieces of description information;
s204, responding to the change instruction, and determining a fusion node to be split and a splitting mode of the fusion node to be split from the entity nodes in the entity link graph.
In this step, when the change operation includes a splitting operation, in response to the change instruction, determining a to-be-split fusion node from the entity nodes in the generated entity link graph, and splitting the splitting mode of the to-be-split fusion node.
The splitting mode comprises one or more of integral splitting and/or attribute splitting.
S205, determining at least one original node to be reconstructed, which is linked with the fusion node to be split.
In the step, at least one original node to be reconstructed, which is linked with the fusion node to be split, in the entity link graph is determined.
Corresponding to the above embodiments, as shown in fig. 3, fig. 3 is a schematic diagram of information fusion. 3 pieces of description information are acquired, and description information 1: "name: apple, category: mobile phone, price: 10000 ″, description information 2: "name: apple, category: mobile phone, price: 9998 and description information 3: "name: apple, category: fruit, price: 100 ", after the processing, generating an entity link graph, and connecting the information in the 3 pieces of description information to the same fusion node 3a in the entity link graph, where the information connected to the fusion node 3a includes" name: apple, category: [ fruit, cell phone ], price: [10000 ] 9998, 100 ", obviously, there is an error in the connection of each entity node in the entity link diagram. At this time, it is necessary to determine the fusion node 3a to be split having an error and the original node 3b to be reconstructed having a link with the fusion node 3a to be split.
S206, according to the splitting mode, adjusting the link relation of each original node to be reconstructed to obtain an adjusted entity link graph.
In this step, the link relation of each original node to be reconstructed is adjusted according to the determined splitting manner, and the original node to be reconstructed may be connected to each original node to be reconstructed, or the entity nodes with the same attribute may be connected together according to the attribute of the entity node, so as to obtain an adjusted entity link graph.
The descriptions of S201 to S203 may refer to the descriptions of S101 to S103, and the same technical effects can be achieved, which are not described in detail.
Further, when the splitting manner is integral splitting, step S206 includes: aiming at each original node to be reconstructed, calculating to obtain a fusion node to be linked corresponding to the original node to be reconstructed based on the description information to which the original node to be reconstructed belongs; and connecting the original node to be reconstructed and the fusion node to be linked to obtain an adjusted entity link graph.
In this step, when the splitting mode is integral splitting, information backtracking is performed on the information of each original node to be reconstructed for each original node to be reconstructed, that is, a fusion node to be linked corresponding to the original node to be reconstructed is calculated based on the description information to which the original node to be reconstructed belongs; and connecting the original node to be reconstructed and the corresponding fusion node to be linked to obtain the adjusted entity link graph.
Corresponding to the above embodiment, as shown in fig. 4, fig. 4 is one of the split schematic diagrams of the fusion node, after determining the original nodes 4a to be reconstructed, the fusion node 4b to be linked corresponding to each original node 4a to be reconstructed is calculated, and the original nodes 4a to be reconstructed and the fusion nodes 4b to be linked corresponding thereto are connected to obtain the adjusted entity link diagram.
Further, when the splitting manner is attribute splitting, step S206 includes: for each original node to be reconstructed, determining the attribute of the original node to be reconstructed based on the description information to which the original node to be reconstructed belongs; dividing original nodes to be reconstructed with the same attribute into the same group to be linked; aiming at each group to be linked, calculating to obtain a fusion node to be linked corresponding to the group to be linked based on the description information to which each original node to be reconstructed in the group to be linked belongs; and respectively connecting each original node to be reconstructed in the group to be linked with the fusion node to be linked to obtain the adjusted entity link graph.
In this step, when the splitting mode is attribute splitting, information backtracking is performed on the information of each original node to be reconstructed with respect to each original node to be reconstructed, and the attribute of the original node to be reconstructed is determined based on the description information to which the original node to be reconstructed belongs; dividing original nodes to be reconstructed with the same attribute into the same group to be linked; aiming at each group to be linked, calculating a fusion node to be linked corresponding to the group to be linked based on the description information to which each original node to be reconstructed in the group to be linked belongs; and respectively connecting each original node to be reconstructed in the group to be linked with the fusion node to be linked to obtain the adjusted entity linked graph.
Corresponding to the above embodiment, as shown in fig. 5, fig. 5 is a second schematic diagram of splitting a fusion node, after determining an original node 5a to be reconstructed, dividing the original node 5a to be reconstructed with the same attribute into the same group 5b to be linked, calculating to obtain a fusion node 5c to be linked corresponding to the group 5b to be linked, and respectively connecting each original node 5a to be reconstructed in the group 5b to the fusion node 5c to be linked to obtain an adjusted entity link diagram.
The management method of the entity link relation provided by the embodiment of the application obtains entity information of an entity to be linked, which is input by a user; acquiring a plurality of pieces of description information of the entity to be linked from different databases based on the entity information; generating an entity link graph of the entity to be linked based on the plurality of pieces of description information; and responding to a change instruction which is applied to the entity link graph and changes the entity link graph, determining a fusion node to be split and a splitting mode from the entity link graph, and adjusting the link relation of each original node to be reconstructed in the entity link graph according to the splitting mode to obtain an adjusted entity link graph. Therefore, the generated entity link diagram can be changed, so that the entity link result is continuously optimized along with the use of the user, the accuracy of the search result is improved, and the search time of the user can be saved.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a management apparatus for entity link relationship according to an embodiment of the present application. As shown in fig. 6, the management apparatus 600 includes:
a first obtaining module 610, configured to obtain entity information of an entity to be linked, where the entity information is input by a user;
a second obtaining module 620, configured to obtain multiple pieces of description information of the entity to be linked from different databases based on the entity information;
a generating module 630, configured to generate an entity link map of the entity to be linked based on the plurality of pieces of description information;
an adjusting module 640, configured to respond to a change instruction for changing the entity link map, and adjust a connection relationship between each entity node in the entity link map according to a change operation indicated by the change instruction, to obtain an adjusted entity link map.
Further, when the change operation includes a split operation, the adjusting module 640 is configured to, in response to a change instruction for changing the entity link diagram, adjust a connection relationship between each entity node in the entity link diagram according to the change operation indicated by the change instruction, and obtain an adjusted entity link diagram, and the adjusting module 640 is configured to:
responding to the change instruction, and determining a fusion node to be split and a splitting mode of the fusion node to be split from entity nodes in the entity link graph;
determining at least one original node to be reconstructed which is linked with the fusion node to be split;
and adjusting the link relation of each original node to be reconstructed according to the splitting mode to obtain an adjusted entity link graph.
Further, when the splitting manner is integral splitting, the adjusting module 640 is configured to adjust the link relationship of each original node to be reconstructed according to the splitting manner to obtain an adjusted entity link map, and the adjusting module 640 is configured to:
aiming at each original node to be reconstructed, calculating to obtain a fusion node to be linked corresponding to the original node to be reconstructed based on the description information to which the original node to be reconstructed belongs;
and connecting the original node to be reconstructed and the fusion node to be linked to obtain an adjusted entity link graph.
Further, when the splitting manner is attribute splitting, the adjusting module 640 is configured to adjust the link relationship of each original node to be reconstructed according to the splitting manner to obtain an adjusted entity link map, and the adjusting module 640 is configured to:
for each original node to be reconstructed, determining the attribute of the original node to be reconstructed based on the description information to which the original node to be reconstructed belongs;
dividing original nodes to be reconstructed with the same attribute into the same group to be linked;
aiming at each group to be linked, calculating to obtain a fusion node to be linked corresponding to the group to be linked based on the description information to which each original node to be reconstructed in the group to be linked belongs;
and respectively connecting each original node to be reconstructed in the group to be linked with the fusion node to be linked to obtain the adjusted entity link graph.
Further, when the change operation includes a merge operation, the adjusting module 640 is configured to, in response to a change instruction for changing the entity link diagram, adjust the connection relationship between the entity nodes in the entity link diagram according to the change operation indicated by the change instruction, and obtain an adjusted entity link diagram, and the adjusting module 640 is configured to:
in response to the change instruction, determining at least two fusion nodes to be merged from the entity nodes in the entity link graph;
taking any one to-be-merged fusion node of the at least two to-be-merged fusion nodes as a master fusion node, and taking other to-be-merged fusion nodes except the master fusion node of the at least two to-be-merged fusion nodes as slave fusion nodes;
for each slave fusion node, connecting at least one original node to be merged with a link between the slave fusion nodes to the master fusion node;
and deleting the slave fusion nodes to obtain the adjusted entity link graph.
The management device for the entity link relationship, provided by the embodiment of the application, acquires entity information of an entity to be linked, which is input by a user; acquiring a plurality of pieces of description information of the entity to be linked from different databases based on the entity information; generating an entity link graph of the entity to be linked based on the plurality of pieces of description information; responding to a change instruction which is applied to the entity link graph and used for changing the entity link graph, and adjusting the connection relation among all entity nodes in the entity link graph according to change operation indicated by the change instruction to obtain an adjusted entity link graph. Therefore, the generated entity link diagram can be changed, so that the entity link result is continuously optimized along with the use of the user, the accuracy of the search result is improved, and the search time of the user can be saved.
Referring to fig. 7, fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. As shown in fig. 7, the electronic device 700 includes a processor 710, a memory 720, and a bus 730.
The memory 720 stores machine-readable instructions executable by the processor 710, when the electronic device 700 runs, the processor 710 communicates with the memory 720 through the bus 730, and when the machine-readable instructions are executed by the processor 710, the steps of the method for managing entity link relationships in the method embodiments shown in fig. 1 and fig. 2 may be executed.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method for managing entity link relationships in the method embodiments shown in fig. 1 and fig. 2 may be executed.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application 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 the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope disclosed in the present application; such modifications, changes or substitutions do not depart from the spirit and scope of the exemplary embodiments of the present application, and are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A management method for entity link relation is characterized in that the management method comprises the following steps:
acquiring entity information of an entity to be linked input by a user;
acquiring a plurality of pieces of description information of the entity to be linked from different databases based on the entity information;
generating an entity link graph of the entity to be linked based on the plurality of pieces of description information;
and responding to a change instruction for changing the entity link diagram, and adjusting the connection relation between each entity node in the entity link diagram according to the change operation indicated by the change instruction to obtain the adjusted entity link diagram.
2. The management method according to claim 1, wherein when the change operation includes a split operation, the adjusting, according to the change operation indicated by the change instruction, a connection relationship between entity nodes in the entity link map in response to the change instruction for changing the entity link map to obtain an adjusted entity link map includes:
responding to the change instruction, and determining a fusion node to be split and a splitting mode of the fusion node to be split from entity nodes in the entity link graph;
determining at least one original node to be reconstructed which is linked with the fusion node to be split;
and adjusting the link relation of each original node to be reconstructed according to the splitting mode to obtain an adjusted entity link graph.
3. The management method according to claim 2, wherein when the splitting manner is an integral splitting manner, the adjusting the link relationship of each original node to be reconstructed according to the splitting manner to obtain an adjusted entity link map includes:
aiming at each original node to be reconstructed, calculating to obtain a fusion node to be linked corresponding to the original node to be reconstructed based on the description information to which the original node to be reconstructed belongs;
and connecting the original node to be reconstructed and the fusion node to be linked to obtain an adjusted entity link graph.
4. The management method according to claim 2, wherein when the splitting manner is attribute splitting, the adjusting the link relationship of each original node to be reconstructed according to the splitting manner to obtain an adjusted entity link map includes:
for each original node to be reconstructed, determining the attribute of the original node to be reconstructed based on the description information to which the original node to be reconstructed belongs;
dividing original nodes to be reconstructed with the same attribute into the same group to be linked;
aiming at each group to be linked, calculating to obtain a fusion node to be linked corresponding to the group to be linked based on the description information to which each original node to be reconstructed in the group to be linked belongs;
and respectively connecting each original node to be reconstructed in the group to be linked with the fusion node to be linked to obtain the adjusted entity link graph.
5. The management method according to claim 1, wherein when the change operation includes a merge operation, the adjusting, according to the change operation indicated by the change instruction, the link relationship between the entity nodes in the entity link map in response to the change instruction for changing the entity link map to obtain an adjusted entity link map includes:
in response to the change instruction, determining at least two fusion nodes to be merged from the entity nodes in the entity link graph;
taking any one to-be-merged fusion node of the at least two to-be-merged fusion nodes as a master fusion node, and taking other to-be-merged fusion nodes except the master fusion node of the at least two to-be-merged fusion nodes as slave fusion nodes;
for each slave fusion node, connecting at least one original node to be merged with a link between the slave fusion nodes to the master fusion node;
and deleting the slave fusion nodes to obtain the adjusted entity link graph.
6. An apparatus for managing entity link relationship, the apparatus comprising:
the first acquisition module is used for acquiring entity information of the entity to be linked, which is input by a user;
the second acquisition module is used for acquiring a plurality of pieces of description information of the entity to be linked from different databases based on the entity information;
a generating module, configured to generate an entity link map of the entity to be linked based on the plurality of pieces of description information;
and the adjusting module is used for responding to a change instruction for changing the entity link diagram, and adjusting the connection relation between the entity nodes in the entity link diagram according to the change operation indicated by the change instruction to obtain the adjusted entity link diagram.
7. The management apparatus according to claim 6, wherein when the change operation includes a split operation, the adjusting module is configured to, in response to a change instruction for changing the entity link map, adjust a connection relationship between each entity node in the entity link map according to the change operation indicated by the change instruction, and obtain an adjusted entity link map, the adjusting module is configured to:
responding to the change instruction, and determining a fusion node to be split and a splitting mode of the fusion node to be split from entity nodes in the entity link graph;
determining at least one original node to be reconstructed which is linked with the fusion node to be split;
and adjusting the link relation of each original node to be reconstructed according to the splitting mode to obtain an adjusted entity link graph.
8. The management apparatus according to claim 7, wherein when the splitting manner is wholly splitting, the adjusting module is configured to, when the adjusting module is configured to adjust the link relationship of each original node to be reconstructed according to the splitting manner to obtain an adjusted entity link map, the adjusting module is configured to:
aiming at each original node to be reconstructed, calculating to obtain a fusion node to be linked corresponding to the original node to be reconstructed based on the description information to which the original node to be reconstructed belongs;
and connecting the original node to be reconstructed and the fusion node to be linked to obtain an adjusted entity link graph.
9. An electronic device, comprising: processor, memory and bus, the memory stores machine readable instructions executable by the processor, when the electronic device runs, the processor and the memory communicate through the bus, the machine readable instructions are executed by the processor to execute the steps of the management method of entity link relation according to any one of claims 1 to 5.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when executed by a processor, performs the steps of the method for managing entity-linking relationships of any one of claims 1 to 5.
CN202110070661.1A 2021-01-19 2021-01-19 Entity link relation management method and device, electronic equipment and storage medium Pending CN112765283A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110070661.1A CN112765283A (en) 2021-01-19 2021-01-19 Entity link relation management method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110070661.1A CN112765283A (en) 2021-01-19 2021-01-19 Entity link relation management method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112765283A true CN112765283A (en) 2021-05-07

Family

ID=75703253

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110070661.1A Pending CN112765283A (en) 2021-01-19 2021-01-19 Entity link relation management method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112765283A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102279869A (en) * 2010-06-09 2011-12-14 微软公司 Navigating relationships among entities
CN104615783A (en) * 2015-03-02 2015-05-13 百度在线网络技术(北京)有限公司 Information searching method and device
CN108345647A (en) * 2018-01-18 2018-07-31 北京邮电大学 Domain knowledge map construction system and method based on Web
CN109408601A (en) * 2018-09-19 2019-03-01 智器云南京信息科技有限公司 Data model translation method and graph data structure converter based on diagram data
CN109766445A (en) * 2018-12-13 2019-05-17 平安科技(深圳)有限公司 A kind of knowledge mapping construction method and data processing equipment
CN109804364A (en) * 2016-10-18 2019-05-24 浙江核新同花顺网络信息股份有限公司 Knowledge mapping constructs system and method
CN110188207A (en) * 2019-05-15 2019-08-30 出门问问信息科技有限公司 Knowledge mapping construction method and device, readable storage medium storing program for executing, electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102279869A (en) * 2010-06-09 2011-12-14 微软公司 Navigating relationships among entities
CN104615783A (en) * 2015-03-02 2015-05-13 百度在线网络技术(北京)有限公司 Information searching method and device
CN109804364A (en) * 2016-10-18 2019-05-24 浙江核新同花顺网络信息股份有限公司 Knowledge mapping constructs system and method
CN108345647A (en) * 2018-01-18 2018-07-31 北京邮电大学 Domain knowledge map construction system and method based on Web
CN109408601A (en) * 2018-09-19 2019-03-01 智器云南京信息科技有限公司 Data model translation method and graph data structure converter based on diagram data
CN109766445A (en) * 2018-12-13 2019-05-17 平安科技(深圳)有限公司 A kind of knowledge mapping construction method and data processing equipment
CN110188207A (en) * 2019-05-15 2019-08-30 出门问问信息科技有限公司 Knowledge mapping construction method and device, readable storage medium storing program for executing, electronic equipment

Similar Documents

Publication Publication Date Title
US11670288B1 (en) Generating predicted follow-on requests to a natural language request received by a natural language processing system
JP5392077B2 (en) Ontology processing apparatus, ontology processing method, and ontology processing program
CN108304444B (en) Information query method and device
US9753960B1 (en) System, method, and computer program for dynamically generating a visual representation of a subset of a graph for display, based on search criteria
CN110837520A (en) Data processing method, platform and system
CN107515866B (en) Data operation method, device and system
CN111708805A (en) Data query method and device, electronic equipment and storage medium
CN114564620A (en) Graph data storage method and system and computer equipment
CN112214505A (en) Data synchronization method and device, computer readable storage medium and electronic equipment
US10706124B2 (en) Storage and retrieval of structured content in unstructured user-editable content stores
CN105843809B (en) Data processing method and device
CN107622090B (en) Object acquisition method, device and system
CN113760948A (en) Data query method and device
Matuszka et al. Geodint: towards semantic web-based geographic data integration
CN111652658A (en) Portrait fusion method, apparatus, electronic device and computer readable storage medium
CN112765283A (en) Entity link relation management method and device, electronic equipment and storage medium
US20220035873A1 (en) Method and apparatus to generate a simplified query when searching for catalog items
CN113934729A (en) Data management method based on knowledge graph, related equipment and medium
CN113468207A (en) Query method, device, equipment and storage medium
CN112596719A (en) Method and system for generating front-end and back-end codes
CN113868138A (en) Method, system, equipment and storage medium for acquiring test data
CN112612817A (en) Data processing method and device, terminal equipment and computer readable storage medium
CN111639099A (en) Full-text indexing method and system
CN112860725A (en) SQL automatic generation method and device, storage medium and electronic equipment
CN113515504B (en) Data management method, device, electronic equipment and storage medium

Legal Events

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