US20130054541A1 - Holistic Database Record Repair - Google Patents

Holistic Database Record Repair Download PDF

Info

Publication number
US20130054541A1
US20130054541A1 US13/218,698 US201113218698A US2013054541A1 US 20130054541 A1 US20130054541 A1 US 20130054541A1 US 201113218698 A US201113218698 A US 201113218698A US 2013054541 A1 US2013054541 A1 US 2013054541A1
Authority
US
United States
Prior art keywords
records
database
determining
equivalence classes
duplicate
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.)
Granted
Application number
US13/218,698
Other versions
US9116934B2 (en
Inventor
Ihab Francis Ilyas KALDAS
Mohamed YAKOUT
Ahmed K. ELMAGARMID
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.)
Qatar Foundation
Original Assignee
Qatar Foundation
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 Qatar Foundation filed Critical Qatar Foundation
Priority to US13/218,698 priority Critical patent/US9116934B2/en
Assigned to QATAR FOUNDATION reassignment QATAR FOUNDATION ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: YAKOUT, Mohamed, ELMAGARMID, Ahmed K., KALDAS, IHAB FRANCIS ILYAS
Assigned to QATAR FOUNDATION reassignment QATAR FOUNDATION CORRECTIVE ASSIGNMENT TO CORRECT THE ASSIGNOR DOCUMENT DATE PREVIOUSLY RECORDED ON REEL 027149 FRAME 0245. ASSIGNOR(S) HEREBY CONFIRMS THE TRANSFER OF RIGHTS IN US SERIAL NO. 13/218,698 TO QATAR FOUNDATION. Assignors: YAKOUT, Mohamed, ELMAGARMID, Ahmed K., KALDAS, IHAB FRANCIS ILYAS
Publication of US20130054541A1 publication Critical patent/US20130054541A1/en
Application granted granted Critical
Publication of US9116934B2 publication Critical patent/US9116934B2/en
Active legal-status Critical Current
Adjusted expiration legal-status Critical

Links

Images

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/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • G06F16/285Clustering or classification

Abstract

A computer implemented method for repairing records of a database, comprises determining a first set of records of the database which violate a functional dependency of the database, determining a second set of records of the database comprising duplicate records, computing a cost metric representing a measure for the cost of mutually dependently modifying records in the first and second sets, modifying records in the first and second sets on the basis of the cost metric to provide a modified database instance.

Description

  • The present invention relates to holistic database record repair.
  • BACKGROUND
  • A database is a collection of information arranged in an organized manner. A typical database might include medical, financial or accounting information, demographics and market survey data, bibliographic or archival data, personnel and organizational information, public governmental records, private business or customer data such as addresses and phone numbers, etc.
  • Such information is usually contained in computer files arranged in a pre-selected database format, and the data contents within them can be maintained for convenient access on magnetic media, both for storage and for updating the file contents as needed.
  • Poor data quality can have undesirable implications for the effectiveness of a business or other organization or entity. For example, in healthcare, where incorrect information about patients in an Electronic Health Record (EHR) may lead to wrong treatments and prescriptions, ensuring the accuracy of database entries is of prime importance.
  • A large variety of computational procedures for cleaning or repairing erroneous or duplicate entries in databases have been proposed. Typically, such procedures can automatically or semi-automatically identify errors and, when possible, correct them. Typically, however, these approaches have several limitations relating to the introduction of new database errors as a result of changes that have been made. For example, a repair in order correct a functional dependency problem may lead to duplication errors. Similarly, deduplication can lead to functional dependency violations within a database.
  • SUMMARY
  • According to an example, there is provided a computer implemented method for repairing records of a database, comprising determining a first set of records of the database which violate a functional dependency of the database, determining a second set of records of the database comprising duplicate records, computing a cost metric representing a measure for the cost of mutually dependently modifying records in the first and second sets;
  • modifying records in the first and second sets on the basis of the cost metric to provide a modified database instance. Duplicate records can be determined using a duplication mechanism to group duplicate records into respective clusters, wherein records within respective ones of the clusters represent the same entity. In an example, a set of equivalence classes for records of the first and second sets consisting of multiple record-attribute pairs can be determined. Preferably, attribute values for records in respective ones of the equivalence classes are the same in the modified database instance. A pair of equivalence classes can be merged into a new class to resolve a functional dependency violation or to perform a deduplication. The first set of records of the database which violate a functional dependency of the database can be refreshed as can the second set of records of the database comprising duplicate records as a result of the step of merging.
  • According to an example, there is provided a computer implemented method for generating a set of updates for a database including multiple records, the method comprising performing a duplicate-record-aware repair of functional dependency violations for records of the database, and performing a functional-dependency-aware deduplication of records of the database.
  • According to an example, there is provided a computer program embedded on a non-transitory tangible computer readable storage medium, the computer program including machine readable instructions that, when executed by a processor, implement a method for updating a database comprising determining a first set of records of the database which violate a functional dependency of the database, determining a second set of records of the database comprising duplicate records, computing a cost metric representing a measure for the cost of mutually dependently modifying records in the first and second sets, modifying records in the first and second sets on the basis of the cost metric to provide a modified database instance. Duplicate records can be determined using a duplication detector to group duplicate records into respective clusters, wherein records within respective ones of the clusters represent the same entity.
  • A set of equivalence classes for records of the first and second sets consisting of multiple record-attribute pairs can be determined. Preferably, attribute values for records in respective ones of the equivalence classes are the same in the modified database instance. A pair of equivalence classes can be merged into a new class to resolve a functional dependency violation or to perform a deduplication. The first set of records of the database which violate a functional dependency of the database can be refreshed, as can the second set of records of the database comprising duplicate records as a result of the step of merging.
  • According to an example, there is provided a computer program embedded on a non-transitory tangible computer readable storage medium, the computer program including machine readable instructions that, when executed by a processor, implement a method for updating a database comprising performing a duplicate-record-aware repair of functional dependency violations for records of the database and performing a functional-dependency-aware deduplication of records of the database.
  • BRIEF DESCRIPTION OF THE DRAWINGS
  • FIG. 1 is a schematic representation of a small database instance;
  • FIG. 2 is a schematic block diagram of a method according to an example;
  • FIG. 3 is a schematic block diagram of a method according to an example; and
  • FIG. 4 is a schematic block diagram of an apparatus according to an example.
  • DETAILED DESCRIPTION
  • According to an example, there is provided a method for repairing records of a database which can be inconsistent, incorrect or missing due to duplication and inconsistencies with respect to integrity constraints of the database. Accordingly, deduplication can be performed, which determines and merges duplicate records, as well as the repairing of functional dependency (FD) violations.
  • Deduplication utilises a measure of similarity or closeness between records in a database to determine candidacy for duplicates. FD repair utilises the notion that the minimal amount of changes to make a database consistent are more likely to be correct. However, when the two tasks are applied one after the other (e.g., deduplication and then data repair), it is atypical for the resultant database to be consistent and free of duplicates because, after FD repair, records can change and new duplicate records may emerge. Further, after deduplication and the merging of duplicates, violations to constraints may emerge in the database. The interaction between the two problems is illustrated in FIG. 1 which is a schematic representation of a small database instance.
  • The database of FIG. 1 includes records that relate personal information of certain people. That is, the database attributes are: Name, telephone information: area code (AC) and Phone; address information: Street, City, State and Zip. In connection with the example of FIG. 1, there are defined a set of functional dependency constraints, F1, F2 and F3:
    • a. F1: City, Phone→AC, Street, Zip, State
    • b. F2: Zip→City, State
    • c. F3: Street, City→Zip
  • The initial instance of the database of figure is D, which contains violations with respect to the specified FDs. For example, records t2 and t3 violate F2 since they agree on the Zip attribute, but do not agree on the City and State attributes. Similarly, t3 and t4 violate F4. Also note that D contains duplicate records. For example, t1 and t2 are candidates to be duplicates due to the similarities between their attributes values.
  • In order to repair the database instance D, a deduplication operation could be applied. In this case, instance Dd would be obtained. The deduplication considers that {t1, t2} and {t3, t4} are two clusters of duplicate records due to the similarity between the attributes values, while {t5} remains in a cluster by itself. The instance Dd is arrived at by merging each cluster of duplicates.
  • After a deduplication step, Dd is inconsistent with respect to the FDs, since the two resulting records from the merge of {t1, t2} and {t3, t4} violate F2. Therefore, the violations now need to be repaired. Violations with respect to F2 can be resolved by making the affected records agree on City and State attributes, which in turn triggers another violation to F1 to be resolved by making the records {t1, t2} and {t3, t4} agree on the AC and Street attributes. Finally, the instance Ddr (D after applying deduplication followed by an FD repair) is obtained. Applying a deduplication operation to instance Ddr reveals that the records {t1, t2} and {t3, t4} are duplicates after the repair, and they should be merged to finally obtain the instance Ddrd.
  • Returning back to the original instance D and assuming that constraints violations are repaired first, one possible repair is shown in instance Dr. Note that in Dr, records {t1, t2, t3} are more likely to be duplicates due to the similarity of their attributes values, and both t4 and t5 appear to be distinct records. By merging the records of {t1, t2, t3} instance Drd is obtained. The example of FIG. 1 therefore shows that deduplication may cause violation of database constraints and that the repair of constraints violations may cause new candidate duplicates to appear in a database instance.
  • The illustrated interaction between the two problems indicates that deduplication and merging records should be aware of the constraints and consistency of the database, while repairing FD inconsistency should be aware of the identified duplicates. As illustrated in the example of FIG. 1, the sequence of applying FD repair and deduplication affects the final database instance obtained. The space of possible clean instances is exponential because of the number of possibilities for repairing FD violations and the number of ways to merge duplicate records. According to an example, there is provided a method for generating a set of updates for a database that seeks a clean instance with minimum distance from the original database instance. In an example, a clean instance of a database is free from FD violations and unwanted duplicate records.
  • In an example, a database instance D over a relation schema R is considered, with attr(R) denoting its set of attributes. The domain of an attribute A ∈ attr(R) is denoted by dom(A). A set of constraints Σ is defined over R in the form of a set of FDs, and t[A] denotes the value of a given attribute A ∈ attr(R) in a database record t. An FD has the form of X→Y, where X ⊂ attr(R) (left hand side, LHS) and Y ⊂ attr(R) (right hand side, RHS) are subsets of the attributes attr(R). An instance D satisfies an FD, F:X→Y if, for every pair of records t1,t2 ∈ D t1[X]=t2[X], then t1[Y]=t2[Y]. A database instance D is said to satisfy the constraints Σ if it satisfies every FD F ∈ Σ.
  • In an example, FD violations can be resolved as follows. Given t1,t2 that violate FD X→Y(or t1,t2|≠F) because t1[X]=t2[X], but t1[Y]≠t2[Y], either modify t1[Y]such that t1[Y]=t2[Y] or change the values of t1[X] such that t1[X]≠t2[X]. For example, in instance D of FIG. 1, {t1, t2} violate F2. To resolve this violation, a modification can be performed so that t1[City] is changed to ‘New York’ or t2[Zip] is changed to a value which is not equal to ‘10023’.
  • In an example, respective clusters of candidate duplicate records can be merged (or fused) into a single record using a merging function using any one of several techniques that have been proposed to detect duplicate records. Typically, the merging of duplicate records will result in a record that is close to all the records within the cluster in question. Accordingly, a deduplication mechanism Dup operates to partition a database instance D into a set of clusters Dup(D)={C1,C2, . . . , Cm} such that D=∪∀iCi. A merger M of a cluster C of duplicate records picks a value vA for each attribute such that t[A]=vA for all t ∈ C. For example, in the instance D of FIG. 1, t1 and t2 may be in a cluster of duplicates. In the instance Dd, a single record replacement for the two records is constructed from {t1, t2}. In an example, a deduplication mechanism can be any suitable deduplication mechanism suitable for determining candidate duplicate entries for records of a database.
  • According to an example, a link between deduplication and FD repair occurs in that both define equivalence between attribute values. For a cluster of duplicate records, all their attributes values should typically be equivalent. That is, for an attribute A E attr(R), t[A] should be the same for all t ∈ C, where C is a cluster of duplicates. On the other hand, consider an FD F:X→Y. If there is a group of records S where t[X] are the same for all t ∈ S, then t[Y] should be equivalent and have the same value for all t ∈ S.
  • Equivalence due to deduplication is conditioned based on decisions obtained from a deduplication mechanism, Dup, which depends on the attribute values of records. Equivalence due to FDs is conditioned based on the equality of the LHS attribute values. Such equivalence can be represented in an equivalence relation that involves complex dependencies.
  • According to an example, a method for repairing a database provides a modified database instance D′ such that:
    • 1. |D′|≦|D|;
    • 2. D′ satisfies the constraints Σ
    • 3. |Dup(D′)|=|D′|; and
    • 4. D′ is produced by introducing minimal changes to D
  • That is, in terms of item 3, applying the deduplication mechanism Dup on D does not detect new duplicates. A data cleaning process to get D′ from D requires a sequence of value modification operations and the replacement of duplicates with a single record. According to an example, the cost of a cleaning process to repair a database in order to arrive at a modified instance can be defined as:
  • Cost ( D , D ) = t D , M ( t ) = t D , A attr ( R ) dist A ( t [ A ] , t [ A ] )
  • where M(t) maps t ∈ D to the record t′∈ D′, which is the corresponding record for t after merge and repair operations. Note that merging a cluster of duplicate records has the cost of modifying all the records values to the same value.
  • The function distA(t[A], t′[A]) is a distance function for the domain values of attribute A that, in an example, returns a score between 0 and 1, where 0 signifies an exact match. Examples of distance functions include the Edit distance and Jaro for string attributes; and the normalized distance for numerical attributes. That is, given two numbers {a, b} ∈ dom(A), distA(a, b)=(|a−b|)/(max(A)−min(A)), where max(A) and min(A) are the maximum and minimum values in dom(A), respectively. Other alternatives are possible as will be appreciated.
  • According to an example, an FD repair is determined by performing a minimal amount of changes to a database instance in order to make it consistent or clean, thereby resulting in a modified database instance. In terms of merging a cluster of duplicate records, a single record is determined which is used as a replacement for the corresponding cluster of records. Typically, the record that is close to all the records within the cluster is the selected one. Implicitly, this can be interpreted as finding the minimal amount of changes to attributes' values to make the records within a cluster identical. Accordingly, given a database D, a duplication mechanism Dup and a set of constraints Σ, a method according to an example determines a modified database instance D′ for which the cost associated with arriving at the modification, Cost(D, D′), is minimum.
  • According to one example, a database can be initially repaired such that it is consistent with respect to a set of given FDs. The output consistent database instance can then be used in the process of identifying duplicate records to be merged. A merger can result in a new record that is composed of a combination of attributes values of the original records that are being merged. Therefore, a simple merge for the duplicate records may introduce violations to the given FDs. Accordingly, a consistency aware merger (CAM) of a set of records can be used in the example. The main purpose is to produce a consistent database while making all identified clusters of duplicates identical, such that the final repaired database instance can be constructed, such as by using a “select distinct” SQL statement for example.
  • A database instance D′, which is arrived at as a result of a CAM to an instance D, is defined in an example as a database in which:
  • all records in D are moved to D′
  • D′ satisfies the constraints Σ, and
  • for each cluster of duplicates C ∈ Dup(D), C's records appear identical in D′
  • According to an example, the requirements for D′ are further qualified such that, given a database D, a duplication mechanism Dup and a set of constraints Σ, a cost associated with arriving at a modified database instance D′, Cost(D, D′), is minimised.
  • If the database D is consistent (after repairing the FD violations), then, according to an example, a record t from each cluster C is selected and t′=t∀t′∈ C. That is, the records of C are made identical to the selected record t. The output of the merger is thus consistent with respect to the given FDs.
  • The selected record, which is used to represent the cluster, may not be the best representation for the entity. Typically, the record that is close to all the records within the clusters is a good representation, and moreover, it will encounter the least amount of changes to the cluster of records to make them identical.
  • According to an example, identified duplicates can be considered as additional constraints to be considered as well as Σ when repairing a database. Since deduplication identifies equivalence between attributes' values for a given cluster of duplicates, similarly, the FD defines equivalence between the RHS attributes conditioned on the equality on the LHS attributes. Accordingly, a consistency aware merger can be encoded into a single FD repair problem by defining identified duplicates as an additional FD constraint, such that, in order to arrive at a modified database instance, a method can include the steps:
    • 1. Construct a new instance D″ with the new relation R″ such that:
    • 2. R″ is the same as R after addition a new attribute D_id.
    • 3. For each cluster of duplicate records C, set t[D_id]=i in D″.
    • 4. Consider the new set of constraints Σ″=Σ∪{FD:D_id→attr(R)}.
  • A method according to an example finds an FD repair for D″ without changing the attribute D_id. Then, for the constraints Σ″ the duplicate records are determined while maintaining D″|=Σ. The modified database instance D″ is determined by dropping the attribute D_id from the modified instance.
  • The first step to repair the FD violations in a repair-first data cleaning process is not informed by or dependent on the existence of duplicates however. The initial FD repair will find minimal changes to make the data consistent—however, if informed by the existence of duplicates, FD repair can help improve the accuracy of the identified clusters of duplicate records.
  • Therefore, according to an example, a holistic approach to solve deduplication and FD repair problems can be used. Equivalence classes are defined to provide a representation for the interactions between different equivalences introduced by the FDs and a selected deduplication mechanism. In an example, an equivalence class consists of record-attribute pairs(t, A), where t identifies a record and A is an attribute. The semantic of a set of an equivalence class eq is that attribute values t[A] have the same value for all (t, A) ∈ eq in D′. Both FD resolution and deduplication defines equivalence between attributes values. For the case of FDs, given a FD, F:X→A and a set of records S that agree on the X attributes, then the set of record-attribute pairs {(t, A)|∀t∈S} must be in the same equivalence class. That is, the values t[A] should be equivalent (or equal) for all t ∈ S. For the case of deduplication, if a set of records C are identified to be duplicates by a selected deduplication mechanism Dup, then for each attribute A ∈ attr(R), the set of record-attribute pairs {(t, A)|∀t∈C} must be in the same equivalence class. That is, for each attribute A ∈ attr(R), all the values t[A] should be equivalent for all t ∈ C.
  • Equivalence classes provide a mechanism to aid in separating the decision of which attributes values need to be equivalent from the decision of what value should be assigned to the class itself. In an example, each class eq will have a target value, targ(eq) to be applied in the database. The chosen value for the target of an equivalence class results in a cost. The cost of setting targ(eq)=v is cost(eq, v)=Σ(t,A)εeq distA(t|A],v). The cost of an equivalence class cost(eq) is the minimum cost, cost(eq, v), over the domain of values v.
  • According to an example, the resolution of FD violations and deduplication can be unified by merging equivalence classes. Given an FD, F:X→A and a set of records S that violates F because they agree on the X attributes, but do not agree on A, the violations can be resolved by merging the equivalence classes eq(t, A) for all t ∈ S. The function eq(t, A) refers to the equivalence class that contains (t, A).
  • Similarly for a set of duplicates C, the equivalence classes eq(t, A) for all t ∈ C should be merged for each attribute A ∈ attr(R).
  • Given a set of equivalence classes E, the merge cost of E is defined as:

  • mgcost(E)=cost(eq′)−Σeq∈Ecost(eq)
  • where eq′=∪eq∈Eeq
  • Accordingly, it is the difference between the cost of the merged class and the sum of the costs of the individual classes in the set E.
  • A method according to an example uniformly treats FD violations and deduplication as conflicting equivalence classes to be resolved. FIG. 2 is a schematic block diagram of a method according to an example. In block 200, equivalence classes are initialized. More specifically, an equivalence class 203 is created for each record-attribute pair 205 from records 207 of a database 209. In block 211 equivalence classes 203 are merged until the FD constraints Σ are satisfied, and the duplicate records appear as identical, such that one record from each cluster of the identical duplicates is maintained. Accordingly, the result of the merge 211 is a set of records with FD constraints satisfied 213 and duplicate records merged 215. In an example, merging can be performed by a merge engine operable to process data representing equivalence classes 203 according to the method outlined herein.
  • According to an example, for each FD F:X→A, a list of records vioList(F) that violate one or more constraints, F, is maintained. That is, for each record t ∈ vioList(F), there is another record t′, such that, t[X]=t′[X] and t[A]≠t′[A]. Similarly, for each attribute A ∈ attr(R), a list of records, dupList(A), which includes records that are duplicates but do not agree on an attribute A is maintained. That is, for each record t ∈ dupList(A), there is another record t′, such that, {t, t′} ∈ C, and t[A]≠t′[A], where C is an identified or selected cluster of duplicates.
  • For each F ∈ Σ, vioList(F) contains all records that violate F. For each attribute A ∈ attr(R), if the currently identified clusters of duplicates are {C1,C2, . . . , Cm}, then dupList(A) contains the records of each cluster Ci if the records do not agree on attribute A. In an example, equivalence classes are initialized such that each (t, A) is a class with targ(eq(t, A))=t[A].
  • For example, with reference to FIG. 1: vioList(F3)={t3, t4}, vioList(F1) contains all the records, while vioList(F2) is initially empty. Assuming that Dup(D)={{t1, t2}, {t3, t4}, {t5}}, then dupList(Phone)={t3, t4}, and dupList (Street)={t1, t2} for example.
  • According to an example, a repair operation is a merge of a set E of equivalence classes into a new class eq. A target, targ(eq) is calculated. If E was merged to resolve the violation of a set of records S with respect to an FD F:X→A, then S is removed from vioList(F). If the merge was due to attribute A equivalence because of deduplication, then S is removed from dupList(A). In case the merge results in changing the targ(eq(t, A)), the violations and duplicates are recomputed. According to an example, the necessary violations can be computed as follows: for each F′:X′→A′ ∈ Σ and A ∈ {X′∪{A′}}; if S={t′|t,t′|≠F′} is not empty, then add {{t} ∪ S} to vioList(F′). For example, with reference to FIG. 1: if S={t3, t4} for attribute ‘ZIP’, eq1={(t3, ZIP)} and eq2={(t4, ZIP)}. After merging eq1 and eq2, a new equivalence class eq={(t3, ZIP), (t3, ZIP)} is derived which means that t3[Zip] must be equal to the targ(eq)=‘10023’. In this case, t4[Zip] changes to ‘10023’ instead of ‘98368’, which was the previous target value of eq1. Due to this update, t4 may now violate other FDs that contain the modified attribute ZIP. Also, the similarity between t4 and the other records has changed. Accordingly, deduplication needs to be recomputed again in order to update the dupList listing.
  • FIG. 3 is a schematic block diagram of a method according to an example. An algorithm 300 starts by initializing the equivalence classes 203 as mentioned earlier. According to an example, algorithm 300 can be one which follows the following process:
  •  1: ε = {(t, A)|∀ t ∈ D, ∀ A ∈ attr(R)}
     2: ∀ eq(t, A) ∈ ε; targ(eq(t, A)) = t[A]
     3: Dup(D) = {C1 ..... Cm }
     4: for all F ∈ Σ; vioList(F) = {t| ∃t′s.t.{t, t′} |≠ F}
     5: for all A ∈ attr(R); dupList(A) = [t| ∃t′s.t.{t, t′} ∈
      C, t[A] ≠ t′[A]}
     6: while vioList and dupList are not empty do
     7: (S, List) =PickOp( )
     8: MergeEqClasses(S. List)
     9: end while
    10: D′ is obtained by setting t[A] = targ(eg(t, A)) for all t ∈
      D, A ∈ attr(R) and then apply the SQL select distinct
      attr(R) from D′.
  • In block 305 the next best set of equivalence classes to merge or the operation with the current least cost is selected using an algorithm such as below:
  •  1: bestCost = ∞
     2: for all F : X → A ∈ Σ, t ∈ vioList(F) do
     3: S = {t′|t[X] = t′[X]}
     4: curCost = mgcost(S, A)
     5: if cur Cost i bestCost then
     6: sol = (S.vioList(F)); bestCost = curCost;
     7: end if
     8: end for
     9: for all A ∈ attr(R), t ∈ dupList(A) do
    10: S = cluster(t)
    11: curCost = mgcost(S, A)
    12: if cur Cost i bestCost then
    13: sol = (S.dupList(F)); bestCost = curCost;
    14: end if
    15: end for
    16: return sol;
  • That is, a set of records S and a list that refers to either vioList or dupList is computed according to the algorithm used in block 305. The algorithm of block 305 typically searches among all current conflicting equivalences in the database (due to FD violation or deduplication) and selects the least cost equivalence to apply.
  • According to an example, a set of equivalence classes can be merged according to an algorithm in block 307, which can be an algorithm such as below:
  •  1: E = {eq(t. A)|∀ t ∈ S}
     2: eqA = ∪e∈Ee
     3: ε = (ε − E) ∪ {eqA }
     4: List = List − S
     5: for all t ∈ S do
     6: if targ(eq(t, A)) ≠ targ(eqA) then
     7: for all F′ : X′ → A ∈ Σ s.t. A ∈ X′ ∪ {A′} do
     8: Ss = (t′|t, t′ |= F′}
     9: Su = {t′|t, t′ |≠ F′}
    10: if (Ss ≠ φ) then vioList(F′)− = Ss ∪ {t}
    11: if (Su ≠ φ) then vioList(F′)∪ = Ss ∪ {t}
    12: Recompute Dup for t and update dupList(A) for each
    A ∈ attr(R)
    13: end for
    14: end if
    15: eq(t, A) = eqA
    16: end for
  • Block 307 takes the output of block 305 as input parameters, which is a set S of records and the list List. An attribute is A if List is vioList(F:X→A), or it is dupList(A). Then, using the set of records S, the set E of equivalence classes to be merged is obtained. Subsequently, the consequence of changing the target values to update the data structures vioList and dupList is dealt with. A modified database instance 310 (D′) is obtained from block 300 by setting t[A]=targ(eq(t,A)) for t ∈ D, A ∈ attr(R). In an example, a suitable filter can then be applied, such as an SQL “select distinction” command over attr(R) from D′.
  • FIG. 4 is a schematic block diagram of an apparatus according to an example suitable for implementing any of the system or processes described above. Apparatus 400 includes one or more processors, such as processor 401, providing an execution platform for executing machine readable instructions such as software. Commands and data from the processor 401 are communicated over a communication bus 399. The system 400 also includes a main memory 402, such as a Random Access Memory (RAM), where machine readable instructions may reside during runtime, and a secondary memory 405. The secondary memory 405 includes, for example, a hard disk drive 407 and/or a removable storage drive 430, representing a floppy diskette drive, a magnetic tape drive, a compact disk drive, etc., or a nonvolatile memory where a copy of the machine readable instructions, or software may be stored. The secondary memory 405 may also include ROM (read only memory), EPROM (erasable, programmable ROM), EEPROM (electrically erasable, programmable ROM). In addition to software, data representing any one or more of updates, possible updates or candidate replacement entries, and listings for identified tuples may be stored in the main memory 402 and/or the secondary memory 405. The removable storage drive 430 reads from and/or writes to a removable storage unit 409 in a well-known manner.
  • A user interfaces with the system 400 with one or more input devices 411, such as a keyboard, a mouse, a stylus, and the like in order to provide user input data. The display adaptor 415 interfaces with the communication bus 399 and the display 417 and receives display data from the processor 401 and converts the display data into display commands for the display 417. A network interface 419 is provided for communicating with other systems and devices via a network (not shown). The system can include a wireless interface 421 for communicating with wireless devices in the wireless community.
  • It will be apparent to one of ordinary skill in the art that one or more of the components of the system 400 may not be included and/or other components may be added as is known in the art. The system 400 shown in FIG. 4 is provided as an example of a possible platform that may be used, and other types of platforms may be used as is known in the art. One or more of the steps described above may be implemented as instructions embedded on a computer readable medium and executed on the system 400. The steps may be embodied by a computer program, which may exist in a variety of forms both active and inactive. For example, they may exist as software program(s) comprised of program instructions in source code, object code, executable code or other formats for performing some of the steps. Any of the above may be embodied on a computer readable medium, which include storage devices and signals, in compressed or uncompressed form. Examples of suitable computer readable storage devices include conventional computer system RAM (random access memory), ROM (read only memory), EPROM (erasable, programmable ROM), EEPROM (electrically erasable, programmable ROM), and magnetic or optical disks or tapes. Examples of computer readable signals, whether modulated using a carrier or not, are signals that a computer system hosting or running a computer program may be configured to access, including signals downloaded through the Internet or other networks. Concrete examples of the foregoing include distribution of the programs on a CD ROM or via Internet download. In a sense, the Internet itself, as an abstract entity, is a computer readable medium. The same is true of computer networks in general. It is therefore to be understood that those functions enumerated above may be performed by any electronic device capable of executing the above-described functions.
  • According to an example, equivalence classes 405 can reside in memory 402 having been derived from records of a database 209. In an example, one or more of algorithms of blocks 300, 305 or 307 can reside in memory 402 such as to provide respective engines 403 for cleaning, merging and selecting records of a database, including a modified instance of a database for example. That is, engine 403 can be a cleaning engine or a merge engine according to an example, which are operable to perform the processes associated with the tasks of blocks 300, 305, 307 for example.
  • A database 209 is shown in FIG. 4 as a standalone database connected to bus 399. However, it can be a database which can be queried and have data written to it from a remote location using the wired or wireless network connections mentioned above. Alternatively, database 209 may be stored in memory 405, such as on a HDD of system 400 for example.

Claims (14)

1. A computer implemented method for repairing records of a database, comprising:
determining a first set of records of the database which violate a functional dependency of the database;
determining a second set of records of the database comprising duplicate records;
computing a cost metric representing a measure for the cost of mutually dependently modifying records in the first and second sets;
modifying records in the first and second sets on the basis of the cost metric to provide a modified database instance.
2. A method as claimed in claim 1, further comprising determining duplicate records using a duplication mechanism to group duplicate records into respective clusters, wherein records within respective ones of the clusters represent the same entity.
3. A method as claimed in claim 1, further comprising determining a set of equivalence classes for records of the first and second sets consisting of multiple record-attribute pairs.
4. A method as claimed in claim 1, further comprising determining a set of equivalence classes for records of the first and second sets consisting of multiple record-attribute pairs, wherein attribute values for records in respective ones of the equivalence classes are the same in the modified database instance.
5. A method as claimed in claim 1, further comprising:
determining a set of equivalence classes for records of the first and second sets consisting of multiple record-attribute pairs; and
merging a pair of equivalence classes into a new class to resolve a functional dependency violation or to perform a deduplication.
6. A method as claimed in claim 1, further comprising:
determining a set of equivalence classes for records of the first and second sets consisting of multiple record-attribute pairs;
merging a pair of equivalence classes into a new class to resolve a functional dependency violation or to perform a deduplication;
refreshing the first set of records of the database which violate a functional dependency of the database; and
refreshing the second set of records of the database comprising duplicate records as a result of the step of merging.
7. A computer implemented method for generating a set of updates for a database including multiple records, the method comprising:
performing a duplicate-record-aware repair of functional dependency violations for records of the database; and
performing a functional-dependency-aware deduplication of records of the database.
8. A computer program embedded on a non-transitory tangible computer readable storage medium, the computer program including machine readable instructions that, when executed by a processor, implement a method for updating a database comprising:
determining a first set of records of the database which violate a functional dependency of the database;
determining a second set of records of the database comprising duplicate records;
computing a cost metric representing a measure for the cost of mutually dependently modifying records in the first and second sets;
modifying records in the first and second sets on the basis of the cost metric to provide a modified database instance.
9. The computer program embedded on a non-transitory tangible computer readable storage medium as claimed in claim 8, further comprising instructions that, when executed by the processor, implement a method for updating a database further comprising:
determining duplicate records using a duplication detector to group duplicate records into respective clusters, wherein records within respective ones of the clusters represent the same entity.
10. The computer program embedded on a non-transitory tangible computer readable storage medium as claimed in claim 8, further comprising instructions that, when executed by the processor, implement a method for updating a database further comprising determining a set of equivalence classes for records of the first and second sets consisting of multiple record-attribute pairs.
11. The computer program embedded on a non-transitory tangible computer readable storage medium as claimed in claim 8, further comprising instructions that, when executed by the processor, implement a method for updating a database further comprising determining a set of equivalence classes for records of the first and second sets consisting of multiple record-attribute pairs, and instructions that, when executed by the processor, implement a method for updating a database wherein attribute values for records in respective ones of the equivalence classes are the same in the modified database instance.
12. The computer program embedded on a non-transitory tangible computer readable storage medium as claimed in claim 8, further comprising instructions that, when executed by the processor, implement a method for updating a database further comprising determining a set of equivalence classes for records of the first and second sets consisting of multiple record-attribute pairs and instructions that, when executed by the processor, implement a method for updating a database further comprising merging a pair of equivalence classes into a new class to resolve a functional dependency violation or to perform a deduplication.
13. The computer program embedded on a non-transitory tangible computer readable storage medium as claimed in claim 8, further comprising instructions that, when executed by the processor, implement a method for updating a database further comprising determining a set of equivalence classes for records of the first and second sets consisting of multiple record-attribute pairs and instructions that, when executed by the processor, implement a method for updating a database further comprising:
refreshing the first set of records of the database which violate a functional dependency of the database; and
refreshing the second set of records of the database comprising duplicate records as a result of the step of merging.
14. A computer program embedded on a non-transitory tangible computer readable storage medium, the computer program including machine readable instructions that, when executed by a processor, implement a method for updating a database comprising:
performing a duplicate-record-aware repair of functional dependency violations for records of the database; and
performing a functional-dependency-aware deduplication of records of the database.
US13/218,698 2011-08-26 2011-08-26 Holistic database record repair Active 2031-12-03 US9116934B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US13/218,698 US9116934B2 (en) 2011-08-26 2011-08-26 Holistic database record repair

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
US13/218,698 US9116934B2 (en) 2011-08-26 2011-08-26 Holistic database record repair

Publications (2)

Publication Number Publication Date
US20130054541A1 true US20130054541A1 (en) 2013-02-28
US9116934B2 US9116934B2 (en) 2015-08-25

Family

ID=47745103

Family Applications (1)

Application Number Title Priority Date Filing Date
US13/218,698 Active 2031-12-03 US9116934B2 (en) 2011-08-26 2011-08-26 Holistic database record repair

Country Status (1)

Country Link
US (1) US9116934B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150339360A1 (en) * 2014-05-23 2015-11-26 International Business Machines Corporation Processing a data set
US20170286441A1 (en) * 2016-03-30 2017-10-05 Salesforce.Com, Inc. Cross objects de-duplication
US20170308557A1 (en) * 2016-04-21 2017-10-26 LeanTaas Method and system for cleansing and de-duplicating data
US10901996B2 (en) 2016-02-24 2021-01-26 Salesforce.Com, Inc. Optimized subset processing for de-duplication
US10956450B2 (en) 2016-03-28 2021-03-23 Salesforce.Com, Inc. Dense subset clustering

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9407727B1 (en) * 2011-06-29 2016-08-02 Riverbed Technology, Inc. Optimizing communications using client-side reconstruction scripting
GB201322057D0 (en) * 2013-12-13 2014-01-29 Qatar Foundation Descriptive and prescriptive data cleaning

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030097359A1 (en) * 2001-11-02 2003-05-22 Thomas Ruediger Deduplicaiton system
US20040003005A1 (en) * 2002-06-28 2004-01-01 Surajit Chaudhuri Detecting duplicate records in databases
US20040107189A1 (en) * 2002-12-03 2004-06-03 Lockheed Martin Corporation System for identifying similarities in record fields
US20040181527A1 (en) * 2003-03-11 2004-09-16 Lockheed Martin Corporation Robust system for interactively learning a string similarity measurement
US20050102325A1 (en) * 2003-09-15 2005-05-12 Joel Gould Functional dependency data profiling
US20060155743A1 (en) * 2004-12-29 2006-07-13 Bohannon Philip L Equivalence class-based method and apparatus for cost-based repair of database constraint violations
US7296011B2 (en) * 2003-06-20 2007-11-13 Microsoft Corporation Efficient fuzzy match for evaluating data records
US20080243967A1 (en) * 2007-03-29 2008-10-02 Microsoft Corporation Duplicate record processing
US20090006302A1 (en) * 2007-06-29 2009-01-01 Wenfei Fan Methods and Apparatus for Capturing and Detecting Inconsistencies in Relational Data Using Conditional Functional Dependencies
US7562067B2 (en) * 2005-05-06 2009-07-14 Microsoft Corporation Systems and methods for estimating functional relationships in a database
US20100005048A1 (en) * 2008-07-07 2010-01-07 Chandra Bodapati Detecting duplicate records
US20100318499A1 (en) * 2009-06-15 2010-12-16 Microsoft Corporation Declarative framework for deduplication

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2493962A (en) 2011-08-26 2013-02-27 Qatar Foundation Database record repair

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030097359A1 (en) * 2001-11-02 2003-05-22 Thomas Ruediger Deduplicaiton system
US20040003005A1 (en) * 2002-06-28 2004-01-01 Surajit Chaudhuri Detecting duplicate records in databases
US20040107189A1 (en) * 2002-12-03 2004-06-03 Lockheed Martin Corporation System for identifying similarities in record fields
US20040181527A1 (en) * 2003-03-11 2004-09-16 Lockheed Martin Corporation Robust system for interactively learning a string similarity measurement
US7296011B2 (en) * 2003-06-20 2007-11-13 Microsoft Corporation Efficient fuzzy match for evaluating data records
US20050102325A1 (en) * 2003-09-15 2005-05-12 Joel Gould Functional dependency data profiling
US20060155743A1 (en) * 2004-12-29 2006-07-13 Bohannon Philip L Equivalence class-based method and apparatus for cost-based repair of database constraint violations
US7562067B2 (en) * 2005-05-06 2009-07-14 Microsoft Corporation Systems and methods for estimating functional relationships in a database
US20080243967A1 (en) * 2007-03-29 2008-10-02 Microsoft Corporation Duplicate record processing
US20090006302A1 (en) * 2007-06-29 2009-01-01 Wenfei Fan Methods and Apparatus for Capturing and Detecting Inconsistencies in Relational Data Using Conditional Functional Dependencies
US20100005048A1 (en) * 2008-07-07 2010-01-07 Chandra Bodapati Detecting duplicate records
US20100318499A1 (en) * 2009-06-15 2010-12-16 Microsoft Corporation Declarative framework for deduplication

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
Ananthakrishna et al. "Eliminating fuzzy duplicates in data warehouses". 2002. In Proceedings of the 28th international conference on Very Large Data Bases (VLDB '02). VLDB Endowment. Pp. 586-597. *
Beskales et al. "Sampling the repairs of functional dependency violations under hard constraints." 2010. Procedures of the VLDB Endowment. Vol. 3, Issue 1-2. Pp. 197-207. *
Lee et al. "Cleansing Data for Mining and Warehousing". 1999. In Proceedings of the 10th International Conference on Database and Expert Systems Applications (DEXA '99). Springer-Verlag, London, UK, UK, pp. 751-760. *
Zhao, Li. "Efficient and effective data cleansing for large database". 2002. Thesis submitted for the degree of Doctor of Philosophy. National University of Singapore, Department of Computer Science. *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150339360A1 (en) * 2014-05-23 2015-11-26 International Business Machines Corporation Processing a data set
US10210227B2 (en) * 2014-05-23 2019-02-19 International Business Machines Corporation Processing a data set
US10671627B2 (en) * 2014-05-23 2020-06-02 International Business Machines Corporation Processing a data set
US10901996B2 (en) 2016-02-24 2021-01-26 Salesforce.Com, Inc. Optimized subset processing for de-duplication
US10956450B2 (en) 2016-03-28 2021-03-23 Salesforce.Com, Inc. Dense subset clustering
US20170286441A1 (en) * 2016-03-30 2017-10-05 Salesforce.Com, Inc. Cross objects de-duplication
US10949395B2 (en) * 2016-03-30 2021-03-16 Salesforce.Com, Inc. Cross objects de-duplication
US20170308557A1 (en) * 2016-04-21 2017-10-26 LeanTaas Method and system for cleansing and de-duplicating data
US10558627B2 (en) * 2016-04-21 2020-02-11 Leantaas, Inc. Method and system for cleansing and de-duplicating data

Also Published As

Publication number Publication date
US9116934B2 (en) 2015-08-25

Similar Documents

Publication Publication Date Title
US8782016B2 (en) Database record repair
US9116934B2 (en) Holistic database record repair
US9519862B2 (en) Domains for knowledge-based data quality solution
US20180239796A1 (en) Multi-tenant distribution of graph database caches
US7743071B2 (en) Efficient data handling representations
US9619494B2 (en) Scalable automatic data repair
US11403299B2 (en) Constraint manager for collaborative intelligence and constraint computing
US20200334370A1 (en) Data privacy pipeline providing collaborative intelligence and constraint computing
JP7125900B2 (en) A multidimensional recursive learning process and system used to discover complex dyadic or multiple counterparty relationships
US20130117219A1 (en) Architecture for knowledge-based data quality solution
US8886590B2 (en) Master data management in a data warehouse/data mart
US20140025645A1 (en) Resolving Database Integration Conflicts Using Data Provenance
US11314717B1 (en) Scalable architecture for propagating updates to replicated data
EP2774090A1 (en) Knowledge-based data quality solution
US20210397601A1 (en) Enforcing path consistency in graph database path query evaluation
EP2742443B1 (en) Database record repair
CN114398669A (en) Joint credit scoring method and device based on privacy protection calculation and cross-organization
Fan et al. Data quality problems beyond consistency and deduplication
Moreno et al. Sortinghat: wizardry on software project members
US11455588B2 (en) Data validation and master network techniques
EP2742444A1 (en) Holistic database record repair
US11556519B2 (en) Ensuring integrity of records in a not only structured query language database
Marengo et al. Towards a Theory of Query Stability in Business Processes.
Batini et al. Activities for Information Quality
CN113448617A (en) Data object management method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
AS Assignment

Owner name: QATAR FOUNDATION, QATAR

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:KALDAS, IHAB FRANCIS ILYAS;YAKOUT, MOHAMED;ELMAGARMID, AHMED K.;SIGNING DATES FROM 20110709 TO 20110926;REEL/FRAME:027149/0245

Owner name: QATAR FOUNDATION, QATAR

Free format text: CORRECTIVE ASSIGNMENT TO CORRECT THE ASSIGNOR DOCUMENT DATE PREVIOUSLY RECORDED ON REEL 027149 FRAME 0245. ASSIGNOR(S) HEREBY CONFIRMS THE TRANSFER OF RIGHTS IN US SERIAL NO. 13/218,698 TO QATAR FOUNDATION;ASSIGNORS:KALDAS, IHAB FRANCIS ILYAS;YAKOUT, MOHAMED;ELMAGARMID, AHMED K.;SIGNING DATES FROM 20110907 TO 20110926;REEL/FRAME:027151/0579

STCF Information on status: patent grant

Free format text: PATENTED CASE

MAFP Maintenance fee payment

Free format text: PAYMENT OF MAINTENANCE FEE, 4TH YEAR, LARGE ENTITY (ORIGINAL EVENT CODE: M1551); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

Year of fee payment: 4

MAFP Maintenance fee payment

Free format text: PAYMENT OF MAINTENANCE FEE, 8TH YEAR, LARGE ENTITY (ORIGINAL EVENT CODE: M1552); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

Year of fee payment: 8