5
VLDB’05, Trondheim, Norway, August 2005 Interactive Schema Translation with Instance- Level Mappings Sergey Melnik Microsoft Research Joint work with Phil Bernstein Peter Mork (Microsoft Research) (U. of Washington/MITRE)

VLDB’05, Trondheim, Norway, August 2005 Interactive Schema Translation with Instance-Level Mappings Sergey Melnik Microsoft Research Joint work with Phil

Embed Size (px)

Citation preview

Page 1: VLDB’05, Trondheim, Norway, August 2005 Interactive Schema Translation with Instance-Level Mappings Sergey Melnik Microsoft Research Joint work with Phil

VLDB’05, Trondheim, Norway, August 2005

Interactive Schema Translation with Instance-Level Mappings

Sergey MelnikMicrosoft Research

Joint work with

Phil Bernstein Peter Mork(Microsoft Research) (U. of Washington/MITRE)

Page 2: VLDB’05, Trondheim, Norway, August 2005 Interactive Schema Translation with Instance-Level Mappings Sergey Melnik Microsoft Research Joint work with Phil

Bernstein, Melnik, Mork: Interactive Schema Translation with Instance-Level Mappings. VLDB’052

Schema translation prototype

In: object-oriented schema + annotationsOut: relational schema + mappingGoal: support business apps

MBF Entity Designer (Visual Studio 2005)

CREATE VIEW CustomerView AS SELECT T1.SSN, T1.DOB, ..., T5.AccountNo, T5.APR, ... FROM Customer T1 LEFT OUTER JOIN

(SELECT T3.*, T4.* FROM Customer T3, JT_Customer_owns T2, Account T4 WHERE T4.AccountNo = T2.To_Account_AccountNo

AND T3.DOB = T2.From_Customer_DOB AND T3.SSN = T2.From_Customer_SSN) T5

ON T1.SSN = T5.SSN AND T1.DOB = T5.DOB

Page 3: VLDB’05, Trondheim, Norway, August 2005 Interactive Schema Translation with Instance-Level Mappings Sergey Melnik Microsoft Research Joint work with Phil

Bernstein, Melnik, Mork: Interactive Schema Translation with Instance-Level Mappings. VLDB’053

Highlight 1: Mappings

Mappings = data transformationsIntermediate mappings are composed

Inputschema

S0

Commonmeta-model

S1

Eliminate m:nassociations

Eliminateinheritance

Sn

Outputschema

Nativemeta-model(OO, rel, XML)

map1 mapn

. . .

map1 ∘ map2 ∘ … ∘ mapn

Page 4: VLDB’05, Trondheim, Norway, August 2005 Interactive Schema Translation with Instance-Level Mappings Sergey Melnik Microsoft Research Joint work with Phil

Bernstein, Melnik, Mork: Interactive Schema Translation with Instance-Level Mappings. VLDB’054

Highlight 2: Inheritance

Table perhierarchy

A id, p1

B p2

D p4

C p3

Rdisc

B id, p1, p2

C id, p1, p3

D id, p1, p3, p4

R S TB id, p1, p2

C id, p1, p3

D id, p1, p3, p4

Rdisc S T U

B id, p1 id, p2

C id, p1

id, p3

D id, p1 id, p3 id, p4

Table perconcrete

type

Table pertype

Inheritance mapping tables + algorithms

Page 5: VLDB’05, Trondheim, Norway, August 2005 Interactive Schema Translation with Instance-Level Mappings Sergey Melnik Microsoft Research Joint work with Phil

Bernstein, Melnik, Mork: Interactive Schema Translation with Instance-Level Mappings. VLDB’055

Come to see it!

Integrated with Visual Studio 2005 (Microsoft Business Framework)Works for other kinds of schemas

Group 4: Data SharingTime: Today 4:00-5:30 pm Friday 9:00-10:30 am

© 2005 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.