Definitioncore
Schema mapping
Also called source-to-target dependencies.
A specification, usually by tuple-generating dependencies, of how the data of a source schema relates to a target schema.
A schema mapping is a formal statement of how the data of a source schema relates to the data of a target schema, usually given as a set of source-to-target tuple-generating dependencies. Its meaning is the set of pairs of a source instance and a target instance that satisfy it. This page gives the general form and its semantics. The page on GAV and LAV covers the two restricted forms that data integration uses, where one side of each rule is a single relation, and how queries are answered under them.
Definition
Let and be two relational schemas with no relation name in common. Instances are sets of facts. Source instances hold constants only. Target instances may also hold labeled nulls , which stand for unknown values.
A schema mapping is a triple , where is a finite set of dependencies.
- is a set of source-to-target tgds , where is a conjunction of atoms over and is a conjunction of atoms over .
- is a set of target dependencies over alone, usually tgds and egds . It may be empty.
The semantics of is the set
For a source instance , a target instance with is a solution for . Two mappings are equivalent if they have the same semantics.
Some named forms of source-to-target tgds:
- Full: no existential variables, so the head uses only values of the source.
- GAV: full, with a single atom in the head.
- LAV: a single atom in the body.
The general form, with conjunctions on both sides, contains both GAV and LAV rules.
Examples and non-examples
A mapping with new values. The source has , a direct flight from to . The target has , a leg of a trip. The mapping has the two source-to-target tgds
So each flight becomes two legs through an unknown stop. For , the instance is a solution. So is , with the stops set to and . The mapping does not fix one target instance. The data exchange problem asks which solution to build.
A full mapping. copies a join of the source into the target. It makes no nulls.
Not definable: an exact copy. Let have one relation and one relation . The relation " is with renamed to " is not the semantics of any mapping of the form above. Assume a mapping has this semantics, and let be two source instances with copies . Then satisfies , so satisfies . The bodies of read only the source, and their heads stay true when facts are added, so satisfies as does. So is in the semantics, but is not the copy of .
Not closed under composition. Two mappings given by source-to-target tgds can compose to a mapping that no finite set of first-order tgds defines. The page on schema mapping composition gives the example and the second-order tgds that repair this.
Related definitions
- Correspondences. A schema matching step finds pairs of elements that mean the same, such as the first column of Flight and the first column of Leg. A mapping adds the joins, the new values and the grouping that the correspondences leave open. Tools generate candidate mappings from correspondences and let a person choose.
- GAV and LAV. The restricted forms used for a virtual, integrated view of many sources; see GAV and LAV.
- Universal solution. A solution with a homomorphism into every solution; see universal solution. The chase builds one.
- Certain answers. The answers of a target query that hold in every solution; see certain answers.
- Weak acyclicity. A condition on that makes the chase stop; see weak acyclicity.
- Operators on mappings. Composition, inversion and the test that a mapping has a solution for some source are studied as metadata management.
References
- Marcelo Arenas, Pablo Barceló, Leonid Libkin and Filip Murlak, Foundations of Data Exchange, Cambridge University Press, 2014, Chapter 3, Data exchange: key definitions, and Chapter 17, What is metadata management?
- Ronald Fagin, Phokion G. Kolaitis, Renée J. Miller and Lucian Popa, Data exchange: semantics and query answering, Theoretical Computer Science 336(1), 2005, the definition of a data exchange setting
- Maurizio Lenzerini, Data integration: a theoretical perspective, PODS 2002, pages 233-246
- AnHai Doan, Alon Halevy and Zachary Ives, Principles of Data Integration, Morgan Kaufmann, 2012, Chapter 5, Schema Matching and Mapping
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag DPX9ZV Edit this page History Report an error Markdown