Schema Matching Methods

This page provides an overview of all schema matching methods available in the bdikit library. Some methods reuse the implementation of other libraries such as Valentine (e.g, similarity_flooding, coma and cupid) while others are implemented originally for bdikit (e.g., gpt, ct_learning, and two_phase). To see how to use these methods, please refer to the documentation of match_schema() in the api module.

bdikit methods

Method

Class

Description

ct_learning

ContrastiveLearningSchemaMatcher

Uses a contrastive (CT) learning model to learn embeddings for columns and retrieves the best match most similar columns using the cosine similarity between the column embeddings.

two_phase

TwoPhaseSchemaMatcher

The two-phase schema matching method first uses a a top-k column matcher (e.g., ct_learning) to prune the search space (keeping only the top-k most likely matches), and then uses another column matcher to choose the best match from the pruned search space.

gpt

GPTSchemaMatcher

This method uses the ct_learning to prune the search space and then uses a large language model (GPT4) to choose the best column match, given a set of top-k most likely candidates retrieved using the ct_learning method in the first phase.
Methods from other libraries

Method

Class

Description

similarity_flooding

SimFloodSchemaMatcher

Similarity Flooding transforms schemas into directed graphs and merges them into a propagation graph. The algorithm iteratively propagates similarity scores to neighboring nodes until convergence. This algorithm was proposed by Sergey Melnik, Hector Garcia-Molina, and Erhard Rahm in “Similarity Flooding: A Versatile Graph Matching Algorithm and Its Application to Schema Matching” (ICDE, 2002).

coma

ComaSchemaMatcher

COMA is a matcher that combines multiple schema-based matchers, representing schemas as rooted directed acyclic graphs. This algorithm was proposed by Do, Hong-Hai, and Erhard Rahm in “COMA — a system for flexible combination of schema matching approaches.” (VLDB 2002). This algorithm requires Java to be installed on the system.

cupid

CupidSchemaMatcher

Cupid is a schema-based approach that translates schemas into tree structures. It calculates overall similarity using linguistic and structural similarities, with tree transformations helping to compute context-based similarity. This algorithm was proposed by Madhavan et al. in “Generic Schema Matching with Cupid” (VLDB, 2001)​.

distribution_based

DistributionBasedSchemaMatcher

Distribution-based Matching compares the distribution of data values in columns using the Earth Mover’s Distance. It clusters relational attributes based on these comparisons. This algorithm was proposed by Zhang et al. in “Automatic discovery of attributes in relational databases” (SIGMOD 2011).

jaccard_distance

JaccardSchemaMatcher

This algorithm computes pairwise column similarities using Jaccard similarity, treating values as identical if their Levenshtein distance is below a threshold. The algorithm was proposed by Koutras et al. in “Valentine: Evaluating matching techniques for dataset discovery” (ICDE 2021).