Metadata Collection and Management Methods
Through the metadata collection and management method, the problem of poor timeliness of data asset inventory relying on manual and source database updates is solved, the linkage of data access and inventory is realized, and the latest guarantee of data assets is achieved, improving efficiency and accuracy.
Patent Information
- Application Number
- CN202410814595.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-06-24
AI Technical Summary
In the existing technology, data asset inventory relies on manual completion, resulting in errors and lags between online data access and offline inventory. The linkage between source database updates and asset inventory has poor timeliness, and there is no guarantee that the released data assets will be updated at any time. Latest version.
Adopt metadata collection and management methods, including offline data inventory, data access, metadata merging, difference processing, and regular source database updates. Metadata extraction and monitoring are realized through the data integration tool CDM to ensure the latest data assets. .
It realizes the linkage between data access and inventory work, improves the timeliness of metadata monitoring and data asset release, reduces workload and efficiency, and avoids the synchronization between offline inventory and online access and the source database update and Differences caused by out-of-synchronization of asset inventory.
Smart Images

Figure CN118377770B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data asset management, and in particular to a metadata collection and management method. Background Art
[0002] Data assets refer to data resources recorded in physical or electronic form, such as documents, electronic data, etc., that are owned or managed by an enterprise and can bring future economic benefits to the enterprise. In fact, effective and appropriate management is required to condense data into data assets. Data asset inventory is the process of systematically combing the stock data, matching it with data standards, and promoting the transformation of data resources into data assets.
[0003] In the data governance architecture, data asset inventory is located between the underlying data and data management and application, and is in an important position to connect the upper and lower levels. It supports the construction of functions such as data security management and data applications oriented to value discovery, and realizes the sorting of underlying data and docking with data standards to achieve the goal of "unified data standards" within the enterprise. At present, it is still difficult to achieve complete automation of data asset inventory. It requires automated data access and some manual offline inventory. However, there is often a problem that the assets accessed by data are not synchronized with the assets counted offline, and manual comparison is required to process the difference data; in addition, the linkage timeliness between the source database update and the asset inventory is poor, and there is often a lag, resulting in the data assets released after the inventory not being the latest version. Therefore, it is necessary to design metadata collection and management methods to solve the above problems. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a metadata collection and management method to solve the problem that data asset inventory in the prior art relies on manual completion, there are errors and lags between online data access and offline data inventory, and the linkage timeliness between source database updates and asset inventory is poor, and it is impossible to ensure that the published data assets are updated to the latest version at any time.
[0005] In order to solve the above technical problems, the technical solution adopted by the present invention is:
[0006] Metadata collection and management methods, including:
[0007] S1, conduct offline data inventory, obtain business metadata and management metadata of metadata table, the obtained metadata is called offline inventory metadata;
[0008] S2, based on the offline data inventory scope, collects the corresponding metadata tables from the source end and enters the data lake to achieve data access;
[0009] S3, extracting technical metadata from the metadata table after data access based on the data integration tool CDM. The obtained metadata is called lake-entry metadata.
[0010] S4, merging the business metadata and management metadata in the offline inventory metadata with the technical metadata of the lake-entering metadata to form metadata to be published;
[0011] S5, compare and monitor the metadata to be published, list and process the differences of various data;
[0012] S6, according to the business classification and meta-model requirements, the metadata to be released after step S5 is combined with the inventory scope, and the management metadata, business metadata and blood relationship are supplemented manually, and after review, the data asset metadata information to be released to the outside is formed;
[0013] S7, based on the data collection capability and network integration environment of the data integration tool CDM, collects the latest source metadata by database type in the form of SQL query to obtain source database metadata; and regularly updates source database metadata through regular collection;
[0014] Regularly compare the updated source database metadata with the metadata to be published, and update the metadata to be published.
[0015] Preferably, in step S3, the extraction of technical metadata from the access metadata table includes:
[0016] To batch obtain source metadata information by database type, obtain metadata for each data source by database type. First, query the database type and database link information of each type in the current data collection tool connection information.
[0017] Secondly, we create different basic tables according to the database type, and use the Spark SQL script to batch obtain the full metadata information of each database for storage, with full coverage each time.
[0018] Finally, a unified metadata reference table is formed according to the metadata monitoring and management requirements, and the metadata basic table data of each database type is summarized to form the metadata of each database for unified external services.
[0019] Preferably, in step S3, the reference table includes the English name of the database, the schema name, the English name of the data table, the data table comment, the field name, the field comment, the data type, the data length, whether it is a primary key, whether it is empty, and the creation time.
[0020] Preferably, in step S5, the metadata to be published is compared and monitored, and various data differences are listed and processed, including:
[0021] S501, compare the metadata entering the lake with the processed metadata version to be released, obtain the library table information of the metadata entering the lake and the processed metadata to be released every day, and compare the data differences. The difference types include three situations: data access but not inventory, data inventory but different from the access data, and data inventory but not accessed;
[0022] S502, a list of various types of data differences after comparison is formed, and the data asset management side processes them one by one by screening the difference type and data source.
[0023] Preferably, the data asset management side screens the difference types and data sources, and processes them one by one, with the priority being from high to low, namely, data accessed but not counted, data counted but not accessed, and data counted but different from accessed data; the differences are marked on a daily basis.
[0024] Preferably, the mark types for mark processing include ignore, wait for data access, wait for inventory release and close difference;
[0025] Ignore: The differences confirmed in advance with the business side are ignored.
[0026] Waiting for data access: If there are missing tables in data access, feedback is given to the data collection side for data supplementation;
[0027] To be released after inventory: For those with urgent data sharing needs, data access is prioritized, but if the inventory is not kept up, the inventory will be released first;
[0028] Difference closure: The system compares differences once a day. For differences that have been processed on the same day, the differences are marked as closed in batches. If the system finds that the previous differences have been processed after daily comparison, they are automatically marked as closed.
[0029] Preferably, in step S6, the data asset metadata information released to the outside includes business classification, data classification, business meaning, asset code, management unit, management department, data source, time range, business coverage, security classification, sharing conditions, table label, table Chinese name, table English name, update frequency, release time, field English name, field Chinese name, field data type, whether it is a primary key and whether it is empty.
[0030] Preferably, in step S7, the updated source database metadata is periodically compared with the metadata to be published, and the specific method is:
[0031] S701, according to the data asset metadata information published based on the metadata to be published in step S6, the data asset management side identifies whether the data table in b is included in the asset. According to the identification result, the data table can be divided into three categories: data tables identified as included in the asset, data tables identified as not included in the asset, and unidentified data tables;
[0032] S702, judging the three types of data tables to form a difference table list for planned inventory;
[0033] S703, the difference table list of the planned inventory is initiated according to the system online inventory process, and the process of steps S1-S6 is executed to update the metadata to be published.
[0034] Preferably, in step S702, three types of data tables are judged to form a difference table list for planned inventory counting, including:
[0035] A. Determine whether the data table marked as included in the asset has been counted. If it has been counted, compare the fields to determine whether there are any changes. If there are any changes, add the data table to the difference table list. If there are no changes, do not process it.
[0036] If there is no inventory, only table difference comparison is performed, and the data table is added to the difference table list;
[0037] B. For data tables that are not included in assets, directly update the differences to the baseline metadata of the table and update the baseline metadata version;
[0038] C. For unmarked data tables, a problem record is formed by combining them according to the system. The data asset management side sends the problem record to the docking person of the system online. The docking side of the system marks the received difference record as "whether it is planned to be counted". If it is planned to be counted, the data table is added to the difference table list;
[0039] If you do not plan to take an inventory, please explain the reason. After submission, the data asset management side will review it. If the review is passed, the comparison difference information will be updated to the baseline metadata version.
[0040] Preferably, the metadata in the source database is used as the baseline metadata version of each system, and the source database metadata is updated regularly; every preset period, the latest version of the source database metadata is compared with the metadata to be published to ensure that the metadata to be published is the latest version.
[0041] The beneficial effects of the metadata collection and management method provided by the present invention are as follows:
[0042] 1. The present invention realizes the linkage between data access and data asset inventory by comparing the metadata of the data entering the lake with the metadata of the inventory-published assets; and realizes the linkage between metadata monitoring and data asset inventory and release by monitoring the metadata differences on the source business system side and comparing the metadata of the inventory-published assets.
[0043] 2. The present invention can realize metadata collection in batches according to the source database type of each system through the data lake collection and integration capabilities. This collection method has lower implementation workload and higher efficiency, and there is no need to configure the collection operation of a single data source.
[0044] 3. The present invention can effectively avoid the differences caused by the asynchrony between offline inventory and online data access by comparing the metadata entering the lake with the metadata to be released and correcting the differences according to the comparison results; by regularly updating the source database and regularly comparing the source database with the metadata to be released, and re-inventorying the difference table according to the comparison results, it can effectively avoid the problem that the published data assets are not the latest version due to the asynchrony between the source database update and the asset inventory. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] The present invention will be further described below in conjunction with the accompanying drawings and embodiments:
[0046] Figure 1 It is a schematic diagram of the process framework according to the present invention. DETAILED DESCRIPTION
[0047] Embodiment 1:
[0048] like Figure 1 As shown, the metadata collection and management method includes:
[0049] S1, conduct offline data inventory, obtain business metadata and management metadata of metadata table, the obtained metadata is called offline inventory metadata ;
[0050] S2, based on the offline data inventory scope, collects the corresponding metadata tables from the source end and enters the data lake to achieve data access;
[0051] S3, extracting technical metadata from the metadata table after data access based on the data integration tool CDM. The obtained metadata is called lake-entry metadata a;
[0052] S4, offline inventory metadata The business metadata and management metadata in the data are merged with the technical metadata of the lake-entering metadata a to form metadata c to be published;
[0053] S5, compare and monitor the metadata c to be published, list and process the differences of various data;
[0054] S6, according to the business classification and meta-model requirements, the metadata c to be released after step S5 is combined with the inventory scope, and the management metadata, business metadata and blood relationship are supplemented manually, and after review, the data asset metadata information to be released is formed;
[0055] S7, based on the data collection capability and network integration environment of the data integration tool CDM, collect the latest source metadata by database type in the form of SQL query to obtain source database metadata b; and regularly update source database metadata b through regular collection;
[0056] Regularly compare the updated source database metadata b with the metadata c to be published, and update the metadata c to be published.
[0057] Preferably, in step S3, the extraction of technical metadata from the access metadata table includes:
[0058] To batch obtain source metadata information by database type, obtain metadata for each data source by database type. First, query the database type and database link information of each type in the current data collection tool connection information.
[0059] Secondly, we create different basic tables according to the database type, and use the Spark SQL script to batch obtain the full metadata information of each database for storage, with full coverage each time.
[0060] Finally, a unified metadata reference table is formed according to the metadata monitoring and management requirements, and the metadata basic table data of each database type is summarized to form the metadata of each database for unified external services.
[0061] Preferably, in step S3, the reference table includes the English name of the database, the schema name, the English name of the data table, the data table comment, the field name, the field comment, the data type, the data length, whether it is a primary key, whether it is empty, and the creation time.
[0062] Preferably, in step S5, the metadata c to be published is compared and monitored, and various data differences are listed and processed, including:
[0063] S501, compare the metadata a entering the lake and the processed metadata c to be released, obtain the library table information of the metadata a entering the lake and the processed metadata c to be released every day, and compare the data differences. The difference types include three situations: data access but not inventory, data inventory but different from the access data, and data inventory but not accessed;
[0064] S502, a list of various types of data differences after comparison is formed, and the data asset management side processes them one by one by screening the difference type and data source.
[0065] Preferably, the data asset management side screens the difference types and data sources, and processes them one by one, with the priority being from high to low, namely, data accessed but not counted, data counted but not accessed, and data counted but different from accessed data; the differences are marked on a daily basis.
[0066] Preferably, the mark types for mark processing include ignore, wait for data access, wait for inventory release and close difference;
[0067] Ignore: The differences confirmed in advance with the business side are ignored.
[0068] Waiting for data access: If there are missing tables in data access, feedback is given to the data collection side for data supplementation;
[0069] To be released after inventory: For those with urgent data sharing needs, data access is prioritized, but if the inventory is not kept up, the inventory will be released first;
[0070] Difference closure: The system compares differences once a day. For differences that have been processed on the same day, the differences are marked as closed in batches. If the system finds that the previous differences have been processed after daily comparison, they are automatically marked as closed.
[0071] Preferably, in step S6, the data asset metadata information released to the outside includes business classification, data classification, business meaning, asset code, management unit, management department, data source, time range, business coverage, security classification, sharing conditions, table label, table Chinese name, table English name, update frequency, release time, field English name, field Chinese name, field data type, whether it is a primary key and whether it is empty.
[0072] Preferably, in step S7, the updated source database metadata b is periodically compared with the metadata to be published c, and the specific method is:
[0073] S701, according to the data asset metadata information published based on the metadata to be published c in step S6, the data asset management side identifies whether the data table in b is included in the asset. According to the identification result, the data table can be divided into three categories: data tables identified as included in the asset, data tables identified as not included in the asset, and unidentified data tables;
[0074] S702, judging the three types of data tables to form a difference table list for planned inventory;
[0075] S703, the difference list of the planned inventory is initiated according to the system online inventory process, and the process of steps S1-S6 is executed to update the metadata c to be published.
[0076] Preferably, in step S702, three types of data tables are judged to form a difference table list for planned inventory counting, including:
[0077] A. Determine whether the data table marked as included in the asset has been counted. If it has been counted, compare the fields to determine whether there are any changes. If there are any changes, add the data table to the difference table list. If there are no changes, do not process it.
[0078] If there is no inventory, only table difference comparison is performed, and the data table is added to the difference table list;
[0079] B. For data tables that are not included in assets, directly update the differences to the baseline metadata of the table and update the baseline metadata version;
[0080] C. For unmarked data tables, a problem record is formed by combining them according to the system. The data asset management side sends the problem record to the docking person of the system online. The docking side of the system marks the received difference record as "whether it is planned to be counted". If it is planned to be counted, the data table is added to the difference table list;
[0081] If you do not plan to take an inventory, please explain the reason. After submission, the data asset management side will review it. If the review is passed, the comparison difference information will be updated to the baseline metadata version.
[0082] Preferably, the metadata in the source database is used as the baseline metadata version of each system, and the source database metadata b is updated regularly; every preset period, the latest version of the source database metadata b is compared with the metadata c to be published to ensure that the metadata c to be published is the latest version.
[0083] Embodiment 2:
[0084] Based on the metadata collection and management method provided by the present invention, the specific implementation process is as follows:
[0085] Step 1: Conduct data inventory. Offline inventory also refers to manual inventory; obtain business metadata and management metadata of metadata tables through manual processing.
[0086] Step 2: According to the offline inventory scope, collect the corresponding table data from the source end, that is, the source business system, and put it into the data lake. For example, if there are 1,000 metadata tables at the source end, 500 of them are collected according to the data asset access principle. This step is also called data access.
[0087] Step 3: Based on the existing data integration tool CDM, the technical metadata of the access data table is extracted. The obtained metadata is called lake-entry metadata a; the source metadata information is obtained in batches by database type, and the metadata of each data source is obtained by database type. First, the database type and database link information of each type in the current data collection tool connection information are queried; secondly, different basic tables are built according to the database type, and the full metadata information of each database is obtained in batches through spark sql scripts for storage, with full coverage each time; finally, a unified metadata benchmark table is formed according to the metadata monitoring and management requirements, and the metadata basic table data of each database type is lightly summarized to form the metadata of each database for unified external services.
[0088] Furthermore, the database types specifically include MySQL, Oracle, DAMO, SQL Server, PostgreSQL, Mongodb, etc. The database connection information of each type is the database IP, port, mode name, account password, etc., and there are differences in the connection information parameters of each database.
[0089] Furthermore, the basic table includes the English name of the database, the name of the schema, the English name of the data table, the data table comment, the field name, the field comment, the data type, the data length, whether it is the primary key, whether it is empty, and the creation time.
[0090] Furthermore, if steps 1, 2, and 3 are performed correctly, then the offline inventory and online access data can be merged to obtain the metadata c to be released. However, in actual operations, the order of steps 1 and 2 is often reversed, that is, the collection access and asset inventory are not carried out synchronously due to special reasons, the data is accessed but not counted, the data is counted but there are differences with the access data, or the data is counted but not accessed; or human errors lead to inconsistent metadata information of a and c, that is, they are not one-to-one corresponding. At this time, comparison monitoring is required to facilitate the implementation personnel to make corrections based on the differences every day; the comparison differences in this step are mainly used to remind and manage the data inventory personnel to ensure that the asset information released by the inventory is consistent with the actual access.
[0091] For example, in actual implementation, due to business urgency, the order of steps 1 and 2 is reversed. When data is accessed, the implementation personnel access 600 photos according to the docking requirements. However, in the actual offline inventory, the asset inventory implementation personnel only did 500 photos based on the business understanding, and there are 100 differences. This part needs to be compared to remind the asset inventory implementation personnel to make additional inventory; that is, at this time a has 600 photos, c and There are only 500 of them. Now we need to buy c and To add 600 sheets, we need to compare a with c; we use a with c, not with Comparison, because Since it is offline data, it is not convenient for automated comparison.
[0092] For example, if 500 data tables are counted but only 300 are connected, then the differences of 200 tables need to be compared and processed to urge data access. Or if the information counted offline is incorrect, resulting in inconsistency with the connected table fields, the differences need to be compared and re-inventory performed according to the connected table structure.
[0093] Step 4: Collect metadata a as the baseline version for the first time, collect metadata a regularly to form new versions of metadata for each database, and then compare the versions:
[0094] (1) Compare versions a and c: Obtain the database table information of versions a and c daily. The database table information includes several technical metadata attributes such as database name, data table name, field name, and data type. Compare the differences in the data tables. There are three types of differences: data accessed but not counted, data counted but different from the accessed data, and data counted but not accessed.
[0095] (2) A list of various data differences is compiled, and the data asset management specialist processes them one by one by screening the difference types and data sources; the priority is from high to low, in the order of data accessed but not counted, data counted but not accessed, data counted but different from accessed data; the differences are marked on a daily basis, and the marking types include: ignore, wait for data access, wait for inventory release, and close the difference.
[0096] Ignore: For some special cases, the differences confirmed in advance with the business side can be ignored. For example, the field data type, the source database field type is varchar, but the data type is changed to string after Hudi accesses the data. This difference can be ignored.
[0097] Waiting for data access: If there is a missing table in data access, you will need to feedback to the data collection specialist for data collection. If you confirm with the source end that the table does exist, then it is a missing table. In fact, the table may have been deleted, in which case no processing is required.
[0098] Pending inventory release: In case of urgent data sharing needs, data access is prioritized, but the inventory has not kept up. In this case, the inventory release needs to be completed as soon as possible. For example, the data consumer application only needs 5 tables, and the online requirement is urgent. However, it will take a long time to complete the inventory of all 100 tables on the source side. This is an emergency.
[0099] Difference closure: Since the system compares differences once a day, differences that have been processed on the same day can be marked as closed in batches, making it easier for asset management specialists to filter such data and focus on processing other data. At the same time, if the system finds that the previous differences have been processed after daily comparison, they will be automatically marked as closed.
[0100] Step 5: Based on the business classification and meta-model requirements, the collected metadata is combined with the inventory information and supplemented with management metadata, business metadata, and blood relationships through manual completion. After review, the data asset metadata information released to the outside is formed.
[0101] Step 6: Based on CDM's data collection capabilities and network integration environment, the latest source metadata is collected by database type using SQL query to obtain the source database b. Regular metadata collection is mainly used to regularly perceive changes in the source database in a timely manner; if there are differences in the comparison, the source is notified for confirmation and feedback. For the core asset items marked for inventory, the next step is to initiate an online inventory process.
[0102] For example, after the business is launched, the business adjustment may involve adding or deleting tables or fields; for example, the source system metadata becomes 1,200, but only 1,000 were connected and sorted out at the initial inventory. In principle, the newly added 200 should be sorted out to see whether they meet the data asset access principle. Therefore, b and c need to be compared, and the 200 difference tables need to be compared and sent to the source for confirmation; if 100 of the 200 tables meet the data asset access principle, then steps 1-5 should be repeated for these 100 tables to ensure that the published data asset catalog is always synchronized with the latest version of the source. In actual business, the source may delete redundant tables, and the source data tables become 800. Whether the reduced 200 tables belong to the tables that have been counted and published, it is necessary to compare and confirm before taking the published asset table offline. Or if there are new fields in the source table, the new fields also need to be compared, and the published data asset catalog information needs to be supplemented to avoid misleading consumers due to incomplete information.
[0103] After the system goes online, the source database table will be adjusted according to the business, resulting in inconsistent metadata information between a and b. A comparison is required so that the metadata information c released by our inventory can be updated in a timely manner.
[0104] The metadata in b is used as the baseline metadata version of each system, and the differences between b and c are compared regularly afterwards.
[0105] First, the data asset management specialist needs to identify whether the data tables in b are included in the assets. Based on the identification results, the data tables can be divided into three categories: data tables marked as included in assets, data tables marked as not included in assets, and data tables not marked as included in assets.
[0106] Secondly, determine whether a data table that has been marked as included in the assets has been counted. If it has been counted, compare the fields to see if there are any changes. If it has not been counted, only compare the table differences.
[0107] For tables that are not included in the asset scope, the differences are directly updated to the baseline metadata of the table and the baseline version is updated.
[0108] Then, for the difference records that are not marked as to whether they are included in the asset scope, they are combined by system to form a problem record. The data asset management specialist sends the problem record to the person in charge of the system online. The person in charge of the source business system marks the difference record as "whether an inventory is planned". If no inventory is planned, the reason is stated. After submission, the data asset administrator will review it. If the review is passed, the comparison difference information will be updated to the system baseline metadata version by default.
[0109] Subsequently, the difference list of the planned inventory will be used to initiate the online inventory process according to the system, i.e. steps 1-5 mentioned above, and notifications will be made through the company's process management platform, SMS platform, etc.
[0110] The difference table list contains two parts:
[0111] 1. At the beginning, the table of included assets has been identified. If there are differences in the fields, they also need to be re-displayed;
[0112] 2. If the table of assets that need to be included is not identified initially but subsequently identified, an inventory needs to be conducted.
[0113] According to the life cycle of system going online, running and going offline, the comparison between a and c is carried out before the comparison between c and b. The comparison between c and b is mainly the regular monitoring and asset update work carried out during the system operation.
[0114] The difference compared with general metadata monitoring tools is that other metadata monitoring functions only find out the differences, but do not perform online confirmation management and utilize the difference information to assist business management.
[0115] Furthermore, when improving the metadata c to be released, it is found that the offline metadata is inconsistent with the metadata entering the lake. If the technical metadata is inconsistent, the metadata entering the lake shall prevail, and the offline metadata shall be supplemented or adjusted.
[0116] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A metadata collection and management method, characterized in that: include: S1, conduct offline data inventory, obtain business metadata and management metadata of metadata table, the obtained metadata is called offline inventory metadata ; S2, based on the offline data inventory scope, collects the corresponding metadata tables from the source end and enters the data lake to achieve data access; S3, extracting technical metadata from the metadata table after data access based on the data integration tool CDM. The obtained metadata is called lake-entry metadata a; S4, offline inventory metadata The business metadata and management metadata in the data are merged with the technical metadata of the lake-entering metadata a to form metadata c to be published; S5, compare and monitor the metadata c to be published, list and process the differences of various data, the specific method is as follows: S501, compare the metadata a entering the lake and the processed metadata c to be released, obtain the library table information of the metadata a entering the lake and the processed metadata c to be released every day, and compare the data differences. The difference types include three situations: data access but not inventory, data inventory but different from the access data, and data inventory but not accessed; S502: List all the data differences after comparison. The data asset management side processes them one by one by screening the difference types and data sources. The processing priorities are processed in descending order from high to low according to data accessed but not counted, data counted but not accessed, and data counted but different from accessed data. Differences are marked on a daily basis. Mark types for mark processing include Ignore, Waiting for Data Access, Waiting for Inventory Release, and Difference Close; Ignore: The differences confirmed in advance with the business side are ignored. Waiting for data access: If there are missing tables in data access, feedback is given to the data collection side for data supplementation; To be released after inventory: For those with urgent data sharing needs, data access is prioritized, but if the inventory is not kept up, the inventory will be released first; Difference Close: The system compares differences once a day. For differences that have been processed on the same day, the differences are marked as closed in batches. If the system finds that the previous differences have been processed after daily comparison, it will automatically mark them as closed. S6, according to the business classification and meta-model requirements, the metadata c to be released after step S5 is combined with the inventory scope, and the management metadata, business metadata and blood relationship are supplemented manually, and after review, the data asset metadata information to be released is formed; S7, based on the data collection capability and network integration environment of the data integration tool CDM, collect the latest source metadata by database type in the form of SQL query to obtain source database metadata b; and regularly update source database metadata b through regular collection; Regularly compare the updated source database metadata b with the metadata c to be published, and update the metadata c to be published; the specific method is: S701, according to the data asset metadata information published based on the metadata to be published c in step S6, the data asset management side identifies whether the data table in b is included in the asset. According to the identification result, the data table can be divided into three categories: data tables identified as included in the asset, data tables identified as not included in the asset, and unidentified data tables; S702, judging the three types of data tables to form a difference table list for planned inventory; The difference table list for planned inventory counting includes: A. Determine whether the data table marked as included in the asset has been counted. If it has been counted, compare the fields to determine whether there are any changes. If there are any changes, add the data table to the difference table list. If there are no changes, do not process it. If there is no inventory, only table difference comparison is performed, and the data table is added to the difference table list; B. For data tables that are not included in assets, directly update the differences to the baseline metadata of the table and update the baseline metadata version; C. For unmarked data tables, a problem record is formed by combining them according to the system. The data asset management side sends the problem record to the docking person of the system online. The docking side of the system marks the received difference record as "whether it is planned to be counted". If it is planned to be counted, the data table is added to the difference table list; If you do not plan to take inventory, please explain the reason. After submission, the data asset management will review it. If the review is passed, the comparison difference information will be updated to the baseline metadata version. S703, the difference table list of the planned inventory is initiated according to the system online inventory process, and the process of steps S1-S6 is executed to update the metadata c to be released; the metadata in the source database is used as the baseline metadata version of each system, and the source database metadata b is updated regularly; at every preset time period, the latest version of the source database metadata b is compared with the metadata c to be released to ensure that the metadata c to be released is the latest version.
2. The metadata collection and management method according to claim 1, characterized in that: In step S3, the extraction of technical metadata accessing the metadata table includes: To batch obtain source metadata information by database type, obtain metadata for each data source by database type. First, query the database type and database link information of each type in the current data collection tool connection information. Secondly, we create different basic tables according to the database type, and use the spark sql script to batch obtain the full metadata information of each database for storage, with full coverage each time; Finally, a unified metadata reference table is formed according to the metadata monitoring and management requirements, and the metadata basic table data of each database type is summarized to form the metadata of each database for unified external services.
3. The metadata collection and management method according to claim 2, characterized in that: In step S3, the reference table includes the English name of the database, the mode name, the English name of the data table, the data table comment, the field name, the field comment, the data type, the data length, whether it is a primary key, whether it is empty, and the creation time.
4. The metadata collection and management method according to claim 1, characterized in that: In step S6, the data asset metadata information released to the outside includes business classification, data classification, business meaning, asset code, management unit, management department, data source, time range, business coverage, security classification, sharing conditions, table label, table Chinese name, table English name, update frequency, release time, field English name, field Chinese name, field data type, whether it is a primary key and whether it is empty.
Citation Information
Patent Citations
Data asset checking method
CN115269589A
Hybrid docking system for online authorization and offline interaction service data
CN116186736A
Metadata-based data asset checking method and system
CN117540965A
Design method for XBRL standard-based master data management system
WO2019096191A1
Cited By
Data management system and method based on shoulder arthroscopy surgical anesthesia
CN119694467A
A data management system and method based on anesthesia for shoulder arthroscopy surgery
CN119694467B
