A method, system, device, program product and medium for standard data processing

By extracting the annotations in the standard data and obtaining the data description, the problems of low generality of standard data translation codes and cumbersome translation process in the prior art are solved, and more efficient standard data translation and processing are achieved.

CN115114336BActive Publication Date: 2025-05-09CHINA CONSTRUCTION BANK +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210764851.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-29
Publication Date
2025-05-09
Estimated Expiration
2042-06-29

AI Technical Summary

Technical Problem

In the prior art, standard data translation codes are of low versatility and cumbersome translation process.

Method used

By extracting the annotations in the standard data to be serialized, the corresponding data description is obtained based on the annotations, and the data description is converted into the corresponding description field, and added to the serialization result, the processing of the standard data is realized.

Benefits of technology

It improves the universality of the translation code, simplifies the translation process, and avoids repeated settings of data models in the business system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115114336B_ABST
    Figure CN115114336B_ABST
Patent Text Reader

Abstract

The present application relates to the field of database technology, and provides a method, system, device, program product and medium for processing standard data, which is used to solve the technical problems of low versatility and cumbersome translation process of standard data translation code in the prior art. The method for processing standard data includes: extracting annotations in the standard data to be serialized, and obtaining corresponding data descriptions according to the annotations; wherein the data description is the business meaning corresponding to the standard data; serializing the standard data to be serialized to generate a serialization result; converting the data description into a corresponding description field, and adding it to the serialization result to obtain the processing result of the standard data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of database technology, and in particular to a method, system, device, program product and medium for standard data processing. Background Art

[0002] With the continuous development of computer technology, enterprises are increasingly using various customized business systems to provide services to users. Business systems usually have various business data models customized according to the business areas and business development status of the enterprises. Business data models are responsible for the storage and processing of business data. When users need to obtain business data, the business data model usually extracts the business data and sends it to the user.

[0003] In actual business systems, business data models usually store and process standard data that can be directly recognized and processed by business data models. These standard data are usually field attributes or coded values ​​of a business data model formulated within a certain business domain, and users cannot directly understand standard data. Therefore, when the business data model outputs standard data, the standard data must also be translated into the corresponding business description. In current business systems, translating standard data into corresponding business descriptions usually requires practitioners to manually write translation code. In scenarios where translation is required, the business system queries the standard data database through the translation code, sets the description corresponding to the code value into a fixed data model, and then returns it to the user. This translation process is repetitive and cumbersome, and the translation code can only adapt to the corresponding business system and cannot be reused.

[0004] In view of this, the low versatility of standard data translation codes and the cumbersome translation process in current technology have become a technical problem that needs to be solved urgently. Summary of the invention

[0005] The present application provides a method, system, device, program product and medium for standard data processing, which are used to solve the technical problems in the prior art that the standard data translation code has low versatility and the translation process is complicated.

[0006] In a first aspect, the present application provides a method for standard data processing, the method for standard data processing comprising:

[0007] Extract annotations from the standard data to be serialized, and obtain corresponding data descriptions according to the annotations; wherein the data descriptions are business meanings corresponding to the standard data;

[0008] Serializing the standard data to be serialized to generate a serialization result;

[0009] The data description is converted into corresponding description fields and added to the serialization result to obtain the processing result of the standard data.

[0010] Optionally, obtaining a corresponding data description according to the annotation includes:

[0011] If there is a data description corresponding to the annotation in the standard data cache, directly obtain the data description from the standard data cache;

[0012] If there is no data description corresponding to the annotation in the standard data cache, the data description corresponding to the annotation is queried from the standard data service subunit, and the queried data description is stored in the standard data cache, and then the data description corresponding to the annotation is obtained from the standard data cache; wherein the standard data service subunit stores data descriptions corresponding to all annotations.

[0013] Optionally, storing the queried data description in the standard data cache includes:

[0014] When the capacity of the standard data cache has reached the upper limit, the least used data description in the standard data cache within a preset time period starting from the current time is deleted, and the queried data description is stored in the standard data cache.

[0015] Optionally, converting the data description into a corresponding description field includes:

[0016] According to the data value in the standard data corresponding to the data description, query and obtain the description field corresponding to the data value in the data description;

[0017] The description field corresponding to the data value is used as the description field corresponding to the standard data.

[0018] Optionally, converting the data description into a corresponding description field and adding it to the serialization result includes:

[0019] The description field is serialized to obtain a serialized description field, and the serialized description field is inserted into the serialization result according to the corresponding position of the description field in the standard data to obtain a processing result of the standard data.

[0020] Optionally, before extracting the annotations from the standard data to be serialized, annotating the business system that outputs the standard data so that the standard data to be serialized output by the business system contains the annotations, including:

[0021] Obtain the data model field that needs to provide data description in the business system, and insert the annotation corresponding to the data model field into the corresponding data model field; wherein the annotation does not affect the operation of the data model; when the business system outputs standard data, insert the annotation in the data model field that outputs the standard data into the corresponding position in the standard data and output it together with the standard data.

[0022] In a second aspect, an embodiment of the present application provides a system for standard data processing, the system for standard data processing comprising:

[0023] A standard data translation unit, used to extract annotations in the standard data to be serialized, and obtain corresponding data descriptions according to the annotations; wherein the data descriptions are business meanings corresponding to the standard data;

[0024] A serialization unit, used for serializing the standard data to be serialized and generating a serialization result;

[0025] The processing result output unit is used to convert the data description into corresponding description fields and add them to the serialization result to obtain the processing result of the standard data.

[0026] Optionally, the standard data translation unit is used to:

[0027] If there is a data description corresponding to the annotation in the standard data cache, directly obtain the data description from the standard data cache;

[0028] If there is no data description corresponding to the annotation in the standard data cache, the data description corresponding to the annotation is queried from the standard data service subunit, and the queried data description is stored in the standard data cache, and then the data description corresponding to the annotation is obtained from the standard data cache; wherein the standard data service subunit stores data descriptions corresponding to all annotations.

[0029] Optionally, the standard data service subunit is used to:

[0030] When the capacity of the standard data cache has reached the upper limit, the least used data description in the standard data cache within a preset time period starting from the current time is deleted, and the queried data description is stored in the standard data cache.

[0031] Optionally, the processing result output unit is used to:

[0032] According to the data value in the standard data corresponding to the data description, query and obtain the description field corresponding to the data value in the data description;

[0033] The description field corresponding to the data value is used as the description field corresponding to the data description.

[0034] Optionally, the processing result output unit is used to:

[0035] The description field is serialized to obtain a serialized description field, and the serialized description field is inserted into the serialization result according to the corresponding position of the description field in the standard data to obtain a processing result of the standard data.

[0036] Optionally, the standard data processing system further includes a data model annotation unit, and the data model annotation unit is used to:

[0037] A data model field in a business system that needs to provide a data description is obtained, and an annotation corresponding to the data model field is inserted into the corresponding data model field; wherein the annotation does not affect the operation of the data model.

[0038] In a third aspect, an embodiment of the present application provides a device for standard data processing, including:

[0039] at least one processor, and

[0040] a memory coupled to the at least one processor;

[0041] The memory stores instructions that can be executed by the at least one processor, and the at least one processor performs any one of the methods in the first aspect by executing the instructions stored in the memory.

[0042] In a fourth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the method as described in any one of the first aspects.

[0043] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions. When the computer instructions are executed on a computer, the computer implements the steps of the method as described in any one of the first aspects.

[0044] The technical solution in the embodiments of the present application has the following beneficial effects: the standard data processing system extracts annotations in the standard data to be serialized, and obtains corresponding data descriptions according to the annotations; serializes the standard data to be serialized to generate a serialization result; converts the data description into a corresponding description field, and adds it to the serialization result to obtain the processing result of the standard data; thus, after the business system completes data processing to obtain standard data and outputs it, standard data translation is performed, so that the process of translating standard data into data description is decoupled from the business system, thereby improving the versatility of the translation code, and at the same time, the standard data is translated using annotations, and the translation results are also added to the serialization results, without the need to repeatedly set the data model in the business system, thereby simplifying the translation process. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 It is a flowchart of a business request processing process provided by an embodiment of the present application;

[0046] Figure 2 is a flow chart of a method for standard data processing provided by an embodiment of the present application;

[0047] Figure 3 is a structural diagram of a standard data processing system provided in an embodiment of the present application;

[0048] Figure 4 is a structural diagram of a standard data translation unit provided in an embodiment of the present application;

[0049] Figure 5 is a schematic diagram of a standard data cache table provided in an embodiment of the present application;

[0050] Figure 6 is a schematic diagram of a standard data table provided in an embodiment of the present application;

[0051] Figure 7 is a structural schematic diagram of a standard data annotation unit provided in an embodiment of the present application;

[0052] Figure 8 It is a structural diagram of a standard data processing system provided in an embodiment of the present application;

[0053] Fig. 9 It is a structural diagram of a standard data annotation system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0054] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0055] In the technical solution of this application, the collection, dissemination, and use of data are in compliance with the requirements of relevant national laws and regulations.

[0056] In the prior art, the business request processing process usually includes the following five steps, see Figure 1 , Figure 1 A flowchart of a business request processing flow provided for an embodiment of the present application: 101, sending a request message for business query; 102, request message deserialization; 103, business system processing request message; 104, serializing the processed data; 105, sending serialization results. Among them, deserialization is to convert the binary data transmitted from the network into the original request message, and serialization is to convert the processed data into binary data for network transmission. And because the user cannot directly understand the standard data, therefore, the existing solution is usually to adjust the business system in step 103, using a method of manually writing translation code and embedding it into the business system, so that the business system can query the standard data database through the translation code, and set the description corresponding to the code value to a fixed data model, so that the standard data is processed into the corresponding data description, and then serialized and sent to the user. Obviously, in this process, the translation code needs to invade the business system, cannot be reused, and the translation process is cumbersome.

[0057] To this end, the present application provides a method, system, device, program product and medium for standard data processing, which are used to solve the technical problems in the prior art that the standard data translation code has low versatility and the translation process is complicated.

[0058] The technical solution in the embodiment of the present application is to solve the above technical problem. In step 104, the standard data processed by the business system is translated. The overall idea is as follows:

[0059] Provides a method for standard data processing, see Figure 2 , the method comprising:

[0060] 201. Extract annotations in the standard data to be serialized, and obtain corresponding data descriptions according to the annotations; wherein the data descriptions are business meanings corresponding to the standard data;

[0061] 202. Serialize the standard data to be serialized and generate a serialization result;

[0062] 203. Convert the data description into a corresponding description field and add it to the serialization result to obtain the processing result of the standard data.

[0063] Before introducing the above method, the standard data processing system required to perform the above method steps is introduced. Figure 3 , Figure 3A structural diagram of a standard data processing system provided in an embodiment of the present application, the standard data processing system in the embodiment of the present application includes three units, namely a standard data translation unit 301, a serialization unit 302, and a processing result output unit 303; wherein the standard data translation unit 301 is used to execute step 201, the serialization unit 302 is used to execute step 202, and the processing result output unit 303 is used to execute step 203.

[0064] For example, when the business system receives a user request and completes the processing in the system, the processed standard data {villager number: villager number 001, villager name: villager name x, @annotation (data classification code = "001") village code: 007} is sent to the standard data processing system, and the standard data processing system first sends the standard data to the standard data translation unit 301.

[0065] After obtaining the standard data, the standard data translation unit 301 extracts the annotation: (data classification code = "001") village code: 007. According to the annotation, the standard data translation unit 301 first searches for the data description with the data classification code of 001 in the standard data cache, and the result of the search is that the description of the field is the village name. Then, according to the standard data code (village code: 007), the description field corresponding to the data value 007 is searched as village A, and finally the description field corresponding to the annotation {(data classification code = "001") village code: 007} is generated comprehensively as {village name_DESC: village A}.

[0066] After the standard data translation unit 301 completes the annotation translation, the serialization unit 302 serializes the standard data {villager name: villager name x, @annotation (data classification code = "001") village code: 007}, and the serialized result is {E69D91 E6B091 E5A793 E5908D EFBC9A E69D91 E6B091 E5A793 E5908D78EFBC8C E68980 E5B19E E69D91 E4BBA3 E7A081 EFBC9A 30 30 37}.

[0067] Finally, the processing result output unit 303 serializes the description field {name of the village_DESC: Village A}, and obtains the serialization result of the description field as {E68980 E5B19E E69D91 E69D91 E5908D 5F 44 45 53 43EFBC9A 41 E69D91}, and adds the serialization result of the description field to the result after the standard data is serialized, and obtains the processing result as {E69D91 E6B091 E5A793 E5908D EFBC9A E69D91 E6B091 E5A793 E5908D78EFBC8C E68980 E5B19E E69D91 E69D91 E5908D 5F 44 45 53 43 EFBC9A 41 E69D91E68980 E5B19E E69D91 E4BBA3 E7A081 EFBC9A 30 30 37}.

[0068] In actual applications, the serialized results of the processing results obtained will be transmitted through the network and sent to the user end. After the user end receives the serialized results of the processing results, it will deserialize and obtain the final processing results {Villager name: Villager name x, Village name_DESC: Village A, Village code: 007}.

[0069] In the embodiment provided by the present invention, the system for processing standard data extracts annotations in the standard data to be serialized, obtains corresponding data descriptions according to the annotations; serializes the standard data to be serialized to generate a serialization result; converts the data description into a corresponding description field, and adds it to the serialization result to obtain the processing result of the standard data; thus, after the business system completes data processing to obtain the standard data and outputs it, the standard data is translated, so that the process of translating the standard data into data description is decoupled from the business system, thereby improving the versatility of the translation code. At the same time, the standard data is translated using annotations, and the translation results are also added to the serialization results. There is no need to repeatedly set the data model in the business system, thereby simplifying the translation process.

[0070] In a possible implementation manner, the specific implementation process of obtaining the corresponding data description according to the annotation in the aforementioned step 201 includes:

[0071] If there is a data description corresponding to the annotation in the standard data cache, the data description is directly obtained from the standard data cache;

[0072] If there is no data description corresponding to the annotation in the standard data cache, the data description corresponding to the annotation is queried from the standard data service subunit, and the queried data description is stored in the standard data cache, and then the data description corresponding to the annotation is obtained from the standard data cache; wherein the standard data service subunit stores the data descriptions corresponding to all annotations.

[0073] In this embodiment, when the standard data processing system executes the aforementioned step 201, it first searches the standard data cache for the corresponding data description. If the corresponding data description cannot be found in the standard data cache, it can search from the standard data service subunit. The structure of the standard data translation unit 301 at this time can be seen in Figure 4 , Figure 4 A structural diagram of a standard data translation unit provided in an embodiment of the present application, comprising: a standard data cache subunit 3011 and a standard data service subunit 3012.

[0074] For example, see Figure 5 and Figure 6 , Figure 5 A schematic diagram of a standard data cache table provided in an embodiment of the present application, Figure 6 A schematic diagram of a standard data table provided for an embodiment of the present application, wherein a standard data cache table is stored in a standard data cache subunit 3011, and a standard data table is stored in a standard data service subunit 3012. The standard data table generally includes data descriptions corresponding to all annotations, while the standard data cache table only includes data descriptions corresponding to some annotations.

[0075] When the standard data received by the standard data translation unit 301 is {@annotation (data classification code = "001") belongs to the village code: 007, @annotation (data classification code = "002") belongs to the certificate code: 0100}, the standard data translation unit 301 first queries the data description corresponding to the data classification code 001 and the data classification code 002 from the standard data cache subunit 3011. At this time, in the standard data cache table stored in the standard data cache subunit 3011, only the data description corresponding to the data classification code 001 is {name of the village}, and there is no data description corresponding to the data classification code 002. Therefore, the standard data translation unit 301 queries the data description corresponding to the data classification code 002 from the standard data service subunit 3012, and finds that the data description corresponding to the data classification code 002 is {certificate type}. Then, the standard data translation unit 301 adds the data description corresponding to the data classification code 002 as {certificate type} to the standard data cache table stored in the standard data cache subunit 3011. Finally, the standard data translation unit 301 searches the standard data cache subunit 3011 for the data descriptions corresponding to the data classification code 001 and the data classification code 002, and the query result shows that the data description of the data classification code 001 is the name of the village, and the data description of the data classification code 002 is the certificate type.

[0076] In actual applications, the annotations in the standard data may not always find the corresponding data descriptions. When the annotations of the data descriptions cannot be found in the standard data service subunit 3012, the standard data translation unit 301 does not process these annotations and directly retains them.

[0077] In an embodiment of the present application, the standard data translation unit will query the data description corresponding to the annotation in the standard data cache to improve the processing speed. When the data description corresponding to the annotation cannot be found in the standard data cache, it can be queried from the standard data service subunit and added to the standard data cache, thereby maximizing the speed of standard data translation without occupying too much cache space.

[0078] A possible implementation method, in the specific implementation process of the aforementioned step 201, storing the queried data description in the standard data cache includes:

[0079] When the standard data cache capacity has reached the upper limit, the least used data description in the preset time period from the current time forward in the standard data cache is deleted, and then the queried data description is stored in the standard data cache.

[0080] In this embodiment, when the standard data translation unit 301 adds the data description in the standard data service subunit 3012 to the standard data cache subunit 3011, if the cache capacity of the standard data cache subunit 3011 is full, the least used data description in the preset time period starting from the current time in the data description currently cached in the standard data cache subunit 3011 is deleted, thereby adding the new data description to the standard data cache subunit 3011.

[0081] For example, assuming that the cache capacity of the current standard data cache subunit 3011 is full, including two data descriptions {data classification code 001: village name; data classification code 003: administrative division}. At this time, the standard data translation unit 301 queries the standard data service subunit 3012 to find a new data description {data classification code 002: certificate type} that needs to be added to the standard data cache subunit 3011, and the preset time period is one month.

[0082] The standard data translation unit 301 detects the usage of the data description contained in the standard data cache subunit 3011 in the previous month from the current time, and the result is that {data classification code 001: village name} has been used 5 times in the latest month, and {data classification code 003: administrative division} has been used 2 times in the latest month. Therefore, the standard data translation unit 301 deletes the data description {data classification code 003: administrative division} in the standard data cache subunit 3011, and adds {data classification code 002: certificate type} to the standard data cache subunit 3011. At this time, the data description contained in the standard data cache subunit 3011 is {data classification code 001: village name; data classification code 002: certificate type}.

[0083] In actual applications, the standard data processing system can also be set to periodically delete the least recently used data description, or to delete multiple data descriptions at one time, according to actual needs.

[0084] In an embodiment of the present application, the standard data processing system can delete the data descriptions stored in the standard data cache according to the number of times they have been used in the recent period, and add the data descriptions of the latest queries, thereby dynamically adjusting the data descriptions in the standard data cache to ensure that the data descriptions in the standard data cache are the data descriptions that are commonly used in the recent period.

[0085] In a possible implementation manner, the specific implementation process of converting the data description into the corresponding description field in the above step 203 is as follows:

[0086] According to the data value corresponding to the data description in the standard data, query and obtain the description field corresponding to the data value in the data description;

[0087] The description field corresponding to the data value is used as the description field corresponding to the standard data.

[0088] In this embodiment, after the processing result output unit 303 obtains the data description corresponding to the annotation in the standard data, it searches for the data description corresponding to the data value from the data description according to the data value of the standard data, generates a description field, and uses the description field as the description field of the data description.

[0089] For example, Figure 3 As shown in the example in , the standard data translation unit 301 obtains the annotation {(data classification code = "001") belonging village code: 007} in the standard data, and the corresponding data description is {belonging village name}.

[0090] After the processing result output unit 303 obtains the data description, based on the corresponding data value {village code: 007}, it searches the data description of {village name} and finds that 007 corresponds to Village A. Therefore, the description field corresponding to the data value {village code: 007} is {village name_DESC: Village A}. The processing result output unit 303 uses {village name_DESC: Village A} as the description field corresponding to {(data classification code = "001") village code: 007}.

[0091] In an embodiment of the present application, the standard data processing system first obtains the data description corresponding to the annotation, and then queries and obtains the description field corresponding to the standard data in the data description according to the data value corresponding to the annotation, thereby using the annotation to translate the standard data into the corresponding business meaning.

[0092] In a possible implementation, in the above step 203, the data description is converted into a corresponding description field and added to the serialization result. The specific implementation process includes:

[0093] The description field is serialized to obtain a serialized description field, and the serialized description field is inserted into the serialization result according to the corresponding position of the description field in the standard data to obtain a processing result of the standard data.

[0094] In this embodiment, the processing result output unit 303 also needs to serialize the description fields obtained above and add them to the serialization result of the standard data to obtain the final processing result. The processing result is already a serialized result and can therefore be directly transmitted over the network.

[0095] For example, Figure 3As shown in the example in, the processing result output unit 303 obtains the description field {village name_DESC: A village} corresponding to {(data classification code = "001") village code: 007}. Then the processing result output unit 303 serializes the description field {village name_DESC: A village} and obtains the corresponding serialized description field {E68980 E5B19E E69D91 E69D91 E5908D 5F 44 45 53 43EFBC9A 41E69D91}. At the same time, the serialization unit 302 also obtains the standard data {villager name: villager name x, @annotation (data classification code = "001") village code: 007}, and the corresponding serialization result is {E69D91 E6B091 E5A793 E5908D EFBC9A E69D91 E6B091E5A793 E5908D 78EFBC8C E68980 E5B19E E69D91 E4BBA3 E7A081 EFBC9A 30 30 37}. The processing result output unit 301 inserts the serialized description field {E68980 E5B19E E69D91 E69D91 E5908D 5F 44 45 53 43 EFBC9A 41E69D91} into the serialized result of the standard data according to the position in the standard data corresponding to the description field {name of the village_DESC: Village A}, and obtains the final processing result {E69D91 E6B091 E5A793E5908D EFBC9A E69D91 E6B091 E5A793 E5908D 78 EFBC8C(E68980 E5B19E E69D91E69D91 E5908D 5F 44 45 53 43 EFBC9A 41 E69D91)E68980 E5B19E E69D91 E4BBA3E7A081 EFBC9A 30 30 37}.

[0096] In an embodiment of the present application, a standard data processing system will obtain description fields for serialization, and insert the description fields into the serialization results of the standard data according to the corresponding positions of the description fields in the standard data, thereby obtaining the final processing result. The final processing result has been serialized and can be directly transmitted to the user through the network. After receiving the result, the user can deserialize it to obtain the standard data and the translation results of the standard data, which simplifies the translation process and improves work efficiency.

[0097] A possible implementation method, before extracting annotations from the standard data to be serialized in step 201, includes:

[0098] Obtain the data model fields that need to provide data descriptions in the business system, and insert the annotations corresponding to the data model fields into the corresponding data model fields; the annotations do not affect the operation of the data model; when the business system outputs standard data, insert the annotations in the data model fields of the output standard data into the corresponding positions in the standard data and output them together with the standard data.

[0099] In this embodiment, in order to allow the standard data to be serialized output by the business system to include annotations, the standard data processing system may also include a standard data annotation unit 701, which can insert annotations into the data model fields of the business system, so that the business system can directly output the standard data to be serialized with annotations.

[0100] See also Figure 7 , Figure 7 A schematic diagram of a data model annotation unit inserting annotations into a business system is provided in an embodiment of the present application. In the embodiment of the present application, a standard data annotation unit 701 is used to execute the above-mentioned standard data processing method, thereby inserting annotations into the data model fields in the business system.

[0101] For example, when the standard data output in the business system needs to be translated, the standard data annotation unit 701 is used to extract the data model field that needs to be translated in the business system in advance, and the extracted field is {village code}. The standard data annotation unit 701 generates the corresponding annotation {data classification code "001"} according to {village code}, and inserts the annotation into the data model field {village code}, and obtains the corresponding data model field {@annotation (data classification code = "001"), village code}.

[0102] After the annotation is inserted, the standard data output after the data model field {@annotation (data classification code = "001"), village code} becomes {@annotation (data classification code = "001"), village code: x}, where x is the value of the data. Since the standard data includes annotations, the above-mentioned standard data processing system can be used to perform steps 201-203, thereby translating the standard data and obtaining the processing result of the standard data.

[0103] In actual applications, since the data model fields that need to be annotated in the business system are not updated frequently, the data model annotation unit only needs to be run once after each update; at the same time, since the data model annotation unit is independent of the business system, the same data model annotation unit can be used to annotate data model fields on different business systems with the same data model fields.

[0104] In an embodiment of the present application, by using a data model annotation unit, annotations are inserted into the data model fields that need to be translated in the business system in advance, so that the annotations are used to provide translation of the data model fields without occupying the processing performance of the business system, and the annotations and the standard data output by the data model fields are output together, thereby avoiding the problem of decreased business system processing performance that may exist when translating large-scale standard data.

[0105] Based on the same inventive concept, this application provides a system for standard data processing, see Figure 8 , the standard data processing system includes:

[0106] The standard data translation unit 801 is used to extract annotations in the standard data to be serialized and obtain corresponding data descriptions according to the annotations;

[0107] A serialization unit 802, used to serialize the standard data to be serialized and generate a serialization result;

[0108] The processing result output unit 803 is used to convert the data description into corresponding description fields and add them to the serialization result to obtain the processing result of the standard data.

[0109] In a possible implementation manner, the standard data translation unit 801 is further used for:

[0110] If there is a data description corresponding to the annotation in the standard data cache, the data description is directly obtained from the standard data cache;

[0111] If there is no data description corresponding to the annotation in the standard data cache, the data description corresponding to the annotation is queried from the standard data service subunit, and the queried data description is stored in the standard data cache, and then the data description corresponding to the annotation is obtained from the standard data cache; wherein the standard data service subunit stores the data descriptions corresponding to all annotations.

[0112] In a possible implementation manner, the standard data translation unit 801 is further used for:

[0113] When the standard data cache capacity has reached the upper limit, the least used data description in the preset time period from the current time forward in the standard data cache is deleted, and then the queried data description is stored in the standard data cache.

[0114] In a possible implementation manner, the processing result output unit 803 is used to:

[0115] According to the data value corresponding to the data description in the standard data, query and obtain the description field corresponding to the data value in the data description;

[0116] The description field corresponding to the data value is used as the description field corresponding to the standard data.

[0117] In a possible implementation manner, the processing result output unit 803 is used to:

[0118] The description field is serialized to obtain a serialized description field, and the serialized description field is inserted into the serialization result according to the corresponding position of the description field in the standard data to obtain a processing result of the standard data.

[0119] In a possible implementation, the standard data processing system further includes a data model annotation unit 804, see Fig. 9 , the data model annotation unit 804 is used to:

[0120] Obtain the data model fields that need to provide data descriptions in the business system, and insert the annotations corresponding to the data model fields into the corresponding data model fields; wherein the annotations do not affect the operation of the data model.

[0121] In this embodiment, the data model annotation unit 804 can insert corresponding annotations into the data model fields that need to provide data descriptions in the business system, so that the standard data output by the business system can output the corresponding annotations together. At the same time, since the annotations do not participate in the operation of the program, they will not affect the processing performance of the business system.

[0122] For example, Fig. 9 As shown in the example, the data model annotation unit 804 first extracts the data model field that needs to provide data description from the business system, which is {village code}. The data model annotation unit 804 generates a corresponding annotation {data classification code "001"} based on the data model field {village code}, and inserts the annotation into the data model field. The annotated data model field is {@annotation (data classification code = "001"), village code}.

[0123] In actual applications, the annotated data model field will output the annotation together with the standard data. For example, the standard data output by the data model field {village code} is {village code 001}, and the standard data output by the annotated data model field {@annotation (data classification code = "001"), village code} is {@annotation (data classification code = "001"), village code 001}.

[0124] In an embodiment of the present application, the data model annotation unit 804 annotates the data model fields in the business system that need to provide data descriptions, allowing the business system to directly output standard data with annotations, so that the standard data translation unit 801, the serialization unit 802 and the processing result output unit 803 can convert the standard data into standard data with data descriptions based on the annotations. At the same time, the characteristic that annotations do not participate in program operation is utilized to ensure that the processing performance of the business system will not be affected by the annotations.

[0125] Based on the same inventive concept, an embodiment of the present invention provides a device for standard data processing, including:

[0126] At least one processor, the processor is used to implement the above standard data processing steps provided in the embodiment of the present application when executing the computer program stored in the memory.

[0127] Optionally, the processor may specifically be a central processing unit, an application specific integrated circuit (English: Application Specific Integrated Circuit, abbreviated as: ASIC), or may be one or more integrated circuits for controlling program execution.

[0128] Optionally, the data integrity protection device also includes a memory connected to at least one processor, and the memory may include a read-only memory (ROM), a random access memory (RAM), and a disk memory. The memory is used to store data required by the processor when it is running, that is, it stores instructions that can be executed by at least one processor, and at least one processor executes the method shown in the above standard data processing or standard data annotation by executing the instructions stored in the memory. The number of memories is one or more.

[0129] An embodiment of the present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned standard data processing or standard data annotation method when executed by a processor.

[0130] Based on the same inventive concept, the embodiment of the present application provides a computer-readable storage medium, and the computer program product includes: computer program code, when the computer program code is run on a computer, the computer executes the steps of the method of standard data processing or standard data annotation as discussed above. It should be understood by those skilled in the art that the embodiment of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0131] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0132] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0133] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0134] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A method of standard data processing, characterized in that: include: Extract annotations from the standard data to be serialized, and obtain corresponding data descriptions according to the annotations; wherein the data descriptions are business meanings corresponding to the standard data; Serializing the standard data to be serialized to generate a serialization result; Convert the data description into corresponding description fields; The description field is serialized to obtain a serialized description field, and the serialized description field is inserted into the serialization result according to the corresponding position of the description field in the standard data to obtain a processing result of the standard data.

2. The method according to claim 1, characterized in that Obtain the corresponding data description according to the annotation, including: If there is a data description corresponding to the annotation in the standard data cache, directly obtain the data description from the standard data cache; If there is no data description corresponding to the annotation in the standard data cache, the data description corresponding to the annotation is queried from the standard data service subunit, and the queried data description is stored in the standard data cache, and then the data description corresponding to the annotation is obtained from the standard data cache; wherein the standard data service subunit stores data descriptions corresponding to all annotations.

3. The method according to claim 2, characterized in that The queried data description is stored in the standard data cache, including: When the capacity of the standard data cache has reached the upper limit, the least used data description in the standard data cache within a preset time period starting from the current time is deleted, and the queried data description is stored in the standard data cache.

4. The method according to claim 1, characterized in that Convert the data description into corresponding description fields, including: According to the data value in the standard data corresponding to the data description, query and obtain the description field corresponding to the data value in the data description; The description field corresponding to the data value is used as the description field corresponding to the standard data.

5. The method according to claim 1, characterized in that Before extracting annotations from standard data to be serialized, include: Obtaining a data model field in the business system that needs to provide data description, and inserting an annotation corresponding to the data model field into the corresponding data model field; wherein the annotation does not affect the operation of the data model; When the business system outputs standard data, the annotations in the data model fields of the output standard data are inserted into corresponding positions in the standard data and output together with the standard data.

6. A system for standard data processing, characterized in that: include: A standard data translation unit, used to extract annotations in the standard data to be serialized, and obtain corresponding data descriptions according to the annotations; wherein the data descriptions are business meanings corresponding to the standard data; A serialization unit, used for serializing the standard data to be serialized and generating a serialization result; A processing result output unit is used to convert the data description into corresponding description fields, serialize the description fields to obtain serialized description fields, insert the serialized description fields into the serialization results according to the corresponding positions of the description fields in the standard data, and obtain the processing results of the standard data.

7. The system according to claim 6, characterized in that The standard data processing system further includes a data model annotation unit, which is used to: A data model field in a business system that needs to provide a data description is obtained, and an annotation corresponding to the data model field is inserted into the corresponding data model field; wherein the annotation does not affect the operation of the data model.

8. A device for standard data processing, characterized in that: include: at least one processor, and a memory coupled to the at least one processor; The memory stores instructions executable by the at least one processor, and the at least one processor executes the method according to any one of claims 1 to 5 by executing the instructions stored in the memory.

9. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 5.