Data blood relationship map driven similar data discovery method and device

Through the similar data discovery method driven by the data lineage graph, the data binary tree is constructed and the data node characteristics are extracted, which solves the problem of ignoring metadata and service information in the existing technology, and achieves more accurate and efficient data retrieval.

CN118568151APending Publication Date: 2024-08-30齐鲁空天信息研究院
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410784802.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

The existing technology ignores the metadata information, data service information and data modification information of the data during data retrieval, resulting in query results that are only similar at the data content level and ignore similar data, resulting in inaccurate query results.

Method used

A similar data discovery method driven by data lineage graph is used to construct a data binary tree, use node distances and hyperplanes to divide the data space, and extract data node features to ensure the comprehensiveness and accuracy of query results.

Benefits of technology

The accuracy and efficiency of data retrieval are improved, processing time is saved through data preprocessing, the established binary tree structure is closer to a balanced binary tree, and query efficiency is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118568151A
    Figure CN118568151A
Patent Text Reader

Abstract

The invention provides a similar data discovery method and device driven by a data consanguinity map. The similar data discovery method and device can be applied to the technical field of computer science and data analysis. The method comprises the following steps: repeating the following operations on a data space until the number of data nodes included in each of a plurality of subspaces of the data space is smaller than or equal to a preset number: for a space structure of which the number of each node is greater than the preset number; determining a target data node based on node distances between other data nodes included in the space structure and the initial data node; determining a hyperplane for dividing the space structure based on the initial data node and the target data node; determining a plurality of subspaces of the data space based on the space structure and the hyperplane; determining a data binary tree comprising a plurality of data nodes based on the data space and the plurality of subspaces; and based on the target query information, determining a query result from the data binary tree.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the fields of computer science and data analysis, and in particular to a method and device for discovering similar data driven by a data lineage graph. Background Art

[0002] With the widespread application of technologies such as 5G, cloud computing, artificial intelligence, and the Internet of Things, the scale and dimension of data have exploded, bringing huge challenges to data search and use. Among many data retrieval problems, finding the object most similar to an object, that is, nearest neighbor search, has become a core problem. This task plays a vital role in many fields such as image search, information retrieval, recommendation systems, and social networks. The goal of nearest neighbor search is to find the vector that is most similar to the query vector in the database vector set according to a certain distance metric given a query vector.

[0003] In the process of implementing the present disclosure, the inventors found that the prior art has at least the following problems: in actual applications, many similar data that need to be used, modified, and queried at the same time may not be very similar in data content. When constructing a data vector set, ignoring the data's metadata information, data service information, and data modification information will cause the query results to be similar only at the data content level. Therefore, ignoring the above-mentioned similar data will lead to inaccurate query results.

[0004] In order to solve the above problems, we first need to fully and accurately describe the entire life cycle of data. In the data system, data metadata information is very rich, the data evolution process is very complex, and the application scenarios are also diverse. This information changes over time, and it is difficult to fully sort out through manual means. Summary of the invention

[0005] In view of the above problems, the present disclosure provides a data lineage graph-driven similar data discovery method, apparatus, device, medium and program product.

[0006] According to the first aspect of the present disclosure, a data lineage graph-driven similar data discovery method is provided, comprising: repeating the following operations on the data space until the number of data nodes included in each of the multiple subspaces of the data space is less than or equal to a preset number: for each spatial structure in which the number of nodes is greater than the preset number, wherein the spatial structure includes the data space and multiple subspaces of the data space, randomly selecting a data node in the spatial structure as an initial data node; determining a target data node based on the node distance between other data nodes included in the spatial structure and the initial data node; determining a hyperplane for dividing the spatial structure based on the initial data node and the target data node; and determining, based on the spatial structure and the hyperplane, Multiple subspaces of a data space; based on the data space and the multiple subspaces, determining a data binary tree including multiple data nodes, wherein the leaf nodes of the data binary tree include multiple data nodes and the branch nodes of the data binary tree include hyperplanes; and determining query results from the data binary tree based on target query information; wherein the data space is determined according to the following method: determining multiple data lineage graphs and node features of multiple data nodes respectively included in the multiple data lineage graphs; for each data lineage graph, determining data features of the data lineage graph based on multiple node features; based on multiple data features, establishing a data space, wherein the data space includes multiple graph nodes, and each graph node corresponds to a data lineage graph.

[0007] According to an embodiment of the present disclosure, a target data node is determined based on node distances between other data nodes included in the spatial structure and an initial data node, including: determining respective node distances between the initial data node and other data nodes included in the spatial structure; determining a total node distance based on a plurality of node distances; determining respective distance ratios of a plurality of other data nodes based on a plurality of node distances and the total node distance; and selecting a target data node from a plurality of other data nodes using the plurality of distance ratios as respective selection probabilities of the plurality of other data nodes.

[0008] According to an embodiment of the present disclosure, the distance between the hyperplane and the initial data node is equal to the distance between the target data nodes; based on the spatial structure and the hyperplane, multiple subspaces of the data space are determined, including: based on the hyperplane, determining the part of the spatial structure on the same side as the initial data node as the first subspace; and based on the hyperplane, determining the part of the spatial structure on the same side as the target data node as the second subspace, wherein the first subspace and the second subspace are in the same depth relationship.

[0009] According to an embodiment of the present disclosure, a data binary tree including multiple data nodes is determined based on a data space and multiple subspaces, including: based on each subspace, establishing a binary tree corresponding to the subspace; and combining the binary trees corresponding to the subspaces with the same depth relationship in pairs until the data space does not include uncombined binary trees, thereby obtaining a data binary tree, wherein each non-leaf node in the data binary tree represents a hyperplane.

[0010] According to an embodiment of the present disclosure, a query result is determined from a data binary tree based on target query information, including: determining information features of the target query information; performing multiple matches in the data binary tree based on the information features of the target query information to obtain leaf nodes; and determining multiple data nodes corresponding to the leaf nodes as query results.

[0011] According to an embodiment of the present disclosure, based on information features of target query information, multiple matches are performed in a data binary tree to obtain leaf nodes, including: performing the following operations on the data binary tree until the leaf nodes are determined: starting from the root node of the data binary tree, comparing the information features of the target query information with the node features of non-leaf nodes to determine the search direction; and determining the target subtree of the data binary tree according to the search direction.

[0012] According to an embodiment of the present disclosure, a data lineage graph and node characteristics of each of the multiple data nodes included in the data lineage graph are determined, including: based on the metadata information of each of the multiple data, determining the text content and operation records of each of the multiple data; based on the text content of each of the multiple data, determining the corresponding multiple data nodes; based on the operation records of the data, determining the multiple additional nodes corresponding to the data nodes; based on the multiple data nodes and the multiple additional nodes, determining a data lineage graph, wherein the multiple edges included in the data lineage graph are used to characterize the operations and the operation times corresponding to the operations; and for each data node, using a natural language processing model to process the data node and the multiple additional nodes corresponding to the data node to obtain the node characteristics of the data node.

[0013] According to an embodiment of the present disclosure, the similar data discovery method driven by the data lineage graph also includes: when the metadata information of the data changes, determining the change category, wherein the change category includes data update and data deletion; based on the change category, determining the update content of the data lineage graph; and based on the update content, updating the data lineage graph to obtain an updated data lineage graph.

[0014] According to an embodiment of the present disclosure, the data lineage graph is updated based on the update content to obtain an updated data lineage graph, including: in the case where the change category is data update, based on the data node and the multiple additional nodes corresponding to the data node, creating an updated data node and multiple additional nodes corresponding to the updated data node in the data lineage graph; connecting the updated data node with the data node using edges to obtain an updated data lineage graph; and in the case where the change category is data deletion, based on the operation time of the data deletion, adding the additional node corresponding to the data node in the data lineage graph to obtain an updated data lineage graph.

[0015] A second aspect of the present disclosure provides a similar data discovery device driven by a data lineage graph, comprising:

[0016] Repeat the following modules to operate the data space until the number of data nodes included in each of the multiple subspaces of the data space is less than or equal to the preset number:

[0017] For each spatial structure in which the number of nodes is greater than a preset number, wherein the spatial structure includes a data space and a plurality of subspaces of the data space,

[0018] A node selection module is used to randomly select a data node in the spatial structure as an initial data node;

[0019] A node determination module, used to determine a target data node based on a node distance between other data nodes included in the spatial structure and the initial data node;

[0020] A hyperplane determination module, used to determine a hyperplane for dividing a spatial structure based on an initial data node and a target data node;

[0021] A subspace determination module, used for determining multiple subspaces of the data space based on the spatial structure and the hyperplane;

[0022] A binary tree determination module, configured to determine a data binary tree including a plurality of data nodes based on the data space and the plurality of subspaces, wherein a leaf node of the data binary tree includes a plurality of data nodes, and a branch node of the data binary tree includes a hyperplane; and

[0023] The similar data discovery module driven by the data lineage graph is used to determine the query results from the data binary tree based on the target query information;

[0024] The data space is determined as follows:

[0025] Determine a plurality of data lineage graphs and node characteristics of each of a plurality of data nodes included in each of the plurality of data lineage graphs;

[0026] For each data lineage graph, based on multiple node features, determine the data features of the data lineage graph;

[0027] Based on multiple data features, a data space is established, wherein the data space includes multiple graph nodes, and each graph node corresponds to a data lineage graph.

[0028] A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more computer programs, wherein the one or more processors execute the one or more computer programs to implement the steps of the above method.

[0029] The fourth aspect of the present disclosure further provides a computer-readable storage medium having a computer program or instructions stored thereon, which implements the steps of the above method when the above computer program or instructions are executed by a processor.

[0030] The fifth aspect of the present disclosure further provides a computer program product, including a computer program or instructions, which implement the steps of the above method when the above computer program or instructions are executed by a processor.

[0031] According to an embodiment of the present disclosure, a data extension map is constructed using multiple data lineage graphs, and a target data node is determined based on the node distance between other data nodes and the initial data node. The data space is divided into two subspaces by a hyperplane between the initial data node and the target data node until the number of data nodes in the subspace is less than or equal to a preset number, and a data binary tree is established so that the query result can be determined from the data binary tree based on the target query information. Since the data space includes all data, processing the data space can ensure the comprehensiveness and accuracy of the query results. The node features of the data nodes are extracted through data preprocessing, which saves data processing time in the process of similar data discovery driven by the data lineage graph, and improves the efficiency of similar data discovery driven by the data lineage graph. The target data node is determined by the node distance, and the division method of the data space is determined. The division efficiency is higher, and the established data binary tree structure is closer to a balanced binary tree, which can further improve the query efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The above contents and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:

[0033] Figure 1 The application scenario diagram of the similar data discovery method, apparatus, device, medium and program product driven by the data lineage graph according to the embodiment of the present disclosure is schematically shown;

[0034] Figure 2A flowchart of a similar data discovery method driven by a data lineage graph according to an embodiment of the present disclosure is schematically shown;

[0035] Figure 3A A schematic diagram of a binary tree established according to an approximate nearest neighbor search algorithm is schematically shown;

[0036] Figure 3B A schematic diagram of a data binary tree established by a similar data discovery method driven by a data lineage graph according to an embodiment of the present disclosure is schematically shown;

[0037] Figure 4 A schematic diagram schematically illustrates a data lineage graph of a similar data discovery method driven by a data lineage graph according to an embodiment of the present disclosure;

[0038] Figure 5 A structural block diagram of a similar data discovery device driven by a data lineage graph according to an embodiment of the present disclosure is schematically shown; and

[0039] Figure 6 A block diagram of an electronic device suitable for implementing a similar data discovery method driven by a data lineage graph according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0040] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0041] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.

[0042] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.

[0043] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0044] In the technical solution of the present disclosure, the user information (including but not limited to user personal information, user image information, user device information, such as location information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with relevant laws, regulations and standards, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0045] In the scenario of using personal information for automated decision-making, the methods, devices, and systems provided by the embodiments of the present disclosure provide users with corresponding operation portals for users to choose to agree or reject the automated decision-making results; if the user chooses to reject, the expert decision-making process will be entered. The expression "automated decision-making" here refers to the activity of automatically analyzing and evaluating a person's behavioral habits, interests and hobbies, or economic, health, credit status, etc. through computer programs, and making decisions. The expression "expert decision-making" here refers to the activity of making decisions by people who specialize in a certain field, have specialized experience, knowledge and skills, and have reached a certain level of professionalism.

[0046] In the prior art, a binary tree index is usually constructed by using the approximate nearest neighbor search algorithm ANNOY (Approximate Nearest Neighbors Oh Yeah) algorithm. The ANNOY algorithm uses the K-Means clustering algorithm when constructing the index. This clustering algorithm is sensitive to the initial clustering center. The query results will change significantly with different initial clustering centers, affecting the accuracy of similar data discovery driven by the data lineage graph.

[0047] An embodiment of the present disclosure provides a similar data discovery method driven by a data lineage graph, which determines the node characteristics of a data lineage graph and each of the multiple data nodes included in the data lineage graph; repeats the following operations on the data lineage graph until the number of data nodes included in each of the multiple subspaces of the data lineage graph is less than or equal to a preset number: for each spatial structure in which the number of nodes is greater than the preset number, wherein the spatial structure includes the data lineage graph and multiple subspaces of the data lineage graph, randomly selects a data node in the spatial structure as the initial data node; determines a target data node based on the node distance between other data nodes included in the spatial structure and the initial data node; determines a hyperplane for dividing the spatial structure based on the initial data node and the target data node; determines multiple subspaces of the data lineage graph based on the spatial structure and the hyperplane; determines a data binary tree including multiple data nodes based on the data lineage graph and the multiple subspaces, wherein the leaf nodes of the data binary tree include multiple data nodes and the branch nodes of the data binary tree include a hyperplane; and determines a query result from the data binary tree based on the target query information.

[0048] Figure 1 The application scenario diagram of the data lineage graph-driven similar data discovery method, apparatus, device, medium and program product according to an embodiment of the present disclosure is schematically shown.

[0049] like Figure 1 As shown, the application scenario 100 according to this embodiment may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 is used to provide a medium for a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.

[0050] The user can use the first terminal device 101, the second terminal device 102, and the third terminal device 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various communication client applications can be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only for example).

[0051] The first terminal device 101, the second terminal device 102, and the third terminal device 103 may be various electronic devices having display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.

[0052] The server 105 may be a server that provides various services, such as a background management server (only as an example) that provides support for websites browsed by users using the first terminal device 101, the second terminal device 102, and the third terminal device 103. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.

[0053] It should be noted that the data lineage graph-driven similar data discovery method provided in the embodiment of the present disclosure can generally be executed by the server 105. Accordingly, the data lineage graph-driven similar data discovery device provided in the embodiment of the present disclosure can generally be set in the server 105. The data lineage graph-driven similar data discovery method provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105. Accordingly, the data lineage graph-driven similar data discovery device provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105.

[0054] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.

[0055] The following will be based on Figure 1 The scene described by Figure 2 , Figure 3A , Figure 3B and Figure 4 The data lineage graph-driven similar data discovery method of the disclosed embodiment is described in detail.

[0056] Figure 2 The flowchart of the similar data discovery method driven by the data lineage graph according to the embodiment of the present disclosure is schematically shown.

[0057] like Figure 2 As shown, the data lineage graph-driven similar data discovery method of this embodiment includes operations S210 to S260.

[0058] In operation S210, for each spatial structure in which the number of nodes is greater than a preset number, a data node is randomly selected in the spatial structure as an initial data node.

[0059] In operation S220, a target data node is determined based on a node distance between other data nodes included in the spatial structure and the initial data node.

[0060] In operation S230 , a hyperplane for dividing the spatial structure is determined based on the initial data node and the target data node.

[0061] In operation S240, a plurality of subspaces of the data space are determined based on the spatial structure and the hyperplane.

[0062] In operation S250, a data binary tree including a plurality of data nodes is determined based on the data space and the plurality of subspaces, wherein a leaf node of the data binary tree includes a plurality of data nodes, and a branch node of the data binary tree includes a hyperplane.

[0063] In operation S260 , a query result is determined from the data binary tree based on the target query information.

[0064] According to an embodiment of the present disclosure, operations S210 to S240 are repeated for the data space until the number of data nodes included in each of the multiple subspaces of the data space is less than or equal to a preset number, wherein the preset number can be customized according to the query accuracy of similar data discovery driven by the data lineage graph, etc. For each spatial structure in which the number of nodes is greater than the preset number, a data node is randomly selected in the spatial structure as the initial data node, wherein the spatial structure includes the data space and multiple subspaces of the data space.

[0065] According to an embodiment of the present disclosure, a target data node is determined based on a node distance between other data nodes included in the spatial structure and the initial data node, wherein the other data nodes are data nodes other than the initial data node in the spatial structure. Other data nodes with a larger node distance from the initial data node are more likely to be selected as target data nodes.

[0066] According to an embodiment of the present disclosure, a hyperplane for dividing the spatial structure is determined based on an initial data node and a target data node, wherein the hyperplane is equidistant from and perpendicular to the initial data node and the target data node.

[0067] According to an embodiment of the present disclosure, multiple subspaces of the data space are determined based on the spatial structure and the hyperplane, wherein the hyperplane divides the spatial structure into two topological spaces. When the spatial structure is the data space, the division result is two subspaces of the data space. When the spatial structure is a subspace of the data space, since the subspace of the data space is further divided into two smaller subspaces, the division result is multiple subspaces of the data space.

[0068] According to an embodiment of the present disclosure, based on a data space and multiple subspaces, a data binary tree including multiple data nodes is determined, wherein the leaf nodes of the data binary tree include multiple data nodes, that is, each leaf node of the data binary tree corresponds to multiple data nodes, and the branch nodes of the data binary tree include hyperplanes, wherein the earlier the hyperplane is determined, the smaller the distance between it and the root node of the data binary tree is. For example, the hyperplane that is determined for the first time to divide the data space into two subspaces corresponds to the root node in the data binary tree. The two subtrees of a branch node of the data binary tree correspond to the two subspaces divided by the hyperplane corresponding to the branch node.

[0069] According to an embodiment of the present disclosure, based on target query information, the query starts from the root node of the data binary tree until the corresponding leaf node is queried, and the query result is determined from the data binary tree.

[0070] According to an embodiment of the present disclosure, based on the data in the database, node features of multiple data lineage graphs and multiple data nodes included in each of the multiple data lineage graphs are determined, wherein the data nodes in the data lineage graphs may include data content nodes, data operation nodes, data attribute nodes, etc. Based on the multiple node features of each data lineage graph, the data features of the data lineage graph are determined, and a data space is established based on the data features of each of the multiple data lineage graphs, wherein the data space includes multiple graph nodes, the number of graph nodes is the same as the number of data lineage graphs, the graph node features of each graph node are determined based on the data features of the data lineage graph corresponding to the node, and the multiple graph nodes corresponding to multiple data lineage graphs with similar data features are close in distance in the data space.

[0071] According to an embodiment of the present disclosure, a data space is constructed using multiple data lineage graphs, and a target data node is determined based on the node distance between other data nodes and the initial data node. The data space is divided into two subspaces by a hyperplane between the initial data node and the target data node until the number of data nodes in the subspace is less than or equal to a preset number, and a data binary tree is established so that the query result can be determined from the data binary tree based on the target query information. Since the data space includes all data, processing the data space can ensure the comprehensiveness and accuracy of the query results. The node features of the data nodes are extracted through data preprocessing, which saves data processing time in the process of similar data discovery driven by the data lineage graph, and improves the efficiency of similar data discovery driven by the data lineage graph. The target data node is determined by the node distance, and the division method of the data space is determined. The division efficiency is higher, and the established data binary tree structure is closer to a balanced binary tree, which can further improve the query efficiency.

[0072] According to an embodiment of the present disclosure, a target data node is determined based on node distances between other data nodes included in the spatial structure and an initial data node, including: determining respective node distances between the initial data node and other data nodes included in the spatial structure; determining a total node distance based on a plurality of node distances; determining respective distance ratios of a plurality of other data nodes based on a plurality of node distances and the total node distance; and selecting a target data node from a plurality of other data nodes using the plurality of distance ratios as respective selection probabilities of the plurality of other data nodes.

[0073] According to an embodiment of the present disclosure, the node distances between the initial data node and other data nodes included in the spatial structure are determined, wherein the node distances between the initial data node and other data nodes can be calculated by the vector distances between the initial data node and other data nodes. The distances between multiple other data nodes and the initial data node are summed to obtain the total node distance.

[0074] For example, when the spatial structure includes n other data nodes, the distance ratio of the i-th other data node can be calculated by formula (1): :

[0075] (1)

[0076] in, is the distance between the i-th other data node and the initial data node, is the total distance of nodes in the spatial structure.

[0077] According to the embodiments of the present disclosure, As the selection probability of the i-th other data node, a target data node is selected from n other data nodes.

[0078] According to the embodiments of the present disclosure, compared with the ordinary ANNOY algorithm, the distance ratio of the data node is used as the probability of the data node being selected, so that the distance between the target data node and the initial data node can be as far as possible during the division process, making the division of the data binary tree more even, avoiding the problem of unbalanced subtrees that is prone to occur in the ANNOY algorithm, thereby reducing the depth of the data binary tree through a more even division method, reducing the time required for similar data discovery driven by the subsequent data lineage graph, and improving query efficiency.

[0079] According to an embodiment of the present disclosure, the distance between the hyperplane and the initial data node is equal to the distance between the target data nodes; based on the spatial structure and the hyperplane, multiple subspaces of the data space are determined, including: based on the hyperplane, determining the part of the spatial structure on the same side as the initial data node as the first subspace; and based on the hyperplane, determining the part of the spatial structure on the same side as the target data node as the second subspace, wherein the first subspace and the second subspace are in the same depth relationship.

[0080] According to an embodiment of the present disclosure, based on a hyperplane, the portion of the spatial structure on the same side as the initial data node is determined as the first subspace, and the portion of the spatial structure on the same side as the target data node is determined as the second subspace. The first subspace and the second subspace are obtained by partitioning a hyperplane, so the first subspace and the second subspace are in the same depth relationship.

[0081] According to an embodiment of the present disclosure, two subspaces obtained by dividing using the same hyperplane are determined to be in the same depth relationship, so that in the process of constructing a data binary tree, the subtrees corresponding to the two subspaces in the same depth relationship have the same depth and the same parent nodes, thereby improving the correctness of the data binary tree and thus improving the accuracy of similar data discovery driven by the data lineage graph.

[0082] According to an embodiment of the present disclosure, a data binary tree including multiple data nodes is determined based on a data space and multiple subspaces, including: based on each subspace, establishing a binary tree corresponding to the subspace; and combining the binary trees corresponding to the subspaces with the same depth relationship in pairs until the data space does not include uncombined binary trees, thereby obtaining a data binary tree, wherein each non-leaf node in the data binary tree represents a hyperplane.

[0083] According to an embodiment of the present disclosure, based on each subspace, a binary tree corresponding to the subspace is established, wherein the left subtree and the right subtree of the binary tree are the first subspace and the second subspace, respectively, and the root node of the binary tree is a hyperplane that divides the first subspace and the second subspace. Binary trees corresponding to subspaces with the same depth relationship are combined in pairs, wherein the root node of the combined binary tree is a hyperplane that divides the subspaces with the same depth relationship, until the data space does not include uncombined binary trees, and a data binary tree is obtained.

[0084] According to the embodiments of the present disclosure, establishing the corresponding subtree starting from the minimum topology can ensure the correctness of each leaf node and non-leaf node of the data binary tree and improve the efficiency of tree building. By ensuring the correctness of the data binary tree, the efficiency and accuracy of similar data discovery driven by the data lineage graph are improved.

[0085] Figure 3A A schematic diagram of a binary tree established according to an approximate nearest neighbor search algorithm is schematically shown.

[0086] like Figure 3A As shown, the preset number is set to 10, that is, the number of data nodes in the subspace is not greater than 10, and there is no need to divide it by a hyperplane. Figure 3A The number of leaf nodes of the binary tree of the data is no more than 10, but it can be clearly seen that Figure 3A The depth of some subtrees in is 3, and the depth of some subtrees is 11. Randomly selecting cluster centers will lead to uneven partitioning, which will cause the depth of the binary tree to be too large.

[0087] Figure 3B The schematic diagram of a data binary tree established according to the similar data discovery method driven by a data lineage graph according to an embodiment of the present disclosure is schematically shown.

[0088] like Figure 3B As shown, the preset number is set to 10, that is, the number of data nodes in the subspace is not greater than 10, and there is no need to divide it by a hyperplane. Figure 3B The number of leaf nodes in the data binary tree is no more than 10. And because the distance ratio is used as the probability of a data node being selected, the data binary tree is divided more evenly and closer to a balanced binary tree, reducing the depth difference between leaf nodes, thereby reducing the average depth of the binary tree and improving the average query efficiency.

[0089] According to an embodiment of the present disclosure, a query result is determined from a data binary tree based on target query information, including: determining information features of the target query information; performing multiple matches in the data binary tree based on the information features of the target query information to obtain leaf nodes; and determining multiple data nodes corresponding to the leaf nodes as query results.

[0090] According to an embodiment of the present disclosure, the information features of the target query information are determined, and based on the information features, matching is performed starting from the root node of the data binary tree to obtain leaf nodes. Since the number of data nodes included in the subspace of the data space is less than or equal to the preset number, the leaf node of the data binary tree constructed based on the data space may include multiple data nodes, and the multiple data nodes corresponding to the leaf nodes are determined as query results.

[0091] According to an embodiment of the present disclosure, after multiple data nodes corresponding to a leaf node are determined as query results, the distance between the multiple data nodes included in the query result and the target query information can be calculated, and the data corresponding to the K closest data nodes can be used as the query result.

[0092] According to the embodiments of the present disclosure, the leaf nodes are determined from the data binary tree by using the information features of the data binary tree and the target query information through multiple comparisons, which can fully utilize the fast query characteristics of the binary tree and improve the efficiency of similar data discovery driven by the data lineage graph.

[0093] According to the embodiments of the present disclosure, the query results of the similar data discovery method driven by the data lineage graph can also be determined in the following manner: repeating the data binary tree establishment process multiple times according to the initial data node in the spatial structure to obtain multiple different data binary trees, and based on the information characteristics of the target query information, performing multiple matches in the multiple data binary trees to obtain multiple leaf nodes, and determining the multiple data nodes included in the multiple leaf nodes respectively, and determining the K data nodes that appear the most times in the multiple leaf nodes as the query results.

[0094] According to the embodiments of the present disclosure, after the initial data node is determined, the target data node is selected based on probability, so different data binary trees can be obtained by repeating the data binary tree establishment process multiple times, and different data binary trees are used to query the information features of the same target query information to obtain leaf nodes of multiple data binary trees. Since the data binary trees are different, the more data nodes that appear in multiple leaf nodes, the greater the probability that they are closer to the target query information, and the K data nodes that appear the most times in multiple leaf nodes are determined as query results, thereby improving the accuracy of similar data discovery driven by the data lineage graph.

[0095] According to an embodiment of the present disclosure, based on information features of target query information, multiple matches are performed in a data binary tree to obtain leaf nodes, including: performing the following operations on the data binary tree until the leaf nodes are determined: starting from the root node of the data binary tree, comparing the information features of the target query information with the node features of non-leaf nodes to determine the search direction; and determining the target subtree of the data binary tree according to the search direction.

[0096] According to an embodiment of the present disclosure, starting from the root node of the data binary tree, the information features of the target query information are compared with the node features of the non-leaf nodes to determine the search direction, and the corresponding target subtree of the search direction is determined from the data binary tree. The search direction is continued to be determined in the target subtree, and the subtree of the target subtree is determined until a leaf node is queried according to the search direction.

[0097] According to an embodiment of the present disclosure, by comparing the features of multiple non-leaf nodes in the data binary tree with the information features of the target query information, the query direction in the data binary tree is determined, which can ensure that the subtree with the correct query direction can continue to be searched, thereby improving the accuracy of similar data discovery driven by the data lineage graph.

[0098] According to an embodiment of the present disclosure, a data space and node characteristics of each of the multiple data nodes included in the data space are determined, including: based on the metadata information of each of the multiple data, determining the text content and operation records of each of the multiple data; based on the text content of each of the multiple data, determining the corresponding multiple data nodes; based on the operation records of the data, determining the multiple additional nodes corresponding to the data nodes; based on the multiple data nodes and the multiple additional nodes, determining the data space, wherein the multiple edges included in the data space are used to characterize the operations and the operation times corresponding to the operations; and for each data node, using a natural language processing model to process the data node and the multiple additional nodes corresponding to the data node to obtain the node characteristics of the data node.

[0099] According to an embodiment of the present disclosure, based on the metadata information of each of the multiple data, the text content, attribute information and operation records of each of the multiple data are determined, wherein the metadata information can be obtained by querying a database, and the text content of each of the multiple data includes a text description of the data. The attribute information of the data can be 120° east longitude, 20° north latitude, 12,000 meters in altitude, etc. The operation record of the data can include data storage, data download, etc.

[0100] According to an embodiment of the present disclosure, based on the text content of the data, the data node corresponding to the data can be determined, based on the operation record and attribute information of the data, the additional node corresponding to the data node can be determined, and the data node and the additional node are connected by edges to determine a data lineage graph, wherein the edges in the data lineage graph can represent the operation as well as the operation time and attribute information corresponding to the operation and the update time of the attribute information.

[0101] For example, when performing a data warehousing operation, first create a data source node and a data node. Then, establish an edge connecting the data source node and the data node to represent the source relationship of the data. This edge contains operation information (such as data warehousing) and the time information of the operation. Subsequently, parse the metadata information of the data, build the corresponding attribute nodes, and connect the data nodes to each attribute node through the edge. Finally, store the source node, data node, attribute node, and related edges in the graph database to build a complete data source and metadata information path.

[0102] For example, when executing a data download operation, a user download node is first created, and then an edge connecting the user download node and the data node is established to represent the data download relationship. This edge contains the data download information and time information. Finally, the download node and related edges are stored in the graph database to build a complete data download operation path.

[0103] According to an embodiment of the present disclosure, a data node and a plurality of additional nodes corresponding to the data node are encoded using a natural language processing model to obtain data encoding of the data node, wherein the natural language processing model may use Bidirectional Encoder Representations from Transformers (BERT).

[0104] According to an embodiment of the present disclosure, the information features of the target query information can also be obtained by processing the target query information using the BERT model.

[0105] According to an embodiment of the present disclosure, the topological nodes and edges in the data lineage graph can be converted into text descriptions. For example, Figure 4 The user 1 download and use node shown can be converted into "user 1 downloaded and used on September 11, 2023" as a text description of the high-altitude meteorological data node. BERT is then used to process multiple text descriptions to obtain the semantic encoding of the high-altitude meteorological data node.

[0106] According to an embodiment of the present disclosure, multiple additional nodes of a data node are converted into text descriptions, and a text description sequence is generated based on the multiple text descriptions. ,in, is a text description of an additional node. Input into the pre-trained model BERT to obtain the semantic vector representing the data node , and encode the i data nodes of the data lineage graph to obtain the encoding matrix , as shown in formula (2):

[0107] (2)

[0108] in, is the semantic vector of the a-th data node.

[0109] According to the embodiments of the present disclosure, the encoding matrix of the data lineage graph is updated by using the graph attention neural network, and a node feature matrix composed of node features of each data node in the data lineage graph can be obtained, wherein the operation of updating the node feature of the i-th node is shown in formula (3):

[0110] (3)

[0111] in, is the lth layer hidden state of the ith data node. When l=0, is the semantic vector of the ith data node, || is the vector connection, σ is the sigmoid activation function, is the set of neighbor nodes of node i of the kth attention head, is the trainable parameter of the kth attention head, is the attention score of nodes i and j of the kth attention head, which can be calculated by formula (4):

[0112] (4)

[0113] Among them, a and W are trainable parameters.

[0114] According to an embodiment of the present disclosure, the graph attention neural network uses cross entropy as the loss function and adopts the Adam algorithm for optimization, as shown in formula (5):

[0115] (5)

[0116] in, is the average value of the hidden state of the last layer of data nodes, is a trainable parameter and y is a classification label.

[0117] According to an embodiment of the present disclosure, a natural language processing model is used to determine the node features of each data node in a data lineage graph, so as to divide the data lineage graph using the node features of the data nodes to obtain a data binary tree. Since the natural language processing model can learn the data metadata information, data operations, data updates and other information implicit in multiple data nodes, the node features obtained from similar data are similar, providing a basis for discovering similar data in the similar data discovery process driven by the data lineage graph.

[0118] According to an embodiment of the present disclosure, the similar data discovery method driven by the data lineage graph also includes: when the metadata information of the data changes, determining the change category, wherein the change category includes data update and data deletion; based on the change category, determining the update content of the data lineage graph; and based on the update content, updating the data lineage graph to obtain an updated data lineage graph.

[0119] According to an embodiment of the present disclosure, metadata information of the changed data is queried through a database, and the change category is determined. If the changed metadata information is queried in the database, but the index of the metadata information is different from the index of the metadata information before the data change, the change category can be determined to be data update; if the changed metadata information cannot be queried in the database, the change category can be determined to be data deletion.

[0120] According to an embodiment of the present disclosure, based on the change category, the update content of the data lineage graph is determined, wherein the update content includes the edge and node information that needs to be newly added, and the update content is added to the data lineage graph to complete the update of the data lineage graph and obtain an updated data lineage graph.

[0121] According to the embodiments of the present disclosure, when a data node is updated, different update methods are determined based on the change category to update the data lineage graph. This ensures that the data lineage graph can reflect all operations of the data corresponding to the data node. Since it is impossible to query the data related information from the database after data deletion, recording various operations on the data through the data lineage graph helps to discover similar data through the same operations between different data, thereby improving the accuracy of similar data discovery driven by the data lineage graph.

[0122] According to an embodiment of the present disclosure, the data lineage graph is updated based on the update content to obtain an updated data lineage graph, including: in the case where the change category is data update, based on the data node and the multiple additional nodes corresponding to the data node, creating an updated data node and multiple additional nodes corresponding to the updated data node in the data lineage graph; connecting the updated data node with the data node using edges to obtain an updated data lineage graph; and in the case where the change category is data deletion, based on the operation time of the data deletion, adding the additional node corresponding to the data node in the data lineage graph to obtain an updated data lineage graph.

[0123] According to an embodiment of the present disclosure, when the change category is data update, an updated data node is created. Then, an edge is established between the updated data node and the original data node to represent the data update operation. The edge also contains the time information of the data update. Subsequently, additional nodes are constructed based on the metadata information of the new data, and the updated data node is connected to each additional node through the edge representing the data attribute. Finally, the updated data node and the related edges are stored in the graph database to form a complete data update operation path.

[0124] According to an embodiment of the present disclosure, when the change category is data deletion, an additional node is created to represent the deletion of the data node, and an edge is created to represent the operation time of the deletion operation. The relevant nodes and edges are stored in a graph database to construct a data deletion operation path.

[0125] According to the embodiments of the present disclosure, when a data node is updated, different update methods are determined based on the change category, and the data lineage graph is updated. This ensures that the data lineage graph accurately records the operations performed on the data node and the operation time, thereby improving the accuracy of the data lineage graph and further improving the accuracy of similar data discovery driven by the data lineage graph.

[0126] Figure 4 A schematic diagram of a data lineage graph of a similar data discovery method driven by a data lineage graph according to an embodiment of the present disclosure is schematically shown.

[0127] like Figure 4 As shown, for the data "high-altitude meteorological data", data entry was completed on 2023-09-10, the data source was from the Ocean Science Data Center, and the longitude and latitude information was stored at the same time, the creation of the "high-altitude meteorological data" data node was completed, and it was downloaded and used by user 1 on 2023-09-11. The data node was updated on 2023-09-12, the longitude and latitude information was deleted, the height information was added, and the data was deleted on 2023-09-15. The data record of 2023-09-12 has been deleted in the database, but retained in the data lineage graph. The data node was updated on 2023-10-01. Since the data record of 2023-09-12 no longer exists in the database, the update operation is based on the 2023-09-10 version, adding height information and deleting longitude information. The high-altitude meteorological data was published to the geographic service on 2023-10-10 and downloaded and used by user 2 on 2023-10-12. The above operations and the corresponding times are stored in the data lineage graph to complete the data space structure of the "high-altitude meteorological data" data node.

[0128] Based on the above-mentioned data lineage graph driven similar data discovery method, the present disclosure also provides a data lineage graph driven similar data discovery device. Figure 5 The device is described in detail.

[0129] Figure 5 The structural block diagram of a similar data discovery device driven by a data lineage graph according to an embodiment of the present disclosure is schematically shown.

[0130] like Figure 5 As shown, the data lineage graph driven similar data discovery device 500 of this embodiment includes a node selection module 510, a node determination module 520, a hyperplane determination module 530, a subspace determination module 540, a binary tree determination module 550 and a data lineage graph driven similar data discovery module 560.

[0131] The node selection module 510 is used to randomly select a data node as an initial data node in each spatial structure having a number of nodes greater than a preset number. In one embodiment, the node selection module 510 can be used to perform the operation S210 described above, which will not be described in detail here.

[0132] The node determination module 520 is used to determine the target data node based on the node distance between other data nodes included in the spatial structure and the initial data node. In one embodiment, the node determination module 520 can be used to perform the operation S220 described above, which will not be described in detail here.

[0133] The hyperplane determination module 530 is used to determine a hyperplane for dividing the spatial structure based on the initial data nodes and the target data nodes. In one embodiment, the hyperplane determination module 530 can be used to perform the operation S230 described above, which will not be described in detail here.

[0134] The subspace determination module 540 is used to determine multiple subspaces of the data lineage graph based on the spatial structure and the hyperplane. In one embodiment, the subspace determination module 540 can be used to perform the operation S240 described above, which will not be described in detail here.

[0135] The binary tree determination module 550 is used to determine a data binary tree including multiple data nodes based on the data lineage graph and multiple subspaces, wherein the leaf nodes of the data binary tree include multiple data nodes, and the branch nodes of the data binary tree include hyperplanes. In one embodiment, the binary tree determination module 550 can be used to perform the operation S250 described above, which will not be repeated here.

[0136] The data lineage graph driven similar data discovery module 560 is used to determine the query result from the data binary tree based on the target query information. In one embodiment, the data lineage graph driven similar data discovery module 560 can be used to perform the operation S260 described above, which will not be described in detail here.

[0137] According to an embodiment of the present disclosure, the node determination module 520 includes a distance calculation unit, a distance summing unit, a distance ratio determination unit, and a node determination unit.

[0138] The distance calculation unit is used to determine the node distances between the initial data node and other data nodes included in the spatial structure.

[0139] The distance summing unit is used to determine the total distance of a node based on the distances of multiple nodes.

[0140] The distance ratio determination unit is used to determine the distance ratios of the multiple other data nodes based on the multiple node distances and the total node distance.

[0141] The node determination unit is used to use the multiple distance ratios as the selection probabilities of the multiple other data nodes respectively, and select the target data node from the multiple other data nodes.

[0142] According to an embodiment of the present disclosure, the distance between the hyperplane and the initial data node is equal to the distance between the target data nodes; the subspace determination module 540 includes a first subspace determination unit and a second subspace determination unit.

[0143] The first subspace determining unit is used to determine the part of the spatial structure on the same side as the initial data node as the first subspace based on the hyperplane.

[0144] The second subspace determination unit is used to determine the part of the spatial structure on the same side as the target data node as the second subspace based on the hyperplane, wherein the first subspace and the second subspace are in the same depth relationship.

[0145] According to an embodiment of the present disclosure, the binary tree determination module 550 includes a binary tree establishment unit and a binary tree combination unit.

[0146] The binary tree building unit is used to build a binary tree corresponding to each subspace based on the subspace.

[0147] The binary tree combination unit is used to combine the binary trees corresponding to the subspaces of the same depth relationship in pairs until the data lineage graph does not include the uncombined binary trees, thereby obtaining a data binary tree, wherein each non-leaf node in the data binary tree represents a hyperplane.

[0148] According to an embodiment of the present disclosure, the data lineage graph driven similar data discovery module 560 includes a coding determination unit, a data matching unit and a data lineage graph driven similar data discovery unit.

[0149] The coding determination unit is used to determine the information characteristics of the target query information.

[0150] The data matching unit is used to perform multiple matches in the data binary tree based on the information features of the target query information to obtain leaf nodes.

[0151] The similar data discovery unit driven by the data lineage graph is used to determine multiple data nodes corresponding to the leaf nodes as query results.

[0152] According to an embodiment of the present disclosure, the data matching unit includes a direction determination subunit and a subtree determination subunit.

[0153] The direction determination subunit is used to perform the following operations on the data binary tree until a leaf node is determined.

[0154] The subtree determination subunit is used to compare the information characteristics of the target query information with the node characteristics of the non-leaf nodes starting from the root node of the data binary tree to determine the search direction; and determine the target subtree of the data binary tree according to the search direction.

[0155] According to an embodiment of the present disclosure, the encoding determination module includes a record determination unit, a data node determination unit, an additional node determination unit, a topology map determination unit and an encoding determination unit.

[0156] The record determination unit is used to determine the text content and operation record of each of the multiple data based on the metadata information of each of the multiple data.

[0157] The data node determination unit is used to determine the corresponding multiple data nodes based on the text content of each of the multiple data.

[0158] The additional node determination unit is used to determine a plurality of additional nodes corresponding to the data nodes based on the operation record of the data.

[0159] The topology graph determination unit is used to determine a data lineage graph based on multiple data nodes and multiple additional nodes, wherein the multiple edges included in the data lineage graph are used to characterize operations and operation times corresponding to the operations.

[0160] The encoding determination unit is used to process the data node and multiple additional nodes corresponding to the data node using a natural language processing model for each data node to obtain a node feature of the data node.

[0161] According to an embodiment of the present disclosure, the data lineage graph driven similar data discovery apparatus 500 further includes a category determination module, an update determination module and a data update module.

[0162] The category determination module is used to determine the change category when the metadata information of the data changes, wherein the change category includes data update and data deletion.

[0163] The update determination module is used to determine the update content of the data lineage graph based on the change category.

[0164] The data update module is used to update the data lineage graph based on the update content to obtain an updated data lineage graph.

[0165] According to an embodiment of the present disclosure, the data updating module includes a node updating unit, a node connecting unit and a node adding unit.

[0166] The node update unit is used to create an updated data node and multiple additional nodes corresponding to the updated data node in a data lineage graph based on the data node and multiple additional nodes corresponding to the data node when the change category is data update.

[0167] The node connection unit is used to connect the updated data nodes with the data nodes using edges to obtain an updated data lineage graph.

[0168] The node adding unit is used to add an additional node corresponding to the data node in the data lineage graph based on the operation time of the data deletion when the change category is data deletion, so as to obtain an updated data lineage graph.

[0169] According to an embodiment of the present disclosure, any multiple modules among the node selection module 510, the node determination module 520, the hyperplane determination module 530, the subspace determination module 540, the binary tree determination module 550 and the data lineage graph driven similar data discovery module 560 can be combined into one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the node selection module 510, the node determination module 520, the hyperplane determination module 530, the subspace determination module 540, the binary tree determination module 550, and the data lineage graph driven similar data discovery module 560 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application-specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware and firmware or in any appropriate combination of any of them. Alternatively, at least one of the node selection module 510, the node determination module 520, the hyperplane determination module 530, the subspace determination module 540, the binary tree determination module 550, and the data lineage graph driven similar data discovery module 560 can be at least partially implemented as a computer program module, and when the computer program module is run, the corresponding function can be performed.

[0170] Figure 6 A block diagram of an electronic device suitable for implementing a similar data discovery method driven by a data lineage graph according to an embodiment of the present disclosure is schematically shown.

[0171] like Figure 6 As shown, the electronic device 600 according to an embodiment of the present disclosure includes a processor 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 to a random access memory (RAM) 603. The processor 601 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a dedicated microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 601 may also include an onboard memory for caching purposes. The processor 601 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.

[0172] In RAM 603, various programs and data required for the operation of electronic device 600 are stored. Processor 601, ROM 602 and RAM 603 are connected to each other via bus 604. Processor 601 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 602 and / or RAM 603. It should be noted that the program can also be stored in one or more memories other than ROM 602 and RAM 603. Processor 601 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.

[0173] According to an embodiment of the present disclosure, the electronic device 600 may further include an input / output (I / O) interface 605, which is also connected to the bus 604. The electronic device 600 may further include one or more of the following components connected to the input / output (I / O) interface 605: an input portion 606 including a keyboard, a mouse, etc.; an output portion 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 608 including a hard disk, etc.; and a communication portion 609 including a network interface card such as a LAN card, a modem, etc. The communication portion 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the input / output (I / O) interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage portion 608 as needed.

[0174] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.

[0175] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, it may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device. For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the ROM 602 and / or RAM 603 described above and / or one or more memories other than ROM 602 and RAM 603.

[0176] The embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the method provided by the embodiment of the present disclosure.

[0177] The above functions defined in the system / device of the embodiment of the present disclosure are performed when the computer program is executed by the processor 601. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.

[0178] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 609, and / or installed from a removable medium 611. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0179] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the processor 601, the above functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, apparatus, module, unit, etc. described above can be implemented by a computer program module.

[0180] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages ​​include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).

[0181] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0182] It will be appreciated by those skilled in the art that the features described in the various embodiments of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations or combinations are not explicitly described in the present disclosure. In particular, without departing from the spirit and teachings of the present disclosure, the features described in the various embodiments of the present disclosure may be combined and / or combined in a variety of ways. All of these combinations and / or combinations fall within the scope of the present disclosure.

[0183] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.

Claims

1. A similar data discovery method driven by a data lineage graph, characterized in that: The method comprises: Repeat the following operations on the data space until the number of data nodes included in each of the multiple subspaces of the data space is less than or equal to a preset number: For each spatial structure in which the number of nodes is greater than the preset number, wherein the spatial structure includes the data space and a plurality of subspaces of the data space, Randomly selecting one of the data nodes in the spatial structure as an initial data node; Determine a target data node based on a node distance between other data nodes included in the spatial structure and the initial data node; Determining a hyperplane for dividing the spatial structure based on the initial data node and the target data node; Based on the spatial structure and the hyperplane, determining a plurality of subspaces of the data space; Based on the data space and the multiple subspaces, determining a data binary tree including the multiple data nodes, wherein leaf nodes of the data binary tree include the multiple data nodes, and branch nodes of the data binary tree include the hyperplane; and Based on the target query information, determining a query result from the data binary tree; The data space is determined according to the following method: Determine a plurality of data lineage graphs and node characteristics of a plurality of data nodes respectively included in the plurality of data lineage graphs; For each of the data lineage graphs, determining data features of the data lineage graph based on a plurality of node features; Based on the multiple data features, the data space is established, wherein the data space includes multiple graph nodes, and each graph node corresponds to one of the data lineage graphs.

2. The method according to claim 1, characterized in that The determining the target data node based on the node distance between the other data nodes included in the spatial structure and the initial data node includes: Determining respective node distances between the initial data node and other data nodes included in the spatial structure; Determining a total node distance based on a plurality of said node distances; Determining distance ratios of respective ones of the plurality of other data nodes based on the plurality of node distances and the total node distance; and The plurality of distance ratios are used as selection probabilities of each of the plurality of other data nodes, and the target data node is selected from the plurality of other data nodes.

3. The method according to claim 1, characterized in that The distance between the hyperplane and the initial data node is equal to the distance between the target data nodes; The determining of a plurality of subspaces of the data space based on the spatial structure and the hyperplane comprises: Based on the hyperplane, determining a portion of the spatial structure on the same side as the initial data node as a first subspace; and Based on the hyperplane, a portion of the spatial structure on the same side as the target data node is determined as a second subspace, wherein the first subspace and the second subspace are in the same depth relationship.

4. The method according to claim 3, characterized in that The step of determining a data binary tree including the plurality of data nodes based on the data space and the plurality of subspaces comprises: Based on each of the subspaces, establishing a binary tree corresponding to the subspace; and The binary trees corresponding to the subspaces with the same depth relationship are combined in pairs until the data space does not include uncombined binary trees, thereby obtaining the data binary tree, wherein each non-leaf node in the data binary tree represents a hyperplane.

5. The method according to claim 4, characterized in that The step of determining a query result from the data binary tree based on the target query information includes: Determining information characteristics of the target query information; Based on the information features of the target query information, multiple matches are performed in the data binary tree to obtain leaf nodes; and The multiple data nodes corresponding to the leaf nodes are determined as the query results.

6. The method according to claim 5, characterized in that The node features based on the target query information are matched multiple times in the data binary tree to obtain leaf nodes, including: The following operations are performed on the data binary tree until a leaf node is determined: Starting from the root node of the data binary tree, the information features of the target query information are compared with the node features of the non-leaf nodes to determine the search direction; and According to the search direction, a target subtree of the data binary tree is determined.

7. The method according to claim 1, characterized in that The step of determining a data lineage graph and node characteristics of each of a plurality of data nodes included in the data lineage graph includes: Determining text content and operation records of each of the plurality of data based on metadata information of each of the plurality of data; Based on the text content of each of the plurality of data, determining the corresponding plurality of data nodes; Determining, based on the operation record of the data, a plurality of additional nodes corresponding to the data node; Determining the data lineage graph based on the plurality of data nodes and the plurality of additional nodes, wherein the plurality of edges included in the data lineage graph are used to represent operations and operation times corresponding to the operations; and For each of the data nodes, the data node and the multiple additional nodes corresponding to the data node are processed using a natural language processing model to obtain a node feature of the data node.

8. The method according to claim 7, characterized in that The method further comprises: In the case where the metadata information of the data changes, determining a change category, wherein the change category includes data update and data deletion; Based on the change category, determining update content of the data lineage graph; and Based on the updated content, the data lineage graph is updated to obtain an updated data lineage graph.

9. The method according to claim 8, characterized in that The updating of the data lineage graph based on the updated content to obtain an updated data lineage graph includes: In the case where the change category is data update, based on the data node and the multiple additional nodes corresponding to the data node, an updated data node and multiple additional nodes corresponding to the updated data node are created in the data lineage graph. Connecting the updated data node with the data node using an edge to obtain the updated data lineage graph; and In the case where the change category is data deletion, an additional node corresponding to the data node is added to the data lineage graph based on the operation time of the data deletion to obtain an updated data lineage graph.

10. A similar data discovery device driven by a data lineage graph, characterized in that: The device comprises: Repeat the following modules to operate the data space until the number of data nodes included in each of the multiple subspaces of the data space is less than or equal to the preset number: For each spatial structure in which the number of nodes is greater than the preset number, wherein the spatial structure includes the data space and a plurality of subspaces of the data space, A node selection module, used for randomly selecting one of the data nodes in the spatial structure as an initial data node; A node determination module, configured to determine a target data node based on a node distance between other data nodes included in the spatial structure and the initial data node; A hyperplane determination module, configured to determine a hyperplane for dividing the spatial structure based on the initial data node and the target data node; A subspace determination module, configured to determine a plurality of subspaces of the data space based on the spatial structure and the hyperplane; A binary tree determination module, configured to determine a data binary tree including the multiple data nodes based on the data space and the multiple subspaces, wherein leaf nodes of the data binary tree include the multiple data nodes, and branch nodes of the data binary tree include the hyperplane; and A similar data discovery module driven by a data lineage graph, used to determine query results from the data binary tree based on target query information; The data space is determined according to the following method: Determine a plurality of data lineage graphs and node characteristics of a plurality of data nodes respectively included in the plurality of data lineage graphs; For each of the data lineage graphs, determining data features of the data lineage graph based on a plurality of node features; Based on the multiple data features, the data space is established, wherein the data space includes multiple graph nodes, and each graph node corresponds to one of the data lineage graphs.