CN104572999B - Heterogeneous data-based error data detection method and device - Google Patents
Heterogeneous data-based error data detection method and device Download PDFInfo
- Publication number
- CN104572999B CN104572999B CN201510007344.XA CN201510007344A CN104572999B CN 104572999 B CN104572999 B CN 104572999B CN 201510007344 A CN201510007344 A CN 201510007344A CN 104572999 B CN104572999 B CN 104572999B
- Authority
- CN
- China
- Prior art keywords
- error data
- data object
- error
- preset
- repairing
- 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.)
- Active
Links
Images
Abstract
The invention discloses a method and a device for detecting error data based on heterogeneous data. The method for detecting the error data based on the heterogeneous data comprises the steps of obtaining a data object to be detected in a preset database; acquiring the characteristics of a data object to be detected; detecting whether the characteristics of the data object to be detected accord with error data rules in a preset error data rule base or not; and if the characteristic of the data object to be detected is detected to accord with the error data rule in the preset error data rule base, determining the data object to be detected as the error data object. The method and the device solve the problem that the prior art cannot detect the error data caused by heterogeneous data conversion.
Description
Technical Field
The invention relates to the field of data processing, in particular to a method and a device for detecting error data based on heterogeneous data.
Background
With the wide application of drawing software, such as two-dimensional Computer Aided Design (CAD) software, in the field of industrial Design worldwide, the variety of the drawing software is increasing, and each drawing software can customize various applications according to its development direction or the needs of customers, organize the storage structure of data, and consider the compatibility problem of data between different versions. However, drawing software of different enterprises has a set of data structures when storing data, and the data structures of the same data object in different drawing software are different. Therefore, when the file is stored, data conversion errors are likely to exist, data reading errors, drawing display errors and the like are likely to occur, great troubles are brought to engineers viewing drawings, such as data incompleteness, data breakage, data errors and finally production errors, and a series of problems are caused, so that higher requirements are put forward on drawing software. However, current mapping software has no method for detecting data objects due to erroneous data conversion on heterogeneous data. The prior art cannot detect error data caused by heterogeneous data conversion, and further cannot manually or automatically repair the error data, so that the data is restored to correct display, which seriously affects user experience.
Aiming at the problem that the prior art cannot detect error data caused by heterogeneous data conversion, an effective solution is not provided at present.
Disclosure of Invention
The invention mainly aims to provide a method and a device for detecting error data based on heterogeneous data, so as to solve the problem that the prior art cannot detect the error data caused by heterogeneous data conversion.
In order to achieve the above object, according to an aspect of the present invention, there is provided a method for detecting error data based on heterogeneous data.
The method for detecting the error data based on the heterogeneous data comprises the following steps: acquiring a data object to be detected in a preset database; acquiring the characteristics of a data object to be detected; detecting whether the characteristics of the data object to be detected accord with error data rules in a preset error data rule base or not; and if the characteristic of the data object to be detected is detected to accord with the error data rule in the preset error data rule base, determining the data object to be detected as the error data object.
Further, after determining that the data object to be detected is an error data object, the method for detecting error data based on heterogeneous data further includes: acquiring the error data type of the error data object; detecting whether a repairing method corresponding to the type of the error data exists in a preset repairing method library or not, wherein a repairing method for repairing the error data is stored in the preset repairing method library in advance; and if the repair method corresponding to the error data type exists in the preset repair method library, repairing the error data object according to the repair method corresponding to the error data type.
Further, after detecting whether a repair method corresponding to the type of the error data exists in the preset repair method library, the method for detecting the error data based on the heterogeneous data further includes: if the fact that the repair method corresponding to the error data type does not exist in the preset repair method library is detected, acquiring a newly added error data rule, wherein the newly added error data rule is an error data rule corresponding to the error data type of the error data object; acquiring a newly added repairing method, wherein the newly added repairing method is a repairing method corresponding to the newly added error data rule; adding the newly added error data rule into a preset error data rule base; and adding the newly added repairing method into a preset repairing method library.
Furthermore, the repair methods in the preset repair method library correspond to the error data rules in the preset error data rule library one to one.
Further, the repairing the error data object according to the repairing method corresponding to the error data type includes: obtaining effective information in the error data object; adding, deleting or replacing the error information in the error data object according to a repairing method corresponding to the type of the error data to obtain the error information in the processed error data object; recombining the error information in the processed error data object and the effective information in the error data object to obtain a repaired data object; and replacing the error data object in the preset database with the repaired data object.
Further, after determining that the data object to be detected is an error data object, the method for detecting error data based on heterogeneous data further includes: outputting prompt information, wherein the prompt information is used for prompting selection of a repairing mode; receiving selection information, wherein the selection information is used for selecting a repair mode; determining a repairing mode corresponding to the selection information to obtain the determined repairing mode; and repairing the error data object by the determined repairing mode.
In order to achieve the above object, according to another aspect of the present invention, there is provided an apparatus for detecting error data based on heterogeneous data.
The heterogeneous data-based error data detection device comprises: the first acquisition module is used for acquiring a data object to be detected in a preset database; the second acquisition module is used for acquiring the characteristics of the data object to be detected; the first detection module is used for detecting whether the characteristics of the data object to be detected accord with the error data rule in the preset error data rule base or not; the first determining module is used for determining the data object to be detected as an error data object when detecting that the characteristics of the data object to be detected accord with the error data rule in the preset error data rule base.
Further, the apparatus for detecting error data based on heterogeneous data further includes: the third acquisition module is used for acquiring the error data type of the error data object; the second detection module is used for detecting whether a repair method corresponding to the type of the error data exists in a preset repair method library, wherein the preset repair method library stores a repair method for repairing the error data in advance; and the first repairing module is used for repairing the error data object according to the repairing method corresponding to the error data type when detecting that the repairing method corresponding to the error data type exists in the preset repairing method library.
Further, the apparatus for detecting error data based on heterogeneous data further includes: a fourth obtaining module, configured to obtain a newly added error data rule when it is detected that a repair method corresponding to an error data type does not exist in the preset repair method library, where the newly added error data rule is an error data rule corresponding to an error data type of an error data object; a fifth obtaining module, configured to obtain a newly added repair method, where the newly added repair method is a repair method corresponding to the newly added error data rule; the first adding module is used for adding the newly added error data rule into a preset error data rule base; and the second adding module is used for adding the newly added repairing method into the preset repairing method library.
Further, the first repair module includes: the first acquisition submodule is used for acquiring effective information in the error data object; the processing module is used for adding, deleting or replacing the error information in the error data object according to a repairing method corresponding to the type of the error data to obtain the error information in the processed error data object; the combination module is used for recombining the error information in the processed error data object and the effective information in the error data object to obtain a repaired data object; and the replacing module is used for replacing the error data object in the preset database with the repaired data object.
Further, the apparatus for detecting error data based on heterogeneous data further includes: the output module is used for outputting prompt information, wherein the prompt information is used for prompting the selection of the repair mode; the device comprises a receiving module, a restoration module and a processing module, wherein the receiving module is used for receiving selection information, and the selection information is used for selecting a restoration mode; the second determining module is used for determining the repairing mode corresponding to the selection information to obtain the determined repairing mode; and the second repairing module is used for repairing the error data object in a determined repairing mode.
According to the invention, the data object to be detected in the preset database is obtained; acquiring the characteristics of a data object to be detected; detecting whether the characteristics of the data object to be detected accord with error data rules in a preset error data rule base or not; if the characteristic of the data object to be detected is detected to accord with the error data rule in the preset error data rule base, the data object to be detected is determined to be the error data object, and the problem that the prior art cannot detect the error data caused by heterogeneous data conversion is solved. The method comprises the steps of obtaining the characteristics of a data object to be detected, judging whether the characteristics of the data object to be detected accord with error data rules in a preset error data rule base or not, obtaining the error data type of the error data object if the characteristics of the data object to be detected accord with the error data rules in the preset error data rule base are detected, searching a repairing method in a preset repairing method base according to the error data type of the error data object, repairing the error data object, and achieving the effects of accurately detecting the error data object and quickly and effectively recovering the error data object.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the invention and, together with the description, serve to explain the invention and not to limit the invention. In the drawings:
FIG. 1 is a flow chart of a first embodiment of a method for detecting erroneous data based on heterogeneous data according to the present invention;
FIG. 2 is a flowchart of a second embodiment of a method for detecting erroneous data based on heterogeneous data according to the present invention; and
fig. 3 is a schematic diagram of an apparatus for detecting error data based on heterogeneous data according to an embodiment of the present invention.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present invention will be described in detail below with reference to the embodiments with reference to the attached drawings.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. 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.
The invention aims to provide a method and a device for detecting error data based on heterogeneous data.
Fig. 1 is a flowchart of a first embodiment of a method for detecting error data based on heterogeneous data according to the present invention. As shown in fig. 1, the method for detecting error data based on heterogeneous data includes steps S101 to S104 as follows:
step S101, acquiring a data object to be detected in a preset database.
The preset database in this embodiment is used to store drawing software, such as two-dimensional CAD software, and data objects in an opened drawing, where one or more data objects in the drawing are stored in the preset database. Determining data objects to be detected from one or more data objects stored in a preset database, wherein the data objects to be detected are any one or more data objects in drawings stored in the preset database. In the method for detecting error data based on heterogeneous data according to this embodiment, in order to ensure accurate display of data objects in a drawing, data objects in a drawing stored in a preset database are sequentially detected, and whether the data objects are error data objects is determined, so that the data objects to be detected in the method for detecting error data based on heterogeneous data according to this embodiment are preferably one or more data objects in a drawing stored in a preset database.
Step S102, acquiring the characteristics of the data object to be detected.
The data object of the drawing pre-stored in the preset database can be directly read by drawing software to obtain the data object to be detected. While acquiring the data object to be detected, the method for detecting error data based on heterogeneous data according to this embodiment further includes acquiring features of the data object to be detected, where the features of the data object to be detected may include ASCII codes of the data object, or a character sequence in the data object. The characteristic of the data object to be detected is obtained in order to judge whether the characteristic of the data object to be detected meets the error data rule. Whether the data object to be detected is an error data object is detected through the acquired characteristics of the data object to be detected, the operation is simple and convenient, and the judgment result is relatively intuitive and is convenient to understand.
Step S103, detecting whether the characteristics of the data object to be detected accord with the error data rule in the preset error data rule base.
In the method for detecting error data based on heterogeneous data according to the embodiment, the preset error data rule base stores error data rules in advance. The error information in the error data object is a rule information conforming to a certain rule, and the error form of the error data object can be various, but each error data object corresponds to an error rule. There may be one or more error data rules stored in the preset error data rule base, and the error data rules in the preset error data rule base may be added or deleted. The error data rule is obtained by analyzing the error information of the error data object and summarizing according to the rule of the error information. Whenever an error data rule which is not in the preset error data rule base is found, the newly added error data rule is added into the preset error data rule base. There are various kinds of error data rules stored in the preset error data rule base, for example, for some fonts, some ASCII codes are undefined, and when four ASCII codes of 57814, 57818, 57815 and 57818 appear consecutively, an unrecognizable character "? ", i.e., the data object is displayed incorrectly. The error display data conforms to the rules of 7814, 57818, 57815 and 57818, which are continuous occurrences and fixed ASCII codes, respectively, and the rules can be added as an error data rule to a preset error data rule base. In the method for detecting error data based on heterogeneous data according to the embodiment, the number of error data rules in the preset error data rule base is continuously increased, so that the accuracy of a detection result obtained by detecting the data object to be detected is improved.
And step S104, if the characteristic of the data object to be detected is detected to accord with the error data rule in the preset error data rule base, determining that the data object to be detected is the error data object.
Detecting whether the characteristics of the data object to be detected accord with the error data rule in the preset error data rule base or not according to the acquired characteristics of the data object to be detected, and determining the data object to be detected as an error data object when the characteristics of the data object to be detected accord with the error data rule in the preset error data rule base; and when the characteristic of the data object to be detected is detected to be not in accordance with the error data rule in the preset error data rule base, determining that the data object to be detected is not the error data object. When a plurality of data objects are stored in the preset database, the method for detecting error data based on heterogeneous data according to the embodiment traverses the data objects stored in the preset database, sequentially detects each data object, and detects whether the characteristics of each data object meet the error data rules stored in the preset error data rule base.
The method for detecting the error data based on the heterogeneous data of the embodiment adopts the steps of acquiring a data object to be detected in a preset database; acquiring the characteristics of a data object to be detected; detecting whether the characteristics of the data object to be detected accord with error data rules in a preset error data rule base or not; if the characteristic of the data object to be detected accords with the error data rule in the preset error data rule base, the data object to be detected is determined to be the error data object, the problem that the error data caused by heterogeneous data conversion cannot be detected in the prior art is solved, and the effect of improving the accuracy of detecting whether the data object is the error data object is achieved.
Fig. 2 is a flowchart of a second embodiment of a method for detecting error data based on heterogeneous data according to the present invention. As shown in fig. 2, the method for detecting error data based on heterogeneous data includes steps S201 to S207 as follows:
step S201 to step S204 are the same as the above step S101 to step S104.
In step S205, the error data type of the error data object is acquired.
After detecting whether the data object to be detected is an error data object, if the data object to be detected is the error data object, acquiring the error data type of the error data object, and sending the error data object and the error data type of the error data object to a preset repair method library. The error data types of each error object are different, and each error data type corresponds to one repair method, that is, the repair methods in the preset repair method library correspond to the error data rules in the preset error data rule library one by one. The purpose of obtaining the error data type of the error data object is to search the repairing method stored in the preset repairing method library according to the error data type.
Step S206, detecting whether a repair method corresponding to the error data type exists in the preset repair method library.
In the method for detecting error data based on heterogeneous data according to this embodiment, a preset repair method library stores a repair method for repairing error data in advance, where a repair method for an error data object corresponds to an error data type of the error data object one to one. There may be one or more repair methods pre-stored in the preset repair method library, and the repair methods in the preset repair method library may be added or deleted. The repairing method is obtained by analyzing the error information and the error type of the error data object and summarizing according to the rule of the error information and the error type.
Preferably, after detecting whether a repair method corresponding to the type of the error data exists in the preset repair method library, the method for detecting error data based on heterogeneous data according to this embodiment further includes: if the fact that the repair method corresponding to the error data type does not exist in the preset repair method library is detected, acquiring a newly added error data rule, wherein the newly added error data rule is an error data rule corresponding to the error data type of the error data object; acquiring a newly added repairing method, wherein the newly added repairing method is a repairing method corresponding to the newly added error data rule; adding the newly added error data rule into a preset error data rule base; and adding the newly added repairing method into a preset repairing method library. The method is favorable for continuously enriching the preset error data rule base and the preset repairing method base, is favorable for improving the accuracy of detecting the data objects in the preset database along with the continuous increase of the error data rules and the repairing methods, and is also favorable for quickly and accurately repairing the error data objects effectively.
Step S207, if it is detected that a repair method corresponding to the error data type exists in the preset repair method library, repairing the error data object according to the repair method corresponding to the error data type.
And after detecting whether a repairing method corresponding to the error data type exists in the preset repairing method library or not, if detecting that a repairing method corresponding to the error data type exists in the preset repairing method library, repairing the error data object according to the repairing method corresponding to the error data type. Preferably, in the method for detecting error data based on heterogeneous data according to this embodiment, repairing the error data object according to a repairing method corresponding to an error data type may specifically include: obtaining effective information in the error data object; adding, deleting or replacing the error information in the error data object according to a repairing method corresponding to the type of the error data to obtain the error information in the processed error data object; recombining the error information in the processed error data object and the effective information in the error data object to obtain a repaired data object; and replacing the error data object in the preset database with the repaired data object. The method for detecting the error data based on the heterogeneous data improves the accuracy of data object display in the drawing, improves the fault tolerance rate of the drawing software, shares the drawing designed by the drawing software of different versions to a great extent, improves the user experience, and effectively solves the compatibility problem caused by the difference of data storage structures of different drawing software.
Preferably, after determining that the data object to be detected is an error data object, the method for detecting error data based on heterogeneous data of this embodiment further includes: outputting prompt information, wherein the prompt information is used for prompting selection of a repairing mode; receiving selection information, wherein the selection information is used for selecting a repair mode; determining a repairing mode corresponding to the selection information to obtain the determined repairing mode; and repairing the error data object by the determined repairing mode. The repair mode in the embodiment is preferably a manual repair mode or an automatic repair mode, when the system is initialized, whether the system setting is the manual repair or the automatic repair mode is checked, if the system setting is the manual repair mode, a drawing is directly opened, the detection and repair of the error data object are not carried out, and the repair process of the error data object is started when a user selects the manual repair mode; if the data object is automatically repaired, the process of detecting the data object in the drawing and repairing the error data object is directly carried out after the drawing file is opened. The method for detecting the error data based on the heterogeneous data provides two repairing modes, and the user experience is improved.
The method for detecting the error data based on the heterogeneous data of the embodiment adopts the steps of acquiring a data object to be detected in a preset database; acquiring the characteristics of a data object to be detected; detecting whether the characteristics of the data object to be detected accord with error data rules in a preset error data rule base or not; if the characteristic of the data object to be detected is detected to accord with the error data rule in the preset error data rule base, determining the data object to be detected as an error data object; acquiring the error data type of the error data object; detecting whether a repairing method corresponding to the type of the error data exists in a preset repairing method library or not, wherein a repairing method for repairing the error data is stored in the preset repairing method library in advance; if the repair method corresponding to the error data type is detected in the preset repair method library, the error data object is repaired according to the repair method corresponding to the error data type, so that the problem that the error data caused by heterogeneous data conversion cannot be detected in the prior art is solved, meanwhile, the detected error data object can be effectively and quickly repaired, the correct display of the data object in the drawing is facilitated, the effects of improving the accuracy of the detection result and the accuracy of the display of the data object in the drawing are achieved, and the user experience is increased.
From the above description, it can be seen that, in the method for detecting error data based on heterogeneous data according to the embodiment of the present invention, by obtaining the characteristics of the data object to be detected, it is determined whether the characteristics of the data object to be detected conform to the error data rules in the preset error data rule base, and if it is detected that the characteristics of the data object to be detected conform to the error data rules in the preset error data rule base, the error data type of the error data object is obtained, and the repair method in the preset repair method base is searched according to the error data type of the error data object, so as to repair the error data object, thereby solving the problem that the existing technology cannot detect the error data caused by heterogeneous data conversion, and achieving the effects of accurately detecting the error data object and quickly and effectively recovering the error data object.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
The embodiment of the invention also provides a device for detecting the error data based on the heterogeneous data. It should be noted that the apparatus for detecting error data based on heterogeneous data may be used to perform the method for detecting error data based on heterogeneous data according to the embodiment of the present invention.
Fig. 3 is a schematic diagram of an apparatus for detecting error data based on heterogeneous data according to an embodiment of the present invention. As shown in fig. 3, the apparatus for detecting error data based on heterogeneous data includes: a first acquisition module 10, a second acquisition module 20, a first detection module 30 and a first determination module 40.
The first obtaining module 10 is configured to obtain a data object to be detected in a preset database.
And a second obtaining module 20, configured to obtain characteristics of the data object to be detected.
The first detecting module 30 is configured to detect whether the characteristic of the data object to be detected meets an error data rule in a preset error data rule base.
The first determining module 40 is configured to determine that the data object to be detected is an error data object when it is detected that the characteristic of the data object to be detected conforms to an error data rule in a preset error data rule base.
Preferably, the apparatus for detecting error data based on heterogeneous data of this embodiment further includes: the third acquisition module is used for acquiring the error data type of the error data object; the second detection module is used for detecting whether a repair method corresponding to the type of the error data exists in a preset repair method library, wherein the preset repair method library stores a repair method for repairing the error data in advance; and the first repairing module is used for repairing the error data object according to the repairing method corresponding to the error data type when detecting that the repairing method corresponding to the error data type exists in the preset repairing method library.
Specifically, the first repair module includes: the first acquisition submodule is used for acquiring effective information in the error data object; the processing module is used for adding, deleting or replacing the error information in the error data object according to a repairing method corresponding to the type of the error data to obtain the error information in the processed error data object; the combination module is used for recombining the error information in the processed error data object and the effective information in the error data object to obtain a repaired data object; and the replacing module is used for replacing the error data object in the preset database with the repaired data object.
Preferably, the apparatus for detecting error data based on heterogeneous data of this embodiment further includes: a fourth obtaining module, configured to obtain a newly added error data rule when it is detected that a repair method corresponding to an error data type does not exist in the preset repair method library, where the newly added error data rule is an error data rule corresponding to an error data type of an error data object; a fifth obtaining module, configured to obtain a newly added repair method, where the newly added repair method is a repair method corresponding to the newly added error data rule; the first adding module is used for adding the newly added error data rule into a preset error data rule base; and the second adding module is used for adding the newly added repairing method into the preset repairing method library.
Preferably, the apparatus for detecting error data based on heterogeneous data of this embodiment further includes: the output module is used for outputting prompt information, wherein the prompt information is used for prompting the selection of the repair mode; the device comprises a receiving module, a restoration module and a processing module, wherein the receiving module is used for receiving selection information, and the selection information is used for selecting a restoration mode; the second determining module is used for determining the repairing mode corresponding to the selection information to obtain the determined repairing mode; and the second repairing module is used for repairing the error data object in a determined repairing mode.
The device for detecting error data based on heterogeneous data of this embodiment includes a first obtaining module 10, a second obtaining module 20, a first detecting module 30 and a first determining module 40. The problem that the error data caused by heterogeneous data conversion cannot be detected in the prior art is solved through the detection device of the error data based on the heterogeneous data.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and they may alternatively be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, or fabricated separately as individual integrated circuit modules, or fabricated as a single integrated circuit module from multiple modules or steps. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (9)
1. A method for detecting error data based on heterogeneous data is characterized by comprising the following steps:
acquiring a data object to be detected in a preset database, wherein the preset database is used for storing the data object in a drawing opened by drawing software;
acquiring the characteristics of the data object to be detected;
detecting whether the characteristics of the data object to be detected accord with error data rules in a preset error data rule base or not; and
if the characteristic of the data object to be detected is detected to accord with the error data rule in the preset error data rule base, determining the data object to be detected as an error data object;
after determining that the data object to be detected is an error data object, the method further includes: acquiring the error data type of the error data object; detecting whether a repair method corresponding to the error data type exists in a preset repair method library, wherein a repair method for repairing error data is stored in the preset repair method library in advance; and if the fact that the repairing method corresponding to the error data type exists in a preset repairing method library is detected, repairing the error data object according to the repairing method corresponding to the error data type.
2. The method according to claim 1, wherein after detecting whether a repair method corresponding to the type of the erroneous data exists in a preset repair method library, the method further comprises:
if the fact that the repair method corresponding to the error data type does not exist in a preset repair method library is detected, acquiring a newly added error data rule, wherein the newly added error data rule is an error data rule corresponding to the error data type of the error data object;
acquiring a newly added repair method, wherein the newly added repair method is a repair method corresponding to the newly added error data rule;
adding the newly added error data rule into the preset error data rule base; and
and adding the newly added repairing method into the preset repairing method library.
3. The method according to claim 2, wherein the repair methods in the preset repair method library correspond to the error data rules in the preset error data rule library one to one.
4. The method for detecting the error data based on the heterogeneous data according to claim 1, wherein the repairing the error data object according to the repairing method corresponding to the type of the error data comprises:
obtaining effective information in the error data object;
adding, deleting or replacing the error information in the error data object according to a repairing method corresponding to the error data type to obtain the processed error information in the error data object;
recombining the error information in the processed error data object with the effective information in the error data object to obtain a repaired data object; and
and replacing the error data object in the preset database with the repaired data object.
5. The method for detecting the error data based on the heterogeneous data according to claim 1, wherein after determining that the data object to be detected is the error data object, the method further comprises:
outputting prompt information, wherein the prompt information is used for prompting selection of a repair mode;
receiving selection information, wherein the selection information is used for selecting a repair mode;
determining a repairing mode corresponding to the selection information to obtain the determined repairing mode; and
and repairing the error data object by the determined repairing mode.
6. An apparatus for detecting error data based on heterogeneous data, comprising:
the system comprises a first acquisition module, a first storage module and a second acquisition module, wherein the first acquisition module is used for acquiring a data object to be detected in a preset database, and the preset database is used for storing the data object in a drawing opened by drawing software;
the second acquisition module is used for acquiring the characteristics of the data object to be detected;
the first detection module is used for detecting whether the characteristics of the data object to be detected accord with error data rules in a preset error data rule base or not; and
the first determining module is used for determining the data object to be detected as an error data object when detecting that the characteristics of the data object to be detected accord with the error data rule in the preset error data rule base;
the device further comprises: the third acquisition module is used for acquiring the error data type of the error data object; the second detection module is used for detecting whether a repair method corresponding to the error data type exists in a preset repair method library, wherein a repair method for repairing error data is stored in the preset repair method library in advance; and the first repairing module is used for repairing the error data object according to the repairing method corresponding to the error data type when the repairing method corresponding to the error data type is detected in a preset repairing method library.
7. The apparatus for detecting erroneous data based on heterogeneous data according to claim 6, wherein the apparatus further comprises:
a fourth obtaining module, configured to obtain a newly added error data rule when it is detected that a repair method corresponding to the error data type does not exist in a preset repair method library, where the newly added error data rule is an error data rule corresponding to the error data type of the error data object;
a fifth obtaining module, configured to obtain a newly added repair method, where the newly added repair method is a repair method corresponding to the newly added error data rule;
the first adding module is used for adding the newly added error data rule into the preset error data rule base; and
and the second adding module is used for adding the newly added repairing method into the preset repairing method library.
8. The apparatus for detecting error data based on heterogeneous data according to claim 6, wherein the first repairing module comprises:
the first obtaining submodule is used for obtaining effective information in the error data object;
the processing module is used for adding, deleting or replacing the error information in the error data object according to a repairing method corresponding to the error data type to obtain the processed error information in the error data object;
the combination module is used for recombining the error information in the processed error data object and the effective information in the error data object to obtain a repaired data object; and
and the replacing module is used for replacing the error data object in the preset database with the repaired data object.
9. The apparatus for detecting erroneous data based on heterogeneous data according to claim 6, wherein the apparatus further comprises:
the output module is used for outputting prompt information, wherein the prompt information is used for prompting the selection of the repair mode;
the device comprises a receiving module, a judging module and a restoring module, wherein the receiving module is used for receiving selection information, and the selection information is used for selecting a restoring mode;
a second determining module, configured to determine a repair method corresponding to the selection information, to obtain the determined repair method; and
and the second repairing module is used for repairing the error data object by the determined repairing mode.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510007344.XA CN104572999B (en) | 2015-01-07 | 2015-01-07 | Heterogeneous data-based error data detection method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510007344.XA CN104572999B (en) | 2015-01-07 | 2015-01-07 | Heterogeneous data-based error data detection method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104572999A CN104572999A (en) | 2015-04-29 |
CN104572999B true CN104572999B (en) | 2020-02-07 |
Family
ID=53089061
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510007344.XA Active CN104572999B (en) | 2015-01-07 | 2015-01-07 | Heterogeneous data-based error data detection method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104572999B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106708638B (en) * | 2015-11-12 | 2020-08-25 | 博雅网络游戏开发(深圳)有限公司 | System error detection method and device |
CN108733820A (en) * | 2018-05-22 | 2018-11-02 | 中国银行股份有限公司 | Data adjustment method and device |
CN108959374B (en) * | 2018-05-24 | 2020-12-29 | 北京三快在线科技有限公司 | Data storage method and device and electronic equipment |
CN110968548A (en) * | 2018-09-30 | 2020-04-07 | 北京国双科技有限公司 | Data correction method, device, storage medium and processor |
CN109918362A (en) * | 2019-02-01 | 2019-06-21 | 广州豫本草电子科技有限公司 | A kind of error resistance information judgment method based on the logical instrument that weighs |
CN113886132B (en) * | 2021-12-07 | 2022-04-08 | 深圳市明源云科技有限公司 | Intelligent web-side error repairing method and device and computer-readable storage medium |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101241491A (en) * | 2007-02-05 | 2008-08-13 | 中兴通讯股份有限公司 | Method and system for checking data |
US7864771B2 (en) * | 2007-04-20 | 2011-01-04 | Cisco Technology, Inc. | Parsing out of order data packets at a content gateway of a network |
CN104252398A (en) * | 2013-12-04 | 2014-12-31 | 深圳市华傲数据技术有限公司 | Method and system for repairing data by data firewall system |
CN103838826A (en) * | 2014-01-23 | 2014-06-04 | 北京东方泰坦科技股份有限公司 | Integration method of dynamic heterogeneous space information plotting data |
-
2015
- 2015-01-07 CN CN201510007344.XA patent/CN104572999B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN104572999A (en) | 2015-04-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104572999B (en) | Heterogeneous data-based error data detection method and device | |
CN108132957B (en) | Database processing method and device | |
EP2960799A1 (en) | Defect localization in software integration tests | |
CN111563509B (en) | Tesseract-based substation terminal row identification method and system | |
CN108959067B (en) | Method and device for testing search engine and computer readable storage medium | |
CN102567565B (en) | Cable parameter processing method and system utilizing same | |
US20110320876A1 (en) | Systems and methods for processing source code during debugging operations | |
CN106325596A (en) | Automatic error correction method and system for writing handwriting | |
CN111353502B (en) | Digital table identification method and device and electronic equipment | |
CN108776660B (en) | ArcGIS-based method for matching road attributes in batches | |
CN111523815A (en) | Power grid engineering review method and device, electronic equipment and storage medium | |
CN102622233A (en) | System and method for automatically generating user interface applicable to certain interactive terminal equipment | |
CN106407233A (en) | A data processing method and apparatus | |
CN104182797A (en) | Automatic selection method of product part number on the basis of image recognition technology | |
CN115758950A (en) | Automatic drawing method, device and computer readable storage medium | |
CN115794618A (en) | Method and device for detecting repeated application function module | |
CN115309706A (en) | Method, device, equipment, medium and product for updating multi-language configuration file | |
CN115098362A (en) | Page testing method and device, electronic equipment and storage medium | |
CN107633246B (en) | Automatic checking and repairing method and system for water system collecting direction | |
CN107196789B (en) | Method and device for checking base station parameters | |
CN109145167B (en) | Content difference comparison method for ICD file and corresponding IED in SCD | |
CN107145579B (en) | Method and device for checking geographic information line element pseudo node | |
CN111399830A (en) | Application program capacity monitoring method and device, electronic equipment and storage medium | |
CN112685056A (en) | Script updating method and device | |
CN112559195B (en) | Database deadlock detection method and device, test terminal and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |