A metadata association method and system
By automatically generating configuration IDs and running stored procedures in the metadata management system, and updating and maintaining metadata tables, it solves the problem of difficult association of large-scale and dispersed data sources in traditional systems, and achieves fast and flexible metadata association and data Management, improving data management efficiency and accuracy.
Patent Information
- Application Number
- CN202410190915.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-21
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-02-21
AI Technical Summary
Traditional metadata management systems have difficulty in correlating large-scale and dispersed data sources. They lack semantic understanding and are difficult to support intelligent metadata correlation. They especially lack flexibility when processing semi-structured or unstructured data.
Provide a metadata association method and system that automatically generates configuration IDs and runs stored procedures by inputting mapping configuration content according to the upstream table data type, updates the upstream table data and records it to the update log table, and generates mapping data in the downstream mapping data table , and conduct verification, query and maintenance through a visual interface, supporting soft deletion function to ensure data integrity.
It realizes fast and flexible metadata association, digitally precipitates user operation behaviors, meets the needs of data island mapping and query verification, improves the efficiency and accuracy of data management, and reduces the possibility of errors.
Smart Images

Figure CN117971835B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of database development, and in particular to a metadata association method and system. Background Art
[0002] Traditional metadata management systems are used to collect, store, and manage metadata information of data. These systems are usually implemented by establishing a metadata warehouse or database, providing records and queries of metadata such as data structure, data source, and data quality. However, these systems may be limited in metadata association, especially when dealing with large-scale, decentralized data sources. The complexity of the system may lead to difficulties in deployment and maintenance. In addition, they lack semantic understanding and usually only focus on the description of metadata. They lack a deep understanding of the semantic relationship between metadata and are difficult to support more intelligent metadata associations.
[0003] Data association mainly involves connecting related information in different data sources. Traditional relational database systems use SQL (Structured Query Language) statements for data association, but may face performance bottlenecks in big data and distributed environments. In recent years, the development of technologies such as NoSQL databases and graph databases has provided more flexible data association methods, but the support for metadata association is limited. Some traditional data association methods lack flexibility when processing semi-structured or unstructured data and have difficulty coping with diverse data formats.
[0004] Semantic association improves the accuracy of association by associating data using semantic information. Knowledge graph is a method to build a knowledge network by representing the relationship between entities. Knowledge graph can better handle complex metadata associations, but in practical applications, the construction and maintenance costs of knowledge graph need to be considered. Building a complete knowledge graph may face problems such as incomplete and inconsistent data, and there may be certain challenges in modeling and querying knowledge graphs with complex relationships.
[0005] Therefore, it is necessary to provide a metadata association method and system that can solve the above problems. Summary of the invention
[0006] The present invention aims at solving the problems and shortcomings of the prior art and provides a metadata association method and system.
[0007] The present invention solves the above technical problems through the following technical solutions:
[0008] The present invention provides a metadata association method, the method comprising:
[0009] Enter corresponding mapping configuration content according to the upstream table data type, wherein the upstream table data type includes parameter code, securities code and institution code;
[0010] Automatically generate a configuration ID and run a stored procedure;
[0011] Update the data in the upstream table and record it in the update log table;
[0012] Generates mapping data in the downstream mapping data table.
[0013] Preferably, the automatically generating configuration ID further includes:
[0014] Delete the configuration ID, stop the running stored procedure, delete the data and delete the configuration ID;
[0015] Maintain the configuration ID, stop the running stored procedure, modify the configuration content and save the data.
[0016] Preferably, after generating the mapping data in the downstream mapping data table, the method further includes:
[0017] Maintain mapping data, modify data content and data flags. The program cannot automatically overwrite data, and data maintenance is successful.
[0018] Delete the mapped data, modify the data flag, the program cannot automatically overwrite the data, change the valid flag, change the deletion time to the current time, and the data is deleted successfully.
[0019] Preferably, the field information of the mapping configuration content includes: ID, configuration category, configuration name, source code category, source parameter classification code field, source parameter classification name field, source parameter code field, source parameter name field, source parameter default usage, securities internal coding rules, source securities internal coding field, securities default start date, source securities code splicing rules, institution internal coding rules, source institution internal coding field, institution name field, institution default start date, unified social credit code field, database form name, data flag, release time, update time, update ID, and valid flag.
[0020] Preferably, the field information of the mapping configuration content of the parameter code includes: ID, source code category, source parameter classification code, source parameter classification name, source parameter code, source parameter name, parameter classification code, parameter classification name, parameter code, configuration ID, data flag, release time, update time, update ID, valid flag, deletion time, parameter name.
[0021] Preferably, the field information of the mapping configuration content of the securities code includes: ID, securities internal code, source code category, source securities code, source securities internal code, start date, configuration ID, data flag, release time, update time, update ID, valid flag, and deletion time.
[0022] Preferably, the field information of the mapping configuration content of the organization code includes: ID, internal organization code, source code category, internal source organization code, unified social credit code, organization name, start date, configuration ID, data flag, release time, update time, update ID, valid flag, and deletion time.
[0023] Preferably, when any update occurs to the data in the upstream table, the data in the downstream mapping data table will be updated accordingly after the stored procedure is run, and a log of the relevant updates needs to be recorded. The log is used to store the upstream update database, the upstream update form name, the downstream update database, the downstream update form name, the update corresponding update time, the update corresponding update ID, the release time, the update time, and the update ID.
[0024] Preferably, the mapping data is verified, queried, maintained and deleted through a visual interface.
[0025] The present invention also provides a metadata association system, the system comprising:
[0026] A mapping configuration module, which is used to input corresponding mapping configuration content according to the upstream table data type, wherein the upstream table data type includes parameter code, securities code and institution code;
[0027] Configuration ID generation module, which is used to automatically generate configuration IDs and run stored procedures;
[0028] An upstream table data update module, which is used to update the data in the upstream table and record it in an update log table;
[0029] A mapping data generation module is used to generate mapping data in a downstream mapping data table.
[0030] Compared with the prior art, the technical solution of the embodiment of the present invention has the following beneficial effects:
[0031] An embodiment of the present invention provides a metadata association method and system, the method comprising: inputting corresponding mapping configuration content according to an upstream table data type, the upstream table data type comprising a parameter code, a securities code and an institution code; automatically generating a configuration ID and running a stored procedure; updating the data in the upstream table and recording it in an update log table; generating mapping data in a downstream mapping data table to help users quickly and flexibly associate metadata, while digitally precipitating the user's operation behavior to meet the needs of data island mapping and data query verification. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 A schematic diagram of a metadata association method provided by an embodiment of the present invention;
[0033] Figure 2 A schematic diagram of the structure of a metadata association system provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0034] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0035] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0036] Based on the problems existing in the existing technology, such as Figure 1 As shown, the present invention provides a metadata association method, the method comprising:
[0037] Step S101: inputting corresponding mapping configuration content according to the upstream table data type, wherein the upstream table data type includes parameter code, securities code and institution code;
[0038] Step S102: automatically generate a configuration ID (Identity Document) and run a stored procedure;
[0039] Step S103: Update the data in the upstream table and record it in the update log table;
[0040] Step S104: Generate mapping data in the downstream mapping data table.
[0041] Specifically, in step S101, due to the different data sources, the parameter codes, securities codes and institution codes stored in different data sources will also have different storage rules. Based on the understanding of the business rules of parameter codes, securities codes and institution codes, a set of metadata association mapping frameworks is constructed. The unique parameter codes, securities codes and institution codes of this metadata association technology are generated through mapping configuration according to the parameter codes, securities codes and institution codes of the data source, and the information in the entire metadata association process is digitally deposited in the framework.
[0042] In a specific implementation, the automatic generation of the configuration ID further includes:
[0043] Delete the configuration ID, stop the running stored procedure, delete the data and delete the configuration ID;
[0044] Maintain the configuration ID, stop the running stored procedure, modify the configuration content and save the data.
[0045] In a specific implementation, after generating mapping data in the downstream mapping data table, the following steps are also included:
[0046] Maintain mapping data, modify data content and data flags. The program cannot automatically overwrite data, and data maintenance is successful.
[0047] Delete the mapped data, modify the data flag, the program cannot automatically overwrite the data, change the valid flag, change the deletion time to the current time, and the data is deleted successfully.
[0048] Specifically, when maintaining mapping data, the program cannot automatically overwrite the data. On the contrary, when the stored procedure is run again, if the upstream data is changed, the row of data will be updated accordingly. When deleting mapping data, the deletion time is changed to the current time, indicating that the row of data has been soft deleted. The characteristics of soft deletion are that it can ensure the integrity of the data and also has the ability to trace when the data was deleted. If the upstream data is soft deleted, you can run the stored procedure again to update it.
[0049] In a specific implementation, the field information of the mapping configuration content includes: ID, configuration category, configuration name, source code category, source parameter classification code field, source parameter classification name field, source parameter code field, source parameter name field, source parameter default usage, securities internal coding rules, source securities internal coding field, securities default start date, source securities code splicing rules, institution internal coding rules, source institution internal coding field, institution name field, institution default start date, unified social credit code field, database form name, data flag, release time, update time, update ID, and valid flag.
[0050] In a specific implementation, the field information of the mapping configuration content of the parameter code includes: ID, source code category, source parameter classification code, source parameter classification name, source parameter code, source parameter name, parameter classification code, parameter classification name, parameter code, configuration ID, data flag, release time, update time, update ID, valid flag, deletion time, parameter name.
[0051] In a specific implementation, the field information of the mapping configuration content of the securities code includes: ID, securities internal code, source code category, source securities code, source securities internal code, start date, configuration ID, data flag, release time, update time, update ID, valid flag, and deletion time.
[0052] In a specific implementation, the field information of the mapping configuration content of the organization code includes: ID, internal organization code, source code category, internal source organization code, unified social credit code, organization name, start date, configuration ID, data flag, release time, update time, update ID, valid flag, and deletion time.
[0053] In a specific implementation, when any update occurs to the data in the upstream table, the data in the downstream mapping data table will be updated accordingly after the stored procedure is run, and a log of the relevant updates needs to be recorded. The log is used to store the upstream update database, the upstream update form name, the downstream update database, the downstream update form name, the update corresponding update time, the update corresponding update ID, the release time, the update time, and the update ID.
[0054] In a specific implementation, the mapping data is verified, queried, maintained and deleted through a visual interface.
[0055] Specifically, the query function can meet the diverse needs of users based on different parameters, such as time range, data type, etc. The maintenance and deletion functions allow staff to update the database in a timely manner to ensure the accuracy and integrity of the data. At the same time, the configuration information and metadata mapping information are digitally deposited, and the above association is realized based on the configuration corresponding parameters under a standardized framework. Direct operations through the visual interface without relying on complex command lines or database operations not only improve the efficiency of data management, but also reduce the possibility of errors, making the entire data management process easier.
[0056] Based on the problems existing in the existing technology, such as Figure 2 As shown, the present invention also provides a metadata association system, the system comprising:
[0057] A mapping configuration module 21, which is used to input corresponding mapping configuration content according to the upstream table data type, wherein the upstream table data type includes parameter code, securities code and institution code;
[0058] A configuration ID generation module 22, which is used to automatically generate a configuration ID and run a stored procedure;
[0059] An upstream table data updating module 23, which is used to update the data in the upstream table and record it in an update log table;
[0060] The mapping data generating module 24 is used to generate mapping data in the downstream mapping data table.
[0061] The above scheme will be further described below with examples.
[0062] According to the data type of the upstream table, select the corresponding mapping configuration, including the new parameter code mapping configuration, the new securities code mapping configuration, and the new institution code mapping configuration.
[0063] At this time, the configuration ID will be automatically generated according to config_type. Use the configuration ID to enter the corresponding stored procedure statement in SQL and run it. Run call dgtz.proce_plfm_ins_cd_mapp(bigint config_id) to generate the institution code mapping table, run call dgtz.proce_plfm_para_cd_mapp(bigint config_id) to generate the parameter code mapping table, and run call dgtz.proce_plfm_secu_cd_mapp(bigint config_id) to generate the securities code mapping table.
[0064] The generated mapping data will be stored in the corresponding downstream mapping data table.
[0065] When the mapping data is generated for the first time, a piece of data will also be generated in the update log table to facilitate incremental updates in the future.
[0066] At the same time, the downstream mapping data table has a soft delete function. When the stored procedure is run again, it will be updated according to the deleted data in the upstream table.
[0067] When manually maintaining data in a table, the data flag needs to be changed. At this time, this type of data will no longer be automatically overwritten by the stored procedure.
[0068] In summary, an embodiment of the present invention provides a metadata association method and system, the method comprising: inputting corresponding mapping configuration content according to the upstream table data type, the upstream table data type including parameter code, securities code and institution code; automatically generating a configuration ID and running a stored procedure; updating the data in the upstream table and recording it in an update log table; generating mapping data in a downstream mapping data table to help users quickly and flexibly associate metadata, while digitally precipitating the user's operation behavior to meet the needs of data island mapping and data query verification.
[0069] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A metadata association method, characterized in that: The method comprises: Enter corresponding mapping configuration content according to the upstream table data type, wherein the upstream table data type includes parameter code, securities code and institution code; Automatically generate a configuration ID and run the stored procedure. When deleting a configuration ID, stop the running stored procedure, delete the data generated corresponding to the configuration ID, and delete the configuration ID. When maintaining a configuration ID, stop the running stored procedure, modify the configuration content, and save the data. Update the data in the upstream table and record it in the update log table; Generate mapping data in the downstream mapping data table; when maintaining mapping data, modify the data content and data flag, then the data maintenance is successful, and the program cannot automatically overwrite the data; when deleting mapping data, modify the data flag and change the valid flag, and change the deletion time to the current time, then it means that the data is successfully deleted from the current time, and the program cannot automatically overwrite the data; When any update occurs to the data in the upstream table, the data in the downstream mapping data table will be updated after the stored procedure is run, and a log of the relevant updates will be recorded. The log is used to store the upstream update database, upstream update form name, downstream update database, downstream update form name, update corresponding update time, update corresponding update ID, release time, update time, and update ID.
2. The metadata association method according to claim 1, characterized in that: The field information of the mapping configuration content includes: ID, configuration category, configuration name, source code category, source parameter classification code field, source parameter classification name field, source parameter code field, source parameter name field, source parameter default usage, securities internal coding rules, source securities internal coding field, securities default start date, source securities code splicing rules, institution internal coding rules, source institution internal coding field, institution name field, institution default start date, unified social credit code field, database form name, data flag, release time, update time, update ID, and valid flag.
3. The metadata association method according to claim 1, characterized in that: The field information of the mapping configuration content of the parameter code includes: ID, source code category, source parameter classification code, source parameter classification name, source parameter code, source parameter name, parameter classification code, parameter classification name, parameter code, configuration ID, data flag, release time, update time, update ID, valid flag, deletion time, parameter name.
4. The metadata association method according to claim 1, characterized in that: The field information of the mapping configuration content of the securities code includes: ID, securities internal code, source code category, source securities code, source securities internal code, start date, configuration ID, data flag, release time, update time, update ID, valid flag, and deletion time.
5. The metadata association method according to claim 1, characterized in that: The field information of the mapping configuration content of the organization code includes: ID, internal organization code, source code category, internal source organization code, unified social credit code, organization name, start date, configuration ID, data flag, release time, update time, update ID, valid flag, and deletion time.
6. The metadata association method according to claim 1, characterized in that: The mapping data is verified, queried, maintained and deleted through a visual interface.
7. A metadata association system, characterized in that: The system comprises: A mapping configuration module, which is used to input corresponding mapping configuration content according to the upstream table data type, wherein the upstream table data type includes parameter code, securities code and institution code; Configuration ID generation module, which is used to automatically generate configuration ID and run stored procedures; when deleting a configuration ID, the running stored procedure is stopped, the data generated corresponding to the configuration ID is deleted, and the configuration ID is deleted; when maintaining a configuration ID, the running stored procedure is stopped, the configuration content is modified, and the data is saved; An upstream table data update module, which is used to update the data in the upstream table and record it in an update log table; A mapping data generation module is used to generate mapping data in a downstream mapping data table; when maintaining mapping data, the data content and data flag are modified, so that the data maintenance is successful and the program cannot automatically overwrite the data; when deleting mapping data, the data flag is modified and the valid flag is changed, and the deletion time is changed to the current time, which means that the data is successfully deleted from the current time, and the program cannot automatically overwrite the data; When any update occurs to the data in the upstream table, the data in the downstream mapping data table will be updated after the stored procedure is run, and a log of the relevant updates will be recorded. The log is used to store the upstream update database, upstream update form name, downstream update database, downstream update form name, update corresponding update time, update corresponding update ID, release time, update time, and update ID.
