CN116578555A - Data verification method, system, electronic equipment and storage medium - Google Patents

Data verification method, system, electronic equipment and storage medium Download PDF

Info

Publication number
CN116578555A
CN116578555A CN202310544725.6A CN202310544725A CN116578555A CN 116578555 A CN116578555 A CN 116578555A CN 202310544725 A CN202310544725 A CN 202310544725A CN 116578555 A CN116578555 A CN 116578555A
Authority
CN
China
Prior art keywords
data
rule
verification
verified
entity
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310544725.6A
Other languages
Chinese (zh)
Inventor
陈培文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiuzhi Suzhou Intelligent Technology Co ltd
Original Assignee
Jiuzhi Suzhou Intelligent Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiuzhi Suzhou Intelligent Technology Co ltd filed Critical Jiuzhi Suzhou Intelligent Technology Co ltd
Priority to CN202310544725.6A priority Critical patent/CN116578555A/en
Publication of CN116578555A publication Critical patent/CN116578555A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/215Improving data quality; Data cleansing, e.g. de-duplication, removing invalid entries or correcting typographical errors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24564Applying rules; Deductive queries

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Computational Linguistics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a data verification method, a data verification system, electronic equipment and a storage medium. The method comprises the following steps: the data acquisition module acquires initial data to be checked according to preset data source information configured by the data rule management platform; converting the initial data to be checked into target data to be checked by a data analysis module according to the data type of the initial data to be checked; the data configuration module is used for packaging the target data to be checked into a data entity to be checked according to preset data structure information configured by the data rule management platform; and acquiring a data verification rule generated by the rule module through a core processing module constructed based on the Drools data rule engine, and verifying the data entity to be verified according to the data verification rule. By operating the technical scheme provided by the embodiment of the invention, the data and the rules can be configured from each abstract dimension, and the flexibility of data acquisition, data verification rule generation, data entity generation to be verified and data verification is improved.

Description

Data verification method, system, electronic equipment and storage medium
Technical Field
The present invention relates to computer technology, and in particular, to a data verification method, system, electronic device, and storage medium.
Background
Data quality is critical to the success of items such as data warehouses, and data typically needs to be checked in order to continuously monitor data quality.
The prior art is typically based on program verification, as well as structured query language (Structured Query Language, SQL) verification.
Program-based verification refers to verification with the aid of if, if-else and then statements, using some known programming language. However, 1) the verification-related operation must be performed by a person who knows the programming language, and the requirement on the operator is high; 2) The difficulty of verifying the data related to the document by using codes is high; 3) If the verification function is written in the program item, maintenance and modification of the verification function become abnormal and troublesome; 4) Complex business rules are difficult to process using conventional programming languages; 5) The cost of code maintenance is high, etc.
The SQL based check is a check performed using SQL queries from the database. The verification function is developed based on SQL sentences, and the verification related operation must be operated by personnel knowing the SQL sentences, so that the requirement on operators is high; 2) When facing complex verification, SQL verification sentences are longer and are difficult to understand; 3) The tool based on SQL verification can be performed by connecting with the database, and the additional cost is increased.
Disclosure of Invention
The invention provides a data verification method, a system, electronic equipment and a storage medium, which are used for improving the convenience and flexibility of data verification.
According to an aspect of the present invention, there is provided a data verification method, the method comprising:
the data acquisition module acquires initial data to be checked according to preset data source information configured by the data rule management platform;
converting the initial data to be checked into target data to be checked by a data analysis module according to the data type of the initial data to be checked;
the target data to be verified is packaged into a data entity to be verified through a data configuration module according to preset data structure information configured by the data rule management platform;
the core processing module is used for acquiring the data verification rule generated by the rule module and verifying the data entity to be verified according to the data verification rule; wherein the core processing module is constructed based on a Drools data rule engine.
According to another aspect of the present invention, there is provided a data verification system, the system comprising:
the data acquisition module is used for acquiring initial data to be checked according to preset data source information configured by the data rule management platform;
the data analysis module is used for converting the initial data to be verified into target data to be verified according to the data type of the initial data to be verified;
the data configuration module is used for packaging the target data to be checked into a data entity to be checked according to preset data structure information configured by the data rule management platform;
the core processing module is used for acquiring the data verification rule generated by the rule module and verifying the data entity to be verified according to the data verification rule; wherein the core processing module is constructed based on a Drools data rule engine.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the data verification method of any one of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to execute a data verification method according to any one of the embodiments of the present invention.
According to the technical scheme, the data rule management platform is used for uniformly managing and configuring the data information and the rule information required by each module, so that the information maintenance and management efficiency is improved, codes are not required, the technical difficulty of management and configuration on operators is reduced, and the application range of the data checking method is enlarged. The data related information, such as preset data source information, preset data structure information and rule related information, such as data verification rules, are abstracted, so that the data and the rules can be configured from each abstract dimension, and the flexibility of data acquisition, data verification rule generation, data entity generation to be verified and data verification is improved. Due to the characteristics of the Drools data rule engine, the target data to be verified is packaged into the data entity to be verified, so that a core processing module constructed based on the Drools data rule engine can be directly processed according to data verification, and the pertinence of data verification is improved. And the data analysis module is used for analyzing the data of different types into target data to be verified of the general data structure, so that the initial data to be verified of different types can be verified by adopting the core processing module, and the reusability of the core processing module is improved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
FIG. 1 is a flowchart of a data verification method according to a first embodiment of the present invention;
FIG. 2 is a flowchart of a data verification method according to a second embodiment of the present invention;
FIG. 3 is a schematic diagram of a data verification system according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device for implementing an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," "target," and the like in the description and claims of the present invention and in the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a data verification method according to an embodiment of the present invention, where the embodiment is applicable to a case of performing data verification based on a Drools data rule engine, the method may be performed by a data verification system according to an embodiment of the present invention, and the system may be implemented by software and/or hardware. Referring to fig. 1, the data verification method provided in this embodiment includes:
step 110, acquiring initial data to be checked through a data acquisition module according to preset data source information configured by a data rule management platform.
The data rule management platform is used for configuring the data information and the check rules in advance, so that the effect of unified management and maintenance of the data information and the check rules is achieved.
The preset data source information can comprise a data storage position, a data storage type and the like, the data acquisition module can know a data acquisition position and a data acquisition type of initial data to be checked which need to be acquired through the data source information, so that corresponding initial data to be checked can be accurately acquired from the data storage position according to the data type, wherein if the data types are different, the acquisition modes can be different, the data types can comprise single integral types, such as offline data including log data, mySQL data, hive data and the like, and streaming real-time data including Kafka and the like; subdivision types in a single overall type, such as different types of logs in log data, may also be included, which is not limiting in this embodiment.
The initial data to be verified is the data to be verified, which is directly obtained from the data storage position.
And 120, converting the initial data to be verified into target data to be verified by a data analysis module according to the data type of the initial data to be verified.
According to the unified analysis of the initial data to be checked, analyzing the data of different types into a universal data structure, namely unifying the data formats, the analysis mode can be to determine corresponding analysis rules aiming at different data types, and analyzing according to the analysis rules, and the embodiment is not limited to the analysis. And determining the data to be verified obtained after analysis as target data to be verified.
And 130, packaging the target data to be verified into a data entity to be verified through a data configuration module according to preset data structure information configured by the data rule management platform.
The preset data structure information is structure information of the check data, for example, includes a data type, a table name, a field type, an association between fields, for example, whether a field combination can be formed, and a field function, for example, whether the field is used for checking, etc.
And packaging the target data to be verified into an entity according to a preset entity format, for example, filling the content of the field for verification according to an entity structure according to the field contained in the target data to be verified and whether the field is used for verification, and packaging the content of the field for verification into the data entity to be verified. The single target data to be verified generally corresponds to a single data entity structure to be verified, and the single target data to be verified generally generates a single data entity to be verified, namely an entity instance.
In this embodiment, optionally, packaging, by the data configuration module, the target data to be verified into the data entity to be verified according to the preset data structure information configured by the data rule management platform includes:
acquiring target data structure information from preset data structure information according to the data type of the target data to be verified through a data configuration module;
creating an entity structure of the data entity to be verified according to the target data structure information;
and acquiring the data attribute of the target data to be verified, and packaging the target data to be verified into a data entity to be verified according to the data attribute and the entity structure.
The target data structure information is data structure information related to the target data to be checked, the data structure information corresponding to different data types may be different, and the data structure information corresponding to the same data type may also have differences, for example, when the data types are all logs, the number of fields corresponding to the first target data to be checked may not be consistent with the number of fields corresponding to the second target data to be checked. The association relationship between the data type and the data structure information can be configured in the data rule management platform in advance, so that the target data structure information is obtained from the preset data structure information through the data type of the target data to be checked.
Creating an entity structure of the data entity to be verified according to the target data structure information, wherein the entity structure can be created by combining specific target data structure information through entity structure creation rules preset in the data rule management platform configuration, for example, an initial entity structure is created according to the entity structure creation rules; determining a field contained in target data to be verified, a description of whether the field is used for verification, and the like according to the target data structure information, and determining a field used for verification; and determining the association relation between the field for verification and the initial entity structure according to the entity structure creation rule, such as the association relation between the field name and the attribute name in the initial entity structure, so as to determine the position of acquiring the data from the target data to be verified, the position of filling the data in the initial entity structure, and the like through the association relation.
The data attribute of the target data to be checked is the specific field content in the target data field to be checked, and the specific field content can be acquired by the data acquisition module and then transmitted to the data configuration module. And packaging the target data to be verified into a data entity to be verified according to the data attribute and the entity structure, namely assigning the data attribute to the entity structure of the data entity to be verified, and packaging to obtain the data entity to be verified.
Because the target data to be checked has uncertainty, the target data to be checked is packaged into the data entity to be checked according to the data attribute and the entity structure, the data entity to be checked can be dynamically constructed according to the specific condition of the target data to be checked, the data entity to be checked does not need to be fixedly constructed in advance, the correlation between the data entity to be checked and the target data to be checked is low, the changing difficulty is increased, and the accuracy and the flexibility of the creation of the data entity to be checked are improved.
Step 140, acquiring a data verification rule generated by a rule module through a core processing module, and verifying a data entity to be verified according to the data verification rule; wherein the core processing module is built based on a Drools data rules engine.
The data verification rule generated by the rule module is used for verifying the data entity to be verified, the Drools data rule engine is adopted at the bottom layer of the core processing module, and the data entity to be verified is an entity which can be verified by the Drools data rule engine.
The Drools data rule engine is an open source rule engine, is written in Java language, calculates rules by using a Rete algorithm, and has the advantages of easiness in acquisition, high calculation speed, high calculation efficiency and the like.
The data verification rule generated by the rule module is obtained through the core processing module, so that the core processing module can verify the data entity to be verified according to the data verification rule, and a verification result of the data entity to be verified is obtained.
In this embodiment, optionally, the obtaining, by the core processing module, the data verification rule generated by the rule module includes:
and dynamically writing the data verification rule into a rule file in a preset format associated with the core processing module through the core processing module.
The rule file in the preset format can be a file in the DRL format, and the data verification rule is dynamically written into the rule file in the preset format associated with the core processing module, so that the Drools data rule engine can be used for verifying the data entity to be verified by directly adopting the data verification rule. And because the data verification rule has uncertainty, the data verification rule is dynamically written into a rule file in a preset format associated with the core processing module, the data verification rule and the target data to be verified are not required to have low correlation due to the fact that a fixed rule is written in advance, the changing difficulty is increased, and the accuracy and the flexibility of determining the data verification rule are improved.
In this embodiment, optionally, after checking the data entity to be checked according to the data checking rule, the method further includes:
obtaining a data verification result through a result processing module;
and executing the verification result processing operation according to the preset result processing information and the data verification result configured by the data rule management platform.
The preset result processing information configured by the data rule management platform can include result processing operation information after the data entity to be checked is checked, for example, which subsequent operations need to be performed after the data entity to be checked is checked successfully, which remedial measures need to be performed after the data entity to be checked is checked failed, and the like.
The result processing module obtains a data verification result, such as verification success or verification failure, from the core processing module. Executing a verification result processing operation according to the preset result processing information and the data verification result, and executing the related disc-falling operation of the data if verification is successful; if the verification fails, the related alarm operation is executed, and the embodiment does not limit the above.
And the result processing module is used for executing the verification result processing operation, so that the verification result can be processed correspondingly in time, and the effectiveness of data verification is improved. And the preset result processing information is configured by the data rule management platform, so that corresponding verification result processing operations can be executed according to different result data verification results, and the pertinence of result processing is improved.
According to the technical scheme provided by the embodiment, the data information and the rule information required by each module are uniformly managed and configured through the data rule management platform, so that the information maintenance and management efficiency is improved, codes are not required, the technical difficulty of management and configuration on operators is reduced, and the application range of the data checking method is enlarged.
The data related information, such as preset data source information, preset data structure information and rule related information, such as data verification rules, are abstracted, so that the data and the rules can be configured from each abstract dimension, and the flexibility of data acquisition, data verification rule generation, data entity generation to be verified and data verification is improved.
Due to the characteristics of the Drools data rule engine, the target data to be verified is packaged into the data entity to be verified, so that a core processing module constructed based on the Drools data rule engine can be directly processed according to data verification, and the pertinence of data verification is improved.
And the data analysis module is used for analyzing the data of different types into target data to be verified of the general data structure, so that the initial data to be verified of different types can be verified by adopting the core processing module, and the reusability of the core processing module is improved.
Example two
Fig. 2 is a flowchart of a data verification method according to a second embodiment of the present invention, and the present technical solution is to supplement the process of generating the data verification rule by the rule module. Compared with the scheme, the scheme is specifically optimized, the data verification rule is generated through the rule module, and the scheme comprises the following steps: determining an initial verification rule associated with a data entity to be verified according to preset rule information configured by a data rule management platform through a rule module; the preset rule information comprises at least one of a check rule combination, an object multi-check rule, an object single check rule and a basic check operation;
and processing the initial check rule according to the check format of the core processing module to obtain a data check rule.
Specifically, a flow chart of the data verification method is shown in fig. 2:
step 210, determining an initial verification rule associated with a data entity to be verified according to preset rule information configured by a data rule management platform through a rule module; the preset rule information comprises at least one of a check rule combination, an object multi-check rule, an object single check rule and a basic check operation.
The preset rule information comprises at least one of a verification rule combination, an object multi-verification rule, an object single-verification rule and a basic verification operation, wherein the basic verification operation can be greater than or equal to, including and less than or equal to a basic logic verification operation; the object single check rule is a rule for performing single-type check on a single check object, for example, judging whether the object a is greater than 100 or not; the object multi-verification rule is a rule for performing multi-type verification on a single verification object, for example, judging whether the object A is larger than 100 and smaller than 200; the check rule combination may be a check rule combination for a plurality of check objects, for example, to determine whether the object a is greater than 100 and whether the object B is less than 50 simultaneously, or the like. The judging object may be attribute content in the data entity to be verified, which is not limited in this embodiment.
And determining an initial verification rule associated with the data entity to be verified according to preset rule information configured by the data rule management platform through the rule module, wherein the initial verification rule is a verification rule directly determined according to the preset rule information and target data to be verified, for example, the target data to be verified contains a field A to be verified, and the initial verification rule can be used for judging whether the value in the field A is larger than 100 and smaller than 200, wherein the rule content of the initial verification rule can be determined through setting the preset rule information in the data rule management platform.
And 220, processing the initial check rule according to the check format of the core processing module to obtain a data check rule.
And the rule module performs operations such as splicing and the like on the initial verification rule according to a grammar format preset by the core processing module to obtain a corresponding data verification rule.
In the embodiment of the invention, the preset rule information comprises at least one of a verification rule combination, an object multi-verification rule, an object single-verification rule and a basic verification operation, and the initial verification rule can be determined through configuration of different preset rule information, so that the diversity and the flexibility of the determination of the initial verification rule are improved. And according to the verification format of the core processing module, the initial verification rule is converted into a data verification rule, so that the subsequent core processing module can process the data directly, and the effectiveness of obtaining the data verification rule is improved.
Example III
Fig. 3 is a schematic structural diagram of a data verification system according to a third embodiment of the present invention. The system can be realized by hardware and/or software, and the data verification method provided by any embodiment of the invention can be executed, and has the corresponding functional modules and beneficial effects of the execution method. As shown in fig. 3, the system includes:
the data acquisition module 310 is configured to acquire initial data to be checked according to preset data source information configured by the data rule management platform;
the data parsing module 320 is configured to convert the initial data to be verified into target data to be verified according to the data type of the initial data to be verified;
the data configuration module 330 is configured to encapsulate the target data to be verified into a data entity to be verified according to preset data structure information configured by the data rule management platform;
the core processing module 340 is configured to obtain the data verification rule generated by the rule module 350, and verify the data entity to be verified according to the data verification rule; wherein the core processing module is constructed based on a Drools data rule engine.
Based on the above technical solutions, optionally, the data configuration module 330 includes:
a target data structure information obtaining unit, configured to obtain target data structure information from the preset data structure information according to the data type of the target data to be verified through a data configuration module 330;
the entity structure creation unit is used for creating the entity structure of the data entity to be verified according to the target data structure information;
and the data entity packaging unit is used for acquiring the data attribute of the target data to be verified, and packaging the target data to be verified into a data entity to be verified according to the data attribute and the entity structure.
On the basis of the above technical solutions, optionally, the rule module 350 includes:
an initial verification rule determining unit, configured to determine, by using the rule module 350, an initial verification rule associated with the data entity to be verified according to preset rule information configured by the data rule management platform; the preset rule information comprises at least one of a check rule combination, an object multi-check rule, an object single check rule and a basic check operation;
and a data verification rule obtaining unit, configured to process the initial verification rule according to the verification format of the core processing module 340, so as to obtain the data verification rule.
Based on the above technical solutions, optionally, the core processing module 340 includes:
and the rule writing unit is configured to dynamically write the data verification rule into a rule file in a preset format associated with the core processing module 340 through the core processing module 340.
Based on the above technical solutions, optionally, the apparatus further includes a result processing module 360, where the result processing module 360 is configured to:
obtaining a data verification result;
and executing verification result processing operation according to the preset result processing information configured by the data rule management platform and the data verification result.
Example IV
Fig. 4 shows a schematic diagram of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 4, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as the data verification method.
In some embodiments, the data verification method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more of the steps of the data verification method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the data verification method in any other suitable way (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method of data verification, comprising:
the data acquisition module acquires initial data to be checked according to preset data source information configured by the data rule management platform;
converting the initial data to be checked into target data to be checked by a data analysis module according to the data type of the initial data to be checked;
the target data to be verified is packaged into a data entity to be verified through a data configuration module according to preset data structure information configured by the data rule management platform;
the core processing module is used for acquiring the data verification rule generated by the rule module and verifying the data entity to be verified according to the data verification rule; wherein the core processing module is constructed based on a Drools data rule engine.
2. The method according to claim 1, wherein encapsulating, by a data configuration module, the target data to be verified as a data entity to be verified according to preset data structure information configured by the data rule management platform, includes:
acquiring target data structure information from the preset data structure information according to the data type of the target data to be verified through a data configuration module;
creating an entity structure of the data entity to be verified according to the target data structure information;
and acquiring the data attribute of the target data to be verified, and packaging the target data to be verified into a data entity to be verified according to the data attribute and the entity structure.
3. The method of claim 1, wherein generating, by the rule module, a data verification rule comprises:
determining an initial verification rule associated with the data entity to be verified according to preset rule information configured by the data rule management platform through the rule module; the preset rule information comprises at least one of a check rule combination, an object multi-check rule, an object single check rule and a basic check operation;
and processing the initial check rule according to the check format of the core processing module to obtain the data check rule.
4. The method of claim 1, wherein retrieving, by the core processing module, the data verification rule generated by the rule module comprises:
and dynamically writing the data verification rule into a rule file in a preset format associated with the core processing module through the core processing module.
5. The method according to any of claims 1-4, further comprising, after verifying the data entity to be verified according to the data verification rule:
obtaining a data verification result through a result processing module;
and executing verification result processing operation according to the preset result processing information configured by the data rule management platform and the data verification result.
6. A data verification system, comprising:
the data acquisition module is used for acquiring initial data to be checked according to preset data source information configured by the data rule management platform;
the data analysis module is used for converting the initial data to be verified into target data to be verified according to the data type of the initial data to be verified;
the data configuration module is used for packaging the target data to be checked into a data entity to be checked according to preset data structure information configured by the data rule management platform;
the core processing module is used for acquiring the data verification rule generated by the rule module and verifying the data entity to be verified according to the data verification rule; wherein the core processing module is constructed based on a Drools data rule engine.
7. The system of claim 6, wherein the data configuration module comprises:
the target data structure information acquisition unit is used for acquiring target data structure information from the preset data structure information according to the data type of the target data to be verified through the data configuration module;
the entity structure creation unit is used for creating the entity structure of the data entity to be verified according to the target data structure information;
and the data entity packaging unit is used for acquiring the data attribute of the target data to be verified, and packaging the target data to be verified into a data entity to be verified according to the data attribute and the entity structure.
8. The system of claim 6, wherein the rules module comprises:
an initial verification rule determining unit, configured to determine, by using the rule module, an initial verification rule associated with the data entity to be verified according to preset rule information configured by the data rule management platform; the preset rule information comprises at least one of a check rule combination, an object multi-check rule, an object single check rule and a basic check operation;
and the data verification rule obtaining unit is used for processing the initial verification rule according to the verification format of the core processing module to obtain the data verification rule.
9. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the data verification method of any one of claims 1-5.
10. A computer readable storage medium storing computer instructions for causing a processor to perform the data verification method of any one of claims 1-5.
CN202310544725.6A 2023-05-15 2023-05-15 Data verification method, system, electronic equipment and storage medium Pending CN116578555A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310544725.6A CN116578555A (en) 2023-05-15 2023-05-15 Data verification method, system, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310544725.6A CN116578555A (en) 2023-05-15 2023-05-15 Data verification method, system, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116578555A true CN116578555A (en) 2023-08-11

Family

ID=87544818

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310544725.6A Pending CN116578555A (en) 2023-05-15 2023-05-15 Data verification method, system, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116578555A (en)

Similar Documents

Publication Publication Date Title
CN117076719B (en) Database joint query method, device and equipment based on large language model
CN112860356A (en) API call control method and device, electronic equipment and storage medium
CN114445047A (en) Workflow generation method and device, electronic equipment and storage medium
CN116303013A (en) Source code analysis method, device, electronic equipment and storage medium
CN115481594B (en) Scoreboard implementation method, scoreboard, electronic equipment and storage medium
CN116009847A (en) Code generation method, device, electronic equipment and storage medium
CN113590217B (en) Function management method and device based on engine, electronic equipment and storage medium
CN115269431A (en) Interface testing method and device, electronic equipment and storage medium
CN116578555A (en) Data verification method, system, electronic equipment and storage medium
CN115017047A (en) Test method, system, equipment and medium based on B/S architecture
CN113836291B (en) Data processing method, device, equipment and storage medium
CN115361290B (en) Configuration comparison method, device, electronic equipment and storage medium
CN115102850B (en) Configuration comparison method, device, electronic equipment and storage medium
CN114238149A (en) Batch testing method of accounting system, electronic device and storage medium
CN117453747A (en) Data quality detection method and device, electronic equipment and storage medium
CN115309717A (en) Database loading method, device, equipment, medium and computer program product
CN117670236A (en) Mobile-terminal-based to-be-handled flow approval method, device, equipment and medium
CN118012897A (en) Heterogeneous database grammar conversion method, device, equipment and storage medium
CN116562242A (en) Data report construction method and device, electronic equipment and storage medium
CN115757928A (en) Data query method and device, electronic equipment and storage medium
CN116954570A (en) Method, device, equipment and storage medium for generating analog data
CN114860614A (en) Data processing method, apparatus, device, medium and product
CN114997329A (en) Method, apparatus, device, medium and product for generating a model
CN115525614A (en) Data access method, device, equipment, system and storage medium
CN116226867A (en) Script processing method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination