Method, device, electronic device and storage medium for detecting integrity of metadata items of electronic archives
By grouping and continuity detection of the metadata items of electronic files, the problem of inefficient manual detection in the prior art is solved, and efficient and accurate detection of the completeness of the metadata items of electronic files is achieved.
Patent Information
- Application Number
- CN202411855338.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-16
- Publication Date
- 2025-04-08
AI Technical Summary
In the prior art, the integrity detection of electronic files usually relies on manual labor, is inefficient and has large differences, making it difficult to improve the efficiency of detection while ensuring accuracy.
By grouping them according to the number of the metadata item of the electronic archive, the target data sequences of each group are obtained, and whether these sequences are continuity is detected to determine whether the metadata item of the electronic archive is complete.
Automatic electronic archive metadata item integrity detection is realized, improving the accuracy and efficiency of detection, and ensuring the quality and efficiency of electronic archive management.
Smart Images

Figure CN119782594A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of electronic archive detection, and in particular to a method, device, electronic device and storage medium for detecting the integrity of metadata items of an electronic archive. Background Art
[0002] In the process of electronic archives management, the quality of integrity monitoring is crucial to promoting the development of electronic archives management.
[0003] In the prior art, integrity detection is usually based on manual methods, which is inefficient and has large differences. How to improve the efficiency of detection while ensuring accuracy is an urgent problem to be solved in this application. Summary of the invention
[0004] In view of this, embodiments of the present application provide a method, device, electronic device, and storage medium for detecting the integrity of metadata items of an electronic archive, so as to at least partially solve the above-mentioned problems.
[0005] According to a first aspect of an embodiment of the present application, a method for detecting the integrity of metadata items of an electronic archive is provided, comprising: grouping the metadata items of the electronic archive to be detected according to the numbers of the metadata items; obtaining a target data sequence corresponding to the metadata items of each group, and detecting whether the target data sequence has continuity; if the target data sequence of each group has continuity, determining that the metadata items of the electronic archive are complete.
[0006] According to a second aspect of an embodiment of the present application, a device for detecting the integrity of metadata items of an electronic archive is provided, comprising: a grouping module, used to group the metadata items of the electronic archive to be detected according to the numbers of the metadata items; a detection module, used to obtain a target data sequence corresponding to the metadata items of each group, and detect whether the target data sequence has continuity; and a determination module, used to determine that the metadata items of the electronic archive have integrity if the target data sequence of each group has continuity.
[0007] According to a third aspect of an embodiment of the present application, there is provided an electronic device comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; the memory is used to store at least one executable instruction, wherein the executable instruction enables the processor to perform an operation corresponding to the method for integrity detection of metadata items of electronic archives described in any one of the above items.
[0008] According to a fourth aspect of an embodiment of the present application, there is provided a computer storage medium on which a computer program is stored. When the program is executed by a processor, the integrity detection method of the metadata item of the electronic archive described in any one of the above is implemented.
[0009] According to the integrity detection method of metadata items of electronic archives provided by various embodiments of the present application, the metadata items are grouped according to the numbers of the metadata items of the electronic archives to be detected; the target data sequence corresponding to the metadata items of each group is obtained, and whether the target data sequence has continuity; if the target data sequence of each group has continuity, it is determined that the metadata items of the electronic archive have integrity. The present application can automatically group metadata items based on the numbers of the metadata items, and then detect whether the target data sequence of each group has continuity based on the target data sequence corresponding to the metadata items of each group, thereby improving the accuracy of continuity detection; if the target data sequence of each group has continuity, it is determined that the metadata items of the electronic archive have continuity, thereby improving the detection accuracy of integrity detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0011] Figure 1 It is a flow chart of a method for detecting the integrity of metadata items of an electronic archive according to an embodiment of the present application;
[0012] Figure 2 It is a schematic diagram of an integrity detection device for metadata items of an electronic archive according to an embodiment of the present application;
[0013] Figure 3-1 It is a schematic diagram of a configuration interface of a system for detecting integrity of metadata items of an electronic archive according to an embodiment of the present application;
[0014] Figure 3-2 It is another schematic diagram of a configuration interface of a system for detecting integrity of metadata items of an electronic archive according to an embodiment of the present application;
[0015] Figure 4 It is a schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0016] Integrity detection method for metadata items of electronic archives
[0017] The embodiment of the present application provides a method for detecting the integrity of metadata items of an electronic archive. Through this method, the integrity detection of metadata items of an electronic archive can be automatically, efficiently and accurately implemented.
[0018] Figure 1FIG. 1 is a flow chart of a method for detecting the integrity of metadata items of an electronic archive according to an embodiment of the present application. Figure 1 As shown, the integrity detection method of metadata items of electronic archives in this embodiment includes the following steps:
[0019] Step 101: Group metadata items of the electronic archive to be detected according to their numbers.
[0020] In a possible implementation, metadata items of the electronic archive to be detected may be obtained. Generally, metadata items are structured data used to describe the electronic archive to be detected. As an example, they may include identification information, such as file name, number, etc., content description, such as title, abstract, keywords, etc., structure and format, such as file format, file size, encoding method, etc.
[0021] In a possible implementation, the number of the metadata item is usually a string consisting of letters and numbers, and the prefix part and the suffix part of the number of all metadata items corresponding to the electronic archive can be obtained. The attributes of the prefix part and the suffix part are the encoding information corresponding to the specific category identifier, and the attributes of the part excluding the prefix part and the part excluding the suffix part are numerical values.
[0022] For example, the metadata of a certain archive volume includes A-KJPZ-2024-0001, A-ZB-2024-0002, and A-BB-2024-0003, where A is the identifier of the archive, KJPZ represents accounting documents, ZB represents account books, BB represents reports, 2024 represents the year 2024, and A-KJPZ-2024, A-ZB-2024, and A-BB-2024 are the prefixes of the archive volumes. For another example, the metadata items of an accounting voucher include PZ0001YS, PZ0002YS, and PZ0003YF, where PZ is the prefix of the number, YS represents receivables, and YF represents payables, both of which are the suffixes of the number.
[0023] In a possible implementation, if the prefix part contains a field identifier, metadata items with the same prefix part are determined as the same group, or metadata items with the same suffix part are determined as the same group, or metadata items with the same prefix part and the same suffix part are determined as the same group.
[0024] As an example, taking the metadata items of an accounting voucher including PZ0001YS, PZ0002YS, and PZ0003YF, these metadata items can be grouped based on the prefix part, and PZ0001YS, PZ0002YS, and PZ0003YF with the same prefix part can be grouped into the same group; these metadata items can also be grouped based on the suffix part YS, and PZ0001YS and PZ0002YS with the same suffix part can be grouped into the same group, and PZ0003YF can be grouped into the same group; PZ0001YS and PZ0002YS with the same prefix part and the same suffix part can also be grouped into the same group, and PZ0003YF can be grouped into the same group.
[0025] In a possible implementation, if the prefix part includes at least two field identifiers, a target field identifier is determined from these field identifiers, and metadata items with the same value of the target field identifier in the metadata items are determined to be the same group. The field identifier here represents different attributes in the prefix part. For example, in A-KJPZ-2024-0001, A-ZB-2024-0002, and A-BB-2024-0003, the field identifiers can be file volume number-accounting file number-year-value in sequence, and A, KJPZ, ZB, BB, and 2024 respectively represent the corresponding values of the fields. One or more field identifiers can be selected from these field identifiers as the target field identifier, and metadata items with the same value of the target field identifier can be determined to be the same group.
[0026] As an example, if the metadata of a certain archive volume includes A-KJPZ-2024-0001, A-ZB-2024-0002, and A-BB-2024-0003, if the year is determined as the target field identifier, A-KJPZ-2024-0001, A-ZB-2024-0002, and A-BB-2024-0003 can be determined as the same group. Among them, the method of determining the target field identifier can be determined based on the actual situation, and can be determined based on the commonality between metadata items. For example, each metadata item is continuously updated over time and can be grouped based on the year.
[0027] By proposing a flexible grouping mechanism, different grouping scenarios are determined according to the field identifier of the prefix part of the metadata item. In different grouping scenarios, grouping is performed based on the prefix part, the suffix part, or the combination of the prefix part and the suffix part. This grouping method can be applied to different archive numbering rules, which improves the flexibility and applicability of grouping.
[0028] Step 102: Obtain the target data sequence corresponding to the metadata item of each group, and detect whether the target data sequence has continuity.
[0029] In a possible implementation, for each group, a prefix part and a suffix part of the number of the metadata item may be obtained; and according to the prefix part and the suffix part, the target detection data corresponding to each metadata item may be determined.
[0030] In a possible implementation, the prefix and suffix parts of the metadata item can be deleted to obtain the first metadata item. The first metadata item is then converted into target detection data in a numerical format. As an example, taking the metadata items of an accounting voucher as PZ0001YS, PZ0002YS, and PZ0003YF, the prefix and suffix parts of these metadata items can be deleted to obtain 0001, 0002, and 0003. After 0001, 0002, and 0003 are converted into a numerical format, such as converted into an integer, the target detection data of 1, 2, and 3 can be obtained. Taking the metadata of a certain archive volume as A-KJPZ-2024-0001, A-ZB-2024-0002, and A-BB-2024-0003 as an example, delete the prefix and suffix parts of these metadata items to get 0001, 0002, and 0003. After converting 0001, 0002, and 0003 into numerical format, such as converting them to integers, we can get the target detection data 1, 2, and 3.
[0031] In a possible implementation, the first position can be determined according to the end position of the prefix part in the metadata item, the second position can be determined according to the start position of the suffix part in the metadata item, and the metadata item can be intercepted according to the first position and the second position to obtain the first metadata item. As an example, the metadata items of a certain accounting voucher are PZ0001YS, PZ0002YS, and PZ0003YF. It can be determined that the end position of the prefix part in the metadata item is the second position from left to right, and the start position of the suffix part in the metadata item is the seventh position from left to right. Therefore, the third position from left to right can be determined as the first position, and the sixth position from left to right can be determined as the second position. According to the first position and the second position, the metadata item is intercepted from the third position from left to right to the sixth position from left to right to obtain 0001, 0002, and 0003, and then the intercepted data is converted into a numerical format, such as an integer, to obtain target detection data 1, 2, and 3.
[0032] By deleting the prefix and suffix parts of the metadata items, or performing certain truncation on the metadata items and converting them into target detection data in a numerical format, it is convenient to accurately extract the target detection data used for continuity detection, and perform numerical comparison and continuity analysis on the metadata items. Among them, the specific method of obtaining the target detection data can be determined according to the actual situation. For example, if the data length of the metadata items is inconsistent, the method of obtaining the target detection data by truncating the metadata items based on the first position and the second position is not applicable, and the target detection data can be determined based on deleting the prefix and suffix parts of the metadata items. If the data length of the metadata items is consistent, the above method can be selected to obtain the target detection data.
[0033] In a possible implementation, after obtaining the target detection data corresponding to all metadata items, the target detection data may be sorted from small to large or from large to small to obtain a sorted target data sequence.
[0034] In a possible implementation, whether the target data sequence is continuous can be determined based on the difference between every two adjacent values in the target data sequence. The absolute value of the difference between every two adjacent values in the target data sequence can be obtained, and if the absolute values of the difference between every two adjacent values in the target data are equal, it is determined that the target data sequence is continuous.
[0035] By sorting the target detection data, the absolute value of the difference between every two adjacent values is used as the continuity judgment standard. This judgment standard makes the continuity judgment simple, efficient, objective and accurate by using a quantitative method.
[0036] Step 103: If the target data sequence of each group is continuous, it is determined that the metadata item of the electronic archive is complete.
[0037] In a possible implementation, if the target data sequence of each group is continuous, it is determined that the metadata item of the electronic archive is complete.
[0038] The embodiment of the present application provides a systematic and automated method to detect the integrity of electronic archive metadata items. By grouping, target detection data of each group is obtained, and the target data sequence is obtained by sorting according to the target detection data. By detecting the difference between every two data in the target data sequence, the accuracy of continuity detection of metadata items in electronic archives can be accurately ensured, thereby ensuring the accuracy of electronic archive integrity detection and improving the quality and efficiency of archive management.
[0039] Device for detecting integrity of metadata items of electronic archives
[0040] Corresponding to the above-mentioned electronic archive metadata item integrity detection method embodiment, Figure 2 A schematic diagram of a device for detecting the integrity of metadata items of an electronic archive according to an embodiment of the present application is shown. Figure 2 As shown, the integrity detection device 200 for metadata items of the electronic archive includes:
[0041] A grouping module 201 is used to group metadata items according to the numbers of metadata items of the electronic archive to be detected;
[0042] A detection module 202 is used to obtain a target data sequence corresponding to each grouped metadata item and detect whether the target data sequence has continuity;
[0043] The determination module 203 is used to determine whether the metadata item of the electronic archive is complete if the target data sequence of each group is continuous.
[0044] It should be noted that the integrity detection device for metadata items of electronic archives in this embodiment is used to implement the integrity detection method for metadata items of electronic archives corresponding to the aforementioned method embodiment, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.
[0045] Integrity Detection System for Metadata Items of Electronic Archives
[0046] The embodiment of the present application provides a system for detecting the integrity of metadata items of electronic archives. Through the system, the integrity of metadata items of electronic archives to be detected can be automatically, efficiently and accurately achieved.
[0047] In a possible implementation, the integrity detection system for metadata items of electronic archives may detect the integrity of metadata items of electronic archives to be detected in an automated manner.
[0048] In one possible implementation, the integrity detection system for metadata items of electronic archives may provide a configuration interface for users to independently configure the detection method for continuity metadata items of electronic archives through tabs, thereby realizing integrity detection of metadata items of electronic archives.
[0049] Figure 3-1 This is an example interface of a metadata item integrity detection system for an electronic archive according to an embodiment of the present application. Figure 3-1As shown, the user needs to select the type of electronic archive to be detected, such as voucher number, in the tab corresponding to "Metadata items with continuous numbering properties" on this configuration interface, and check the option of "Enable continuity detection". If "Warning" is selected for "Not passing processing method", the system will prompt a warning message when the metadata item of the electronic archive to be detected is not complete. For the option of "Set metadata numbering part", if "Setting method 1: Specify the character order used for numbering in metadata" is selected, it is necessary to customize the specified sequence, such as "from left to right" or "from right to left", and configure the specific values of the first position and the second position. The specific values of the first position and the second position are determined according to the actual situation, such as configuring the third character from "from left to right" to the third character from "from right to left". After selecting "Group by prefix and suffix of number" on the tab of "Set numbering group", three options will appear, namely "Group by prefix of number", "Group by suffix of number" and "Group by prefix and suffix of number", which can be selected according to the actual situation. The "Whether to detect from the specified starting number" option card can be configured. If "Yes" is selected, the target data sequence is detected based on the starting number to see if it is continuous.
[0050] Figure 3-2 This is an example interface of a metadata item integrity detection system for an electronic archive according to an embodiment of the present application. Figure 3-2 As shown, the user needs to select the type of electronic archive to be detected, such as voucher number, in the tab corresponding to "Metadata items with continuous numbering properties" on this configuration interface, and check the option of "Enable continuity detection". If "Warning" is selected for "Not through processing method", the system will prompt a warning message when the metadata item of the electronic archive to be detected is not complete. For the option of "Set metadata number part", if "Set method 2: Exclude prefix and suffix parts of metadata that are not related to numbering" is selected. You can selectively configure the characters of "Exclude number prefix part" and "Exclude number suffix part". After selecting "Group by other metadata values" on the tab of "Set number group", the option of filling in the target field identifier in the prefix part will appear, such as "Year". The option card of "Whether to detect from the specified starting number" can be configured. If "Yes" is selected, the target data sequence is detected based on the starting number to see if it is continuous.
[0051] After the configuration is completed, the system will perform continuity detection on the metadata items of the electronic archive based on the configuration. If it is detected that all metadata items of the electronic archive are continuous, it is determined that the metadata items of the electronic archive are complete.
[0052] Electronic devices
[0053] Figure 4A schematic diagram of the structure of an electronic device according to an embodiment of the present application is shown. The specific embodiment of the present application does not limit the specific implementation of the electronic device.
[0054] like Figure 4 As shown, the electronic device may include: a processor (processor) 402 , a communication interface (Communications Interface) 404 , a memory (memory) 406 , and a communication bus 408 .
[0055] in:
[0056] The processor 402 , the communication interface 404 , and the memory 406 communicate with each other via a communication bus 408 .
[0057] The communication interface 404 is used to communicate with other electronic devices or servers.
[0058] The processor 402 is used to execute the program 410, and specifically can execute the relevant steps in the above-mentioned embodiment of the method for detecting the integrity of the metadata items of the electronic archive.
[0059] Specifically, the program 410 may include program codes, which include computer operation instructions.
[0060] The processor 402 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the smart device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
[0061] The memory 406 is used to store the program 410. The memory 406 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0062] The program 410 may be specifically configured to enable the processor 402 to perform the following operations:
[0063] In an optional implementation, the program 410 is also used to enable the processor 402 to implement each step in the program 410. The specific implementation can refer to the corresponding steps and corresponding descriptions of the device in the above-mentioned electronic archive metadata item integrity detection method embodiment, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described device and module can refer to the corresponding process description in the above-mentioned method embodiment, which will not be repeated here.
[0064] Computer program product
[0065] An embodiment of the present application also provides a computer program product, including computer instructions, which instruct a computing device to execute operations corresponding to the integrity detection method of metadata items of an electronic archive in any of the above-mentioned multiple method embodiments.
[0066] It should be pointed out that, according to the needs of implementation, the various components / steps described in the embodiments of the present application can be split into more components / steps, or two or more components / steps or partial operations of components / steps can be combined into new components / steps to achieve the purpose of the embodiments of the present application.
[0067] Computer readable storage medium
[0068] The present application embodiment also provides a computer-readable storage medium, and the above-mentioned method according to the embodiment of the present application can be implemented in hardware, firmware, or implemented as software or computer code that can be stored in a recording medium (such as a CD ROM, RAM, floppy disk, hard disk or magneto-optical disk), or implemented as a computer code originally stored in a remote recording medium or a non-temporary machine-readable medium downloaded through a network and to be stored in a local recording medium, so that the method described herein can be stored in such software processing on a recording medium using a general-purpose computer, a dedicated processor or programmable or dedicated hardware (such as an ASIC or FPGA). It can be understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component (for example, RAM, ROM, flash memory, etc.) that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor or hardware, the integrity detection method of the metadata item of the electronic archive described herein is implemented. In addition, when a general-purpose computer accesses the code for implementing the integrity detection method of the metadata item of the electronic archive shown herein, the execution of the code converts the general-purpose computer into a dedicated computer for executing the integrity detection method of the metadata item of the electronic archive shown herein.
[0069] Those of ordinary skill in the art will appreciate that the units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present application.
[0070] The above implementation methods are only used to illustrate the embodiments of the present application, and are not limitations on the embodiments of the present application. Ordinary technicians in the relevant technical field can make various changes and modifications without departing from the spirit and scope of the embodiments of the present application. Therefore, all equivalent technical solutions also belong to the scope of the embodiments of the present application. The scope of patent protection of the embodiments of the present application should be limited by the claims.
Claims
1. A method for detecting the integrity of metadata items of electronic archives, characterized in that: The method comprises: Grouping the metadata items of the electronic archive to be detected according to the numbers of the metadata items; Obtaining a target data sequence corresponding to each grouped metadata item, and detecting whether the target data sequence has continuity; If the target data sequence of each group is continuous, it is determined that the metadata item of the electronic file is complete.
2. The method according to claim 1, characterized in that The step of grouping the metadata items according to the numbers of the metadata items of the electronic archive to be detected includes: Obtaining the prefix part and the suffix part of the number; If the prefix part contains a field identifier, the metadata items with the same prefix part are determined to be the same group, or the metadata items with the same suffix part are determined to be the same group, or the metadata items with the same prefix part and the same suffix part are determined to be the same group.
3. The method according to claim 2, characterized in that If the prefix portion includes at least two field identifiers, determining a target field identifier from the field identifiers; The metadata items having the same value of the target field identifier in the metadata items are determined as the same group.
4. The method according to claim 1, characterized in that: The step of obtaining a target data sequence corresponding to each group of metadata items and detecting whether the target data sequence has continuity includes: For each of the groups, obtain a prefix part and a suffix part of the number of the metadata item; Determining target detection data corresponding to each metadata item according to the prefix part and the suffix part; Sorting the target detection data corresponding to all the metadata items to obtain the target data sequence; Whether the target data sequence has continuity is determined according to the difference between every two adjacent values in the target data.
5. The method according to claim 4, characterized in that The determining, according to the prefix part and the suffix part, the target detection data corresponding to each metadata item comprises: Deleting the prefix part and the suffix part from the metadata item to obtain a first metadata item; The first metadata item is converted into target detection data in a numerical format.
6. The method according to claim 4, characterized in that The determining, according to the prefix part and the suffix part, the target detection data corresponding to each metadata item comprises: determining a first position according to an end position of the prefix portion in the metadata item; determining a second position according to a starting position of the suffix portion in the metadata item; intercepting the metadata item according to the first position and the second position to obtain a first metadata item; The first metadata item is converted into target detection data in a numerical format.
7. The method according to claim 4, characterized in that The determining whether the target data sequence has continuity according to the difference between every two adjacent values in the target data includes: If the absolute values of the differences between every two adjacent values in the target data are equal, it is determined that the target data sequence is continuous.
8. A device for detecting the integrity of metadata items of electronic archives, characterized in that: include: A grouping module, used for grouping the metadata items of the electronic archive to be detected according to the numbers of the metadata items; A detection module, used to obtain a target data sequence corresponding to each grouped metadata item, and detect whether the target data sequence has continuity; The determination module is used to determine whether the metadata item of the electronic archive has integrity if the target data sequence of each group has continuity.
9. An electronic device, comprising: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to the integrity detection method of metadata items of electronic archives as described in any one of claims 1-7.
10. A computer storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the method for detecting the integrity of metadata items of an electronic archive as claimed in any one of claims 1 to 7 is implemented.