Data product generation method, apparatus, device, and storage medium

By generating a data lineage map to identify and encapsulate target datasets from different data sources, the problem of inaccurate matching results and semantic breaks in traditional data product generation is solved, thus achieving high-quality data product generation.

CN123178501APending Publication Date: 2026-11-27GUANGZHOU POWER SUPPLY BUREAU GUANGDONG POWER GRID CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611330929.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-31
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Traditional methods of generating data products are prone to inaccurate matching results and semantic breaks, which can affect the data quality of the data products.

Method used

By acquiring raw code data from different data sources, analyzing data flow relationships to generate a data lineage graph, identifying the target dataset and its encapsulation information, generating data products, and reducing the risk of semantic fragmentation.

Benefits of technology

It enables end-to-end construction from raw code data to data products, improving the data quality and understandability of data products.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178501A_ABST
    Figure CN123178501A_ABST
Patent Text Reader

Abstract

The application relates to a data product generation method, device and equipment and a storage medium. The method comprises the following steps: obtaining original code data from different data sources; analyzing data flow conversion relations in the original code data to generate a data blood relationship graph; determining a target data set from the original code data according to the data blood relationship graph, and determining encapsulation information of the target data set; and generating a data product according to the target data set and the encapsulation information. The above method is beneficial to improving the data quality of the data product.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing technology, and in particular to a method, apparatus, device and storage medium for generating data products. Background Technology

[0002] With the development of data processing technology, the scale of data in platforms and systems continues to grow, and the data processing process becomes increasingly complex. How to efficiently and accurately identify high-value data from massive amounts of heterogeneous raw data and transform it into standardized, reusable data products has become an important requirement in the field of data processing.

[0003] However, traditional methods of generating data products typically employ retrieval and matching to discover and construct them. This approach is prone to inaccurate matching results and semantic breaks, impacting the data quality of the final product. Summary of the Invention

[0004] Therefore, it is necessary to provide a data product generation method, apparatus, device, and storage medium to address the aforementioned technical problems, thereby improving the data quality of data products.

[0005] Firstly, this application provides a method for generating a data product, including:

[0006] Obtain raw code data from different data sources;

[0007] Analyze the data flow relationships in the original code data to generate a data lineage graph;

[0008] Based on the data lineage map, the target dataset is determined from the original code data, as well as the encapsulation information of the target dataset;

[0009] Generate data products based on the target dataset and encapsulation information.

[0010] In one embodiment, the encapsulation information includes a processing link description; determining the encapsulation information of the target dataset includes: determining the lineage path between different target data entities in the target dataset based on the data lineage graph; determining the association information of each target data entity based on the lineage path, the association information including upstream data sources and downstream dependencies; and determining the processing link description based on the association information of each target data entity.

[0011] In one embodiment, the encapsulation information includes metadata description; determining the encapsulation information of the target dataset includes: determining the lineage path between different target data entities in the target dataset based on the data lineage graph; parsing each target data entity to obtain the description information of each target data entity, the description information including field description information and processing logic information; performing semantic understanding on the lineage path and the description information of each target data entity to obtain the metadata description of the data product.

[0012] In one embodiment, the lineage path includes a field-level lineage path, which is used to characterize the lineage path between output fields of different target data entities; the method further includes: for each output field, obtaining the business semantic tag of the output field and the first semantic tag of at least one upstream field of the output field; when the similarity between the business semantic tag and each first semantic tag is less than a preset similarity threshold, determining supplementary information of the output field; and adding the supplementary information to the metadata description.

[0013] In one embodiment, determining the supplementary information of the output field includes: selecting the second semantic tag with the highest similarity to the business semantic tag from each first semantic tag; generating explanatory text based on the data processing and evolution relationship between the business semantic tag and the second semantic tag of the output field; and determining the supplementary information of the output field based on the second semantic tag and the explanatory text.

[0014] In one embodiment, nodes in the data lineage graph represent data entities in the original code data, and edges in the data lineage graph represent data flow relationships between different data entities. Determining the target dataset from the original code data based on the data lineage graph includes: extracting node embedding vectors of each node in the data lineage graph; determining the data boundaries of the data product based on the node embedding vectors; and determining the target dataset from each data entity based on the data boundaries.

[0015] In one embodiment, the method further includes: determining data participants associated with different target data entities in the data product based on the data lineage map; determining the contribution characteristics of the target data entity corresponding to each data participant for each data participant; and determining the contribution degree of each data participant based on the contribution characteristics of each data participant.

[0016] Secondly, this application also provides a data product generation apparatus, comprising:

[0017] The acquisition module is used to retrieve raw code data from different data sources;

[0018] The first generation module is used to parse the data flow relationships in the original code data and generate a data lineage map.

[0019] The first determination module is used to determine the target dataset from the original code data based on the data lineage map, and to determine the encapsulation information of the data product;

[0020] The second generation module is used to generate data products based on the target dataset and encapsulation information.

[0021] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0022] Obtain raw code data from different data sources;

[0023] Analyze the data flow relationships in the original code data to generate a data lineage graph;

[0024] Based on the data lineage map, the target dataset is determined from the original code data, as well as the encapsulation information of the target dataset;

[0025] Generate data products based on the target dataset and encapsulation information.

[0026] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps:

[0027] Obtain raw code data from different data sources;

[0028] Analyze the data flow relationships in the original code data to generate a data lineage graph;

[0029] Based on the data lineage map, the target dataset is determined from the original code data, as well as the encapsulation information of the target dataset;

[0030] Generate data products based on the target dataset and encapsulation information.

[0031] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, performs the following steps:

[0032] Obtain raw code data from different data sources;

[0033] Analyze the data flow relationships in the original code data to generate a data lineage graph;

[0034] Based on the data lineage map, the target dataset is determined from the original code data, as well as the encapsulation information of the target dataset;

[0035] Generate data products based on the target dataset and encapsulation information.

[0036] The aforementioned data product generation method, apparatus, equipment, and storage medium acquire raw code data from different data sources and analyze the data flow relationships within the raw code data to generate a data lineage graph. This explicitly transforms the data flow relationships scattered across different data sources and code files into a structured graph form, providing a structured data foundation for subsequent data entity identification and encapsulation information determination. Based on the data lineage graph, the target dataset and its encapsulation information are determined from the raw code data. Guided by the structured data lineage graph, the target dataset related to the data product is located from the raw code data, and encapsulation information matching the target dataset is generated. This couples the data product with the data flow relationships, reducing the risk of semantic fragmentation. By generating the data product based on the target dataset and encapsulation information, the target dataset possesses an understandable and usable form, achieving end-to-end construction from raw code data to the data product, which is beneficial for improving the data quality of the data product. Attached Figure Description

[0037] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0038] Figure 1 This is an application environment diagram of a data product generation method in one embodiment;

[0039] Figure 2 This is a flowchart illustrating a data product generation method in one embodiment;

[0040] Figure 3 This is a flowchart illustrating the steps for determining the target dataset in one embodiment;

[0041] Figure 4 This is a flowchart illustrating the contribution determination steps in one embodiment;

[0042] Figure 5 This is a flowchart illustrating a data product generation method in another embodiment;

[0043] Figure 6 This is a flowchart illustrating the data product generation method in yet another embodiment;

[0044] Figure 7 This is a structural block diagram of a data product generation device in one embodiment;

[0045] Figure 8This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0046] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0047] The data product generation method provided in this application embodiment can be applied to, for example... Figure 1 In the application environment shown, terminal 101 is connected to at least one data source 102 via a network. Data source 102 can be a multi-source system, such as ERP (Enterprise Resource Planning), CRM (Customer Relationship Management), and SCM (Supply Chain Management). Different systems can be deployed on different servers or data terminals, which can be held by different objects or the same object; this application does not impose any limitations on this.

[0048] With the development of data processing technology, data has become a key production factor. However, usable data within enterprises and across organizations is often scattered across multiple heterogeneous data sources, resulting in complex data processing chains and hidden lineages, making it difficult to discover usable data and leading to low productization levels. How to efficiently discover high-value usable data from massive amounts of raw data and transform it into standardized, reusable data products has become a core challenge in the field of data governance. Traditional data product generation methods typically employ retrieval and matching to discover and construct data products. This approach is prone to inaccurate matching results and semantic breaks, affecting the data quality of the data products.

[0049] In the data product generation method provided in this application embodiment, terminal 101 obtains raw code data from different data sources 102 and parses the data flow relationships in the raw code data to generate a data lineage graph. This explicitly transforms the data flow relationships scattered across different data sources and code files into a structured graph form, providing a structured data foundation for subsequent data entity identification and encapsulation information determination. Based on the data lineage graph, the target dataset and its encapsulation information are determined from the raw code data. Guided by the structured data lineage graph, the target dataset related to the data product is located from the raw code data, and encapsulation information matching the target dataset is generated. This couples the data product with the data flow relationships, reducing the risk of semantic fragmentation. By generating a data product based on the target dataset and encapsulation information, the target dataset has an understandable and usable form, achieving end-to-end construction from raw code data to the data product, which is beneficial for improving the data quality of the data product.

[0050] In one exemplary embodiment, such as Figure 2 As shown, a method for generating data products is provided, which can be applied to... Figure 1 Taking terminal 101 as an example, the explanation includes the following steps:

[0051] S201. Obtain raw code data from different data sources.

[0052] In this context, the data source can be understood as a system or platform that can generate raw code data; the raw code data can be understood as code files or scripts used to describe the logic of data extraction, transformation, loading, and processing.

[0053] For example, the data source may include at least one of ERP (Enterprise Resource Planning), CRM (Customer Relationship Management), and SCM (Supply Chain Management).

[0054] For example, the raw code data may include at least one of the following: SQL (Structured Query Language) code files, stored procedure definition data, and ETL (Extract-Transform-Load) task scripts.

[0055] S202. Analyze the data flow relationships in the original code data and generate a data lineage map.

[0056] Among them, the data flow relationship, also known as the data lineage relationship, is used to characterize the data source, flow direction and transformation relationship between different data entities in the original code data.

[0057] Among them, the data lineage graph can be understood as a structured representation used to describe the data flow relationships corresponding to the original code data.

[0058] For example, a data lineage graph can describe information such as the data source, flow, and transformation relationships between different data entities through a graph structure. The graph structure can include nodes and edges. Nodes in the data lineage graph represent different data entities, which are also known as data objects; edges in the data lineage graph represent the data flow relationships between different data entities. The graph structure can include a directed acyclic graph (DAG).

[0059] For example, a data entity may include at least one of the following: original table, intermediate table, view, and output field. Each node may have attached attribute information, which may include at least one of the following: the system to which the data entity belongs, data type, update frequency, and owner tag.

[0060] In some embodiments, the original code data can be preprocessed to obtain preprocessed code text; the code text can be parsed to generate a data lineage map.

[0061] Optionally, the database type or processing framework of the original code data can be identified, and the original code data can be preprocessed to obtain preprocessed code text. For example, the database type may include MySQL, PostgreSQL, Oracle, etc.; the processing framework may include Hive, SparkSQL, etc. This application does not impose any limitations on the specific database type or specific processing framework. For example, preprocessing may include standardization processing, which may include at least one of the following: case unification, comment removal, formatting, and preservation of semantic key information.

[0062] Optionally, the code text can be statically parsed, mixed parsed, and lineage integrated sequentially to generate a data lineage map.

[0063] For example, the static parsing step may include: invoking a static parser corresponding to the database type or processing framework to perform syntax parsing on the code text, generating an abstract syntax tree (AST) as a structured intermediate representation, and extracting code node expressions from the AST. Code nodes can be understood as syntactic units in the code text. Optionally, the AST may be traversed to extract a list of code node expressions, which includes at least one code node expression. Code node expressions may include at least one expression such as table references, column references, function calls, or subquery structures.

[0064] For example, the hybrid parsing step may include: determining the expression type of each code node expression, which may include a first type and a second type, where the complexity of the first type of code node expression is lower than that of the second type. For the first type of code node expression, a first lineage record of the data entity (e.g., a target field in the code text) corresponding to the code node expression is generated according to a preset generation method. For the second type of code node expression, the code fragment corresponding to the code node expression and its context information are extracted, and semantic understanding prompts are constructed. These semantic understanding prompts are then input into a large language model for deep semantic parsing to generate a second lineage record.

[0065] Optionally, the context information may include at least one of the following: target field alias, table alias mapping, referenced source field, etc.

[0066] Optionally, the first type can also be called a simple column reference type, and the code node expression of the first type can include at least one of the following: an expression for direct field projection or an expression for direct field renaming.

[0067] Optionally, the second type can also be called the complex expression type. The code node expressions of the second type can include expressions that contain features such as function calls, binary or multivariate arithmetic operations, conditional branching structures, conditional judgments, subqueries, and aggregate functions.

[0068] For example, the lineage integration step may include: integrating and deduplicating the first and second lineage records to generate a data lineage graph. The data lineage graph can be understood as a structured, field-level, end-to-end lineage graph. The set of nodes in the data lineage graph includes data entities (such as original tables, intermediate tables, views, and output fields); the set of edges represents data flow relationships. Each node can be appended with attribute information, including its system, data type, update frequency, and owner tag.

[0069] S203. Based on the data lineage map, determine the target dataset from the original code data, and determine the encapsulation information of the target dataset.

[0070] The target dataset can be understood as a collection of data entities selected from the original code data and to be packaged into a data product. The packaging information can be understood as a collection of information describing the data structure, data links, meaning, and usage of the target dataset (or data product).

[0071] For example, the number of target datasets is at least one, and the target datasets may include at least one target data entity, which may include at least one of the following: original table, intermediate table, view, and output field.

[0072] For example, the encapsulation information may include at least one of the following: processing link description, metadata description, and data service interface definition.

[0073] In some embodiments, the encapsulation information includes a processing link description; correspondingly, the lineage path between different target data entities in the target dataset can be determined based on the data lineage graph; the association information of each target data entity can be determined based on the lineage path, and the association information includes upstream data sources and downstream dependencies; the processing link description can be determined based on the association information of each target data entity.

[0074] For example, based on the lineage relationships between data entities in a data lineage graph, the upstream data sources and downstream dependencies of each target data entity in the target dataset can be automatically traced to generate a processing chain description of the data product. Optionally, upstream data sources may include original tables, intermediate tables, and processing scripts. Optionally, product boundaries can be determined based on the data lineage graph. For each target data entity (such as an output field) within the product boundary, the data lineage graph is traversed backwards to the original data source node to record the complete data flow path. This data flow path is also the lineage path between different target data entities (such as output fields) within the product boundary.

[0075] In other embodiments, the encapsulation information may include metadata descriptions; correspondingly, the lineage paths between different target data entities in the target dataset can be determined based on the data lineage graph; each target data entity is parsed to obtain descriptive information for each target data entity, including field description information and processing logic information; semantic understanding is performed on the lineage paths and the descriptive information of each target data entity to obtain the metadata description of the data product.

[0076] Optionally, each target data entity in the target dataset can be parsed to obtain field description information and processing logic information. A large language model can then be used to semantically understand the field description information, processing logic information, and lineage path, automatically generating standardized metadata descriptions. The metadata generation process is subject to the mandatory constraints of the causal chain of the data lineage graph. These constraints include: for any output field within the product boundary, its business definition can be traced back to the semantic source of at least one upstream original field through the lineage path. In other words, during the generation of the metadata description, a causal consistency verification rule can be performed. If the verification fails, a semantic break completion process is executed, i.e., supplementary information is determined and added to the metadata description.

[0077] Optionally, the lineage path includes a field-level lineage path, which is used to characterize the lineage path between output fields of different target data entities. Correspondingly, for each output field, the business semantic tag of the output field and the first semantic tag of at least one upstream field of the output field can be obtained. If the similarity between the business semantic tag and each first semantic tag is less than a preset similarity threshold, the supplementary information of the output field is determined. The supplementary information is added to the metadata description.

[0078] For example, causal consistency verification rules may include: setting the output field of the target data entity... The bloodline path is ,in For the original data source fields. For the output fields... Each business semantic tag There must be at least one upstream field. If the preset conditions are met, the system will automatically mark it as a semantic break and trigger the completion process if the conditions are not met. The preset conditions can be expressed as:

[0079] ;

[0080] in, Represents business semantic tags The first semantic tag of the i-th upstream field The similarity between them; The preset similarity threshold, also known as the semantic consistency threshold, can be 0.75.

[0081] For example, when a semantic break is detected, the large language model can be invoked to perform the following completion process: in the original field Retrieving from a set of semantic tags The most relevant candidate tags; generate an explanatory link text (i.e., supplementary information), which is used to explain... How to It evolved through intermediate processing steps; the completed semantic tags and explanatory text are added to the metadata description.

[0082] For example, metadata descriptions include, but are not limited to: data product name, business definition, business semantic description, field description, data quality tags, lineage, and usage restrictions. Metadata descriptions can be generated using a combination of template filling and custom generation. For instance, structured information in the metadata description (such as field names and data types) can be filled using templates, while business semantic descriptions can be generated using a large language model. All custom-generated semantic descriptions must pass the aforementioned causal consistency check.

[0083] For example, semantic breakage scenarios may include at least one of the following: the business meaning of a certain field cannot directly correspond to any upstream field; after a cross-system JOIN operation, the naming and business definition of the output field are changed, and there is a lack of explicit mapping annotations in between, resulting in semantic dissonance; after reclassifying, segmenting, or replacing outliers of upstream fields, the newly generated classification labels have significant semantic differences from the original continuous value fields; after data fusion from different business domains, the business context of the output field is inconsistent with any single upstream domain, resulting in semantic breakage.

[0084] In some other embodiments, the encapsulation information includes data service interface definitions; correspondingly, standardized data service interface definitions can be automatically generated based on the expected data access patterns of the data product, and the interfaces can be deployed as callable microservices. The interface definitions conform to the OpenAPI specification and include elements such as endpoint paths, request parameters (type, required fields, format constraints), response structures (field list, data type, example values), and authentication methods.

[0085] In some other embodiments, the encapsulation information may include the aforementioned processing link description, metadata description, supplementary information, and data service interface definition.

[0086] S204. Generate data products based on the target dataset and encapsulation information.

[0087] In this context, a data product can be understood as a data service unit that meets data security and privacy protection requirements and can be provided externally, formed by associating and combining a target dataset with encapsulated information. The target dataset in a data product originates from data entities parsed from the original code data. The original code data can be code data that complies with various compliance requirements.

[0088] In some embodiments, the target dataset can be encapsulated based on encapsulation information to obtain a data product. For example, target data entities in the target dataset can be associated with processing link descriptions, metadata descriptions, supplementary information, and data service interfaces in the encapsulation information to obtain a data product.

[0089] Optionally, the number of target datasets can be at least one; correspondingly, for each target dataset, the target dataset can be encapsulated according to the encapsulation information corresponding to the target dataset to obtain the data product corresponding to the target dataset.

[0090] In some embodiments, a complete data product definition can be output after user confirmation. The data product definition includes metadata and interface documentation.

[0091] The aforementioned data product generation method acquires raw code data from different data sources and analyzes the data flow relationships within this raw code data to generate a data lineage graph. This explicitly transforms the data flow relationships scattered across different data sources and code files into a structured graph form, providing a structured data foundation for subsequent data entity identification and encapsulation information determination. Based on the data lineage graph, the target dataset and its encapsulation information are determined from the raw code data. Guided by the structured data lineage graph, the target dataset related to the data product is located from the raw code data, and encapsulation information matching this target dataset is generated. This couples the data product with the data flow relationships, reducing the risk of semantic fragmentation. By generating the data product based on the target dataset and encapsulation information, the target dataset achieves an understandable and usable form, realizing end-to-end construction from raw code data to the data product, which is beneficial for improving the data quality of the data product.

[0092] Based on the technical solutions of the above embodiments, this application also provides an optional embodiment in which the steps for determining the target dataset are refined. In this optional embodiment, nodes in the data lineage graph represent data entities in the original code data, and edges in the data lineage graph represent data flow relationships between different data entities.

[0093] See Figure 3 The steps for determining the target dataset shown include:

[0094] S301. Extract the node embedding vector of each node in the data pedigree graph.

[0095] In some embodiments, the data lineage graph can be represented by a directed acyclic graph; correspondingly, the directed acyclic graph can be encoded into a low-dimensional embedding space representation through a graph attention network (GAT), and context-aware node embedding vectors for each node in the data lineage graph can be extracted.

[0096] For example, let the data lineage graph be G=(V,E); where V represents the set of nodes and E represents the set of edges. The initial feature vector h_v(0) of each node v∈V is encoded by the node's attribute information (such as data type, system, field length, etc.), and the node representation is iteratively updated through an L-layer graph attention network. The node representation can be a node embedding vector.

[0097] Optionally, the node embedding vector can be determined according to the following formula. :

[0098]

[0099] in, It is a non-linear activation function (such as ReLU); Represents the set of neighbors of node v (including incoming and outgoing neighbors). This represents the attention coefficient from node u to node v; Let L be the learnable weight matrix of the l-th layer; This represents the node embedding vector of the (l-1)th layer of node u.

[0100] After L layers of propagation, each node obtains a context-aware node embedding vector. Where d is the embedding dimension (which can be 64~256). Simultaneously, the global embedding representation of the entire graph can be obtained by aggregation using the readout function. That is, the global embedding vector, the global embedding representation. It can be represented as:

[0101]

[0102] Among them, the embedding space representation (such as the global embedding vector) has topological structure information and semantic attribute information, providing a unified data representation for downstream product packaging and value allocation.

[0103] Optionally, it can be determined using Softmax normalization. .in, It can be represented as:

[0104]

[0105] Where LeakyReLU represents the activation function; This represents the transpose of the learnable attention parameter vector; This represents a vector concatenation operation; Indicates an index variable.

[0106] S302. Determine the data boundaries of the data product based on the embedding vectors of each node.

[0107] In some embodiments, the embedding space can be based on the embedding vectors of each node. Community detection is performed to identify target datasets with high cohesion, and the data boundaries of data products are automatically recommended. A target dataset with high cohesion can be understood as a set of data entities with cohesion greater than a preset threshold.

[0108] Optionally, during community detection on the node embedding vector after GAT encoding, the initial partitioning result is iteratively optimized with the goal of maximizing the joint objective function, and the iteratively optimized partitioning result is used as the data boundary of the data product.

[0109] For example, let the community division result be... The optimization objective is to maximize the following joint objective function:

[0110]

[0111] in, Describe the joint objective function; Modularity measures the degree of deviation between the edge density within a community and the expected value of a random network. Indicates semantic consistency score; and Represents weights, for example , .

[0112] For example, modularity It can be represented as:

[0113]

[0114] in, This represents the total number of sides; These are elements of the adjacency matrix; Let i be the degree of node i; For nodes The degree; This is a community indicator function, which is 1 when nodes i and j belong to the same community, and 0 otherwise.

[0115] For example, a large language model can be used to evaluate the semantic similarity of kinship paths among nodes within a community, and a semantic consistency score can be determined based on the semantic similarity. . It can be represented as:

[0116]

[0117] in, The semantic similarity score output by the large language model ranges from [0,1]. For nodes A complete textual description of the lineage path, including all processing steps from the original data source to the node; For the community The representative path description can be determined by the cluster centers of paths within the community; Indicates the first A community.

[0118] S303. Based on the data boundaries, determine the target dataset from each data entity.

[0119] In some embodiments, the target data entity located within the data boundary can be used as the target data entity to obtain the target dataset.

[0120] In other embodiments, the data boundaries of candidate data products can be displayed in the interactive interface; in response to the adjustment operation of the candidate boundaries, the candidate boundaries are adjusted; in response to the confirmation operation of the candidate boundaries, the target data entities within the data boundaries are taken as target data entities to obtain the target dataset.

[0121] In another embodiment, adjustment feedback for the data boundary can be obtained; the community detection result and the adjustment feedback are passed to the GAT embedding layer, and the weight parameters of the graph attention network are updated through gradient descent to obtain the updated data boundary; the target data entities within the data boundary are taken as the target data entities to obtain the target dataset. Optionally, the feedback loss function can be expressed as:

[0122]

[0123] in, This represents the set of product boundary nodes confirmed by the user. Represents a data product as a vector; For the Sigmoid function. By minimizing Update GAT parameters to achieve end-to-end joint optimization of lineage analysis and product packaging.

[0124] Based on the technical solutions of the above embodiments, this application also provides an optional embodiment, in which a contribution determination step is added.

[0125] See Figure 4 The contribution determination steps shown include:

[0126] S401. Based on the data lineage map, determine the data participants associated with different target data entities in the data product.

[0127] For example, a data lineage map records the objective contribution characteristics of different data participants throughout the entire data production process.

[0128] For example, data participants can also be referred to as data participants; data participants may include at least one of the following: original data provider, data processor, data developer, and data intermediary.

[0129] In some embodiments, the data participants can be determined based on the owner tag in the metadata or metadata description, the user identifier in the operation log, or a preset subject-data asset mapping relationship.

[0130] S402. For each data participant, determine the contribution characteristics of the target data entity corresponding to the data participant.

[0131] In some embodiments, contribution characteristics may include objective contribution characteristics; objective contribution characteristics may include: the amount of original data provided. Depth of bloodline Node centrality Processing complexity and data quality level At least one of them.

[0132] For example, the amount of raw data provided This indicates the number of data units or records, which can be GB or millions of rows; lineage depth. The average depth of the data processing chain in which the data participants participate, with a value ranging from 1 to 10; node centrality. This represents the centrality value of the data entities owned by the data participants in the data lineage graph; processing complexity. This indicates the number of different types of operations performed on the data objects, such as aggregation, join, filtering, and window functions; and the data quality level. This represents the data quality level, which is a weighted score based on indicators such as completeness, accuracy, and consistency, and its value ranges from [0,1].

[0133] For example, data quality levels can be determined based on at least one of the following: NULL rate, field fill rate, matching rate with the reference master data, regular expression compliance rate, consistency of value distribution for the same field across tables (measured by hash or statistical distribution distance), referential integrity (foreign key missing rate), and data update latency (timestamp difference from generation in the source system to entry into the warehouse). Optionally, the weights of each of the above dimensions can be objectively determined using the entropy weight method or principal component analysis (PCA) to generate a comprehensive quality score in the [0,1] interval. The weights can be determined by the information entropy of the data itself.

[0134] For example, processing complexity can be obtained by statically parsing the Abstract Syntax Tree (AST) of all ETL scripts / SQL along the lineage path and automatically calculating objective technical metrics for operation node types. Optionally, processing complexity can be determined based on at least one of the following: the number of aggregate functions, the number of JOIN operations, the number of window functions, the number of conditional branches, the number of nested subqueries, the number of custom function calls, the maximum path depth from the leaf node (source field) to the root node (target field) in the AST, the number of different source tables involved in a single processing link, and the number of field mapping relationships. These metrics can be automatically extracted from the code by the static parser.

[0135] S403. Determine the contribution level of each data participant based on their contribution characteristics.

[0136] In some embodiments, the contribution of each data participant can be determined based on the objective contribution characteristics of each data participant.

[0137] In other embodiments, the contribution level of each data participant can be determined based on the objective contribution characteristics of each data participant and the private contribution characteristics declared by each data participant.

[0138] For example, the objective contribution characteristics of each data participant can be used as public signals, which represent verifiable and tamper-proof contribution characteristics or objective measurements; the private contribution characteristics of each data participant can be obtained through the Secure Multi-Party Computation (SMPC) protocol, which are also known as private information; and the contribution degree of each data participant can be determined based on the contribution characteristics and private contribution characteristics of each data participant.

[0139] Optionally, the public signal can be represented as:

[0140] .

[0141] Optionally, private information (i.e., private declarations) can be represented as:

[0142]

[0143] in, This represents the actual cost of data processing, including storage costs, computing costs, and labor costs, expressed in yuan / GB. This indicates the price or cost of an external alternative solution, which is the highest external price or cost that the data participant could obtain without participating in this system, expressed in yuan. This represents a self-assessment of data quality, i.e., the data participant's honest evaluation of its own data quality, with a value range of [0,1]. Private information may include... , and At least one of the following.

[0144] In some embodiments, a mechanism for allocating public signals and private information can be used. Determine the contribution ratio among the various data participants. and the transfer contributions of each data participant. In other embodiments, the contribution ratio can also be used as the revenue distribution ratio, and the transferred contribution can also be used as a transfer payment.

[0145] In some embodiments, the constraints of the allocation mechanism may include at least one of individual rationality constraints, incentive compatibility constraints, and budget balance constraints.

[0146] For example, the individual rationality constraint is used to ensure that the expected return of each subject (i.e., the data participant) is not less than the value of its external alternatives. The individual rationality constraint can be expressed as:

[0147]

[0148] in, For the total revenue of data products, Private feature vectors of all subjects .

[0149] For example, incentive compatibility constraints are used to constrain each entity to truthfully declare private information as a dominant strategy; incentive compatibility constraints can be expressed as:

[0150]

[0151] Among them, all possible false reports Established.

[0152] For example, a budget balance constraint is used to ensure that the total allocation does not exceed the total revenue; a budget balance constraint can be expressed as:

[0153]

[0154] Where M represents the number of subjects.

[0155] In some embodiments, the allocation mechanism may employ an extended form of the VCG (Vickrey-Clarke-Groves Mechanism). This involves publicizing the signal. As a verifiable weighting adjustment factor, private declarations will be used. As a type correction factor. The allocation function can be defined as:

[0156]

[0157] in, This represents the weighting function.

[0158] For example, weight function The weighting function can be determined by combining publicly available signals and private declarations. It can be represented as:

[0159]

[0160] in, To obtain a standardized score for a public signal, the weights of each dimension can be determined using the entropy weight method or principal component analysis (PCA) before calculating the overall score. The scoring function for private applications can calculate the net contribution based on processing costs, external quotations, and quality assessments. The weight of the public signal, for example, is 0.6, reflecting the degree of importance attached to objective characteristics.

[0161] For example, the net contribution can be determined according to the following formula:

[0162]

[0163] in, For example, coefficients , , .

[0164] In some embodiments, transfer contribution (Or transfer payments) could take the form of a variant of the Clarke Tax, which penalizes entities that cause negative externalities:

[0165]

[0166] in, For vectors that do not contain subject i's declaration, ensure that subjects who falsely report private information will be punished, thereby incentivizing truthful reporting.

[0167] In some embodiments, a visual contribution allocation scheme recommendation (or revenue allocation scheme recommendation) can be generated based on the calculation results, and the allocation basis (including details of public signals, private declaration parameters, marginal contribution values, allocation ratios, etc. of each entity) can be displayed through an interactive interface, supporting participants to view and confirm. The allocation scheme is output in the form of a ratio vector, satisfying the normalization constraint that the sum is 1.

[0168] In some embodiments, the authenticity of private information declared by each entity can be verified through actual data processing logs (execution time, resource consumption, data quality monitoring indicators) along the data lineage path. If false reporting is detected (e.g., the declared cost is significantly higher than the actual log record), a penalty mechanism is automatically triggered.

[0169]

[0170] in, Actual cost; This is the penalty coefficient (which can be 2.0).

[0171] In some embodiments, the data product definition, packaging configuration, and revenue distribution plan confirmed by the user can be fed back to the system knowledge base to optimize subsequent lineage analysis, product packaging, and distribution recommendations.

[0172] For example, a product catalog library can be built, storing user-confirmed data product information as a reference template for subsequent encapsulation of similar data products. The product information is stored using vectorized representation, supporting semantic similarity-based retrieval and matching.

[0173] For example, a distribution case library can be constructed, storing profit distribution plans confirmed by multiple participants and their corresponding public signals and private declaration parameters in the distribution case library, which can be used to optimize the weight of public signals. Private declaration scoring coefficient and penalty coefficient The accumulation of case studies enables the system to provide more accurate initial recommendations for new scenarios through analogical reasoning.

[0174] For example, the parsing model can be continuously optimized, with periodic or incremental updates to the lineage parsing model. This includes optimizing the prompt word templates and expanding the parsing rules of the large language model to adapt to new SQL dialects, stored procedure types, and data processing patterns, thereby enabling the system to continuously evolve. Simultaneously, the GAT network weight parameters are iteratively updated through joint optimization feedback.

[0175] The aforementioned weighting parameters, scoring coefficients, and penalty coefficients can be automatically optimized and determined through machine learning or statistical regression based on the correlation between publicly available signals in the historical allocation case library and the actual contributions verified afterward. Alternatively, they can be automatically tuned based on feedback iterations from historical allocation cases by minimizing the false alarm rate in the post-verification process; these are the hyperparameters obtained during model training.

[0176] In one exemplary embodiment, a data product generation system is provided, which can also be called a data product full lifecycle intelligent construction system based on large model lineage reasoning and incomplete information game theory. This data product generation system may include: a data lineage parsing and embedding encoding module, a data product encapsulation module, a knowledge accumulation module, and an interactive display module.

[0177] For example, the data lineage parsing and embedding encoding module is configured with a static parser, a large language model interface, and a graph attention network encoder to parse ETL scripts, SQL statements, and stored procedures in heterogeneous environments, generate a structured end-to-end data lineage graph, and encode the graph into a low-dimensional embedding space representation. This module supports multi-threaded parallel parsing and can handle terabyte-scale code files.

[0178] For example, the data product encapsulation module is connected to the lineage resolution module. It receives the embedded space representation as input, performs community detection and boundary recommendation in the embedded space, automatically generates standardized metadata descriptions and service interface definitions constrained by lineage path causality, and supports interactive adjustment and confirmation by the user. This module has a built-in joint optimization engine and interface code generator.

[0179] For example, the value allocation module is connected to the lineage analysis module. Based on the objective contribution characteristics of participating entities recorded in the lineage graph as public signals, it collects private information through a secure multi-party computation protocol, calculates incentive-compatible contribution allocation schemes (or benefit allocation schemes) using mechanism design theory, and generates visualized allocation criteria and recommendation results. This module includes a contribution quantification engine, a VCG mechanism calculation engine, and a post-verification engine.

[0180] For example, the knowledge accumulation module is connected to the encapsulation module and the value allocation module. It is used to store user-confirmed data product definitions, encapsulation templates, and allocation cases, and supports iterative optimization of the parsing model, embedded encoder, and evaluation model. This module adopts a hybrid storage architecture of vector database and graph database.

[0181] For example, the interactive display module provides a graphical user interface to display the lineage graph, embedded spatial clustering results, candidate boundaries for data products, metadata previews, service interface documentation, and contribution allocation schemes, and receives user confirmation, correction, and adjustment commands. This module supports interactive operations such as zooming, dragging, and node highlighting of the lineage graph.

[0182] refer to Figure 5 The following is a data product generation method illustrated in another embodiment: Data flows are input from the data source layer (ERP, CRM, SCM systems, and ETL scripts), and GAT encoding is performed through a data lineage analysis and embedding encoding module to generate embedding vectors and lineage graphs. The embedding vectors are input to a product encapsulation module, where embedding space community detection is performed, and causal constraint metadata is generated, ultimately encapsulating the data product. The product definition of the data product is input to a knowledge accumulation module, and iterative optimization of the parsing model, embedding encoder, and evaluation model is implemented based on historical cases. Simultaneously, the lineage graph is input to a value allocation module for contribution or benefit allocation, and post-event verification is performed based on a VGC mechanism. Users can view and confirm the data through an interactive display module, as well as make allocation corrections, joint optimization feedback, and boundary adjustments.

[0183] The above process achieves an embedded-driven closed loop. The output of the data lineage analysis and embedding encoding modules (embedding space representation) directly drives the community detection of the data product encapsulation module and the public signal extraction of the value allocation module, realizing deep coupling from data discovery to productization and value allocation. Confirmation or correction operations performed through the interactive display module serve as feedback signals, which are then transmitted back to the GAT embedding encoding layer, driving joint optimization and iteration of the embedding space. The VCG mechanism design of the value allocation module ensures that each entity truthfully declares private information. The post-event verification engine verifies the authenticity of the declarations through logs and executes penalties, forming a long-term incentive closed loop and achieving an incentive-compatible closed loop. The knowledge accumulation module provides historical case retrieval support for the encapsulation and value allocation modules, forming a continuously evolving intelligent cycle. Finally, by outputting the data product definition and allocation scheme confirmed by the interactive display module, the rationality of the data product boundaries and the fairness of the allocation results are ensured.

[0184] Based on the technical solutions of the above embodiments, this application also provides an optional embodiment in which the above data product generation method is described in detail.

[0185] refer to Figure 6 The following is a data product generation method in another embodiment, including:

[0186] S601. Obtain raw code data from different data sources.

[0187] S602. Analyze the data flow relationships in the original code data and generate a data lineage map.

[0188] In the data lineage graph, nodes represent data entities in the original code data, and edges represent data flow relationships between different data entities.

[0189] S603. Extract the node embedding vector of each node in the data pedigree graph.

[0190] S604. Determine the data boundaries of the data product based on the embedding vectors of each node.

[0191] S605. Based on the data boundaries, determine the target dataset from each data entity.

[0192] S606. Based on the data lineage map, determine the lineage paths between different target data entities in the target dataset.

[0193] S607. Based on the lineage path, determine the association information of each target data entity. The association information includes the upstream data source and the downstream dependency relationship.

[0194] S608. Determine the processing link description based on the association information of each target data entity.

[0195] S609. Parse each target data entity to obtain the description information of each target data entity. The description information includes field description information and processing logic information.

[0196] S610. Perform semantic understanding on the lineage path and the descriptive information of each target data entity to obtain the metadata description of the target dataset.

[0197] S611. For each output field, obtain the business semantic tag of the output field and the first semantic tag of at least one upstream field of the output field.

[0198] S612. If the similarity between the business semantic tag and each first semantic tag is less than the preset similarity threshold, determine the supplementary information of the output field.

[0199] S613. Add supplementary information to the metadata description.

[0200] For example, a second semantic tag with the highest similarity to the business semantic tag can be selected from each first semantic tag; an explanatory text can be generated based on the data processing and evolution relationship between the business semantic tag and the second semantic tag of the output field; and supplementary information of the output field can be determined based on the second semantic tag and the explanatory text.

[0201] S614. Generate data products based on the target dataset, the processing link description of the target dataset, the metadata description, and the interface definition.

[0202] To facilitate understanding, the above data product generation methods are illustrated below using scenarios one, two, and three as examples. It should be noted that this should not be interpreted as a limitation on the implementation scenarios.

[0203] Scenario 1: A company's data platform needs to build a supply chain risk early warning data product, involving multiple source systems such as ERP, CRM, and SCM, as well as a large number of ETL scripts. The participating entities include the original data providers (various business units), the data processing party (data platform team), and the data development party (algorithm team).

[0204] Inputs: Original table definition, ETL script (Hive SQL / Spark SQL), intermediate table structure, product requirements document.

[0205] The data processing procedure for scenario one above includes:

[0206] Lineage analysis and embedding encoding: Collected SQL scripts are standardized and statically parsed to generate an AST (Abstract Syntax Tree). A first lineage graph is generated for simple projection rules, and complex expressions (including aggregations, window functions, and subqueries) are parsed using a large language model (such as CodeLlama) to obtain a second lineage graph. The resulting field-level end-to-end lineage graph is then integrated and output. Subsequently, the graph is encoded into node embedding vectors using a 3-layer GAT (128 hidden dimensions), giving each node a 128-dimensional context-aware representation.

[0207] Embedded Space Product Encapsulation: Community Detection in a 128-Dimensional Embedded Space, with Joint Objective Function Weights , The system recommends product boundaries (user-adjustable). It automatically traces upstream and downstream dependencies and generates processing chain descriptions. When generating metadata for large models, it performs causal consistency checks (threshold verification). It can automatically complete semantic breaks and generate OpenAPI service interfaces.

[0208] Incentive-compatible value allocation: Public signals are automatically extracted from the lineage graph, including the data volume, path depth, node centrality, operational complexity, and data quality of each entity; each entity submits private information through SMPC, including processing costs. External Quotations Quality self-assessment Public signal weights Private declaration scoring coefficient , , After calculating the weights of each entity, the allocation ratio is obtained by normalization. A Clarke tax transfer payment is introduced to levy punitive transfer payments on entities that make false claims. Cost declarations are verified through logs; false claims trigger penalties. ).

[0209] Closed-loop data storage: Once confirmed, the data product definition, allocation scheme, and GAT feedback parameters are stored in the knowledge base, which can be reused for similar products in the future.

[0210] Expected results: Embedded spatial community detection improves the accuracy of product boundary recommendations, eliminates semantic breaks based on causal chain-constrained metadata, and shortens the data product development cycle.

[0211] Scenario 2: A platform aggregates traffic statistics, meteorological, and road network data from three service providers to jointly develop data products related to intelligent traffic flow prediction.

[0212] Input: Original data samples from various service providers, cleaning / aggregation scripts (Python), and platform fusion algorithm code.

[0213] The data processing procedure for scenario two above includes:

[0214] Lineage analysis: Cross-service provider parsing and processing scripts identifies the origins of final product fields from original tables and platform-derived fields of different service providers. After generating the lineage graph, it is encoded into embedding vectors using GAT.

[0215] Product encapsulation: The embedded space recommends product boundaries (including third-party fields and platform integration features), generates metadata (indicating the source organization of fields), and provides API interfaces (supporting time / region queries). Causal consistency checks ensure that the semantics of each output field are traceable to the original data source.

[0216] Value allocation: Obtain public signals and private declarations; calculate the weights of public signals and private declarations, and normalize them to obtain the allocation ratio. For example, service provider A's contribution allocation is 23%; B's contribution allocation is 28%; C's contribution allocation is 21%; and the platform's contribution allocation is 28%. Track actual resource consumption through platform logs to verify the authenticity of cost declarations.

[0217] Among them, service provider A has a data volume of 500GB, a path depth of 3, a centrality of 0.25, an operational complexity of 5, and a quality score of 0.92.

[0218] Among them, service provider B has a data volume of 800GB, a path depth of 4, a centrality of 0.30, an operational complexity of 7, and a quality score of 0.88.

[0219] Among them, service provider C has a data volume of 600GB, a path depth of 2, a centrality of 0.20, an operational complexity of 4, and a quality score of 0.90.

[0220] The platform has an operational complexity of 8 and a centrality of 0.35.

[0221] Closed-loop data storage: After the allocation plan is confirmed by all parties, it is stored in the case library, and the weight template can be reused for similar products in the future.

[0222] Scenario 3: Three hospitals jointly develop a predictive model for chronic disease comorbidity.

[0223] Input: Feature engineering SQL for each hospital, training logs (gradient contribution weights), and model evaluation reports.

[0224] The data processing procedure for scenario three above includes:

[0225] Lineage analysis: Parse the SQL statements of each hospital to generate field-level lineage graphs; parse the gradient contributions in the training logs and store the weighted values ​​for each round into the edge attributes of the graph. During GAT encoding, the edge attributes (gradient weights) are used as additional input to the attention coefficients, so that the embedding representation includes gradient contribution information from training.

[0226] Product encapsulation: The trained model is encapsulated as a chronic disease prediction service, automatically generating metadata (including descriptions of the sources of each input feature) and interface definitions. Causal consistency verification ensures that the semantics of the model output are consistent with the semantic sources of the input features.

[0227] Value Allocation: Public signals include the number of features, feature importance (derived from the model via SHAP values), average gradient contribution, and data quality indicators (summary statistics calculated locally by each hospital and then reported). Private declarations involve each hospital's local data processing costs, external collaboration quotes, and self-assessment of data quality (SMPC assurance). Objective indicators such as gradient contribution and feature importance are used as public signals, while costs and quotes are used as private declarations. Allocation ratios are calculated using a VCG mechanism to ensure that truthful declarations are the dominant strategy. Post-Verification: Gradient contribution logs from each hospital are verified using a secure aggregation protocol, and compared with the declared values ​​to detect false reporting.

[0228] Closed-loop data storage: Once the allocation plan is confirmed, it is stored in the knowledge base, and new contributions can be quickly simulated when a new organization joins.

[0229] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0230] Based on the same inventive concept, this application also provides a data product generation apparatus for implementing the data product generation method described above. The solution provided by this apparatus is similar to the implementation described in the above method; therefore, the specific limitations in one or more data product generation apparatus embodiments provided below can be found in the limitations of the data product generation method described above, and will not be repeated here.

[0231] In one exemplary embodiment, such as Figure 7 As shown, a data product generation apparatus is provided, comprising: an acquisition module 701, a first generation module 702, a first determination module 703, and a second generation module 704, wherein:

[0232] Module 701 is used to obtain raw code data from different data sources;

[0233] The first generation module 702 is used to parse the data flow relationship in the original code data and generate a data lineage map;

[0234] The first determining module 703 is used to determine the target dataset from the original code data based on the data lineage map, and to determine the encapsulation information of the target dataset;

[0235] The second generation module 704 is used to generate data products based on the target dataset and encapsulation information.

[0236] In some embodiments, the determining module 703 includes: a first determining unit, which determines the lineage path between different target data entities in the target dataset based on the data lineage map; a second determining unit, which determines the association information of each target data entity based on the lineage path, the association information including upstream data source and downstream dependency; and a third determining unit, which determines the processing link description based on the association information of each target data entity.

[0237] In some embodiments, the first determining module 703 includes: a fourth determining unit, which determines the lineage path between different target data entities in the target dataset based on the data lineage map; a parsing unit, which parses each target data entity to obtain description information of each target data entity, the description information including field description information and processing logic information; and a semantic understanding unit, which performs semantic understanding on the lineage path and the description information of each target data entity to obtain metadata description of the data product.

[0238] In some embodiments, the lineage path includes a field-level lineage path, which is used to characterize the lineage path between output fields of different target data entities; the first determining module 703 further includes: a first obtaining unit, used to obtain, for each output field, a business semantic tag of the output field and a first semantic tag of at least one upstream field of the output field; a fifth determining unit, used to determine supplementary information of the output field when the similarity between the business semantic tag and each first semantic tag is less than a preset similarity threshold; and an adding unit, used to add the supplementary information to the metadata description.

[0239] In some embodiments, the fifth determining unit includes: a selection subunit, configured to select a second semantic tag from each first semantic tag that has the highest similarity to the business semantic tag; a generation subunit, configured to generate explanatory text based on the data processing and evolution relationship between the business semantic tag and the second semantic tag of the output field; and a determining subunit, configured to determine supplementary information of the output field based on the second semantic tag and the explanatory text.

[0240] In some embodiments, nodes in the data lineage graph represent data entities in the original code data, and edges in the data lineage graph represent data flow relationships between different data entities; the first determining module 703 includes: an extraction unit for extracting node embedding vectors of each node in the data lineage graph; a sixth determining unit for determining the data boundaries of the data product based on the node embedding vectors; and a seventh determining unit for determining the target dataset from each data entity based on the data boundaries.

[0241] In some embodiments, the above apparatus further includes: a second determining module for determining data participants associated with different target data entities in the data product based on the data lineage map; a third determining module for determining the contribution characteristics of the target data entity corresponding to each data participant; and a fourth determining module for determining the contribution degree of each data participant based on the contribution characteristics of each data participant.

[0242] Each module in the aforementioned data product generation device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.

[0243] In one exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 8As shown, the computer device includes a processor, memory, input / output interface, communication interface, display unit, and input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interface. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input / output interface is used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, Near Field Communication (NFC), or other technologies. When the computer program is executed by the processor, it implements a data product generation method. The display unit is used to form a visually visible image and can be a display screen, projection device, or virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.

[0244] Those skilled in the art will understand that Figure 8 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0245] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.

[0246] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above method embodiments.

[0247] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.

[0248] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.

[0249] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0250] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A method for generating data products, characterized in that, The method includes: Obtain raw code data from different data sources; Analyze the data flow relationships in the original code data to generate a data lineage graph; Based on the data lineage map, the target dataset is determined from the original code data, and the encapsulation information of the target dataset is also determined; A data product is generated based on the target dataset and the encapsulation information.

2. The method according to claim 1, characterized in that, The encapsulation information includes a processing link description; determining the encapsulation information of the target dataset includes: Based on the data lineage map, determine the lineage paths between different target data entities in the target dataset; Based on the lineage path, the association information of each target data entity is determined, and the association information includes upstream data sources and downstream dependencies; The processing link description is determined based on the association information of each target data entity.

3. The method according to claim 1, characterized in that, The encapsulation information includes metadata description; determining the encapsulation information of the target dataset includes: Based on the data lineage map, determine the lineage paths between different target data entities in the target dataset; Each of the target data entities is parsed to obtain the description information of each target data entity, the description information including field description information and processing logic information; Semantic understanding is performed on the lineage path and the description information of each target data entity to obtain the metadata description of the target dataset.

4. The method according to claim 3, characterized in that, The lineage path includes a field-level lineage path, which is used to characterize the lineage path between output fields of different target data entities; the method further includes: For each output field, obtain the business semantic tag of the output field, and the first semantic tag of at least one upstream field of the output field; If the similarity between the business semantic tag and each of the first semantic tags is less than a preset similarity threshold, the supplementary information of the output field is determined. Add the supplementary information to the metadata description.

5. The method according to claim 4, characterized in that, The supplementary information for determining the output field includes: Select the second semantic tag with the highest similarity to the business semantic tag from each of the first semantic tags; Based on the data processing and evolution relationship between the business semantic tags of the output field and the second semantic tags, an explanatory text is generated; Based on the second semantic tag and the explanatory text, supplementary information for the output field is determined.

6. The method according to any one of claims 1-5, characterized in that, The nodes in the data lineage graph represent data entities in the original code data, and the edges in the data lineage graph represent the data flow relationships between different data entities; The step of determining the target dataset from the original code data based on the data lineage map includes: Extract the node embedding vector of each node in the data pedigree graph; The data boundaries of the data product are determined based on the embedding vectors of each node. Based on the data boundaries, the target dataset is determined from each of the data entities.

7. The method according to any one of claims 1-5, characterized in that, The method further includes: Based on the data lineage map, determine the data participants associated with different target data entities in the data product; For each data participant, determine the contribution characteristics of the target data entity corresponding to the data participant; The contribution degree of each data participant is determined based on its contribution characteristics.

8. A data product generation device, characterized in that, The device includes: The acquisition module is used to retrieve raw code data from different data sources; The first generation module is used to parse the data flow relationship in the original code data and generate a data lineage map; The first determining module is used to determine the target dataset from the original code data based on the data lineage map, and to determine the encapsulation information of the target dataset; The second generation module is used to generate data products based on the target dataset and the encapsulation information.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.