A data modeling method
By aggregating and associating data from multiple tables, a target graph network is constructed and secondary block data is mined. This solves the problem of poor aggregation and correlation in the data model, achieves effective data aggregation and discovery of potential patterns, and obtains new data with multi-dimensional and high value.
Patent Information
- Application Number
- CN202410090114.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-22
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2044-01-22
AI Technical Summary
Existing technologies suffer from poor data aggregation and correlation in data models, making it difficult to discover potential patterns and effectively aggregate data, resulting in unfriendly business applications.
By acquiring multiple data tables, data aggregation is performed to form first-level block data. Based on similarity, the relationship is determined to construct a target graph network. Second-level block data is obtained by mining the graph network, thus realizing data modeling from the perspective of entities.
It enables effective aggregation and correlation of data, discovers potential patterns between data, obtains new multi-dimensional and high-value data, and solves the problem of poor aggregation and correlation in data models.
Smart Images

Figure CN117874006B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of database technology, specifically to a data modeling method. Background Technology
[0002] With the advent of the big data era, the digitization of everything has led to the rapid expansion of the data ocean, with data volume showing a trend of leapfrog growth. Discovering data patterns, finding a suitable modeling method, mining the correlation information between data, analyzing and reconstructing the relationships in the data, transforming big data into small data, and then establishing a data model based on this to guide practice are crucial. However, current data models in related technologies often focus on rows and columns, neglecting entity-level modeling. This results in chaotic, disordered, and disorganized data organization, failing to discover correlations between data points and effectively simulating the real world. Furthermore, the organizational form of these data models is a simple superposition of data records, failing to effectively aggregate data and reduce its scale. Therefore, the data models in these technologies suffer from poor data aggregation and correlation, making it difficult to effectively aggregate data, discover potential patterns, and are unfriendly to business applications.
[0003] There is currently no effective solution to the technical problems of data aggregation and poor correlation in related technologies. Summary of the Invention
[0004] This application provides a data modeling method to at least address the technical problems of data aggregation and poor correlation in related technologies.
[0005] In a first aspect, this application provides a data modeling method, comprising: acquiring N data tables, wherein each of the N data tables includes data generated by different entities, and N is a positive integer greater than or equal to 1; performing data aggregation processing on each of the N data tables to obtain P first-level block data, wherein each of the P first-level block data is obtained by aggregating data with the same entity identifier in the corresponding data table, and P is a positive integer greater than or equal to 1; performing association processing on each of the first-level block data included in the P first-level block data to obtain a target graph network, wherein the association processing is used to determine whether there is an association between two first-level block data based on the similarity between any two first-level block data in the P first-level block data, and the target graph network is a graph with each of the first-level block data in the P first-level block data as nodes and the relationship between each of the first-level block data as edges; and performing mining processing on the P first-level block data based on the target graph network to obtain Q second-level block data, wherein Q is a positive integer greater than or equal to 1.
[0006] By adopting the above technical solution, N data tables are obtained, and data aggregation processing is performed on each of the N data tables to obtain P first-level data blocks. Each first-level data block is obtained by aggregating data with the same entity identifier in the corresponding data table, thus achieving the goal of data modeling from the entity perspective and effectively aggregating the data. Then, the data blocks in the P first-level data blocks are correlated to determine whether there is a relationship between any two first-level data blocks, and a target graph network is obtained. The target graph network is a graph built with each first-level data block as a node and the relationships between each first-level data block as edges. Then, based on the target graph network, the P first-level data blocks are mined to obtain Q second-level data blocks, thus achieving the goal of discovering the relationships between the data, that is, discovering the potential patterns between the data, thereby achieving the goal of obtaining multi-dimensional, high-value new data, avoiding the problems of data aggregation and poor correlation in the data models of related technologies, as well as the difficulty in discovering the potential patterns between the data.
[0007] Optionally, the first-level block data included in the P first-level block data are associated to obtain the target graph network, including: for the j-th first-level block data and the k-th first-level block data, the following operations are performed, where the j-th first-level block data and the k-th first-level block data are any two different first-level block data included in the P first-level block data: determining the target similarity value between the j-th first-level block data and the k-th first-level block data; if the target similarity value is greater than or equal to a preset similarity threshold, determining that there is an association between the j-th first-level block data and the k-th first-level block data; if the target similarity value is less than the preset similarity threshold, determining that there is no association between the j-th first-level block data and the k-th first-level block data; taking each first-level block data in the P first-level block data as a node, when there is an association between the j-th first-level block data and the k-th first-level block data, establishing an edge between the j-th node and the k-th node to obtain the target graph network, where the j-th node is the node corresponding to the j-th first-level block data and the k-th node is the node corresponding to the k-th first-level block data.
[0008] By employing the above technical solution, for any two first-level blocks of data in P first-level blocks, such as the j-th and k-th first-level blocks, a target similarity value is determined between them. If the target similarity value is greater than or equal to a preset similarity threshold, a relationship is determined between the two; conversely, if the target similarity value is less than the preset similarity threshold, no relationship is determined. Then, using each of the P first-level blocks as a node, an edge is established between any two first-level blocks if a relationship exists, and no edge exists between two first-level blocks if no relationship exists. This establishes a target graph network, which records the relationships between each node and the edges between them. Through this target graph network, the purpose of determining the relationships between different first-level blocks is achieved, thereby enabling the discovery of potential patterns in the data.
[0009] Optionally, determining the target similarity value between the j-th first-level block data and the k-th first-level block data includes: when the block identifier of the j-th first-level block data is the same as the block identifier of the k-th first-level block data, setting the target similarity value to 1; when the block identifier of the j-th first-level block data is different from the block identifier of the k-th first-level block data, calculating the target similarity value according to a predetermined algorithm, wherein the predetermined algorithm includes one of the following: Euclidean distance, edit distance, text similarity, twin network.
[0010] By adopting the above technical solution, when the block identifier of the j-th first-level block is the same as the block identifier of the k-th first-level block, it is considered that there is a correlation between the two, and the target similarity value is set to 1. When the block identifier of the j-th first-level block is different from the block identifier of the k-th first-level block, the target similarity value is calculated according to a predetermined algorithm. Optionally, Euclidean distance, edit distance, text similarity, twin networks, or other similarity models can be selected to calculate the target similarity value between the two. This achieves the goal of determining the target similarity value between any two first-level blocks, thereby determining whether there is a correlation between them.
[0011] Optionally, if the target similarity value is greater than or equal to a preset similarity threshold, it is determined that there is a relationship between the j-th first-level block data and the k-th first-level block data, including: if the target similarity value is equal to 1, it is determined that there is an explicit relationship between the j-th first-level block data and the k-th first-level block data, wherein a target similarity value of 1 indicates that the block identifier of the j-th first-level block data is the same as the block identifier of the k-th first-level block data; if the target similarity value is greater than or equal to the preset similarity threshold and less than 1, it is determined that there is an implicit relationship between the j-th first-level block data and the k-th first-level block data.
[0012] By adopting the above technical solution, when the target similarity value is 1, that is, when the block identifier of the j-th first-level block data is the same as the block identifier of the k-th first-level block data, an explicit relationship is considered to exist between them; while when the target similarity value is greater than or equal to a preset similarity threshold and less than 1, an implicit relationship is considered to exist between the j-th and k-th first-level block data. This achieves the goal of determining whether an explicit or implicit relationship exists between two first-level block data based on the target similarity value.
[0013] Optionally, mining P primary block data based on the target graph network to obtain Q secondary block data includes: mining P primary block data based on the target graph network using the transformation function subGraph to obtain Q secondary block data, wherein each of the Q secondary block data is obtained by mining the corresponding subgraph in the target graph network.
[0014] By adopting the above technical solution, the transformation function subGraph is used to mine and process P first-level block data based on the target graph network to obtain Q new second-level block data, thus achieving the purpose of data reconstruction based on multiple first-level block data. Data mining can be performed on the subgraphs included in the target graph network to obtain second-level block data. For example, the subgraph can be a graph in the target graph network composed of multiple related first-level block data as nodes, thus achieving the purpose of transforming multiple first-level block data to obtain new second-level block data, which also achieves the purpose of deriving new data.
[0015] Optionally, data aggregation is performed on each of the N data tables to obtain P first-level data blocks, including: performing aggregation on the i-th data table among the N data tables to obtain P i One first-level block of data, of which P i Each first-level block of data is obtained by aggregating data with the same entity identifier from the i-th data table. The i-th data table is any one of the N data tables, where i is a positive integer greater than or equal to 1 and less than or equal to N; according to P iOne first-level block of data yields P first-level block of data.
[0016] By employing the above technical solution, aggregation processing is performed on the i-th data table to obtain P. i This process involves creating one or more first-level data blocks, and so on, performing aggregation on each of the N data tables to obtain one or more first-level data blocks, resulting in P first-level data blocks. This achieves the goal of effectively aggregating data and also enables data modeling from an entity perspective.
[0017] Optionally, the target block data in the P first-level block data includes: block identifier, block original data, and block digest. The target block data is any one of the P first-level block data. The block identifier is used to identify the target block data. The block original data is the data obtained after compressing and encoding the entity source data that generated the target block data. The block digest includes the attribute features and content features of the target block data.
[0018] By adopting the above technical solution, for any one of the P first-level block data, each first-level block data includes a corresponding block identifier, block original data and block digest, thus achieving the purpose of establishing a block data structure.
[0019] In a second aspect of this application, a data modeling apparatus is also provided, comprising: an acquisition module for acquiring N data tables, wherein each of the N data tables includes data generated by different entities, and N is a positive integer greater than or equal to 1; an aggregation module for performing data aggregation processing on each of the N data tables to obtain P first-level block data, wherein each of the P first-level block data is obtained by aggregating data with the same entity identifier in the corresponding data table, and P is a positive integer greater than or equal to 1; an association module for performing association processing on each of the first-level block data included in the P first-level block data to obtain a target graph network, wherein the association processing is used to determine whether there is an association between two first-level block data based on the similarity between any two first-level block data in the P first-level block data, and the target graph network is a graph with each of the first-level block data in the P first-level block data as nodes and the relationships between the first-level block data as edges; and a processing module for performing mining processing on the P first-level block data based on the target graph network to obtain Q second-level block data, wherein Q is a positive integer greater than or equal to 1.
[0020] In a third aspect of this application, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the program to implement any of the methods described above.
[0021] In a fourth aspect of this application, a computer-readable storage medium is also provided, the computer-readable storage medium storing instructions that, when executed, perform the method described in any of the preceding claims.
[0022] In summary, one or more technical solutions provided in the embodiments of this application have at least the following technical effects or advantages: 1. It achieves the goal of data modeling from the perspective of entities, and the goal of effectively aggregating data; it achieves the goal of discovering the relationship between data, thereby achieving the goal of obtaining multi-dimensional and high-value new data, avoiding the problems of poor data aggregation and correlation in data models of related technologies, as well as the difficulty in discovering potential patterns between data.
[0023] 2. Modeling from an entity perspective, a block data structure was established, which enabled the transformation of multiple first-level block data into new second-level block data, thus achieving the goal of deriving new data. Attached Figure Description
[0024] Figure 1 This is a flowchart illustrating a data modeling method provided in an embodiment of this application; Figure 2 This is a schematic diagram of a block data structure provided in an embodiment of this application; Figure 3 This is a schematic diagram of the relationship of block data provided in an embodiment of this application; Figure 4 This is a schematic diagram of the block model construction method provided in the embodiments of this application; Figure 5 This is an example diagram of data aggregation provided in the embodiments of this application; Figure 6 This is an example diagram of data association provided in the embodiments of this application; Figure 7 This is an example diagram illustrating data transformation provided in the embodiments of this application; Figure 8 This is a structural block diagram of a data modeling device provided in an embodiment of this application; Figure 9 This is a schematic diagram of the structure of an electronic device disclosed in an embodiment of this application.
[0025] Explanation of reference numerals in the attached figures: 900 - Electronic device; 901 - Processor; 902 - Communication bus; 903 - User interface; 904 - Network interface; 905 - Memory. Detailed Implementation
[0026] To enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments.
[0027] In the description of the embodiments of this application, the words "for example" or "for instance" are used to indicate examples, illustrations, or explanations. Any embodiment or design that is described as "for example" or "for instance" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design options. Rather, the use of the words "for example" or "for instance" is intended to present the relevant concepts in a specific manner.
[0028] In the description of the embodiments of this application, the term "multiple" means two or more. For example, multiple systems means two or more systems, and multiple screen terminals means two or more screen terminals. Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the indicated technical features. Thus, a feature defined with "first" or "second" may explicitly or implicitly include one or more of that feature. The terms "comprising," "including," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.
[0029] This application provides a data modeling method, referring to... Figure 1 , Figure 1 This is a flowchart illustrating a data modeling method provided in an embodiment of this application, including the following steps: Step S101: Obtain N data tables, where each of the N data tables includes data generated by different entities, and N is a positive integer greater than or equal to 1; Step S102: Perform data aggregation processing on each of the N data tables to obtain P first-level block data. Each of the P first-level block data is obtained by aggregating data with the same entity identifier in the corresponding data table. P is a positive integer greater than or equal to 1. Step S103: Perform association processing on each of the first-level block data included in the P first-level block data to obtain the target graph network. The association processing is used to determine whether there is an association between two first-level block data based on the similarity between any two first-level block data in the P first-level block data. The target graph network is a graph with each of the first-level block data in the P first-level block data as nodes and the relationship between each first-level block data as edges. Step S104: Based on the target graph network, mine the P first-level block data to obtain Q second-level block data, where Q is a positive integer greater than or equal to 1.
[0030] Through the above steps, N data tables are obtained. Data aggregation processing is performed on each of the N data tables to obtain P first-level data blocks. Each first-level data block is obtained by aggregating data with the same entity identifier from the corresponding data table, thus achieving the goal of data modeling from the entity perspective and effectively aggregating the data. Then, the data blocks in the P first-level data blocks are correlated to determine whether there is a relationship between any two first-level data blocks, resulting in a target graph network. The target graph network is a graph built with each first-level data block as a node and the relationships between the first-level data blocks as edges. Then, based on the target graph network, the P first-level data blocks are mined to obtain Q second-level data blocks, thus achieving the goal of discovering the relationships between the data, that is, discovering the potential patterns between the data, thereby achieving the goal of obtaining multi-dimensional, high-value new data, avoiding the problems of data aggregation and poor correlation in data models in related technologies, as well as the difficulty in discovering potential patterns between data.
[0031] The entity performing the above steps can be a computer terminal, a mobile terminal, a device, or a server, but is not limited to these.
[0032] In the above embodiment, N data tables are obtained, and data aggregation processing is performed on each of the N data tables to obtain P first-level data blocks. Each first-level data block is obtained by aggregating data with the same entity identifier in the corresponding data table. For example, data in the data table is aggregated based on the identifier entity column. The identifier entity column can be a mobile phone number, device number, account number, etc., thus achieving the purpose of data modeling from the entity perspective and achieving effective data aggregation. In practical applications, the aforementioned identifier entity column can be one or more columns, that is, aggregation can be based on one identifier entity column or multiple identifier entity columns. In addition, for different data tables, aggregation can be based on the same identifier entity column or different identifier entity columns. For example, data table 1 is aggregated based on the mobile phone number column, data table 2 is aggregated based on the product column, or aggregated based on other entity columns, etc. Then, the first-level data blocks in the P first-level data blocks are associated to determine whether there is an association (or relationship) between any two first-level data blocks. The process involves creating a target graph network, which is a graph constructed with nodes representing each first-level data block and edges representing the relationships between them. This network determines whether relationships exist between the P first-level data blocks through association processing. For example, the similarity between any two first-level data blocks can be used to determine if a relationship exists. Association processing can be performed between two first-level data blocks aggregated from the same data table, or between two first-level data blocks aggregated from different data tables. The target graph network reveals whether relationships exist between the P first-level data blocks (i.e., the P nodes). Then, based on the target graph network, the P first-level data blocks are mined to obtain Q second-level data blocks. For two or more first-level data blocks that are related, further mining is performed to obtain second-level data blocks. For example, a transformation function consisting of a series of algorithms can be used, such as a simple algorithm based on crossover and union operations, or a more advanced algorithm based on machine learning / deep learning models. Mining is then performed on the target graph network to obtain new block data. This approach achieves the goal of discovering relationships between data, that is, discovering potential patterns among data, thereby obtaining multi-dimensional, high-value new data. It avoids the problems of data aggregation and poor correlation in data models of related technologies, as well as the difficulty in discovering potential patterns among data. A data model can be constructed through the above embodiments, which may include the aforementioned Q secondary data blocks, or the aforementioned P primary data blocks.
[0033] In an optional embodiment, the first-level block data included in P first-level block data are associated to obtain a target graph network, including: for the j-th first-level block data and the k-th first-level block data, the following operations are performed, wherein the j-th first-level block data and the k-th first-level block data are any two different first-level block data included in the P first-level block data: determining the target similarity value between the j-th first-level block data and the k-th first-level block data; if the target similarity value is greater than or equal to a preset similarity threshold, determining that there is an association between the j-th first-level block data and the k-th first-level block data; if the target similarity value is less than the preset similarity threshold, determining that there is no association between the j-th first-level block data and the k-th first-level block data; taking each first-level block data in the P first-level block data as a node, when there is an association between the j-th first-level block data and the k-th first-level block data, establishing an edge between the j-th node and the k-th node to obtain the target graph network, wherein the j-th node is the node corresponding to the j-th first-level block data, and the k-th node is the node corresponding to the k-th first-level block data.
[0034] In the above embodiments, for any two first-level blocks of data among P first-level blocks, such as the j-th first-level block and the k-th first-level block, a target similarity value is determined between them. When the target similarity value is greater than or equal to a preset similarity threshold, a relationship is determined between the two. For example, the preset similarity threshold is 0.8 (or 0.85, or other values), meaning that a relationship is determined between the j-th and k-th first-level blocks. Conversely, when the target similarity value is less than the preset similarity threshold, no relationship is determined between the two, meaning that no relationship is determined between the j-th and k-th first-level blocks. It should be noted that... The j-th and k-th first-level block data mentioned above can be two first-level block data obtained by aggregating from the same original data table, or they can be two first-level block data obtained by aggregating from two original data tables respectively. j and k are both positive integers greater than or equal to 1 and less than or equal to P. Then, using each of the P first-level block data as a node, an edge is established between any two first-level block data when there is a relationship between them; otherwise, no edge exists between them. This establishes a target graph network, which records the relationships between each node and the edges between them. Through the target graph network, the purpose of determining the relationships between different first-level block data is achieved, thereby enabling the further discovery of potential patterns in the data.
[0035] In an optional embodiment, determining the target similarity value between the j-th first-level block data and the k-th first-level block data includes: when the block identifier of the j-th first-level block data is the same as the block identifier of the k-th first-level block data, determining the target similarity value as 1; when the block identifier of the j-th first-level block data is different from the block identifier of the k-th first-level block data, calculating the target similarity value according to a predetermined algorithm, wherein the predetermined algorithm includes one of the following: Euclidean distance, edit distance, text similarity, twin network.
[0036] In the above embodiment, when the block identifier of the j-th first-level block data is the same as the block identifier of the k-th first-level block data, it is considered that there is a correlation between the two, and the target similarity value is set to 1. When the block identifier of the j-th first-level block data is different from the block identifier of the k-th first-level block data, the target similarity value is calculated according to a predetermined algorithm. For example, Euclidean distance, edit distance, text similarity, twin networks, or other similarity models can be selected to calculate the target similarity value between the two. This achieves the purpose of determining the target similarity value between any two first-level block data, thereby determining whether there is a correlation between them.
[0037] In an optional embodiment, determining that there is a correlation between the j-th first-level block data and the k-th first-level block data when the target similarity value is greater than or equal to a preset similarity threshold includes: determining that there is an explicit relationship between the j-th first-level block data and the k-th first-level block data when the target similarity value is equal to 1, wherein a target similarity value of 1 indicates that the block identifier of the j-th first-level block data is the same as the block identifier of the k-th first-level block data; and determining that there is an implicit relationship between the j-th first-level block data and the k-th first-level block data when the target similarity value is greater than or equal to the preset similarity threshold and less than 1.
[0038] In the above embodiments, when the target similarity value is 1, that is, when the block identifier of the j-th first-level block data is the same as the block identifier of the k-th first-level block data, an explicit relationship is considered to exist between the two. When the target similarity value is greater than or equal to a preset similarity threshold (such as 0.8, or other values) and less than 1, an implicit relationship is considered to exist between the j-th and k-th first-level block data. This achieves the purpose of determining whether an explicit or implicit relationship exists between two first-level block data based on the target similarity value.
[0039] In an optional embodiment, mining P primary block data based on the target graph network to obtain Q secondary block data includes: mining the P primary block data using the transformation function subGraph based on the target graph network to obtain Q secondary block data, wherein each of the Q secondary block data is obtained by mining the corresponding subgraph in the target graph network.
[0040] In the above embodiments, the transformation function subGraph is used to mine P first-level block data based on the target graph network to obtain Q new second-level block data. For example, a transformation function consisting of a series of algorithms can be used, such as a simple algorithm based on crossover and union operations, or a high-level algorithm based on machine learning / deep learning models. Mining is performed based on the target graph network to obtain new block data. This achieves the purpose of data reconstruction based on multiple first-level block data. Second-level block data can be obtained by data mining based on the subgraphs included in the target graph network. For example, the subgraph can be a graph in the target graph network composed of multiple related first-level block data as nodes. For example, if there is a relationship between first-level block data B1 (obtained by aggregating data from data table 1), B5 (obtained by aggregating data table 2), and B9 (obtained by aggregating data table 3), then a subgraph can be formed by B1, B5, B9, and the edges between them. This achieves the purpose of transforming multiple first-level block data to obtain new second-level block data, and also achieves the purpose of deriving new data.
[0041] In an optional embodiment, data aggregation processing is performed on each of the N data tables to obtain P first-level data blocks, including: performing aggregation processing on the i-th data table among the N data tables to obtain P i One first-level block of data, of which P i Each first-level block of data is obtained by aggregating data with the same entity identifier from the i-th data table. The i-th data table is any one of the N data tables, where i is a positive integer greater than or equal to 1 and less than or equal to N; according to P i One first-level block of data yields P first-level block of data.
[0042] In the above embodiment, aggregation processing is performed on the i-th data table to obtain P. i This process involves creating one or more first-level data blocks, and so on, performing aggregation on each of the N data tables to obtain one or more first-level data blocks, resulting in P first-level data blocks. This achieves the goal of effectively aggregating data and also enables data modeling from an entity perspective.
[0043] In an optional embodiment, the target block data among the P first-level block data includes: a block identifier, original block data, and a block digest. The target block data is any one of the P first-level block data. The block identifier is used to identify the target block data. The original block data is the data obtained by compressing and encoding the entity source data that generates the target block data. The block digest includes the attribute features and content features of the target block data.
[0044] In the above embodiments, for any one of the P first-level block data, each first-level block data includes a corresponding block identifier, block raw data, and block summary, thus achieving the purpose of establishing a block data structure. The block identifier is used to uniquely identify a block data. For example, it can be an identifier-type entity field that aggregates data, such as mobile phone number, device number, or product ID in the aforementioned embodiments. Optionally, the block identifier can be one or more entity data, depending on the actual database design and requirements. The block raw data records the compressed raw data generated by the entity. According to the characteristics of block data, a block data describes an entity, and the attributes or relationships of the entities are basically the same or similar. Block data is data that has been encoded and compressed from entity data, stored in contiguous physical space, and accessed by block addressing. The block summary is a multi-dimensional extraction and summary of the block raw data, expressing the value of the entity raw data. It has the characteristics of being lightweight, high-value, intuitive, and scalable. In practical applications, the block summary can include multiple dimensions such as attributes, content, behavior, and business.
[0045] Obviously, the embodiments described above are only some embodiments of this application, and not all embodiments. The present application will be specifically described below with reference to specific embodiments.
[0046] This application proposes a block data model (or simply block model) and describes its construction method. The block model is a modeling approach based on block data, using block data as the smallest data unit. Block data is a high-level form of data organization; it is the result of aggregating data with similar characteristics, specifically referring to data generated by entities with real physical meaning in the real world, such as common business elements like phone numbers, device numbers, and user accounts. The block model is the process of integrating and processing similar data to generate block data according to their real physical meaning and relationships; its core is "data generating data." The construction method of the block model includes data aggregation into blocks and data association and transformation; the former is the process of initializing block data, and the latter is the process of regenerating block data.
[0047] The embodiments of this application will be described in detail below.
[0048] The smallest data unit in a block model is a block of data. Before introducing the block model construction method, we will first describe the block of data and the relationship between them.
[0049] I. Block Data like Figure 2 As shown, block data includes block identifier, block raw data, and block digest, represented as follows: 1. Block identifier (denoted as ck, cluster key) Used to uniquely identify a block of data, it is typically chosen as an identifier entity field for data aggregation, such as a phone number or device ID. `ck` values are unique and relational; each block has a unique `ck` value. Relationships between blocks can be established through `ck` associations. `ck` can also be used to build block indexes to improve retrieval efficiency. The choice of `ck` can be one or more entity data, depending on the specific database design and requirements.
[0050] 2. Block raw data (denoted as b_r) This records the compressed original data generated by the entity. Based on the characteristics of block data, a block of data describes an entity whose attributes or relationships are basically the same or similar. The `b_r` of the block data is the encoded and compressed data of the entity, stored in contiguous physical space, and accessed by block addressing. `b_r` is mainly used for querying, tracing, and verification. Different compression algorithms and storage methods can be selected according to specific design and requirements, such as columnar storage based on compression algorithms like Snappy and zlib.
[0051] 3. Block abstract data (denoted as b_abs) It involves multi-dimensional extraction and summarization of raw data, expressing the value of the original entity data, and is characterized by its lightweight, high value, intuitiveness, and scalability. For example... Figure 2 As shown, block summaries generally include four dimensions: attributes, content, behavior, and business logic, as detailed below: (1) Attribute features (denoted as b_abs_attr): These features typically involve the static properties of the block data and are used to describe the characteristics or basic attributes of the block data. They can include both quantitative and qualitative attributes. The former refers to numerical and measurable features in the block data, generally obtained through statistics; the latter refers to identity description features of entity objects in the block data, which can be directly extracted from the data. Attribute features are generally used to describe and classify block data.
[0052] (2) Content Features (denoted as b_abs_cont): These features relate to the specific content of the block data and are used to summarize the core information within the block data. They can be actual information from text, images, or other data, or vectorized features generated after processing the content based on a model. Content features are generally used for understanding and analyzing the content of block data. For example, based on the understanding and analysis of different block contents, it can be determined whether two blocks are related. In a recommendation system, a user's online comments or viewed videos can be used as content features for user profiling.
[0053] (3) Behavioral Features (denoted as b_abs_behav): These features describe the dynamic properties of the block data and are used to represent the dynamic properties of the entity objects that generated the block data. These can be changes in the behavior itself, changes in a behavior over time, or a combination of behavioral changes across multiple dimensions such as time and space. These features are generally generated by rules or models. Behavioral features are generally used to analyze and predict the behavior of objects. For example, in network security, user operation logs can be used as behavioral features for anomaly detection; in mobile applications, user click patterns and browsing history can be used as behavioral features.
[0054] (4) Business Characteristics (denoted as b_abs_biz): These characteristics describe the performance of block data in specific business scenarios, involving rules or strategies, primarily used to accelerate computation. They can be divided into two categories based on different usage levels: from a database perspective, they can be defined as whether block data is accessed; from a business perspective, they can be defined as business tags for block data. The former can be used to optimize database storage strategies, selecting appropriate storage media based on the access characteristics of block data, such as storing frequently accessed data as hot data in SSDs. The latter can be used to accelerate business analysis.
[0055] In practical use, appropriate feature types can be selected as needed. All four features of the block summary can be retained, or only some can be retained as required. The specific information contained in each feature is flexible and can be defined according to the specific use case and design requirements.
[0056] II. Relationships between block data The block model transforms the relationships between entities into relationships between blocks of data. Specifically, the factual relationships recorded in the data are called explicit relationships, while the relationships mined using algorithms are called implicit relationships. In the block model, an explicit relationship is that two blocks have the same core data set (ck), while an implicit relationship is that two blocks have similar summaries.
[0057] like Figure 3 As shown, dashed lines connect summaries with the same or similar ck, while solid lines indicate that two blocks of data are related, such as... Represents block data b i b j Relationships exist. By constructing relationships within block data, on the one hand, the real world can be realistically represented, helping users better understand the data and intuitively see the relationships between entities in the data, such as one-to-one, one-to-many, and many-to-many relationships; on the other hand, for engineers, query languages and indexes can be designed based on the relationships of block data to achieve efficient data access based on blocks and accelerate query efficiency.
[0058] This application provides a method for constructing a block data model, which mainly includes three stages: data aggregation, data association, and data transformation. For example... Figure 4 As shown, the block data is divided into two levels, Level 1 and Level 2, according to different stages. Level 1 is the block data formed by the aggregation of source data (i.e., the first stage). Level 1 corresponds to the aforementioned first-level block data, reflecting the vertical aggregation of data and realizing "from data to data aggregation". Level 2 is the new block data formed by the interconnection and transformation between block data (the second and third stages). Level 2 corresponds to the aforementioned second-level block data, reflecting the horizontal expansion of data. Based on data aggregation, it strengthens the explicit connections between data and discovers the implicit connections between data, realizing "from fusion to reconstruction", thereby continuously generating new multi-dimensional, high-value, and small-scale data. Generally speaking, the summary of Level 1 block data only contains attributes and content, while the summary of Level 2 block data contains both.
[0059] Phase 1: Data Aggregation The first step in building a block model is data aggregation, which refers to the process of aggregating raw data based on identifier entity columns (such as phone numbers, device IDs, virtual accounts, etc.). Let's take A... i List table S m,n Aggregate into p blocks of data {b1, b2, ..., b p}, corresponding to the aforementioned first-level block data, is represented as follows: B p (b1,b2,…,b p ) = AGG(S m,n A i ),p< <m Where S m,n =R m (A1,A2,A3,…,A n This represents a table with n fields and m rows of data. The structure of each data block consists of three parts: ck, b_r, and b_abs, where b_abs contains b_abs_attr, b_abs_cont, b_abs_behav, and b_abs_biz.
[0060] Phase Two: Data Linking The second step in building a block model is data association, which involves establishing relationships between blocks of data. This process strengthens explicit relationships and discovers implicit ones. Specifically, data association is achieved by calculating the similarity between two blocks of data. The similarity calculation can be performed using Euclidean distance, edit distance, text similarity, twin networks, or other similarity models, depending on the requirements. The specific calculation method is as follows: When two blocks have the same ck value, the similarity between the two blocks is considered to be 1, indicating an explicit relationship. When the two blocks have different ck values, f(b) is used. i ,b j Calculate the similarity between two blocks. When the similarity reaches a given threshold... When the threshold (corresponding to the aforementioned preset similarity threshold) is reached, an implicit relationship is considered to exist between two data blocks. After all the blocks are associated, a graph network composed of block data can be formed, denoted as BG.
[0061] Phase 3: Data Transformation The third step in building the block model is data transformation, which refers to the process of generating new block data based on network mining of the relationships between block data. A transformation function F, consisting of a set of algorithms—such as simple algorithms based on crossover and union operations, or advanced algorithms based on machine learning / deep learning models—is used to mine the graph (BG) formed after data association to obtain a new set of block data. Corresponding to the aforementioned second-level block data, its formal expression is as follows: The following provides a detailed description of each stage of the block data model construction method in the embodiments of this application.
[0062] (I) Data Aggregation The first step in building a block model is data aggregation, which refers to the process of aggregating raw data based on identifier entity columns (such as phone numbers, device numbers, virtual accounts, etc.). For example... Figure 5 As shown, via A i Column-to-Table S m,n After aggregating the m rows of data, p blocks of data {b1, b2, ..., b} are formed. p Similarly, taking C... i The column aggregates table S2 into q blocks of data {b1, b2, ..., bq}. q Each block of data has a structure consisting of three parts: ck, b_r, and b_abs. b_abs contains b_abs_attr and b_abs_cont. ck is A... i The values of the columns. b_r is the original block data stored in Parquet format based on the Snappy compression algorithm. b_abs_attr contains the block size (the number of data rows contained in the block), the number of rows with values in the entity columns, and the number of duplicates. b_abs_cont records the entity's value, its earliest occurrence time, latest occurrence time, and number of occurrences.
[0063] (II) Data Association The second step in building a block model is data association, which involves establishing relationships between blocks of data. This process strengthens explicit relationships between data and discovers implicit relationships. Edit distance is used to calculate the similarity of block data, and the specific calculation method is as follows: When two blocks have the same ck value, the similarity between the two blocks is considered to be 1, indicating an explicit relationship. When the two blocks have different ck values, edit_distance(b) is used. i .b_ab,b j The similarity of blocks is determined by calculating block summary similarity using edit distance (.b_ab). When the similarity reaches a given threshold of 0.8, the two blocks are considered to have an implicit relationship.
[0064] The data join calculation between the two tables is illustrated as follows: Figure 6 As shown, solid lines represent block data. and Their ck values are the same, therefore, and There is an explicit relationship Dashed lines represent block data and The ck values are different, but the abstracts are similar, therefore, and Implicit relationship exists Once all the block data is linked together, it can form a graph network composed of block data, denoted as BG.
[0065] III. Data Transformation The third step in block model building is data transformation, which refers to the process of generating new block data based on the relationships between block data. Subgraph mining is used to mine the graph (BG) formed after data association to obtain a new set of block data. Its formal expression is as follows: like Figure 7 As shown, the left side represents the block data formed by tables S1, S2, and S3, and the graph network BG1 composed of these block data, formed through the association of the block data. BG1 generates a new set of block data by applying the transformation function subGraph. Where b1 is... as well as b2 is derived from; b2 is from as well as It is derived from; b3 is from as well as It was transformed.
[0066] Transformed Each block of data contains three parts: ck, b_r, and b_abs, as follows: (1) ck is the hash value calculated from the ck of multiple blocks of data that produced this block of data, such as
[0067] (2) b_r is the original block data stored in Parquet format based on the snappy compression algorithm.
[0068] (3) b_abs consists of four parts: b_abs_attr, b_abs_cont, b_abs_behav, and b_abs_biz.
[0069] 1) b_abs_attr contains the number of data rows within the block, the number of rows with values in the entity columns, and the number of duplicates. 2) b_abs_cont records the entity value, earliest occurrence time, latest occurrence time, and number of occurrences; 3) b_abs_behav records the behavior of each block in time sequence on a daily basis, including whether data was generated, and the characteristics of data on holidays and weekdays; 4) b_abs_biz records indicators such as whether the current block of data has been queried by the business.
[0070] In this application embodiment, a block data structure is provided and a method for constructing a block data model is proposed. The block data is divided into two levels, level 1 and level 2. Level 1 is the block data formed by the aggregation of source data, which reflects the vertical aggregation of data and realizes "from data to data aggregation". Level 2 is the new block data formed by the mutual association and transformation between block data, which reflects the horizontal expansion of data. On the basis of data aggregation, the explicit relationship between data is strengthened, and the implicit relationship between data is discovered, realizing "from fusion to reconstruction". It can be continuously derived to obtain new data with multi-dimensional, high value and small scale.
[0071] Compared with related technologies, the embodiments of this application have the following advantages: 1) The block data model represents entities as block data through data modeling, transforming the numerous and frequent interactions between entities into finite relationships between block data. Simultaneously, algorithms are used to strengthen explicit relationships between entities and mine implicit relationships, thereby discovering potential patterns in massive amounts of data. 2) A block data structure is designed to describe the data generated by entities, including block identifiers, original block data, and block summaries. The block identifier is a unique identifier for the entity; the original block data aggregates all the entity's data; and the block summary is the entity's descriptive information. The block summary in the block data is a multi-dimensional extraction and summary of entity data, featuring lightweight, high value, intuitiveness, and scalability, providing a basis for mining relationships between block data and serving as the core and foundation of the block data model. 3) The construction of the block data model includes three stages: data aggregation, data association, and data transformation. Data aggregation is the process of initializing block data, realizing "from data to data aggregation"; data association and data transformation are the processes of regenerating block data, realizing "from fusion to reconstruction." This process filters noise and continuously refines data information, laying the foundation for business use.
[0072] Through the embodiments of this application, the abstraction and simulation of the real world are realized, which can effectively gather data and extract information, laying a data foundation for subsequent analysis, mining and intelligentization.
[0073] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0074] This application also provides a data modeling apparatus, such as Figure 8 As shown, Figure 8 This is a structural block diagram of a data modeling device provided in an embodiment of this application. The device includes: The acquisition module 801 is used to acquire N data tables, where each of the N data tables includes data generated by different entities, and N is a positive integer greater than or equal to 1; The aggregation module 802 is used to perform data aggregation processing on each of the N data tables to obtain P first-level block data. Each of the P first-level block data is obtained by aggregating data with the same entity identifier in the corresponding data table. P is a positive integer greater than or equal to 1. The association module 803 is used to perform association processing on each of the first-level block data included in the P first-level block data to obtain the target graph network. The association processing is used to determine whether there is an association between two first-level block data based on the similarity between any two first-level block data in the P first-level block data. The target graph network is a graph with each of the first-level block data in the P first-level block data as nodes and the relationship between each first-level block data as edges. The processing module 804 is used to mine P first-level block data based on the target graph network to obtain Q second-level block data, where Q is a positive integer greater than or equal to 1.
[0075] In an optional embodiment, the association module 803 includes: an execution unit, configured to perform the following operations for both the j-th first-level block data and the k-th first-level block data, wherein the j-th first-level block data and the k-th first-level block data are any two different first-level block data included in the P first-level block data: determining a target similarity value between the j-th first-level block data and the k-th first-level block data; determining that there is an association between the j-th first-level block data and the k-th first-level block data if the target similarity value is greater than or equal to a preset similarity threshold; and determining that there is no association between the j-th first-level block data and the k-th first-level block data if the target similarity value is less than the preset similarity threshold; and a first obtaining unit, configured to establish an edge between the j-th node and the k-th node when there is an association between the j-th first-level block data and the k-th first-level block data, using each first-level block data in the P first-level block data as a node, to obtain a target graph network, wherein the j-th node is the node corresponding to the j-th first-level block data, and the k-th node is the node corresponding to the k-th first-level block data.
[0076] In an optional embodiment, the execution unit is configured to determine the target similarity value between the j-th first-level block data and the k-th first-level block data in the following manner: when the block identifier of the j-th first-level block data is the same as the block identifier of the k-th first-level block data, the target similarity value is determined to be 1; when the block identifier of the j-th first-level block data is different from the block identifier of the k-th first-level block data, the target similarity value is calculated according to a predetermined algorithm, wherein the predetermined algorithm includes one of the following: Euclidean distance, edit distance, text similarity, twin network.
[0077] In an optional embodiment, when the target similarity value is greater than or equal to a preset similarity threshold, the execution unit is used to determine that there is a relationship between the j-th first-level block data and the k-th first-level block data in the following ways: when the target similarity value is equal to 1, it is determined that there is an explicit relationship between the j-th first-level block data and the k-th first-level block data, wherein the target similarity value of 1 indicates that the block identifier of the j-th first-level block data is the same as the block identifier of the k-th first-level block data; when the target similarity value is greater than or equal to the preset similarity threshold and less than 1, it is determined that there is an implicit relationship between the j-th first-level block data and the k-th first-level block data.
[0078] In an optional embodiment, the processing module 804 includes a processing unit, configured to mine P first-level block data based on the target graph network using the transformation function subGraph to obtain Q second-level block data, wherein each of the Q second-level block data is obtained by mining the corresponding subgraph in the target graph network.
[0079] In an optional embodiment, the aggregation module 802 includes: an aggregation unit, used to perform aggregation processing on the i-th data table among N data tables to obtain P. i One first-level block of data, of which P i Each first-level block of data is obtained by aggregating data with the same entity identifier from the i-th data table. The i-th data table is any one of the N data tables, where i is a positive integer greater than or equal to 1 and less than or equal to N; the second obtaining unit is used to obtain data according to P. i One first-level block of data yields P first-level block of data.
[0080] In an optional embodiment, the target block data among the P first-level block data includes: a block identifier, original block data, and a block digest. The target block data is any one of the P first-level block data. The block identifier is used to identify the target block data. The original block data is the data obtained by compressing and encoding the entity source data that generates the target block data. The block digest includes the attribute features and content features of the target block data.
[0081] This application also provides a computer-readable storage medium storing instructions that, when executed, perform the steps of any of the methods described above.
[0082] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.
[0083] This application also discloses an electronic device. For example... Figure 9 As shown, Figure 9 This is a schematic diagram of the structure of an electronic device disclosed in an embodiment of this application. The electronic device 900 may include: at least one processor 901, at least one network interface 904, a user interface 903, a memory 905, and at least one communication bus 902.
[0084] The communication bus 902 is used to enable communication between these components.
[0085] The user interface 903 may include a display screen and a camera. Optionally, the user interface 903 may also include a standard wired interface and a wireless interface.
[0086] The network interface 904 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface).
[0087] The processor 901 may include one or more processing cores. The processor 901 connects to various parts of the electronic device (such as a server) using various interfaces and lines, and performs various server functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in memory 905, and by calling data stored in memory 905. Optionally, the processor 901 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 901 may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content required for display; and the modem handles wireless communication. It is understood that the modem may also not be integrated into the processor 901 and may be implemented as a separate chip.
[0088] The memory 905 may include random access memory (RAM) or read-only memory. Optionally, the memory 905 may include a non-transitory computer-readable storage medium. The memory 905 may be used to store instructions, programs, code, code sets, or instruction sets. The memory 905 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the above-described method embodiments, etc.; the data storage area may store data involved in the above-described method embodiments, etc. Optionally, the memory 905 may also be at least one storage device located remotely from the aforementioned processor 901. (Refer to...) Figure 9 The memory 905, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and an application program for a data modeling method.
[0089] exist Figure 9 In the illustrated electronic device 900, the user interface 903 is primarily used to provide an input interface for the user and acquire user input data; while the processor 901 can be used to call an application program of a data modeling method stored in the memory 905. When executed by one or more processors 901, the electronic device 900 performs one or more of the methods described in the above embodiments. It should be noted that, for the foregoing method embodiments, for the sake of simplicity, they are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, because according to this application, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0090] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.
[0091] In the various embodiments provided in this application, it should be understood that the disclosed apparatus can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some service interface; the indirect coupling or communication connection between apparatuses or units may be electrical or other forms.
[0092] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0093] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0094] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage device (CMD). Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned memory includes various media capable of storing program code, such as USB flash drives, portable hard drives, magnetic disks, or optical disks.
[0095] The above description is merely an exemplary embodiment of this disclosure and should not be construed as limiting the scope of this disclosure. Any equivalent changes and modifications made in accordance with the teachings of this disclosure shall still fall within the scope of this disclosure. Other embodiments of this disclosure will be readily apparent to those skilled in the art upon consideration of the specification and the disclosure of practical truths.
[0096] This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art that are not described in this disclosure.
Claims
1. A data modeling method, characterized in that, include: Obtain N data tables, where each of the N data tables includes data generated by different entities, and N is a positive integer greater than or equal to 1; For each of the N data tables, data aggregation processing is performed to obtain P first-level data blocks. Each of the P first-level data blocks is obtained by aggregating data with the same entity identifier in the corresponding data table, where P is a positive integer greater than or equal to 1. The P first-level block data are associated with each first-level block data to obtain a target graph network. The association processing is used to determine whether there is an association between two first-level block data based on the similarity between any two first-level block data in the P first-level block data. The target graph network is a graph with each first-level block data in the P first-level block data as nodes and the relationship between each first-level block data as edges. Based on the target graph network, the P first-level block data are mined to obtain Q second-level block data, where Q is a positive integer greater than or equal to 1; Specifically, the process of mining the P first-level block data based on the target graph network to obtain Q second-level block data includes: mining the P first-level block data using the transformation function subGraph based on the target graph network to obtain the Q second-level block data, wherein each of the Q second-level block data is obtained by mining the corresponding subgraph in the target graph network; The target block data in the P first-level block data includes: block identifier, original block data, and block summary. The target block data is any one of the P first-level block data. The block identifier is used to identify the target block data. The original block data is the data obtained after compressing and encoding the entity source data that generated the target block data. The block summary includes the attribute features and content features of the target block data. The attribute features are used to describe the characteristics or basic attributes of the block data. The content features are used to summarize the core information in the block data. The content features include the actual information of text and image data.
2. The method according to claim 1, characterized in that, The target graph network is obtained by associating the data of each of the P first-level blocks into the P first-level blocks, including: For both the j-th and k-th first-level block data, the following operations are performed, wherein the j-th and k-th first-level block data are any two different first-level block data included in the P first-level block data: determine the target similarity value between the j-th and k-th first-level block data; if the target similarity value is greater than or equal to a preset similarity threshold, determine that there is a correlation between the j-th and k-th first-level block data; if the target similarity value is less than the preset similarity threshold, determine that there is no correlation between the j-th and k-th first-level block data. Using each of the P first-level block data as a node, when there is an association between the j-th first-level block data and the k-th first-level block data, an edge is established between the j-th node and the k-th node to obtain the target graph network, wherein the j-th node is the node corresponding to the j-th first-level block data and the k-th node is the node corresponding to the k-th first-level block data.
3. The method according to claim 2, characterized in that, Determining the target similarity value between the j-th first-level block data and the k-th first-level block data includes: When the block identifier of the j-th first-level block data is the same as the block identifier of the k-th first-level block data, the target similarity value is determined to be 1; When the block identifier of the j-th first-level block data is different from the block identifier of the k-th first-level block data, the target similarity value is calculated according to a predetermined algorithm, wherein the predetermined algorithm includes one of the following: Euclidean distance, edit distance, text similarity, twin network.
4. The method according to claim 2, characterized in that, If the target similarity value is greater than or equal to a preset similarity threshold, a correlation is determined between the j-th first-level block data and the k-th first-level block data, including: When the target similarity value is equal to 1, it is determined that there is an explicit relationship between the j-th first-level block data and the k-th first-level block data, wherein the target similarity value of 1 is used to indicate that the block identifier of the j-th first-level block data is the same as the block identifier of the k-th first-level block data; If the target similarity value is greater than or equal to the preset similarity threshold and less than 1, it is determined that there is an implicit relationship between the j-th first-level block data and the k-th first-level block data.
5. The method according to claim 1, characterized in that, Data aggregation is performed on each of the N data tables to obtain P first-level data blocks, including: Aggregate the i-th data table from the N data tables to obtain P. i A first-level block of data, wherein the P i Each first-level block of data is obtained by aggregating data with the same entity identifier in the i-th data table. The i-th data table is any one of the N data tables, and i is a positive integer greater than or equal to 1 and less than or equal to N. According to the P i The P first-level block data are obtained from the first-level block data.
Citation Information
Patent Citations
Method and system for mining and searching unstructured text data in financial field
CN108846006A
Method and querying and controlling database
US20130060733A1
