Electronic certificate data quality inspection method
By adopting the combination method of MD5 signature and quality inspection algorithm in the electronic certificate data quality detection method, the shortcomings of electronic certificate data quality detection in the prior art are solved, and comprehensive quality detection and flexible and regular configuration of electronic certificate data are realized.
Patent Information
- Application Number
- PCT/CN2024/134601
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-11-27
- Filing Date
- 2024-11-26
- Publication Date
- 2025-06-05
AI Technical Summary
The prior art is difficult to fully detect the quality of electronic certificate data, especially when processing non-string data such as dates and pictures, regular verification seems to be incompetent and cannot meet the requirements of the consistency of OFD file metadata and the contact information and field repeatability verification.
A method of quality inspection of electronic certificate data is adopted. By obtaining the rule list and certificate information, using the MD5 information summary algorithm signature comparison, combining metadata and face-to-face rules quality inspection, quality inspection algorithms such as integrity, correctness, consistency and uniqueness are called to ensure the integrity, correctness, consistency and uniqueness of certificate data.
It realizes comprehensive quality inspection of electronic certificate information and documents, ensuring the integrity, accuracy, consistency and uniqueness of the data, and provides the advantages of flexible rule configuration and avoiding repeated detection.
Smart Images

Figure CN2024134601_05062025_PF_FP_ABST
Abstract
Description
Method for testing the quality of electronic certificate data Technical Field
[0001] The present invention relates to the technical fields of electronic certificates, electronic certificate files (OFD open format documents), data quality detection, and more particularly to a method for detecting the quality of electronic certificate data. Background Art
[0002] Electronic certificates refer to electronic documents of various legally binding certificates, certifications, approvals, appraisal reports, service results, and other documents issued by various units in accordance with the law, such as marriage certificates and business licenses. Electronic certificates mainly consist of electronic certificate information and electronic certificate files (OFD open format documents).
[0003] Generally, electronic certificate information consists of 13 basic metadata and face information.
[0004] 13 basic metadata: These are the 13 fields that make up the basic information of a certificate. The certificate information model is shown in Figure 1. For detailed information, please refer to the "GBT36903-2018 Electronic Certificate Metadata Specification" and "GBT36904-2018 Electronic Certificate Identification Specification".
[0005] Face information: that is, the business extended information of the electronic certificate information in addition to the 13 basic metadata, and the short name starts with KZ_.
[0006] The standard for electronic certificate files (OFD open format documents) is shown in Figure 2, which facilitates the storage, reading, and editing of electronic documents. For detailed information, please refer to "GBT36905-2018 Technical Requirements for Electronic Certificate Files".
[0007] Data quality testing refers to the proactive auditing of the compliance of certificate data with standards through testing of electronic certificate information and electronic certificate files (OFD open format documents), thereby improving the standardization and quality of certificate data.
[0008] For example, the specifications for the business information of a marriage certificate have their own format requirements for each item, as shown in Figure 3. The registration date is required to be selected and the value range must refer to "GB / T 7408-2005" and the year, month, and day must be marked in full with Arabic numerals, with no blank spaces for the month and day; the marriage registrar is required to be selected; the marriage registrar code is required to be optional and the value range must refer to "GB 11643-1999".
[0009] The existing technical solution (patent application number CN202110665081.7) primarily performs regular expression verification on electronic certificates through customized regular expression verification rules (metadata regular expression verification rules, photo item regular expression verification rules, and attachment regular expression verification rules). However, in reality, verifying electronic certificates solely through regular expressions cannot truly demonstrate the data quality of electronic certificates. This is because regular expression verification has its own limitations (regular expressions are logical formulas for string operations). Electronic certificate information is not just strings, and regular expressions are inadequate for formats such as dates, numbers, and images. It even fails to meet requirements for verifying the consistency of OFD file metadata and photo information, or for field duplication. Furthermore, modern information systems need to continuously meet new user requirements and add new rule configurations. Writing regular expressions is a complex task that requires specialized processing. Summary of the Invention
[0010] In view of the limitations and shortcomings of the existing technology, the present invention aims to provide a method for detecting the quality of electronic certificate data, which can verify the electronic certificate information and electronic certificate files (OFD open format documents), and the administrator can configure the corresponding quality inspection rule list according to the certificate specifications; that is, it ensures the integrity, correctness, consistency and uniqueness of the electronic certificate, and has the advantages of flexible configuration.
[0011] In order to achieve the above object, the present invention specifically adopts the following technical solutions:
[0012] A method for detecting the quality of electronic certificate data, comprising the following steps:
[0013] Step S1: Get a list of rules;
[0014] Step S2: Obtaining license information;
[0015] Step S3: Check whether there is a certificate quality that has passed the verification through the certificate identification. If so, execute step S4; if not, execute step S5;
[0016] Step S4: Sign the certificate information using the MD5 message digest algorithm, and then compare the signature values of the certificate information and the certificate quality to see if they are the same. If the signature values are the same, it means that the certificate information has passed the quality inspection and does not need to be re-tested. If the signature values are different, it means that the certificate information has been changed and needs to be re-tested, and then execute step S5;
[0017] Step S5: quality-check the basic metadata of the license according to the metadata rules, quality-check the face-to-face information of the license according to the face-to-face rules, obtain the license OFD file, and quality-check the license file according to the OFD file rules;
[0018] Step S6: Call the quality inspection algorithm corresponding to the rule to process, including: completeness, correctness, consistency and uniqueness;
[0019] Step S7: When the test is completed, the verification result (pass or fail), the certificate information, and the signature value formed by signing the certificate information using the MD5 information digest algorithm are stored in the certificate quality table.
[0020] Furthermore, in the quality inspection algorithm of step S6:
[0021] The integrity is specifically: checking whether the electronic certificate information field and the electronic certificate file are complete;
[0022] The correctness is specifically: checking whether the information including field type, date format, and ID card number format is correct;
[0023] The consistency specifically includes: detecting whether the electronic certificate information and the parsed content of the electronic certificate file are consistent;
[0024] The uniqueness is specifically: detecting whether repeated values are included;
[0025] Furthermore, a corresponding quality inspection rule list is configured according to the license specifications.
[0026] Furthermore, in step S3, the certificate quality table is used to query whether there is a certificate quality that has passed the verification.
[0027] And, an electronic device includes a memory, a processor and a computer program stored in the memory and runnable on the processor, characterized in that when the processor executes the program, the steps of the electronic certificate data quality detection method as described above are implemented.
[0028] 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, the steps of the electronic certificate data quality detection method as described above are implemented.
[0029] Compared with the existing technology, the present invention and its preferred solution can verify electronic certificate information and electronic certificate files (OFD open format documents), and the administrator can configure the corresponding quality inspection rule list according to the certificate specifications; that is, it ensures the integrity, correctness, consistency and uniqueness of electronic certificate information and electronic certificate files (OFD open format documents), and has the advantages of flexible configuration. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The present invention is further described in detail below with reference to the accompanying drawings and specific embodiments:
[0031] Figure 1 is a schematic diagram of the license information model;
[0032] Figure 2 is a schematic diagram of the typical organizational structure of OFD;
[0033] Figure 3 is a diagram of the overall model of the marriage certificate information metadata system;
[0034] FIG4 is a schematic diagram of the overall flow of an embodiment of the present invention. Modes for Carrying Out the Invention
[0035] To make the features and advantages of this patent more clearly understood, the following embodiments are specifically described in detail with reference to the accompanying drawings:
[0036] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present application. Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which the present application belongs.
[0037] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, they indicate the presence of features, steps, operations, devices, components and / or combinations thereof.
[0038] As shown in FIG4 , the electronic certificate data quality detection process provided by the embodiment of the present invention includes:
[0039] Step 1: Get the rule list.
[0040] Step 2: Obtain license information.
[0041] Step 3: Check whether there is a certificate quality that has passed the verification through the certificate identification. If so, go to step 4; if not, go to step 5.
[0042] Step 4: Sign the certificate information using the MD5 information digest algorithm, and then compare the signature values of the certificate information and the certificate quality to see if they are the same. If the signature values are the same, it means that the certificate information has passed the quality inspection and does not need to be re-tested. If the signature values are different, it means that the certificate information has changed and needs to be re-tested. Go to step 5.
[0043] Step 5: Quality check the basic metadata of the license according to the metadata rules, quality check the face information of the license according to the face rules, obtain the license OFD file and quality check the license file according to the OFD file rules.
[0044] Step 6: Call the quality inspection algorithm corresponding to the rule. The rules are divided into four categories:
[0045] Integrity: Check whether the electronic certificate information fields are complete and whether the electronic certificate file is complete.
[0046] Integrity rule examples: non-empty rule (whether a field is non-empty), OFD file basic standard rule (whether an OFD file is a standard file)
[0047] Correctness: Check field types, date formats, ID number formats, etc. to ensure the information is correct.
[0048] Examples of correctness rules: Citizen ID number rule (whether the ID number format is correct), OFD document stamped or signed rule (whether the OFD document is correctly stamped or signed)
[0049] Consistency: Check whether the electronic certificate information and the parsed content of the electronic certificate file are consistent.
[0050] Examples of consistency rules: consistency check rules for certificate holder type information (whether the certificate holder type code and certificate holder type name correspond to each other), comparison of OFD file metadata and face information (whether the elements in the OFD file correspond to the face information)
[0051] Uniqueness: Checks whether the value contains duplicates.
[0052] Uniqueness rule example: Detect duplicate value rule (whether unique values are repeated)
[0053] Step 7: When the test is completed, the verification result (pass or fail), certificate information and signature value (MD5 information digest algorithm is used to sign the certificate information) will be stored in the certificate quality table.
[0054] As a preference of this embodiment, flexible configuration can be achieved, that is, the corresponding quality inspection rule list can be configured according to the license specifications.
[0055] As a preferred embodiment of this invention, repeated detection can be avoided: when the detection is completed, the verification result (pass or fail), certificate information and signature value (MD5 information digest algorithm is used to sign the certificate information) will be stored in the certificate quality table; at the beginning of each detection, the certificate identification will be used to query whether there is a certificate quality that has passed the verification, and then the signature values of the certificate information and the certificate quality will be compared to see if they are the same. If the signature values are the same, it means that the certificate information has passed the quality inspection and does not need to be repeatedly tested.
[0056] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, apparatuses, or computer program products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROMs, optical storage, etc.) containing computer-usable program code.
[0057] The present invention is described with reference to flowcharts of methods, devices (apparatus), and computer program products according to embodiments of the present invention. It should be understood that each flow in the flowcharts, as well as combinations of flows in the flowcharts, 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, such that execution of the instructions by the processor of the computer or other programmable data processing device produces means for implementing the functions specified in one or more flows in the flowcharts.
[0058] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device that implements the functions specified in one or more flowcharts.
[0059] 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, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart.
[0060] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered by the scope of protection of the claims of the present invention.
[0061] This patent is not limited to the above-mentioned optimal implementation method. Anyone can derive other forms of electronic certificate data quality detection methods based on the inspiration of this patent. All equivalent changes and modifications made within the scope of the patent application of this invention should be covered by this patent.
Claims
1. A method for detecting the quality of electronic certificate data, characterized in that: The following steps are involved: Step S1: Get a rule list; Step S2: Obtaining certificate information; Step S3: Check whether there is a certificate quality that has passed the verification through the certificate identification. If so, execute step S4; if not, execute step S5; Step S4, sign the certificate information using the MD5 information digest algorithm, and then compare whether the signature values of the certificate information and the certificate quality are the same. If the signature values are the same, it means that the certificate information has passed the quality inspection and does not need to be re-tested. If the signature values are different, it means that the certificate information has been changed and needs to be re-tested, and then execute step S5; Step S5, quality check the basic metadata of the license according to the metadata rules, quality check the face information of the license according to the face rules, obtain the license OFD file and quality check the license file according to the OFD file rules; Step S6: Call the quality inspection algorithm corresponding to the rule, including: completeness, correctness, consistency and uniqueness; Step S7: When the detection is completed, the verification result of passing or failing, the certificate information, and the signature value formed by signing the certificate information using the MD5 information digest algorithm are stored in the certificate quality table.
2. The electronic certificate data quality detection method according to claim 1 is characterized by: In the quality inspection algorithm of step S6: The integrity is specifically: checking whether the electronic certificate information field and the electronic certificate file are complete; The correctness is specifically: checking whether the information including field type, date format, and ID card number format is correct; The consistency specifically includes: detecting whether the electronic certificate information and the parsed content of the electronic certificate file are consistent; The uniqueness is specifically: detecting whether repeated values are included.
3. The electronic certificate data quality detection method according to claim 1 is characterized by: Configure the corresponding quality inspection rule list according to the license specifications.
4. The electronic certificate data quality detection method according to claim 1 is characterized in that: In step S3, the certificate quality table is used to query the certificate identification to see whether there is a certificate quality that has passed the verification.
5. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the electronic certificate data quality detection method as described in any one of claims 1-4 are implemented.
6. 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, the steps of the electronic certificate data quality detection method as described in any one of claims 1-4 are implemented.
Citation Information
Patent Citations
Detection method and device of malicious file
CN108038375A
Electronic license quality detection and analysis model
CN113468352A
File detection method and device, electronic equipment and readable storage medium
CN113609479A
Data quality detection implementation method and system applied to government affair service
CN114519271A
Electronic license data quality detection method
CN117763176A