Abstract
We frame the task of schema mapping discovery for Data Exchange as an ILP problem to discuss resulting challenges and advantages. The challenges stem from the necessity of learning complex mappings in practice as we illustrate with simple examples.
Introduction
In enterprise software environments, "Data Exchange"—the process of migrating data between heterogeneous database schemas—remains a significant technical hurdle. Traditional migration tools often operate as "black boxes," providing slow, inflexible solutions with opaque transformation logic. This lack of transparency makes it difficult to modify pre-processing steps or migrate specific data subsets.
This paper explores a novel approach: using Inductive Logic Programming (ILP) to automatically discover the rules governing these migrations. By treating source data as background knowledge and target data as positive examples, we can reverse-engineer the underlying logic into transparent, formal schema mappings.
Methodology: ILP for Schema Discovery
The authors frame schema mapping discovery as a classic ILP problem defined by:
- Background Knowledge ($B$): The ground facts (tuples) within the source database.
- Positive Evidence ($E^+$): The ground facts present in the target database.
- Negative Evidence ($E^-$): Potential ground facts absent from the target database.
- Hypothesis ($H$): A set of Horn rules (logical "if-then" statements) that reconstruct the target data from the source without generating incorrect tuples.
A critical requirement identified is the support for GLAV (Global-and-Local-As-View) mappings. Unlike standard ILP, GLAV mappings allow for existential quantifiers in the rule head. This is essential for handling "labeled nulls"—values like auto-generated IDs that appear in the target schema but have no direct counterpart in the source.
Illustrative Examples
The complexity of this discovery task is demonstrated through two synthetic datasets.
1. Food and Nutrition Database
This scenario involves mapping a source schema containing Vegetable, AnimalProduct, and NutritionalValue tables to a target VegetarianIngredient table. This example highlights the need for joins, attribute renaming, and filtering (e.g., selecting only "egg" from animal products).
2. Commute and Location Database
A more complex scenario maps Person, City, and Employer tables to Commute and GeoLocation. This case demonstrates the challenge of generating new IDs and maintaining foreign key relationships across multiple target tables, necessitating existential quantification.
Key Insights and Results
The research highlights several advantages and challenges of the ILP approach:
- Interpretability: As logical dependencies, ILP-derived mappings are inherently more interpretable than statistical models.
- The Role of Metadata: The search space for mappings is vast. Utilizing database metadata, such as Foreign Key constraints, allows the ILP system to prune the search space by focusing on variables within shared data domains.
- Handling Constants: While ILP effectively learns rules with constants (e.g.,
Type = 'egg'), numerical constants can be problematic, as coincidental matches may lead to incorrect semantic links.
The conceptual framework demonstrates that complex transformations involving joins and filters can be successfully represented as Horn rules. Furthermore, the criteria for a "good" ILP solution align with the theoretical requirements for valid schema mappings in database theory.
Limitations and Future Work
Despite its promise, several hurdles remain for practical deployment:
- Scalability: Scaling bottom-up ILP searches to enterprise-level databases with thousands of tables is a significant challenge.
- Instance Matching: Learning rules requires knowing which source rows correspond to specific target rows, a "fine-grained" mapping that often requires sophisticated pre-processing.
- Complex Functions: Future work aims to support complex transformation functions (e.g., unit conversions or string manipulation) by refining the "language bias" within the ILP process.
Summary updated