Multimedia Database Schema Design Jianguo Huo. Outline MMDB Design Issues Multimedia Data Types Features and Similarity Functions M-Dependencies Normalization.

Slides:



Advertisements
Similar presentations
The Relational Model and Relational Algebra Nothing is so practical as a good theory Kurt Lewin, 1945.
Advertisements

Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 16 Relational Database Design Algorithms and Further Dependencies.
COMP 5138 Relational Database Management Systems Semester 2, 2007 Lecture 5A Relational Algebra.
ALAK ROY. Assistant Professor Dept. of CSE NIT Agartala N ATIONAL I NSTITUTE OF T ECHNOLOGY A GARTALA Aug-Dec,2010 Normalization 2 CSE-503 :: D ATABASE.
METU Department of Computer Eng Ceng 302 Introduction to DBMS Further Dependencies by Pinar Senkul resources: mostly froom Elmasri, Navathe and other books.
Database Management COP4540, SCS, FIU Functional Dependencies (Chapter 14)
Ch 10, Functional Dependencies and Normal forms
Normal Forms By Christopher Archibald October 16 th 2007.
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 Relational Algebra Chapter 4, Part A Modified by Donghui Zhang.
CMPT 354, Simon Fraser University, Fall 2008, Martin Ester 52 Database Systems I Relational Algebra.
The Relational Model System Development Life Cycle Normalisation
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 15 Basics of Functional Dependencies and Normalization for Relational.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3 The Basic (Flat) Relational Model.
Normalization I.
Database Management Systems, R. Ramakrishnan and J. Gehrke1 Relational Algebra Chapter 4, Part A.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 15 Basics of Functional Dependencies and Normalization for Relational.
Databases 6: Normalization
1 Relational Algebra and Calculus Yanlei Diao UMass Amherst Feb 1, 2007 Slides Courtesy of R. Ramakrishnan and J. Gehrke.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 3 The Relational Database Model.
Rutgers University Relational Algebra 198:541 Rutgers University.
Relational Algebra Chapter 4 - part I. 2 Relational Query Languages  Query languages: Allow manipulation and retrieval of data from a database.  Relational.
The Relational Model Codd (1970): based on set theory Relational model: represents the database as a collection of relations (a table of values --> file)
Normalization II. Boyce–Codd Normal Form (BCNF) Based on functional dependencies that take into account all candidate keys in a relation, however BCNF.
CSCD343- Introduction to databases- A. Vaisman1 Relational Algebra.
Introduction to Schema Refinement
Relational Model & Relational Algebra. 2 Relational Model u Terminology of relational model. u How tables are used to represent data. u Connection between.
Chapter 10 Functional Dependencies and Normalization for Relational Databases.
1 The Relational Data Model, Relational Constraints, and The Relational Algebra.
DANIEL J. ABADI, ADAM MARCUS, SAMUEL R. MADDEN, AND KATE HOLLENBACH THE VLDB JOURNAL. SW-Store: a vertically partitioned DBMS for Semantic Web data.
Chapter 13 Query Processing Melissa Jamili CS 157B November 11, 2004.
Normalization. 2 Objectives u Purpose of normalization. u Problems associated with redundant data. u Identification of various types of update anomalies.
Lecture 6 Normalization: Advanced forms. Objectives How inference rules can identify a set of all functional dependencies for a relation. How Inference.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide DESIGNING A SET OF RELATIONS (2) Goals: Lossless join property (a must). Dependency.
M Taimoor Khan Course Objectives 1) Basic Concepts 2) Tools 3) Database architecture and design 4) Flow of data (DFDs)
M Taimoor Khan Course Objectives 1) Basic Concepts 2) Tools 3) Database architecture and design 4) Flow of data (DFDs)
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Chapter 11 Relational Database Design Algorithms and Further Dependencies.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 15 Basics of Functional Dependencies and Normalization for Relational.
CSE314 Database Systems Basics of Functional Dependencies and Normalization for Relational Databases Doç. Dr. Mehmet Göktürk src: Elmasri & Navanthe 6E.
Database Management Systems, R. Ramakrishnan and J. Gehrke1 Relational Algebra.
1 Relational Algebra and Calculas Chapter 4, Part A.
1 Relational Algebra Chapter 4, Sections 4.1 – 4.2.
1 Functional Dependencies and Normalization Chapter 15.
Lecture 8: Database Concepts May 4, Outline From last lecture: creating views Normalization.
Third Normal Form (3NF) Zaki Malik October 23, 2008.
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 Database Management Systems Chapter 4 Relational Algebra.
Chapter 2 Introduction to Relational Model. Example of a Relation attributes (or columns) tuples (or rows) Introduction to Relational Model 2.
CSCD34-Data Management Systems - A. Vaisman1 Relational Algebra.
1 CSE 480: Database Systems Lecture 18: Normal Forms and Normalization.
Dr. Mohamed Osman Hegaz1 Logical data base design (2) Normalization.
Database Management Supplement 1. 2 I. The Hierarchy of Data Database File (Entity, Table) Record (info for a specific entity, Row) Field (Attribute,
CSE314 Database Systems Lecture 3 The Relational Data Model and Relational Database Constraints Doç. Dr. Mehmet Göktürk src: Elmasri & Navanthe 6E Pearson.
Database Management Systems, R. Ramakrishnan1 Relational Algebra Module 3, Lecture 1.
Normalization. 2 u Main objective in developing a logical data model for relational database systems is to create an accurate representation of the data,
Normalization.
Chapter 5.1 and 5.2 Brian Cobarrubia Database Management Systems II January 31, 2008.
Chapter 8 Relational Database Design. 2 Relational Database Design: Goals n Reduce data redundancy (undesirable replication of data values) n Minimize.
11/06/97J-1 Principles of Relational Design Chapter 12.
1 CS 430 Database Theory Winter 2005 Lecture 8: Functional Dependencies Second, Third, and Boyce-Codd Normal Forms.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide
4NF & MULTIVALUED DEPENDENCY By Kristina Miguel. Review  Superkey – a set of attributes which will uniquely identify each tuple in a relation  Candidate.
ITD1312 Database Principles Chapter 5: Physical Database Design
Multimedia Databases and Querying techniques
Relational Algebra Chapter 4, Part A
Translation of ER-diagram into Relational Schema
Chapter 15 Basics of Functional Dependencies and Normalization for Relational Databases.
Relational Algebra 461 The slides for this text are organized into chapters. This lecture covers relational algebra, from Chapter 4. The relational calculus.
11/12/2018.
Normalization.
Chapter 15 Basics of Functional Dependencies and Normalization for Relational Databases.
Presentation transcript:

Multimedia Database Schema Design Jianguo Huo

Outline MMDB Design Issues Multimedia Data Types Features and Similarity Functions M-Dependencies Normalization Evaluation

MMDB Design Issues Requirements for the MMDB –Representation, storage, interpretation, composition, retrieval and delivery of diverse data types Data Model Storage structure Architecture Retrieval algorithms

MMDB Schema Design Building blocks –Data type –Relations –Rows (tuples) –Columns –Similarity function and thresholds –Dependencies –MMDB schema Knobs –Data types, relations, similarity functions, thresholds

Data Types Semantics of Multimedia Attributes Why not BLOB Generalized Icon –(x m, x i ) –Earcons, ticons, micon, vicons –multicons

Features and Similarity Functions Features and Tuples comparison –Equal vs. similar Similarity Functions –Distance functions –Threshold –Combination of similarity functions Let R(z1:Z1,…, zn:Zn), v be a tuple distance function on R, t be a maximum distance threshold, x=(x1,…, xn) and y=(y1,…, yn) be two tuples in R, we say that x is similar within t to y with respect to v, denoted with x  w(t) y, iff v(x, y)  t.

M-Dependencies The benefits from exploiting dependencies Classes of M-Dependencies –Type M Functional dependency (MFD) –Type M Multivalued dependency (MMD) –Type M Join dependency (MJD) –…technically MFD: Let R be a relation with attribute set U, and X, Y  U. Xg1(t’) → Yg2(t’’) is a type-M functional dependency (MFD) relation if and only if for any two tuples t1 and t2 in R that have t1[X]  g1(t’) t2[X], then t1[Y]  g2(t’’) t2[Y], where g1  TD(X) and g2  TD(Y), whereas t’ and t’’  [0,1] are thresholds. MMD: Let R be a multimedia relation with attribute set U, and X, Y  U. Xg1(t') →» Yg2(t'')[g3(t''')] is a type-M multivalued dependency (MMD) relation if and only if for any two tuples t1 and t2 in R such that t1[X]  g1(t') t2[X], there also exist in R two tuples t3 and t4 with the following properties: t3[X], t4[X]  [t1[X]]  g1(t') t3[Y]  g2(t'') t1[Y] and t4[Y]  g2(t'') t2[Y] t3[R– (XY)]  g3(t''') t2[R – (XY)] and t4[R – (XY)]  g3(t''') t1[R – (XY)]. where g1  TD(X), g2  TD(Y) and g3  TD(R–(XY)), whereas t', t'' and t'''  [0,1] are thresholds. MJD: Let R be a relation on U, and {X1,…,Xn}  U, with the union of Xi’s being U. If R = PX1,g1(t1)(R)  g1(t1) PX2,g2(t2)(R)  g2(t2)…  gn-1(tn-1) PXn,I (R), we say that R satisfies a Type-M Join Dependency (MJD), denoted by  [g1(t1),…, gn-1(tn-1)][X1,..., Xn], where gi  TD(Xi  Xi+1) and ti  [0,1] for each 1  i  n-1.

Normal Forms Dependency-based design practice Benefits Types of Normal Forms –1MNF –2MNF –3MNF –4MNF –5MNF –…technically 1MNF: We say that a multimedia database schema is in first multimedia normal form (1MNF) if each attribute A has the type of number, string or elementary generalized icon. 2MNF: We say that a multimedia database schema is in second multimedia normal form (2MNF) if it is in 1MNF and each non prime attribute A is fully dependent on the primary key. 3MNF: We say that a multimedia database schema R is in third multimedia normal form (3MNF) if it is in 2MNF and the non prime attributes are not mutually dependent. 4MNF: We say that a multimedia database schema R is in fourth multimedia normal form (4MNF) with respect to a set of multimedia dependencies D if, for every nontrivial MMD Xg1(t1) →» Yg2(t2)[g3(t3)] in D+, X is a superkey for R. 5MNF: we say that R is in 5MNF with respect to a set D of MFDs, MMDs, and MJDs if, for every nontrivial type-M join dependency  [g1(t1),…, gn-1(tn-1)](X1,..., Xn) in D+, every Xi is a superkey for R.

Term Project: MMDB Refactoring

Project Goal To implement an usable tool to enable automatic database transformation –Improve the user interface –Improve the algorithm