A system to realize cross-platform unified data dictionary and user system
Through the cross-platform unified data dictionary and user system, the problem of low-level platform data sharing and consistency is solved, the unified management and query of key personnel and service information is realized, and the consistency and security of the data dictionary are ensured.
Patent Information
- Application Number
- CN202410193867.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-21
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-02-21
AI Technical Summary
The data information collected by multiple low-level platforms cannot be shared, and due to regional or language differences, the uploaded data information is inconsistent, affecting the query and use of staff.
Design a cross-platform unified data dictionary and user system. Through the communication connection between the first service platform and multiple second service platforms, it receives and processes target information, establishes a keyword dictionary, and separates the service dictionary and personnel dictionary. Send to various platforms to ensure data consistency and security.
It realizes the unified management and query of key personnel and service information on each platform, facilitates data statistics and use, ensures the consistency of the data dictionary, reduces storage space occupation and improves data security.
Smart Images

Figure CN118069866B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a system for realizing a cross-platform unified data dictionary and user system. Background Art
[0002] At present, the data information collected by multiple low-level platforms that cannot interact with each other cannot be shared. In addition, when the data collected by multiple low-level platforms are transmitted to a higher-level platform for unified storage, due to regional or language differences, for the same service, since there is no unified standard, each low-level platform may upload different data information, which will affect the staff's query and use of the required information. Summary of the invention
[0003] In view of the above technical problems, the technical solution adopted by the present invention is:
[0004] A system for realizing a cross-platform unified data dictionary and user system, the system comprising: a first service platform and m second service platforms, the first service platform being in communication connection with each of the second service platforms, the first service platform comprising a processor and a memory storing a computer program, and when the computer program is executed by the processor, the following steps are implemented:
[0005] S100, when receiving target information sent by each second service platform, establishing a key dictionary set according to the target information sent by each second service platform, and storing the key dictionary set in the first service platform; the key dictionary set includes a plurality of key dictionaries.
[0006] S200, traversing a key dictionary set and when a dictionary type of any key dictionary in the key dictionary set is a service dictionary type, taking the key dictionary as a first target dictionary, wherein the service dictionary type refers to a dictionary type in which each key in the dictionary represents a service.
[0007] S300: Send the first target dictionary to each of the second service platforms.
[0008] S400: When the dictionary type of any key dictionary in the key dictionary set is a person dictionary type, use the key dictionary as a second target dictionary, wherein the person dictionary type refers to a dictionary type in which each key in the dictionary represents a person's identity.
[0009] S500: When a target person query request sent by any second service platform is received, a second target dictionary corresponding to the target person query request is transmitted to the second service platform that sent the target person query request.
[0010] Compared with the prior art, the present invention has obvious beneficial effects. By means of the above technical solution, the system for realizing a cross-platform unified data dictionary and user system provided by the present invention can achieve considerable technical advancement and practicality, and has wide industrial utilization value, and has at least the following beneficial effects:
[0011] The present invention provides a system for realizing a cross-platform unified data dictionary and user system, the system comprising: a first service platform and m second service platforms, the first service platform being in communication connection with each of the second service platforms, the first service platform comprising a processor and a memory storing a computer program, and when the computer program is executed by the processor, the following steps are implemented: when receiving target information sent by each second service platform, a key dictionary set is established according to the target information sent by each second service platform, and the key dictionary set is stored in the first service platform; the key dictionary set is traversed and when the dictionary type of any key dictionary in the key dictionary set is a service dictionary type, the key dictionary is used as a first target dictionary, and the first target dictionary is sent to each of the second service platforms; In the second service platform, when the dictionary type of any key dictionary in the key dictionary set is a personnel dictionary type, the key dictionary is used as the second target dictionary. When a target personnel query request sent by any second service platform is received, the second target dictionary corresponding to the target personnel query request is transmitted to the second service platform that sent the target personnel query request. It can be seen from the above content that the present invention establishes a key dictionary set according to the target information sent by each second service platform, and uniformly stores the key dictionary set in the first service platform, which is convenient for each second service platform to query and use various data information of key personnel. In addition, the present invention sends the first target dictionary to several second service platforms, ensuring the consistency of the dictionary of each second service platform, which is convenient for the statistics of various data information of personnel. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0013] Figure 1 A flowchart of a system executing a computer program for realizing a cross-platform unified data dictionary and user system provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0014] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only 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 those skilled in the art without creative work are within the scope of protection of the present invention.
[0015] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.
[0016] The present invention provides a system for realizing a cross-platform unified data dictionary and user system, the system comprising: a first service platform and m second service platforms, the first service platform being in communication connection with each of the second service platforms, the first service platform comprising a processor and a memory storing a computer program, and when the computer program is executed by the processor, the following steps are implemented, such as Figure 1 As shown:
[0017] S100, when receiving target information sent by each second service platform, establishing a key dictionary set according to the target information sent by each second service platform, and storing the key dictionary set in the first service platform; the key dictionary set includes a plurality of key dictionaries.
[0018] Specifically, the key dictionary set includes a key personnel dictionary and a key service dictionary.
[0019] Specifically, the first service platform is used to monitor the second service platform; it can be understood that: the level of the first service platform is greater than the level of the second service platform, that is, the first service platform can monitor the operation status, storage status, etc. of the second service platform.
[0020] Specifically, the target information includes key personnel information corresponding to the second service platform and key service information corresponding to the second service platform, wherein the key personnel information at least includes: the identity identification of the key personnel, the identity type of the key personnel, and the identity priority of the key personnel; the key service information includes: the service name, and the service text set corresponding to the service name.
[0021] Specifically, the key personnel refers to any personnel in any second service platform who needs to store information in the first service platform.
[0022] Furthermore, the identity identifier of the key personnel is used to represent the identity of the key personnel. For example, the identity identifier of the key personnel may be a name.
[0023] Furthermore, the identity type of the key personnel refers to the position type of the key personnel, which can be understood as: different position types have different position titles.
[0024] Furthermore, the identity priority of the key personnel refers to the grade level of the key personnel, so as to distinguish the superior-subordinate relationship between several key personnel.
[0025] Furthermore, the service name is used to characterize the function of the corresponding service. For example, the service name may be personnel information collection.
[0026] Specifically, the service text set includes a plurality of service texts, and the service text is any data name uploaded by any key personnel according to corresponding service needs, such as blood type, gender, mobile phone number, etc.
[0027] In the above, by establishing a unified key personnel dictionary based on the key personnel information sent by each second service platform, and establishing a unified key service dictionary based on the key service information sent by each second service platform, the construction of a unified data dictionary across platforms is realized, which facilitates the unified management and query of data.
[0028] Specifically, the step S100 also includes the following steps:
[0029] S101, when the key personnel information in the target information sent by each second service platform is obtained, a key personnel dictionary is established according to all the key personnel information; it can be understood that: the key personnel dictionary includes the key personnel information sent by each second service platform, that is, a user system is formed.
[0030] Furthermore, step S101 also includes the following steps:
[0031] S1011, obtain key personnel information set A = {A1, A2, ..., Ai , ..., A m}, A i ={A i1 , A i2 , ..., A iy , ..., A iq(i)}, A iy ={A iy1 , A iy2 , A iy3}, A iy1 It refers to the identity of the yth key person corresponding to the ith second service platform. iy2 A iy1 The corresponding key personnel identity type, A iy3 A iy1 The corresponding identity priority, i=1, 2, ..., m, y=1, 2, ..., q(i), q(i) is the number of key personnel corresponding to the i-th second service platform.
[0032] S1012, for all A iy1 De-duplication processing is performed to obtain a key identity identifier and the key identity identifier is used as a key in the key personnel dictionary.
[0033] Specifically, the key identity refers to all A iy1 Any identity obtained after deleting the repeated identity identifiers in ; it can be understood that any two key identity identifiers are different.
[0034] S1013, obtaining all identity types and all identity priorities corresponding to the key identity identifier from A, and taking the identity type corresponding to any of the key identity identifiers or the identity priority corresponding to any of the key identity identifiers as a value in the key personnel dictionary.
[0035] As described above, by obtaining a key personnel information set including identity identifiers, identity types and identity priorities, and deduplicating the identity identifiers, several different identity identifiers can be obtained, and at the same time, the identity type and identity priority corresponding to each identity identifier are obtained, thereby completing the construction of a key personnel dictionary, which facilitates users of the second service platform to query and use key personnel information.
[0036] S103, when the key service information in the target information sent by each second service platform is obtained, a key service dictionary is established according to all the key service information, wherein the key service dictionary includes keys in the key service dictionary and values in the key service dictionary.
[0037] Furthermore, step S103 also includes the following steps:
[0038] S1031, obtain key service information set B = {B1, B2, ..., B i , ..., B m}, B i = {B i1 , B i2 , ..., B ix , ..., B ip(i)}, B ix = {B ix1 , B ix2}, B ix1 refers to the service name corresponding to the xth key service of the ith second service platform, B ix2 Refers to B ix1 The corresponding service text set, i=1, 2, ..., m, x=1, 2, ..., p(i), p(i) is the number of key services in the i-th second service platform.
[0039] S1032, according to B ix1 , obtain the key service cluster D from B = {D1, D2, ..., D g , ..., D z}, D g ={D g1 , D g2 , ..., D gr , ..., D gs}, D gr is the service name corresponding to the rth key service in the gth key service cluster, g=1, 2, ..., z, z is the number of key service clusters, r=1, 2, ..., s, s is the number of service names corresponding to the key services in the key service cluster.
[0040] Specifically, the key service cluster is a cluster obtained by dividing B according to a clustering algorithm, which can be understood as: the similarity of the key service word vectors corresponding to any two key services in the same key service cluster is greater than a preset threshold. The technicians in this field set the preset threshold according to actual needs, for example, 90%.
[0041] S1033, according to B ix2 , get the key service text set D corresponding to D 0 ={D 0 1, D 0 2, ..., D 0 g , ..., D 0 z}, D 0 g ={D 0 g1 , D 0 g2 , ..., D0 gr , ..., D 0 gs}, D 0 gr D gr The corresponding service text set.
[0042] S1034, according to D and D 0 , get the key service dictionary.
[0043] As described above, by obtaining a key service information set including a service name and a service text set, a key service dictionary can be constructed on the first service platform according to the correspondence between the service name and the service text set, so as to facilitate users of the second service platform to query and use the key service information.
[0044] Furthermore, step S1034 also includes the following steps:
[0045] S20, according to D, obtain the similarity set F corresponding to D = {F1, F2, ..., F g , ..., F z}, F g ={F g1 , F g2 , ..., F gr , ..., F gs}, F gr D gr and D g The similarity.
[0046] Specifically, F gr Meet the following conditions:
[0047] F gr =(∑ g-1 a=1 K a gr ) / (g-1), K a gr It means D gr The corresponding word vector and D gr The similarity between the word vectors of the a-th associated name among the corresponding associated names, D gr The corresponding several associated names refer to D g Except D gr The service names corresponding to the key services other than , those skilled in the art know the method of obtaining word vectors based on words, which will not be repeated here.
[0048] S21, traverse each F g And when F gr When D is the maximum similarity, gr As a key in the key services dictionary.
[0049] S22, according to D 0 , get D 0 The corresponding key service text list H = {H1, H2, ..., H g , ..., H z}, H g D 0 g The corresponding key service text, wherein the D 0 g The corresponding key service text is D 0 g1 , D 0 g2 , ..., D 0 gr , ..., D 0 gs The merged text.
[0050] S23, according to H, determine the second keyword set H corresponding to H 0 ={H 0 1, H 0 2, ..., H 0 g , ..., H 0 z}, where H 0 g D 0 g The corresponding second keyword list, and each H 0 g The second keyword within the service dictionary is used as the value of the key.
[0051] Furthermore, in step S23, H is determined by the following steps: 0 g The second keyword in:
[0052] S231, from H g Extract all the first keywords and get H g The priority of each of the first keywords.
[0053] Specifically, the first keyword refers to a keyword corresponding to any service text extracted from a key service text. Those skilled in the art may know that any method of extracting keywords from a text in the prior art falls within the protection scope of the present invention and will not be described in detail herein.
[0054] S232: When the priority of the first keyword is greater than a preset priority threshold, use the first keyword as a second keyword.
[0055] Specifically, the priority of the first keyword meets the following conditions:
[0056] W p =C p / L p ×log(z / (1+L 0 p )), where W p refers to the priority of the pth first keyword, C p It means the pth first keyword in H g The number of occurrences in L p It means H g The sum of the number of occurrences of all the first keywords in L 0 p It refers to the number of key service texts in H that contain the pth first keyword.
[0057] In the above, by calculating the similarity corresponding to each service name and using the service name corresponding to the maximum similarity as the key in the key service dictionary, it better meets the user's query needs. By obtaining the priority of each first keyword, the value in the constructed key service dictionary is more accurate.
[0058] S200, traversing a key dictionary set and when a dictionary type of any key dictionary in the key dictionary set is a service dictionary type, taking the key dictionary as a first target dictionary, wherein the service dictionary type refers to a dictionary type in which each key in the dictionary represents a service.
[0059] As described above, by classifying the key dictionary belonging to the service dictionary type as the first target dictionary, the service dictionary type can be distinguished from other dictionary types in the key dictionary set and the first target dictionary can be sent to each second service platform separately, so that the first target dictionary can be processed and used separately.
[0060] S300, sending the first target dictionary to each of the second service platforms; it can be understood that: each of the second service platforms can establish a local service dictionary according to the first target dictionary.
[0061] As described above, by sending the first target dictionary, that is, the key dictionary belonging to the service dictionary type, to each second service platform, and storing the first target dictionary in each second service platform, the key personnel of each second service platform can query and use the first target dictionary, and when using the same service, they can query for unified words, thereby achieving dictionary consistency in each second service platform.
[0062] S400: When the dictionary type of any key dictionary in the key dictionary set is a personnel dictionary type, use the key dictionary as a second target dictionary, wherein the personnel dictionary type refers to a dictionary type in which each key in the dictionary represents a personnel identity.
[0063] As mentioned above, by classifying the key dictionary belonging to the personnel dictionary type as the second target dictionary, the personnel dictionary type can be distinguished from the service dictionary type, and only the first target dictionary is actively sent without sending the second target dictionary, preventing each second service platform from storing too much key personnel information, thereby reducing the occupation of space resources, preventing data leakage, and increasing the security of key personnel data.
[0064] S500: When a target person query request sent by any second service platform is received, a second target dictionary corresponding to the target person query request is transmitted to the second service platform that sent the target person query request.
[0065] Specifically, the target person query request refers to a request for querying the identity type or identity priority of the target person according to the key identity identifier of the target person.
[0066] As mentioned above, when the first service platform sends the second target dictionary, it is premised on receiving the target personnel query request corresponding to the second target dictionary sent by the second service platform. This setting enables the first service platform to send corresponding information according to the query requirements of the second service platform, preventing multiple sending and occupying the storage space of the second service platform, and at the same time preventing the leakage of other key personnel information.
[0067] In summary, the present invention provides a system for realizing a cross-platform unified data dictionary and user system, the system comprising: a first service platform and m second service platforms, the first service platform being in communication connection with each of the second service platforms, the first service platform comprising a processor and a memory storing a computer program, and when the computer program is executed by the processor, the following steps are implemented: when receiving target information sent by each second service platform, establishing a key dictionary set according to the target information sent by each second service platform, and storing the key dictionary set in the first service platform; traversing the key dictionary set and when the dictionary type of any key dictionary in the key dictionary set is a service dictionary type, using the key dictionary as the first target dictionary, and sending the first target dictionary to each second service platform; In the second service platform, when the dictionary type of any key dictionary in the key dictionary set is a personnel dictionary type, the key dictionary is used as the second target dictionary. When a target personnel query request sent by any second service platform is received, the second target dictionary corresponding to the target personnel query request is transmitted to the second service platform that sent the target personnel query request. It can be seen from the above content that the present invention establishes a key dictionary set according to the target information sent by each second service platform, and uniformly stores the key dictionary set in the first service platform, which is convenient for each second service platform to query and use various data information of key personnel. In addition, the present invention sends the first target dictionary to several second service platforms, which ensures the consistency of the dictionary of each second service platform and facilitates the statistics of various data information of personnel.
[0068] Although some specific embodiments of the present invention have been described in detail by way of example, it will be appreciated by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present invention. It will also be appreciated by those skilled in the art that various modifications may be made to the embodiments without departing from the scope and spirit of the present invention. The scope of the present invention is defined by the appended claims.
Claims
1. A system for realizing a cross-platform unified data dictionary and user system, characterized in that: The system includes: a first service platform and m second service platforms, the first service platform is in communication connection with each of the second service platforms, the first service platform includes a processor and a memory storing a computer program, and when the computer program is executed by the processor, the following steps are implemented: S100, when receiving target information sent by each second service platform, establishing a key dictionary set according to the target information sent by each second service platform, and storing the key dictionary set in the first service platform; the key dictionary set includes a plurality of key dictionaries; S200, traversing a key dictionary set and when a dictionary type of any key dictionary in the key dictionary set is a service dictionary type, taking the key dictionary as a first target dictionary, wherein the service dictionary type refers to a dictionary type in which each key in the dictionary represents a service; S300, sending the first target dictionary to each of the second service platforms; S400, when the dictionary type of any key dictionary in the key dictionary set is a person dictionary type, use the key dictionary as a second target dictionary, wherein the person dictionary type refers to a dictionary type in which each key in the dictionary represents a person's identity; S500: When a target person query request sent by any second service platform is received, a second target dictionary corresponding to the target person query request is transmitted to the second service platform that sent the target person query request.
2. The system for realizing a cross-platform unified data dictionary and user system according to claim 1, characterized in that: The target information includes key personnel information corresponding to the second service platform and key service information corresponding to the second service platform.
3. The system for realizing a cross-platform unified data dictionary and user system according to claim 2, characterized in that: The step S100 also includes the following steps: S101, when the key personnel information in the target information sent by each second service platform is obtained, a key personnel dictionary is established according to all the key personnel information, wherein the key personnel dictionary includes keys in the key personnel dictionary and values in the key personnel dictionary; S103, when the key service information in the target information sent by each second service platform is obtained, a key service dictionary is established according to all the key service information, wherein the key service dictionary includes keys in the key service dictionary and values in the key service dictionary.
4. The system for realizing a cross-platform unified data dictionary and user system according to claim 3, characterized in that: The step S101 also includes the following steps: S1011, obtain key personnel information set A = {A1, A2, ..., A i , ..., A m }, A i ={A i1 , A i2 , ..., A iy , ..., A iq(i) }, A iy ={A iy1 , A iy2 , A iy3 }, A iy1 It refers to the identity of the yth key person corresponding to the ith second service platform. iy2 A iy1 The corresponding key personnel identity type, A iy3 A iy1 The corresponding identity priority, i=1, 2, ..., m, y=1, 2, ..., q(i), q(i) is the number of key personnel corresponding to the i-th second service platform; S1012, for all A iy1 Perform deduplication processing to obtain a key identity identifier and use the key identity identifier as a key in a key personnel dictionary; S1013, obtaining all identity types and all identity priorities corresponding to the key identity identifier from A, and taking the identity type corresponding to any of the key identity identifiers or the identity priority corresponding to any of the key identity identifiers as a value in the key personnel dictionary.
5. The system for realizing a cross-platform unified data dictionary and user system according to claim 4, characterized in that: The identity priority refers to the grade level of the key personnel.
6. The system for realizing a cross-platform unified data dictionary and user system according to claim 3, characterized in that: The step S103 also includes the following steps: S1031, obtain key service information set B = {B1, B2, ..., B i , ..., B m }, B i = {B i1 , B i2 , ..., B ix , ..., B ip(i) }, B ix = {B ix1 , B ix2 }, B ix1 refers to the service name corresponding to the xth key service of the ith second service platform, B ix2 Refers to B ix1 Corresponding service text set, i=1, 2, ..., m, x=1, 2, ..., p(i), p(i) is the number of key services in the i-th second service platform; S1032, according to B ix1 , obtain the key service cluster D from B = {D1, D2, ..., D g , ..., D z }, D g ={D g1 , D g2 , ..., D gr , ..., D gs }, D gr is the service name corresponding to the rth key service in the gth key service cluster, g = 1, 2, ..., z, z is the number of key service clusters, r = 1, 2, ..., s, s is the number of service names corresponding to the key services in the key service cluster; S1033, according to B ix2 , get the key service text set D corresponding to D from B 0 ={D 0 1, D 0 2, ..., D 0 g , ..., D 0 z }, D 0 g ={D 0 g1 , D 0 g2 , ..., D 0 gr , ..., D 0 gs }, D 0 gr D gr The corresponding service text set; S1034, according to D and D 0 , get the key service dictionary.
7. The system for realizing a cross-platform unified data dictionary and user system according to claim 6, characterized in that: The step S1034 also includes the following steps: S20, according to D, obtain the similarity set F corresponding to D = {F1, F2, ..., F g , ..., F z }, F g ={F g1 , F g2 , ..., F gr , ..., F gs }, F gr D gr and D g similarity; S21, traverse each F g And when F gr When D is the maximum similarity, gr as a key in the key services dictionary; S22, according to D 0 , get D 0 The corresponding key service text list H = {H1, H2, ..., H g , ..., H z }, H g D 0 g The corresponding key service text, wherein the D 0 g The corresponding key service text is D 0 g1 , D 0 g2 , ..., D 0 gr , ..., D 0 gs The merged text; S23, according to H, determine the second keyword set H corresponding to H 0 ={H 0 1, H 0 2, ..., H 0 g , ..., H 0 z }, where H 0 g D 0 g The corresponding second keyword list, and each H 0 g The second keyword within the service dictionary is used as the value of the key.
8. The system for realizing a cross-platform unified data dictionary and user system according to claim 7, characterized in that: F gr Meet the following conditions: F gr =(∑ g-1 a=1 K a gr ) / (g-1), K a gr It means D gr The corresponding word vector and D gr The similarity between the word vectors of the a-th associated name among the corresponding associated names, where D gr The corresponding several associated names refer to D g Except D gr The service name corresponding to the key service other than .
9. The system for realizing a cross-platform unified data dictionary and user system according to claim 7, characterized in that: In step S23, H is also determined by the following steps: 0 g The second keyword in: S231, from H g Extract all the first keywords and get H g a priority of each of the first keywords; S232: When the priority of the first keyword is greater than a preset priority threshold, use the first keyword as a second keyword.
10. The system for realizing a cross-platform unified data dictionary and user system according to claim 9, characterized in that: The priority of the first keyword meets the following conditions: W p =C p / L p ×log(z / (1+L 0 p )), where W p refers to the priority of the pth first keyword, C p It means the pth first keyword in H g The number of occurrences in L p It means H g The sum of the number of occurrences of all the first keywords in L 0 p It refers to the number of key service texts in H that contain the pth first keyword.
