Data sharing method and device based on data sharing center
By building matching field groups and mapping tables for business data clusters, the problem of low field mapping efficiency in the existing technology is solved, timely conversion and storage of data sharing end data is realized, and the overall efficiency of the data sharing center is improved.
Patent Information
- Application Number
- CN202411750104.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-02
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2044-12-02
AI Technical Summary
In the prior art, field mapping efficiency is low, resulting in the data reported on the data sharing end being unable to be converted into the standard format specified by the regulatory end in a timely manner, affecting business supervision and data sharing.
By obtaining multiple business data clusters on the data sharing end, a matching field group is constructed based on the field similarity of each business data field in each business data cluster, thereby obtaining the mapping relationship between the seed field or singular field and the unified standard field issued by the regulatory end, a mapping table for the business data cluster is constructed, and reported data is converted and stored.
It improves the efficiency of field mapping, ensures that the data on the data sharing end can be converted into a standard format on the regulatory end in a timely manner, and improves the overall efficiency of the data sharing center.
Smart Images

Figure CN119690929A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data sharing, and in particular to a data sharing method and device based on a data sharing center. Background Art
[0002] In modern supervision and enterprise management, data interoperability and sharing have become key requirements. With the increasing complexity and informatization of business, regulatory authorities and enterprises are faced with increasing amounts and types of data. In order to effectively grasp the real-time status of enterprise operations, monitor business activities, identify risks and ensure compliance, regulatory authorities require "data access" and "business access", that is, data can be smoothly transmitted and shared between different departments, systems, and even industries. To achieve this goal, a centralized data sharing and exchange center can be built, and the regulatory end will issue unified data standards or rules. The data reported by each data sharing end will be converted and stored according to the unified standards or rules for unified supervision by the regulatory end and sharing and exchanging data among various data sharing ends.
[0003] In order to convert the data reported by each data sharing terminal according to a unified standard or rule, since the business data corresponding to the same business type from different data sources are heterogeneous, and there are differences in the names, data formats and units of the same business fields between different data sources, it is necessary to establish a data mapping dictionary to store the mapping relationship between the fields of different data sources and the fields in the unified standard (including the mapping of names, formats and units).
[0004] However, due to the existence of multiple data sources, the complexity of business types, and the large amount of business data, it is inefficient to establish a data mapping dictionary for each data source for each business type. In addition, the business specifications within the enterprise often change, resulting in changes in the business data structure of the same business type. If the data mapping dictionary is not updated in time, the data reported by the data sharing end cannot be converted into the standard format specified by the regulatory end in time, and business supervision and business data sharing cannot be carried out in time. Therefore, improving the efficiency of field mapping is an urgent problem to be solved. Summary of the invention
[0005] The present invention provides a data sharing method and device based on a data sharing center, which are used to solve the defect of poor field mapping efficiency in the prior art.
[0006] The present invention provides a data sharing method based on a data sharing center, comprising:
[0007] Acquire multiple business data clusters from the data sharing end; any business data cluster contains business data of the associated business type;
[0008] Based on the field similarity of the fields of each business data in any business data cluster, construct a matching field group of any business data cluster;
[0009] Select a seed field or a singular field from each matching field group of any business data cluster, obtain a mapping relationship between the seed field or the singular field and the unified standard field issued by the supervisory end, and based on the mapping relationship between the seed field or the singular field and the unified standard field, determine the mapping relationship between the fields in each matching field group of any business data cluster and the unified standard field and construct a mapping table for any business data cluster;
[0010] Based on the mapping table of each business data cluster of the data sharing terminal, the reported data of the data sharing terminal is converted and stored.
[0011] According to a data sharing method based on a data sharing center provided by the present invention, a matching field group of any business data cluster is constructed based on the field similarity of the fields of each business data in any business data cluster, including:
[0012] Determine a candidate matching field group based on the name similarity of the fields of each business data in any business data cluster;
[0013] Based on the name similarity, numerical unit matching result and data type matching result of each field in the candidate matching field group, a matching field group of any business data cluster is constructed.
[0014] According to a data sharing method based on a data sharing center provided by the present invention, a matching field group of any business data cluster is constructed based on the name similarity, numerical unit matching result and data type matching result of each field in the candidate matching field group, including:
[0015] If the name similarity of any two fields in the candidate matching field group is higher than a preset threshold and both the numerical unit matching result and the data type matching result indicate a match, it is determined that the any two fields match, and the matching fields in the candidate matching field group are placed in the same matching field group.
[0016] According to a data sharing method based on a data sharing center provided by the present invention, multiple business data clusters of any data sharing end are determined based on the following method:
[0017] Based on the database table structure corresponding to each business type at any data sharing end, determine the foreign keys in each database table;
[0018] Based on the foreign keys in the database table corresponding to each business type, the associated business type is determined, and a business data cluster is constructed based on the business data of the associated business type.
[0019] According to a data sharing method based on a data sharing center provided by the present invention, the data sharing method further includes:
[0020] Obtaining a data access request from a data requesting end, and confirming the identity of the data requesting end;
[0021] After the data request end passes the identity confirmation, obtaining the data description of the data to be accessed and the business type of the data to be accessed in the data access request;
[0022] Based on the business data cluster corresponding to the business type of the data to be accessed at the data requesting end, obtaining a mapping table corresponding to the business type of the data to be accessed at the data requesting end;
[0023] After the data to be accessed is retrieved based on the data description of the data to be accessed, the data to be accessed is converted based on a mapping table of the data request end corresponding to the business type of the data to be accessed, and the converted data is sent to the data request end.
[0024] According to a data sharing method based on a data sharing center provided by the present invention, identity confirmation is performed on the data requesting end, including:
[0025] Obtaining identity information contained in the data access request of the data request end;
[0026] Sending a randomly specified service type to the data request end, so that the data request end returns any service data corresponding to the randomly specified service type encrypted by using a private key;
[0027] Based on the identity information included in the data access request of the data requesting end, determining a mapping table corresponding to the randomly specified service type of the data sharing end indicated by the identity information;
[0028] The business data returned by the data requesting end is decrypted based on the public key corresponding to the data sharing end indicated by the identity information. If the decryption is successful, the decrypted data is converted based on the mapping table corresponding to the randomly specified business type based on the data sharing end indicated by the identity information, and when all fields are converted successfully, it is determined that the data requesting end has passed the identity confirmation.
[0029] According to a data sharing method based on a data sharing center provided by the present invention, the public key and private key corresponding to any data sharing end are determined based on the following method:
[0030] Randomly generate a seed polynomial, and obtain a coefficient matrix of the seed polynomial and an upper triangular matrix and a lower triangular matrix corresponding to the coefficient matrix;
[0031] Randomly generate two matrices of the same size as the coefficient matrix and with elements of 0 or 1, as adjoint matrices of the upper triangular matrix and the lower triangular matrix corresponding to the coefficient matrix, respectively;
[0032] Multiply the product of the upper triangular matrix corresponding to the coefficient matrix and its adjoint matrix by the product of the lower triangular matrix corresponding to the coefficient matrix and its adjoint matrix to obtain a public key;
[0033] Based on multiple random numbers, multiple columns are selected from the public key as the public key corresponding to any one of the data sharing terminals, and based on the multiple random numbers, multiple rows are selected from the inverse matrix of the public key to obtain the private key corresponding to any one of the data sharing terminals and return it to any one of the data sharing terminals.
[0034] The present invention also provides a data sharing device based on a data sharing center, comprising:
[0035] A cluster acquisition unit is used to acquire multiple business data clusters from the data sharing end; any business data cluster contains business data of the associated business type;
[0036] A field matching unit, configured to construct a matching field group of any business data cluster based on the field similarity of the fields of each business data in any business data cluster;
[0037] A mapping table construction unit, used to select a seed field or a singular field from each matching field group of any business data class cluster, obtain a mapping relationship between the seed field or the singular field and the unified standard field issued by the supervision end, and based on the mapping relationship between the seed field or the singular field and the unified standard field, determine the mapping relationship between the fields in each matching field group of any business data class cluster and the unified standard field and construct a mapping table for any business data class cluster;
[0038] The data conversion storage unit is used to convert and store the reported data of the data sharing terminal based on the mapping table of each business data cluster of the data sharing terminal.
[0039] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the data sharing method based on the data sharing center as described above is implemented.
[0040] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the above-described data sharing methods based on a data sharing center.
[0041] The present invention also provides a computer program product, including a computer program, which, when executed by a processor, implements any of the above-mentioned data sharing methods based on a data sharing center.
[0042] The present invention provides a data sharing method and device based on a data sharing center. The method and device obtain multiple business data clusters at a data sharing end, and construct a matching field group of the business data cluster based on the field similarity of the fields of each business data in any business data cluster. Then, seed fields or singular fields are selected from each matching field group of any business data cluster, and a mapping relationship between the seed field or singular field and a unified standard field issued by a supervision end is obtained. Based on the mapping relationship between the seed field or singular field and the unified standard field, a mapping relationship between the fields in each matching field group of the business data cluster and the unified standard field is determined and a mapping table of the business data cluster is constructed. Then, based on the mapping tables of each business data cluster at the data sharing end, the reported data of the data sharing end is converted and stored, thereby improving the efficiency of field mapping, thereby improving the overall efficiency of data conversion and storage in the data sharing center. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0044] Figure 1 This is one of the flow charts of a data sharing method based on a data sharing center provided by the present invention;
[0045] Figure 2 This is the second flow chart of a data sharing method based on a data sharing center provided by the present invention;
[0046] Figure 3 It is a structural schematic diagram of a data sharing device based on a data sharing center provided by the present invention;
[0047] Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings 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 creative work are within the scope of protection of the present invention.
[0049] Figure 1 is a flow chart of a data sharing method based on a data sharing center provided by the present invention, and the method is executed by the data sharing center. Figure 1 As shown, the method includes:
[0050] Step 110, obtaining multiple business data clusters from the data sharing end; any business data cluster contains business data of an associated business type;
[0051] Step 120, constructing a matching field group of any business data cluster based on the field similarity of each business data field in any business data cluster;
[0052] Step 130, respectively select a seed field or a singular field from each matching field group of any business data cluster, obtain a mapping relationship between the seed field or the singular field and the unified standard field issued by the supervisory end, and based on the mapping relationship between the seed field or the singular field and the unified standard field, determine a mapping relationship between the fields in each matching field group of any business data cluster and the unified standard field and construct a mapping table for any business data cluster;
[0053] Step 140: based on the mapping table of each business data cluster of the data sharing terminal, convert and store the reported data of the data sharing terminal.
[0054] Specifically, in the scenario of enterprise business data sharing, each enterprise can report data as a data sharing end and request shared data as a data request end. Among them, data reporting refers to reporting one's own business data to the data sharing center, where the data sharing center performs standard conversion according to the unified data standards issued by the regulatory end, converts the enterprise's business data into data that meets the standards set by the regulatory end, and then stores it in the data sharing center; requesting shared data refers to requesting the data sharing center to obtain the business data of other enterprises.
[0055] Considering that although different enterprises have different business specifications, heterogeneous business data, and complex business types and large business data volumes within enterprises, the business specifications within enterprises are relatively unified, and the design ideas of field names, formats, and numerical units of each field in the business data of related businesses are more similar, in order to improve the mapping efficiency of mapping the fields of enterprise business data to the standard fields set by the regulatory end, the business data of different business types within the enterprise can be clustered according to the relevance of the business types, and the business data of related business types can be placed in a cluster for associated mapping.
[0056] Specifically, for any data sharing terminal, the data sharing center can request the data sharing terminal to obtain multiple business data clusters. Among them, any business data cluster contains business data of associated business types. In one embodiment, the data sharing terminal can determine the foreign keys in each database table based on the database table structure corresponding to each business type of the data sharing terminal, and determine the associated business type based on the foreign keys in the database table corresponding to each business type. Among them, if the foreign key of the database table of one business type corresponds to the primary key of the database table of another business type, the two business types can be associated business types. Subsequently, a business data cluster is constructed based on the business data of the associated business type. For any business data cluster of the data sharing terminal, based on the field similarity of the fields of each business data in the business data cluster, a matching field group of the business data cluster is constructed, and the fields in the same matching field group of the business data cluster are mapped to the same standard field, thereby forming a mapping table of the business data cluster, and all subsequent business data of the business type corresponding to the business data cluster can be converted to a standard using the mapping table of the business data cluster.
[0057] In some embodiments, when constructing a matching field group of any business data cluster, multiple candidate matching field groups can be determined based on the name similarity of the fields of each business data in the business data cluster. Among them, any candidate matching field group contains one or more fields, and when multiple fields are included, the name similarity between the multiple fields is higher than the preset similarity threshold. Subsequently, based on the name similarity, numerical unit matching result and data type matching result of each field in the candidate matching field group, the matching field group of the business data cluster is constructed. Here, when further screening is performed based on the candidate matching field group to determine the matching field group, the fields in the candidate matching field group that meet the following conditions can be screened out and put into the same matching field group: the name similarity of any two fields is higher than the preset threshold and the numerical unit matching result and the data type matching result both indicate a match. The preset threshold here can be slightly lower than the preset similarity threshold mentioned above. It should be noted that if any field in the candidate matching field group does not meet the above conditions with other fields or the candidate matching field group contains only one field, the field is set as a singular field, and a matching field group is independently created for the field.
[0058] In the process of mapping the fields in the same matching field group of the business data cluster to the standard field, a seed field or a singular field can be first selected from the matching field group. Among them, if the matching field group contains multiple fields, a field is randomly selected as the seed field, and if the matching field group contains only one field, the field is used as a singular field. Obtain the mapping relationship between the seed field or the singular field and the unified standard field issued by the regulatory end. Based on the mapping relationship between the seed field or the singular field and the unified standard field, the mapping relationship between all fields in the matching field group and the unified standard field can be determined. After determining the mapping relationship between all fields in each matching field group and the unified standard field, the above mapping relationship can be converted into a mapping table, thereby obtaining the mapping table of the business data cluster. Based on the mapping tables of each business data cluster of the data sharing end, the reported data of the data sharing end can be converted and stored.
[0059] It should be noted that the mapping table of each business data cluster of each data sharing terminal is constructed and stored by the data sharing center, so the mapping table of each business data cluster of any data sharing terminal is unknown to all data sharing terminals including the data sharing terminal. In addition, the mapping table of each business data cluster of any data sharing terminal reflects the data structure of the business data of the data sharing terminal to a certain extent, and the business data of different data sharing terminals are heterogeneous, so the mapping table of each business data cluster of any data sharing terminal can be used to distinguish different data sharing terminals. In addition, the mapping table is unknown to all data sharing terminals and has a certain degree of security, so it can be used as one of the bases for confirming the identity of the data sharing terminal, thereby enhancing the security of data sharing.
[0060] In some embodiments, when there is a need for data sharing, such as Figure 2 As shown, business data sharing can be achieved in the following ways:
[0061] Step 210, obtaining a data access request from a data requesting end, and performing identity verification on the data requesting end;
[0062] Step 220, after the data request end passes identity confirmation, obtain the data description of the data to be accessed and the business type of the data to be accessed in the data access request;
[0063] Step 230, based on the business data cluster corresponding to the business type of the data to be accessed at the data requesting end, obtaining a mapping table corresponding to the business type of the data to be accessed at the data requesting end;
[0064] Step 240: after retrieving the data to be accessed based on the data description of the data to be accessed, convert the data to be accessed based on the mapping table of the data request end corresponding to the business type of the data to be accessed, and send the converted data to the data request end.
[0065] Here, after receiving the data access request from the data request end, the data sharing center can confirm the identity of the data request end that initiated the request based on the data access request, and then proceed with the subsequent data sharing process after the identity confirmation is passed to ensure the data security of the data sharing center. After the data request end passes the identity confirmation, obtain the data description of the data to be accessed carried in the data access request (used to retrieve the data to be accessed in the data sharing center) and the business type of the data to be accessed. Determine the business data cluster corresponding to the business type of the data to be accessed at the data request end, and obtain the mapping table of the business data cluster as the mapping table of the business type of the data to be accessed corresponding to the data request end. After retrieving the data to be accessed based on the data description of the data to be accessed, convert the data to be accessed based on the mapping table of the business type of the data to be accessed corresponding to the data request end, and send the converted data to the data request end. It should be noted that the reason why the data request end uses the mapping table corresponding to the business type of the data to be accessed to convert the data to be accessed and then send it to the data request end is because the mapping table is invisible to the data request end, and therefore the data request end does not have the ability to directly parse the data to be accessed. The more important reason is to avoid the data request end from inferring the mapping table after obtaining the unconverted data to be accessed, thereby breaking the security feature of the mapping table being invisible to the data request end / data sharing end.
[0066] In some embodiments, the data sharing center can obtain the identity information contained in the data access request of the data request end during the process of confirming the identity of the data request end. The identity information indicates the identification information assigned by the data sharing center to the data request end when it is a data sharing end. Subsequently, the data sharing center sends a randomly specified business type to the data request end so that the data request end returns any business data corresponding to the randomly specified business type encrypted with a private key. After receiving the business data encrypted with a private key sent by the data request end, the mapping table corresponding to the above-mentioned randomly specified business type of the data sharing end indicated by the identity information can be determined based on the identity information contained in the data access request of the data request end, and the above-mentioned business data returned by the data request end can be decrypted based on the public key corresponding to the data sharing end indicated by the identity information. If the decryption is successful, the decrypted data is further converted based on the mapping table corresponding to the above-mentioned randomly specified business type of the data sharing end indicated by the identity information, and the data request end is determined to have passed the identity confirmation when all fields are successfully converted. It can be seen that double verification is used in the identity confirmation process: on the one hand, the public key and private key are used to confirm the identity of the data request end; on the other hand, after the identity of the data request end is confirmed based on the public key and private key, further confirmation is performed based on the mapping table. This double verification method uses the mapping table to distinguish the particularity of different data sharing ends and the security of being invisible to the data sharing end / data request end, which improves the accuracy of the data sharing center's identity confirmation of the data request end, thereby improving data security.
[0067] In other embodiments, the public key and private key corresponding to any data sharing end may be determined based on the following method:
[0068] A seed polynomial is randomly generated, and a coefficient matrix of the seed polynomial and an upper triangular matrix and a lower triangular matrix corresponding to the coefficient matrix are obtained, wherein the seed polynomial is sparse, and the upper triangular matrix and the lower triangular matrix corresponding to the coefficient matrix are obtained by setting the elements below the diagonal of the coefficient matrix to 0 and the elements above the diagonal of the coefficient matrix to 0 respectively;
[0069] Randomly generate two matrices of the same size as the coefficient matrix and with elements of 0 or 1, which serve as the adjoint matrices of the upper triangular matrix and the lower triangular matrix corresponding to the coefficient matrix respectively;
[0070] The public key is obtained by multiplying the product of the upper triangular matrix corresponding to the coefficient matrix and its adjoint matrix with the product of the lower triangular matrix corresponding to the coefficient matrix and its adjoint matrix;
[0071] Based on multiple random numbers (the random number is less than or equal to the number of rows of the coefficient matrix), multiple columns are selected from the public key to form a new matrix, and the new matrix is saved as the public key corresponding to the data sharing end. Based on the above multiple random numbers, multiple rows are selected from the inverse matrix of the public key to obtain the private key corresponding to the data sharing end and return it to the data sharing end.
[0072] In summary, the data sharing method provided by the embodiment of the present invention obtains multiple business data clusters at the data sharing end, and constructs a matching field group of the business data cluster based on the field similarity of the fields of each business data in any business data cluster. Then, seed fields or singular fields are selected from each matching field group of any business data cluster, and the mapping relationship between the seed field or singular field and the unified standard field issued by the supervision end is obtained. Based on the mapping relationship between the seed field or singular field and the unified standard field, the mapping relationship between the fields in each matching field group of the business data cluster and the unified standard field is determined and a mapping table of the business data cluster is constructed. Then, based on the mapping tables of each business data cluster at the data sharing end, the reported data of the data sharing end is converted and stored, which improves the efficiency of field mapping, thereby improving the overall efficiency of data conversion and storage in the data sharing center.
[0073] The data sharing device provided by the present invention is described below. The data sharing device described below and the data sharing method described above can be referenced to each other.
[0074] Based on any of the above embodiments, Figure 3 is a schematic diagram of the structure of a data sharing device based on a data sharing center provided by the present invention. The device is deployed at the data sharing center. Figure 3 As shown, the device comprises:
[0075] The cluster acquisition unit 310 is used to acquire multiple business data clusters from the data sharing terminal; any business data cluster contains business data of the associated business type;
[0076] A field matching unit 320, configured to construct a matching field group of any business data cluster based on the field similarity of the fields of each business data in any business data cluster;
[0077] A mapping table construction unit 330 is used to select a seed field or a singular field from each matching field group of any business data cluster, obtain a mapping relationship between the seed field or the singular field and the unified standard field issued by the supervision end, and based on the mapping relationship between the seed field or the singular field and the unified standard field, determine the mapping relationship between the fields in each matching field group of any business data cluster and the unified standard field and construct a mapping table for any business data cluster;
[0078] The data conversion storage unit 340 is used to convert and store the reported data of the data sharing terminal based on the mapping table of each business data cluster of the data sharing terminal.
[0079] The data sharing device provided by the embodiment of the present invention obtains multiple business data clusters of the data sharing end, and constructs a matching field group of the business data cluster based on the field similarity of the fields of each business data in any business data cluster. Then, seed fields or singular fields are selected from each matching field group of any business data cluster, and the mapping relationship between the seed field or singular field and the unified standard field issued by the supervision end is obtained. Based on the mapping relationship between the seed field or singular field and the unified standard field, the mapping relationship between the fields in each matching field group of the business data cluster and the unified standard field is determined and a mapping table of the business data cluster is constructed. Then, based on the mapping tables of each business data cluster of the data sharing end, the reported data of the data sharing end is converted and stored, which improves the efficiency of field mapping, thereby improving the overall efficiency of data conversion and storage in the data sharing center.
[0080] Based on any of the above embodiments, based on the field similarity of the fields of each business data in any business data cluster, a matching field group of any business data cluster is constructed, including:
[0081] Determine a candidate matching field group based on the name similarity of the fields of each business data in any business data cluster;
[0082] Based on the name similarity, numerical unit matching result and data type matching result of each field in the candidate matching field group, a matching field group of any business data cluster is constructed.
[0083] Based on any of the above embodiments, constructing a matching field group of any of the business data clusters based on the name similarity, numerical unit matching result, and data type matching result of each field in the candidate matching field group includes:
[0084] If the name similarity of any two fields in the candidate matching field group is higher than a preset threshold and both the numerical unit matching result and the data type matching result indicate a match, it is determined that the any two fields match, and the matching fields in the candidate matching field group are placed in the same matching field group.
[0085] Based on any of the above embodiments, the multiple business data clusters of any data sharing terminal are determined based on the following method:
[0086] Based on the database table structure corresponding to each business type at any data sharing end, determine the foreign keys in each database table;
[0087] Based on the foreign keys in the database table corresponding to each business type, the associated business type is determined, and a business data cluster is constructed based on the business data of the associated business type.
[0088] Based on any of the above embodiments, the data sharing method further includes:
[0089] Obtaining a data access request from a data requesting end, and confirming the identity of the data requesting end;
[0090] After the data request end passes the identity confirmation, obtaining the data description of the data to be accessed and the business type of the data to be accessed in the data access request;
[0091] Based on the business data cluster corresponding to the business type of the data to be accessed at the data requesting end, obtaining a mapping table corresponding to the business type of the data to be accessed at the data requesting end;
[0092] After the data to be accessed is retrieved based on the data description of the data to be accessed, the data to be accessed is converted based on a mapping table of the data request end corresponding to the business type of the data to be accessed, and the converted data is sent to the data request end.
[0093] Based on any of the above embodiments, confirming the identity of the data requesting end includes:
[0094] Obtaining identity information contained in the data access request of the data request end;
[0095] Sending a randomly specified service type to the data request end, so that the data request end returns any service data corresponding to the randomly specified service type encrypted by using a private key;
[0096] Based on the identity information included in the data access request of the data requesting end, determining a mapping table corresponding to the randomly specified service type of the data sharing end indicated by the identity information;
[0097] The business data returned by the data requesting end is decrypted based on the public key corresponding to the data sharing end indicated by the identity information. If the decryption is successful, the decrypted data is converted based on the mapping table corresponding to the randomly specified business type based on the data sharing end indicated by the identity information, and when all fields are converted successfully, it is determined that the data requesting end has passed the identity confirmation.
[0098] Based on any of the above embodiments, the public key and private key corresponding to any data sharing end are determined based on the following method:
[0099] Randomly generate a seed polynomial, and obtain a coefficient matrix of the seed polynomial and an upper triangular matrix and a lower triangular matrix corresponding to the coefficient matrix;
[0100] Randomly generate two matrices of the same size as the coefficient matrix and with elements of 0 or 1, as adjoint matrices of the upper triangular matrix and the lower triangular matrix corresponding to the coefficient matrix, respectively;
[0101] Multiply the product of the upper triangular matrix corresponding to the coefficient matrix and its adjoint matrix by the product of the lower triangular matrix corresponding to the coefficient matrix and its adjoint matrix to obtain a public key;
[0102] Based on multiple random numbers, multiple columns are selected from the public key as the public key corresponding to any one of the data sharing terminals, and based on the multiple random numbers, multiple rows are selected from the inverse matrix of the public key to obtain the private key corresponding to any one of the data sharing terminals and return it to any one of the data sharing terminals.
[0103] Figure 4 is a schematic diagram of the structure of the electronic device provided by the present invention, such as Figure 4 As shown, the electronic device may include: a processor (processor) 410, a memory (memory) 420, a communication interface (Communications Interface) 430 and a communication bus 440, wherein the processor 410, the memory 420, and the communication interface 430 communicate with each other through the communication bus 440. The processor 410 can call the logic instructions in the memory 420 to execute a data sharing method based on a data sharing center, the method including: obtaining multiple business data clusters of the data sharing end; any business data cluster contains business data of the associated business type; based on the field similarity of the fields of each business data in any business data cluster, constructing a matching field group of any business data cluster; selecting a seed field or a singular field from each matching field group of any business data cluster, respectively, obtaining a mapping relationship between the seed field or the singular field and the unified standard field issued by the supervision end, and based on the mapping relationship between the seed field or the singular field and the unified standard field, determining the mapping relationship between the fields in each matching field group of any business data cluster and the unified standard field and constructing a mapping table of any business data cluster; based on the mapping tables of each business data cluster of the data sharing end, converting and storing the reported data of the data sharing end.
[0104] In addition, the logic instructions in the above-mentioned memory 420 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0105] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute a data sharing method based on a data sharing center provided by the above methods, the method including: obtaining multiple business data clusters of a data sharing end; any business data cluster contains business data of an associated business type; based on the field similarity of the fields of each business data in any business data cluster, constructing a matching field group of any business data cluster; selecting a seed field or a singular field from each matching field group of any business data cluster, respectively, obtaining a mapping relationship between the seed field or the singular field and the unified standard field issued by the regulatory end, and based on the mapping relationship between the seed field or the singular field and the unified standard field, determining the mapping relationship between the fields in each matching field group of any business data cluster and the unified standard field and constructing a mapping table of any business data cluster; based on the mapping table of each business data cluster of the data sharing end, converting and storing the reported data of the data sharing end.
[0106] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the processor executes the above-mentioned data sharing method based on a data sharing center, the method comprising: obtaining multiple business data clusters of the data sharing end; any business data cluster contains business data of associated business types; based on the field similarity of the fields of each business data in any business data cluster, constructing a matching field group of any business data cluster; selecting a seed field or a singular field from each matching field group of any business data cluster, respectively, obtaining a mapping relationship between the seed field or the singular field and the unified standard field issued by the supervision end, and based on the mapping relationship between the seed field or the singular field and the unified standard field, determining the mapping relationship between the fields in each matching field group of any business data cluster and the unified standard field and constructing a mapping table of any business data cluster; based on the mapping table of each business data cluster of the data sharing end, converting and storing the reported data of the data sharing end.
[0107] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0108] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0109] 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 make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A data sharing method based on a data sharing center, characterized in that: include: Obtain multiple business data clusters from the data sharing end; Any business data cluster contains business data of the associated business type; Based on the field similarity of the fields of each business data in any business data cluster, construct a matching field group of any business data cluster; Select a seed field or a singular field from each matching field group of any business data cluster, obtain a mapping relationship between the seed field or the singular field and the unified standard field issued by the supervisory end, and based on the mapping relationship between the seed field or the singular field and the unified standard field, determine the mapping relationship between the fields in each matching field group of any business data cluster and the unified standard field and construct a mapping table for any business data cluster; Based on the mapping table of each business data cluster of the data sharing terminal, the reported data of the data sharing terminal is converted and stored.
2. A data sharing method based on a data sharing center according to claim 1, characterized in that: Based on the field similarity of the fields of each business data in any business data cluster, a matching field group of any business data cluster is constructed, including: Determine a candidate matching field group based on the name similarity of the fields of each business data in any business data cluster; Based on the name similarity, numerical unit matching result and data type matching result of each field in the candidate matching field group, a matching field group of any business data cluster is constructed.
3. According to claim 2, a data sharing method based on a data sharing center, based on the name similarity, numerical unit matching result and data type matching result of each field in the candidate matching field group, constructing the matching field group of any business data cluster, comprising: If the name similarity of any two fields in the candidate matching field group is higher than a preset threshold and both the numerical unit matching result and the data type matching result indicate a match, it is determined that the any two fields match, and the matching fields in the candidate matching field group are placed in the same matching field group.
4. A data sharing method based on a data sharing center according to claim 1, characterized in that: The multiple business data clusters of any data sharing end are determined based on the following method: Based on the database table structure corresponding to each business type at any data sharing end, determine the foreign keys in each database table; Based on the foreign keys in the database table corresponding to each business type, the associated business type is determined, and a business data cluster is constructed based on the business data of the associated business type.
5. A data sharing method based on a data sharing center according to any one of claims 1 to 4, characterized in that: The data sharing method further includes: Obtaining a data access request from a data requesting end, and confirming the identity of the data requesting end; After the data request end passes the identity confirmation, obtaining the data description of the data to be accessed and the business type of the data to be accessed in the data access request; Based on the business data cluster corresponding to the business type of the data to be accessed at the data requesting end, obtaining a mapping table corresponding to the business type of the data to be accessed at the data requesting end; After the data to be accessed is retrieved based on the data description of the data to be accessed, the data to be accessed is converted based on a mapping table of the data request end corresponding to the business type of the data to be accessed, and the converted data is sent to the data request end.
6. A data sharing method based on a data sharing center according to claim 5, characterized in that: Confirming the identity of the data requesting end includes: Obtaining identity information contained in the data access request of the data request end; Sending a randomly specified service type to the data request end, so that the data request end returns any service data corresponding to the randomly specified service type encrypted by using a private key; Based on the identity information included in the data access request of the data requesting end, determining a mapping table corresponding to the randomly specified service type of the data sharing end indicated by the identity information; The business data returned by the data requesting end is decrypted based on the public key corresponding to the data sharing end indicated by the identity information. If the decryption is successful, the decrypted data is converted based on the mapping table corresponding to the randomly specified business type based on the data sharing end indicated by the identity information, and when all fields are converted successfully, it is determined that the data requesting end has passed the identity confirmation.
7. A data sharing method based on a data sharing center according to claim 6, characterized in that: The public key and private key corresponding to any data sharing end are determined based on the following method: Randomly generate a seed polynomial, and obtain a coefficient matrix of the seed polynomial and an upper triangular matrix and a lower triangular matrix corresponding to the coefficient matrix; Randomly generate two matrices of the same size as the coefficient matrix and with elements of 0 or 1, as adjoint matrices of the upper triangular matrix and the lower triangular matrix corresponding to the coefficient matrix, respectively; Multiply the product of the upper triangular matrix corresponding to the coefficient matrix and its adjoint matrix by the product of the lower triangular matrix corresponding to the coefficient matrix and its adjoint matrix to obtain a public key; Based on multiple random numbers, multiple columns are selected from the public key as the public key corresponding to any one of the data sharing terminals, and based on the multiple random numbers, multiple rows are selected from the inverse matrix of the public key to obtain the private key corresponding to any one of the data sharing terminals and return it to any one of the data sharing terminals.
8. A data sharing device based on a data sharing center, characterized in that: include: A cluster acquisition unit, used to acquire multiple business data clusters from a data sharing terminal; Any business data cluster contains business data of the associated business type; A field matching unit, configured to construct a matching field group of any business data cluster based on the field similarity of the fields of each business data in any business data cluster; A mapping table construction unit, used to select a seed field or a singular field from each matching field group of any business data class cluster, obtain a mapping relationship between the seed field or the singular field and the unified standard field issued by the supervision end, and based on the mapping relationship between the seed field or the singular field and the unified standard field, determine the mapping relationship between the fields in each matching field group of any business data class cluster and the unified standard field and construct a mapping table for any business data class cluster; The data conversion storage unit is used to convert and store the reported data of the data sharing terminal based on the mapping table of each business data cluster of the data sharing terminal.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, a data sharing method based on a data sharing center as described in any one of claims 1 to 7 is implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, it implements a data sharing method based on a data sharing center as described in any one of claims 1 to 7.
Citation Information
Patent Citations
One-step data exchange method, device and equipment and storage medium
CN111930821A
Data processing method, device and system
CN115033275A
Data migration method and device, equipment and storage medium
CN117290331A
Data flow information determination method and device, equipment and storage medium
CN118069652A
Business data monitoring method and device, electronic equipment and computer readable medium
CN118132383A
Cited By
Data asset sharing method and system based on square and circular cloud
CN120086220A