Data verification method and device of nuclear power base and electronic equipment
By determining the verification strategy according to the data type and building a verification strategy rule library, the problem of inaccurate data verification in the nuclear power base is solved, more stringent and accurate data verification is achieved, and the security and integrity of the nuclear power base are met. need.
Patent Information
- Application Number
- CN202410707975.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-08-23
AI Technical Summary
Existing data verification methods cannot meet the strict requirements of nuclear power bases for data verification, making it difficult to accurately verify data in nuclear power bases.
By determining the corresponding verification strategy according to the data type of the data to be verified, and using the verification strategy to perform data verification on the data to be verified, including obtaining the data to be verified, matching verification policy rules according to the data type, and constructing verification Steps such as policy rule base, allocating policy partitions, and updating the verification policy rule base improve the accuracy of data verification.
It improves the accuracy of data verification in nuclear power bases, meets the strict requirements of nuclear power bases for data verification, and ensures the security and integrity of data.
Smart Images

Figure CN118535561A
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of nuclear power base management, and in particular, relates to a data verification method, device, electronic equipment and computer-readable storage medium for a nuclear power base. Background Art
[0002] Data verification refers to the verification and inspection of data to ensure the accuracy, completeness, consistency and security of the data. Conventional data verification can include verifying whether the data length, format, range, etc. meet the preset requirements. However, in special fields such as nuclear power bases, the data in the nuclear power bases often require more stringent data verification. For example, the input data or output data of the service end of the nuclear power base may also need to comply with industry specifications and may also require manual verification. The current data verification method cannot meet the requirements of nuclear power bases, making it difficult to accurately verify the data in nuclear power bases. Summary of the invention
[0003] The embodiments of the present application provide a data verification method, device, electronic device and computer-readable storage medium for a nuclear power base, which can improve the accuracy of data verification in the nuclear power base.
[0004] In a first aspect, an embodiment of the present application provides a data verification method for a nuclear power base, which is applied to a server in the nuclear power base, including:
[0005] Acquire data to be verified; the data to be verified includes data to be input or data to be output from the server;
[0006] Determine a corresponding verification strategy according to the data type of the data to be verified; the verification strategy includes one or more verification strategy rules;
[0007] The verification strategy is used to perform data verification on the data to be verified to obtain a data verification result.
[0008] Optionally, before determining a corresponding verification strategy according to the data type of the data to be verified, the method further includes:
[0009] Get the verification policy rules to be matched;
[0010] Constructing a verification strategy rule base according to the strategy type of the verification strategy rule to be matched; the verification strategy rule base includes a mapping relationship between the data type of the data to be verified and the strategy type of the verification strategy rule to be matched;
[0011] Correspondingly, determining a corresponding verification strategy according to the data type of the data to be verified includes:
[0012] The verification strategy rules to be matched are matched from the verification strategy rule library according to the data type of the data to be verified, so as to obtain the verification strategy corresponding to the data to be verified.
[0013] Optionally, the constructing a verification policy rule base according to the policy type of the verification policy rule to be matched includes:
[0014] Allocating different to-be-matched verification strategy rules to pre-constructed strategy partitions; the strategy partitions are constructed according to the strategy type or the data type;
[0015] The verification strategy rule base is constructed according to the strategy partitions.
[0016] Optionally, in the case where the policy partition is constructed according to the policy type, one policy partition corresponds to one policy type;
[0017] The step of constructing the verification strategy rule base according to the strategy partitioning includes:
[0018] Allocate the to-be-matched verification policy rules of different policy types to corresponding policy partitions;
[0019] Determining a first mapping relationship between the strategy partition and a preset data type;
[0020] The verification strategy rule base is constructed according to the allocated strategy partition and the first mapping relationship.
[0021] Optionally, when the strategy partition is constructed according to the data type, the strategy partition includes a first strategy partition and a second strategy partition, wherein the first strategy partition includes a to-be-matched verification strategy rule corresponding to the to-be-input data, and the second strategy partition includes a to-be-matched verification strategy rule corresponding to the to-be-output data;
[0022] The step of constructing the verification strategy rule base according to the strategy partitioning includes:
[0023] The verification policy rule base is constructed according to the first policy partition and the second policy partition.
[0024] Optionally, constructing the verification strategy rule base according to the first strategy partition and the second strategy partition includes:
[0025] Determine a second mapping relationship between the to-be-matched verification strategy rule in the first strategy partition and the data type corresponding to the to-be-input data;
[0026] Determine a third mapping relationship between the to-be-matched verification strategy rule in the second strategy partition and the data type corresponding to the to-be-output data;
[0027] The verification strategy rule library is constructed according to the verification strategy rules to be matched in the first strategy partition, the second mapping relationship, the verification strategy rules to be matched in the second strategy partition, and the third mapping relationship.
[0028] Optionally, in the case where the policy partition is constructed according to the data type, the policy partition further includes a third policy partition, the third policy partition includes a standard verification policy rule, and the standard verification policy rule refers to a preset policy rule to be associated with the verification policy rule to be matched;
[0029] The step of constructing the verification strategy rule base according to the first strategy partition and the second strategy partition includes:
[0030] Constructing an association relationship between the to-be-matched verification policy rules in the first policy partition and the standard verification policy rules in the third policy partition to obtain a first association relationship; and / or constructing an association relationship between the to-be-matched verification policy rules in the second policy partition and the standard verification policy rules in the third policy partition to obtain a second association relationship;
[0031] The verification strategy rule base is constructed according to the first strategy partition, the second strategy partition and the third strategy partition after the association relationship is constructed.
[0032] Optionally, when the verification strategy includes a plurality of verification strategy rules, performing data verification on the to-be-verified data by using the verification strategy includes:
[0033] The data to be verified is verified according to the priorities of different verification strategy rules in the verification strategy.
[0034] Optionally, after constructing the verification strategy rule base according to the strategy partition, the method further includes:
[0035] When a change in the to-be-matched verification policy rule in the policy partition is detected, the verification policy rule base is updated.
[0036] In a second aspect, an embodiment of the present application provides a data verification device for a nuclear power base, which is applied to a server in the nuclear power base, including:
[0037] A verification data acquisition module, used to acquire data to be verified; the data to be verified includes data to be input or data to be output from the server;
[0038] A verification strategy determination module, used to determine a corresponding verification strategy according to the data type of the data to be verified;
[0039] The data verification module is used to perform data verification on the data to be verified using the verification strategy to obtain a data verification result.
[0040] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the data verification method for a nuclear power base described in the first aspect are implemented.
[0041] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the data verification method for a nuclear power base described in the first aspect above are implemented.
[0042] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes the data verification method for a nuclear power base as described in any one of the first aspects above.
[0043] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0044] In the embodiment of the present application, the corresponding verification strategy is determined by the data type of the data to be verified, and the data to be verified is verified using the verification strategy, so that the accuracy of data verification in the nuclear power base can be improved. Specifically, since the above-mentioned data to be verified includes the data to be input or the data to be output of the service end of the nuclear power base, when the corresponding verification strategy is determined according to the data type of the data to be verified, the verification strategy corresponding to the data to be input or the data to be output can be determined more specifically, and a verification strategy that is more suitable for the above-mentioned data to be input or the data to be output can be determined, thereby improving the accuracy of data verification. At the same time, since the above-mentioned verification strategy includes one or more verification strategy rules, it means that when the above-mentioned verification strategy is used for data verification, the input data or the data to be output can be verified based on one or more verification strategy rules, so that the needs of the nuclear power base can be met and the accuracy of data verification in the nuclear power base can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present application, 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 of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0046] Figure 1 It is a flow chart of a data verification method for a nuclear power base provided in one embodiment of the present application;
[0047] Figure 2 It is a schematic diagram of association of different policy rules in the first policy partition, the second policy partition and the third policy partition provided in an embodiment of the present application;
[0048] Figure 3 It is a structural schematic diagram of a data verification device for a nuclear power base provided in an embodiment of the present application;
[0049] Figure 4 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0050] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0051] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0052] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0053] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0054] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0055] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0056] During the operation of a nuclear power base, various data will be generated, including power generation data (such as power generation, power generation, etc.), operating parameter data (such as operating parameters such as temperature and pressure of the generator set), environmental monitoring data (such as air quality, water quality, noise level, etc.), and data generated by personnel management (such as personnel entry and exit data, emergency management personnel statistics, etc.). Due to the particularity of nuclear power bases, these data require more stringent verification measures when they are circulated to ensure the security of data in nuclear power bases. For example, in the personnel management of nuclear power bases, it is necessary to conduct statistical management of the personnel information of personnel entering and leaving the nuclear power base (including daily personnel statistical management and personnel statistical management in the event of an emergency, etc.), which will cause the server of the nuclear power base to generate a large amount of input and / or output data.
[0057] At present, when verifying the input and / or output data of the server of the nuclear power base, different types of input and / or output data often need to be combined to verify the data. However, the combination of conventional data verification methods is difficult and the flexibility of the combination is limited. Therefore, it is impossible to meet the requirements of the nuclear power base, resulting in the difficulty of accurately verifying the data in the nuclear power base.
[0058] In order to improve the accuracy of data verification of a nuclear power base, the present application provides a data verification method for a nuclear power base based on a verification strategy.
[0059] Figure 1 A flow chart of a data verification method for a nuclear power base provided in an embodiment of the present application is shown. The method is applied to a server in the nuclear power base, and is described in detail as follows:
[0060] S1. Obtain data to be verified; the data to be verified includes data to be input or data to be output from the server.
[0061] Specifically, the server refers to a computer or computer cluster in a nuclear power base that is responsible for processing client (e.g., mobile phone and other terminal devices) requests and providing various services. The data to be verified includes the data to be input or output of the server, that is, the data to be input to the server or the data to be output by the server.
[0062] For example, taking the personnel management of a nuclear power base as an example, when it is necessary to authorize personnel entering and leaving the nuclear power base, the data to be verified may be the identity information sent by the terminal device (for example, name, contact information, ID card information, etc.); when emergency management requires statistical personnel information, the information to be verified may be the evacuation information output by the server (for example, the number of people evacuated and the number of people not evacuated, etc.).
[0063] S2. Determine a corresponding verification strategy according to the data type of the above-mentioned data to be verified; the above-mentioned verification strategy includes one or more verification strategy rules.
[0064] Specifically, after the server obtains the data to be verified, it can match one or more verification strategy rules from a preset rule library according to the data type of the data to be verified, and use the matched verification strategy rules to determine the verification strategy corresponding to the data to be verified. The verification strategy rules refer to the rules for verifying the data to be verified.
[0065] For example, assuming that the data to be verified is identity information uploaded by a mobile phone, the matched verification strategy rules may include length verification rules, format verification rules and blacklist verification rules, that is, the verification strategy corresponding to the identity information includes the above three verification strategy rules.
[0066] S3. Use the above verification strategy to perform data verification on the above data to be verified to obtain a data verification result.
[0067] Specifically, when the above-mentioned verification strategy includes one verification strategy rule, the above-mentioned data verification result may directly include data verification success or data verification failure; and when the above-mentioned verification strategy includes multiple verification strategy rules, the above-mentioned data verification result may also include the rule verification status of each verification strategy rule, and when each verification strategy rule is verified successfully, the data verification result is determined to be data verification success, otherwise, the data verification result is determined to be data verification failure.
[0068] In the embodiment of the present application, the corresponding verification strategy is determined by the data type of the data to be verified, and the data to be verified is verified using the verification strategy, so that the accuracy of data verification in the nuclear power base can be improved. Specifically, since the above-mentioned data to be verified includes the data to be input or the data to be output of the service end of the nuclear power base, when the corresponding verification strategy is determined according to the data type of the data to be verified, the verification strategy corresponding to the data to be input or the data to be output can be determined more specifically, and a verification strategy that is more suitable for the above-mentioned data to be input or the data to be output can be determined, thereby improving the accuracy of data verification. At the same time, since the above-mentioned verification strategy includes one or more verification strategy rules, it means that when the above-mentioned verification strategy is used for data verification, the input data or the data to be output can be verified based on one or more verification strategy rules, so that the needs of the nuclear power base can be met and the accuracy of data verification in the nuclear power base can be improved.
[0069] In another optional embodiment of the present application, the vehicle information includes license plate information, and before determining the corresponding verification strategy according to the data type of the data to be verified, the following is further included:
[0070] Get the verification policy rules to be matched;
[0071] A verification strategy rule base is constructed according to the strategy type of the verification strategy rule to be matched; the verification strategy rule base includes a mapping relationship between the data type of the data to be verified and the strategy type of the verification strategy rule to be matched.
[0072] The verification strategy rule to be matched refers to a pre-set strategy rule for matching the data to be verified. The verification strategy rule base may include a strategy rule table and a mapping matching table, wherein the strategy rule table is used to store the verification strategy rules to be matched, and the mapping matching table is used to store the mapping relationship between the data type of the data to be verified and the strategy type of the verification strategy rule to be matched. The mapping relationship can be one-to-many or many-to-one, that is, one data type can correspond to multiple strategy types, and one strategy type can also correspond to multiple data types.
[0073] Specifically, after obtaining the verification policy rules to be matched, multiple sub-libraries can be created in a preset database, each of which includes multiple policy rule tables, and then the table structure fields of each policy rule table are set to store the verification policy rules to be matched, for example: a policy rule table, the fields may include policy type, policy number, policy content, etc. Then the table structure fields of the mapping matching table can be set to store the mapping relationship between the data type of the data to be checked and the policy type of the verification policy rules to be matched, for example, the fields in the mapping matching table may be data type, policy type, policy number, etc., so that the verification policy rules to be matched corresponding to the data to be checked can be quickly matched through the mapping matching table.
[0074] It should be noted that the above data types can be set through basic data types, for example, they may include integer type, floating point type, character type, etc.; or the data type can be set according to actual needs, for example, the data type can be set according to the interface type, interface 1 corresponds to data type 1, and interface 1 corresponds to data type 1.
[0075] Correspondingly, the above-mentioned determination of the corresponding verification strategy according to the data type of the above-mentioned data to be verified includes:
[0076] According to the data type of the above-mentioned data to be verified, the above-mentioned verification strategy rules to be matched are matched from the above-mentioned verification strategy rule library to obtain the verification strategy corresponding to the above-mentioned data to be verified.
[0077] Specifically, after obtaining the data to be verified, the policy type can be quickly matched from the mapping matching table according to its corresponding data type, and then one or more specific verification policy rules are determined from the policy rule table to obtain the verification policy corresponding to the data to be verified.
[0078] In the embodiment of the present application, the verification strategy rule base is constructed according to the strategy type of the verification strategy rule to be matched, including:
[0079] Allocating the different to-be-matched verification strategy rules to pre-built strategy partitions; the strategy partitions are constructed according to the strategy type or the data type;
[0080] The above verification strategy rule base is constructed according to the above strategy partitioning.
[0081] Specifically, due to the diversity of policy types and data types, different policy partitions (i.e., sub-libraries in the verification policy rule library) can be pre-constructed in the verification policy rule library according to the policy type or data type, thereby improving the efficiency of the verification policy rule library retrieval. For example, when constructing policy partitions according to data types, since the above-mentioned policy partitions correspond to data types, the corresponding policy partitions can be quickly found according to the data type of the data to be verified, thereby improving the retrieval efficiency of the policy partitions; when constructing policy partitions according to policy types, since the above-mentioned policy partitions correspond to policy types, that is, the policy partitions will include all verification policy rules to be matched of the corresponding policy type, thereby improving the retrieval efficiency of the verification policy rules to be matched in the policy partitions. At the same time, pre-constructing different policy partitions in the verification policy rule library according to policy types or data types also facilitates the maintenance of the verification policy rules to be matched in the verification policy rule library.
[0082] In an optional embodiment of the present application, when the above-mentioned policy partitions are constructed according to the above-mentioned policy types, the same number of policy partitions can be constructed according to the number of policy types, that is, one above-mentioned policy partition can be constructed corresponding to one above-mentioned policy type.
[0083] Correspondingly, the verification strategy rule base is constructed according to the strategy partition, including:
[0084] Allocate the above-mentioned to-be-matched verification policy rules of different policy types to corresponding policy partitions;
[0085] Determine a first mapping relationship between the above-mentioned strategy partition and a preset data type;
[0086] The verification strategy rule base is constructed according to the allocated strategy partition and the first mapping relationship.
[0087] Specifically, by allocating to-be-matched verification policy rules of different policy types to corresponding policy partitions, in the policy partition, by establishing a policy rule table, the policy partition contains all to-be-matched verification policy rules of the corresponding policy type, that is, the policy partition includes a mapping relationship between the policy type and all to-be-matched verification policy rules; and then the different policy partitions are associated with preset data types to obtain an association relationship between the data type and the policy partition, that is, the above-mentioned first mapping relationship, and a mapping matching table is constructed according to the above-mentioned first mapping relationship, so that the data type can be quickly mapped to the policy partition, and then from the policy partition to the to-be-matched verification policy rule.
[0088] For example, assuming that policy partition 1 corresponds to policy type 1, the fields in the policy rule table corresponding to policy partition 1 may include policy type, policy number, policy content, etc., so as to record the mapping relationship between policy type 1 and all policy rules to be matched; determine the first mapping relationship between the policy partition 1 and the preset data type, that is, after establishing an association between the policy partition 1 and the preset data type, the fields in the above-mentioned mapping matching table may include data type, policy partition, policy number, etc., so as to record the mapping relationship between the policy partition and the preset data type.
[0089] In an optional embodiment of the present application, since the data to be input and the data to be output on the server side in the nuclear power base often require different verification strategies, when the above-mentioned strategy partition is constructed according to the data type, the above-mentioned strategy partition includes a first strategy partition and a second strategy partition, wherein the above-mentioned first strategy partition includes the verification strategy rules to be matched corresponding to the above-mentioned data to be input, and the above-mentioned second strategy partition includes the verification strategy rules to be matched corresponding to the above-mentioned data to be output.
[0090] The verification strategy rule base is constructed according to the strategy partition, including:
[0091] The verification strategy rule base is constructed according to the first strategy partition and the second strategy partition.
[0092] Specifically, a verification strategy rule base is constructed by the first strategy partition and the second strategy partition. Since the verification strategy rules to be matched in the first strategy partition correspond to the data to be input, and the verification strategy rules to be matched in the second strategy partition correspond to the data to be output, it means that the verification strategy rule base can be constructed from the dimensions of the data to be input and the data to be output, thereby improving the efficiency of retrieving the verification strategy rules to be matched corresponding to the data to be input and the data to be output.
[0093] It should be noted that a new strategy partition can also be established in the verification strategy rule library based on the data in circulation. The new strategy partition can include the verification strategy rules to be matched corresponding to the internal circulation data in the nuclear power base, thereby facilitating the internal circulation data in the nuclear power base to find the corresponding verification strategy rules to be matched.
[0094] In the embodiment of the present application, the verification strategy rule base is constructed according to the first strategy partition and the second strategy partition, including:
[0095] Determine a second mapping relationship between the to-be-matched verification strategy rule in the first strategy partition and the data type corresponding to the to-be-input data;
[0096] Determine a third mapping relationship between the to-be-matched verification strategy rule in the second strategy partition and the data type corresponding to the to-be-output data;
[0097] The verification strategy rule library is constructed according to the to-be-matched verification strategy rules in the first strategy partition, the second mapping relationship, the to-be-matched verification strategy rules in the second strategy partition, and the third mapping relationship.
[0098] Specifically, the verification strategy rules to be matched corresponding to the data to be input can be assigned to the first strategy partition. In the first strategy partition, all verification strategy rules to be matched corresponding to the data to be input can also be saved by establishing a strategy rule table. The fields in the strategy rule table may include strategy type, strategy number, strategy content, etc.; then, according to the strategy type of the verification strategy rules to be matched, the verification strategy rules to be matched in the first strategy partition and the data type corresponding to the data to be input can be associated to obtain the association relationship between the data type and the strategy partition, that is, the above-mentioned second mapping relationship. According to the above-mentioned second mapping relationship, a mapping matching table is constructed. The fields in the above-mentioned mapping matching table may include data type, strategy type, strategy number, etc. Optionally, the mapping processing of the above-mentioned second strategy partition is similar to that of the first strategy partition, which will not be repeated here. Finally, a verification strategy rule base is constructed according to the verification strategy rules to be matched in the first strategy partition, the second mapping relationship, the verification strategy rules to be matched in the second strategy partition, and the third mapping relationship, so as to improve the efficiency of retrieving the verification strategy rules to be matched corresponding to the data to be input and the data to be output.
[0099] In another optional embodiment of the present application, since some of the verification policy rules to be matched can be applied to both the data to be input and the data to be output, if they are stored in the first policy partition and the second policy partition respectively, it may cause redundancy of data storage, thereby affecting the efficiency of matching the data to be input and the data to be output with the verification policy rules to be matched. Therefore, in the case where the above-mentioned policy partition is constructed according to the above-mentioned data type, the policy partition is set to also include a third policy partition, and the above-mentioned third policy partition includes standard verification policy rules, and the above-mentioned standard verification policy rules refer to preset policy rules to be associated with the above-mentioned verification policy rules to be matched. It should be noted that after the standard verification policy rules are associated with the verification policy rules to be matched, the data to be input and / or the data to be output can determine the corresponding associated standard verification policy rules through the matched verification policy rules to be matched, so that the standard verification policy rules can be applied to both the data to be input and the data to be output.
[0100] The above-mentioned verification strategy rule base is constructed according to the above-mentioned first strategy partition and the above-mentioned second strategy partition, including:
[0101] Constructing an association relationship between the to-be-matched verification policy rules in the first policy partition and the standard verification policy rules in the third policy partition to obtain a first association relationship; and / or constructing an association relationship between the to-be-matched verification policy rules in the second policy partition and the standard verification policy rules in the third policy partition to obtain a second association relationship;
[0102] The verification strategy rule base is constructed according to the first strategy partition, the second strategy partition and the third strategy partition after the association relationship is constructed.
[0103] Specifically, the first policy partition and / or the to-be-matched verification policy rules in the first policy partition and the standard verification policy rules in the third policy partition can be associated through the received association instructions to obtain the first association relationship and / or the second association relationship, and the first association relationship and / or the second association relationship can also be stored through a mapping matching table.
[0104] Optionally, the association degree between the first policy partition and / or the to-be-matched verification policy rules in the first policy partition and the standard verification policy rules in the third policy partition can also be calculated by a preset association algorithm, and when the association degree meets the preset association condition, a corresponding association relationship is constructed. The preset association algorithm can be one of a Bayesian network, a decision tree algorithm, an Apriori algorithm, and the like.
[0105] In some embodiments, reference Figure 2 As shown, it is a schematic diagram of the association of different policy rules in the first policy partition, the second policy partition and the third policy partition. Among them, the standard verification policy rule 1 in the third policy partition is simultaneously associated with the verification policy rule 1 to be matched in the first policy partition and the verification policy rule 2 to be matched in the second policy partition. For example, if the input data A is matched to the verification policy rule 1 to be matched from the first policy partition, the standard verification policy rule 1 associated with the verification policy rule 1 to be matched can be determined from the third policy partition through the association relationship, and then the verification policy corresponding to the input data A can be obtained, and the verification policy includes the verification policy rule 1 to be matched and the standard verification policy rule 1.
[0106] In the embodiment of the present application, when the verification strategy includes multiple verification strategy rules, the data verification of the to-be-verified data using the verification strategy includes:
[0107] The data to be verified is verified according to the priorities of the different verification strategy rules in the verification strategy.
[0108] Specifically, when the verification strategy includes multiple verification strategy rules, any verification strategy rule verification failure will result in the above data verification result being data verification failure. At this time, if all the verification strategy rules in the verification strategy are still used for data verification, verification resources will be wasted. Therefore, data verification can be performed on the data to be verified according to the priority of different verification strategy rules. After the verification of the verification strategy rule with a high priority fails, data verification of the data to be verified is stopped, thereby reducing the waste of verification resources.
[0109] For example, you can first use a high-priority verification strategy rule to verify the data to be verified. After the verification is successful, use a low-priority verification strategy rule to verify the data to be verified. When the verification strategy rule fails to verify the data to be verified, you can directly prompt the data verification result as data verification failure, and stop using the subsequent low-priority verification strategy rules to verify the data, thereby reducing the waste of verification resources.
[0110] In another optional embodiment of the present application, after constructing the verification strategy rule base according to the strategy partition, the following further comprises:
[0111] When a change in the to-be-matched verification policy rule in the policy partition is detected, the verification policy rule base is updated.
[0112] The above-mentioned change of the to-be-matched verification strategy rule may include one or more of adding, deleting, modifying, etc. the to-be-matched verification strategy rule.
[0113] Specifically, when a change in the verification strategy rule to be matched in the above-mentioned strategy partition is detected, the verification strategy rule base can be updated by adjusting the corresponding strategy rule table and / or mapping matching table. Since the audit strategy of data of different data types may change in the nuclear power base, resulting in changes in the verification method of data of different data types, by updating the above-mentioned verification strategy rule base, the subsequent verification strategy matched according to the verification strategy rule base can be adjusted in time, thereby improving the real-time performance of the verification strategy update.
[0114] For example, when it is detected that a certain to-be-matched verification policy rule in the first policy partition is deleted, the to-be-matched verification policy rule in the mapping matching table is correspondingly deleted, thereby timely updating the above verification policy rule base.
[0115] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0116] Corresponding to the data verification method of the nuclear power base described in the above embodiment, Figure 3A schematic diagram of the structure of a data verification device for a nuclear power base provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.
[0117] Reference Figure 3 The device may be a data verification device 31 of a nuclear power base. The data verification device 31 of a nuclear power base is applied to a server in the nuclear power base and may include a verification data acquisition module 311, a verification strategy determination module 312 and a data verification module 313.
[0118] Reference Figure 3 The data verification device 31 of the above-mentioned nuclear power base includes:
[0119] The verification data acquisition module 311 is used to acquire the data to be verified; the data to be verified includes the data to be input or the data to be output from the server;
[0120] The verification strategy determination module 312 is used to determine the corresponding verification strategy according to the data type of the data to be verified;
[0121] The data verification module 313 is used to perform data verification on the data to be verified using the verification strategy to obtain a data verification result.
[0122] In some other embodiments, the data verification device 31 of the nuclear power base further includes a strategy rule base construction module, and the strategy rule base construction module is used to determine the corresponding verification strategy according to the data type of the data to be verified, including:
[0123] Get the verification policy rules to be matched;
[0124] A verification strategy rule base is constructed according to the strategy type of the verification strategy rule to be matched; the verification strategy rule base includes a mapping relationship between the data type of the data to be verified and the strategy type of the verification strategy rule to be matched.
[0125] Correspondingly, the verification strategy determination module 312 determines the corresponding verification strategy according to the data type of the data to be verified through the following steps, including:
[0126] According to the data type of the above-mentioned data to be verified, the above-mentioned verification strategy rules to be matched are matched from the above-mentioned verification strategy rule library to obtain the verification strategy corresponding to the above-mentioned data to be verified.
[0127] In some embodiments, the policy rule base construction module constructs a verification policy rule base according to the policy type of the verification policy rule to be matched through the following steps, including:
[0128] Allocating the different to-be-matched verification strategy rules to pre-built strategy partitions; the strategy partitions are constructed according to the strategy type or the data type;
[0129] The above verification strategy rule base is constructed according to the above strategy partitioning.
[0130] In some embodiments, when the policy partition is constructed according to the policy type, one policy partition corresponds to one policy type;
[0131] The strategy rule base construction module constructs the verification strategy rule base according to the strategy partition through the following steps, including:
[0132] Allocate the above-mentioned to-be-matched verification policy rules of different policy types to corresponding policy partitions;
[0133] Determine a first mapping relationship between the above-mentioned strategy partition and a preset data type;
[0134] The verification strategy rule base is constructed according to the allocated strategy partition and the first mapping relationship.
[0135] In some embodiments, when the above-mentioned strategy partition is constructed according to the above-mentioned data type, the above-mentioned strategy partition includes a first strategy partition and a second strategy partition, wherein the above-mentioned first strategy partition includes the to-be-matched verification strategy rules corresponding to the above-mentioned to-be-input data, and the above-mentioned second strategy partition includes the to-be-matched verification strategy rules corresponding to the above-mentioned to-be-output data;
[0136] The strategy rule base construction module constructs the verification strategy rule base according to the strategy partition through the following steps, including:
[0137] The verification strategy rule base is constructed according to the first strategy partition and the second strategy partition.
[0138] In some embodiments, the policy rule base construction module constructs the verification policy rule base according to the first policy partition and the second policy partition through the following steps, including:
[0139] Determine a second mapping relationship between the to-be-matched verification strategy rule in the first strategy partition and the data type corresponding to the to-be-input data;
[0140] Determine a third mapping relationship between the to-be-matched verification strategy rule in the second strategy partition and the data type corresponding to the to-be-output data;
[0141] The verification strategy rule library is constructed according to the to-be-matched verification strategy rules in the first strategy partition, the second mapping relationship, the to-be-matched verification strategy rules in the second strategy partition, and the third mapping relationship.
[0142] In some embodiments, when the above-mentioned strategy partition is constructed according to the above-mentioned data type, the above-mentioned strategy partition also includes a third strategy partition, and the above-mentioned third strategy partition includes a standard verification strategy rule, and the above-mentioned standard verification strategy rule refers to a preset strategy rule to be associated with the above-mentioned verification strategy rule to be matched;
[0143] The strategy rule base construction module constructs the verification strategy rule base according to the first strategy partition and the second strategy partition through the following steps, including:
[0144] Constructing an association relationship between the to-be-matched verification policy rules in the first policy partition and the standard verification policy rules in the third policy partition to obtain a first association relationship; and / or constructing an association relationship between the to-be-matched verification policy rules in the second policy partition and the standard verification policy rules in the third policy partition to obtain a second association relationship;
[0145] The verification strategy rule base is constructed according to the first strategy partition, the second strategy partition and the third strategy partition after the association relationship is constructed.
[0146] In some embodiments, when the verification strategy includes multiple verification strategy rules, the data verification module 313 performs data verification on the data to be verified using the verification strategy through the following steps, including:
[0147] The data to be verified is verified according to the priorities of the different verification strategy rules in the verification strategy.
[0148] In some other embodiments, the data verification device 31 of the nuclear power base further includes a strategy rule base update module, and the strategy rule base update module is used to, after the verification strategy rule base is constructed according to the strategy partition, include:
[0149] When a change in the to-be-matched verification policy rule in the policy partition is detected, the verification policy rule base is updated.
[0150] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0151] Figure 4 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Figure 4 As shown, the electronic device 4 of this embodiment includes: at least one processor 40 ( Figure 4The at least one processor 40 includes a memory 41 and a computer program 42 stored in the memory 41 and executable on the at least one processor 40. When the processor 40 executes the computer program 42, the steps in any of the method embodiments are implemented.
[0152] The electronic device 4 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The electronic device may include, but is not limited to, a processor 40 and a memory 41. Those skilled in the art will appreciate that Figure 4 It is only an example of the electronic device 4 and does not constitute a limitation of the electronic device 4. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the electronic device may also include an input sending device, a network access device, a bus, etc.
[0153] The processor 40 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0154] In some embodiments, the memory 41 may be an internal storage unit of the electronic device 4, such as a hard disk or memory of the electronic device 4. The memory 41 may also be an external storage device of the electronic device 4, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 4. Further, the memory 41 may also include both an internal storage unit of the electronic device 4 and an external storage device. The memory 41 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program, etc. The memory 41 may also be used to temporarily store data that has been sent or is to be sent.
[0155] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the functional units and modules is used as an example. In practical applications, the function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0156] An embodiment of the present application also provides a network device, which includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor implements the steps in any of the method embodiments when executing the computer program.
[0157] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the various method embodiments can be implemented.
[0158] An embodiment of the present application provides a computer program product. When the computer program product runs on an electronic device, the electronic device can implement the steps in the various method embodiments when executing the computer program product.
[0159] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the process in the embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of each method embodiment when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera / electronic device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0160] In the embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0161] Those of ordinary skill in the art will appreciate that the units and algorithm 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 this application.
[0162] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0163] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0164] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A data verification method for a nuclear power base, It is characterized in that The server used in nuclear power bases includes: Acquire data to be verified; the data to be verified includes data to be input or data to be output from the server; Determine a corresponding verification strategy according to the data type of the data to be verified; the verification strategy includes one or more verification strategy rules; The verification strategy is used to perform data verification on the data to be verified to obtain a data verification result.
2. The data verification method for a nuclear power base according to claim 1, It is characterized in that Before determining the corresponding verification strategy according to the data type of the data to be verified, the method further includes: Get the verification policy rules to be matched; Constructing a verification strategy rule base according to the strategy type of the verification strategy rule to be matched; the verification strategy rule base includes a mapping relationship between the data type of the data to be verified and the strategy type of the verification strategy rule to be matched; Correspondingly, determining a corresponding verification strategy according to the data type of the data to be verified includes: The verification strategy rules to be matched are matched from the verification strategy rule library according to the data type of the data to be verified, so as to obtain the verification strategy corresponding to the data to be verified.
3. The data verification method for a nuclear power base according to claim 2, It is characterized in that The step of constructing a verification policy rule base according to the policy type of the verification policy rule to be matched includes: Allocating different to-be-matched verification strategy rules to pre-constructed strategy partitions; the strategy partitions are constructed according to the strategy type or the data type; The verification strategy rule base is constructed according to the strategy partitions.
4. The data verification method for a nuclear power base according to claim 3, It is characterized in that In the case where the policy partition is constructed according to the policy type, one policy partition corresponds to one policy type; The step of constructing the verification strategy rule base according to the strategy partitioning includes: Allocate the to-be-matched verification policy rules of different policy types to corresponding policy partitions; Determining a first mapping relationship between the strategy partition and a preset data type; The verification strategy rule base is constructed according to the allocated strategy partition and the first mapping relationship.
5. The data verification method for a nuclear power base according to claim 3, It is characterized in that In the case where the strategy partition is constructed according to the data type, the strategy partition includes a first strategy partition and a second strategy partition, wherein the first strategy partition includes the to-be-matched verification strategy rules corresponding to the to-be-input data, and the second strategy partition includes the to-be-matched verification strategy rules corresponding to the to-be-output data; The step of constructing the verification strategy rule base according to the strategy partitioning includes: The verification policy rule base is constructed according to the first policy partition and the second policy partition.
6. The data verification method for a nuclear power base according to claim 5, It is characterized in that The step of constructing the verification strategy rule base according to the first strategy partition and the second strategy partition includes: Determine a second mapping relationship between the to-be-matched verification strategy rule in the first strategy partition and the data type corresponding to the to-be-input data; Determine a third mapping relationship between the to-be-matched verification strategy rule in the second strategy partition and the data type corresponding to the to-be-output data; The verification strategy rule library is constructed according to the verification strategy rules to be matched in the first strategy partition, the second mapping relationship, the verification strategy rules to be matched in the second strategy partition, and the third mapping relationship.
7. The data verification method for a nuclear power base according to claim 5, It is characterized in that In the case where the policy partition is constructed according to the data type, the policy partition further includes a third policy partition, the third policy partition includes a standard verification policy rule, and the standard verification policy rule refers to a preset policy rule to be associated with the verification policy rule to be matched; The step of constructing the verification strategy rule base according to the first strategy partition and the second strategy partition includes: Constructing an association relationship between the to-be-matched verification policy rules in the first policy partition and the standard verification policy rules in the third policy partition to obtain a first association relationship; and / or constructing an association relationship between the to-be-matched verification policy rules in the second policy partition and the standard verification policy rules in the third policy partition to obtain a second association relationship; The verification strategy rule base is constructed according to the first strategy partition, the second strategy partition and the third strategy partition after the association relationship is constructed.
8. The data verification method for a nuclear power base according to any one of claims 2 to 7, It is characterized in that In the case where the verification strategy includes a plurality of verification strategy rules, performing data verification on the to-be-verified data by using the verification strategy includes: The data to be verified is verified according to the priorities of different verification strategy rules in the verification strategy.
9. The data verification method for a nuclear power base according to any one of claims 3 to 7, It is characterized in that After constructing the verification strategy rule base according to the strategy partition, the method further includes: When a change in the to-be-matched verification policy rule in the policy partition is detected, the verification policy rule base is updated.
10. A data verification device for a nuclear power base, It is characterized in that The server used in nuclear power bases includes: A verification data acquisition module, used to acquire data to be verified; the data to be verified includes data to be input or data to be output from the server; A verification strategy determination module, used to determine a corresponding verification strategy according to the data type of the data to be verified; The data verification module is used to perform data verification on the data to be verified using the verification strategy to obtain a data verification result.
11. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the method according to any one of claims 1 to 9 is implemented.
12. A computer-readable storage medium storing a computer program. It is characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.
Citation Information
Patent Citations
Data verification method and device, storage medium and computer equipment
CN109711145A
Intelligent risk control decision-making method and device for flow data, electronic equipment and medium
CN113645233A
Prepaid card auditing method and system, computer equipment and readable storage medium
CN116303388A
Data verification processing method and device, computer equipment and storage medium
CN116703410A
Data processing method and device, computer readable storage medium and electronic equipment
CN117891499A
