Integrated Database Design Mark Graves. This presentation is Copyright 2001, 2002 by Mark Graves and contains material Copyright 2002 by Prentice Hall.

Slides:



Advertisements
Similar presentations
Three-Step Database Design
Advertisements

Chapter 10: Designing Databases
SQL Lecture 10 Inst: Haya Sammaneh. Example Instance of Students Relation  Cardinality = 3, degree = 5, all rows distinct.
Accounting System Design
Introduction XML Technologies Mark Graves. This presentation is Copyright 2001, 2002 by Mark Graves and contains material Copyright 2002 by Prentice Hall.
System Analysis - Data Modeling
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Mark Graves Leveraging Existing DBMS Storage for XML DBMS.
TU/e eindhoven university of technology / faculty of mathematics and informatics Exporting Databases in XML DTD A Conceptual and Generic Approach Philippe.
Data Modelling. EAR model This modelling language allows a very small vocabulary: Just as English has nouns, verbs, adjectives, pronouns.., EAR models.
Semi-structured Data. Facts about the Web Growing fast Popular Semi-structured data –Data is presented for ‘human’-processing –Data is often ‘self-describing’
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
SQL Overview Defining a Schema CPSC 315 – Programming Studio Spring 2008 Project 1, Lecture 3 Slides adapted from those used by Jeffrey Ullman, via Jennifer.
1 Advanced Topics XML and Databases. 2 XML u Overview u Structure of XML Data –XML Document Type Definition DTD –Namespaces –XML Schema u Query and Transformation.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Chapter 14 & 15 Conceptual & Logical Database Design Methodology
4/20/2017.
PHASE 3: SYSTEMS DESIGN Chapter 7 Data Design.
CSE314 Database Systems Data Modeling Using the Entity- Relationship (ER) Model Doç. Dr. Mehmet Göktürk src: Elmasri & Navanthe 6E Pearson Ed Slide Set.
XML-to-Relational Schema Mapping Algorithm ODTDMap Speaker: Artem Chebotko* Wayne State University Joint work with Mustafa Atay,
Lecture 2 The Relational Model. Objectives Terminology of relational model. How tables are used to represent data. Connection between mathematical relations.
Information storage: Introduction of database 10/7/2004 Xiangming Mu.
Chapter 4 The Relational Model.
Chapter 3 The Relational Model Transparencies Last Updated: Pebruari 2011 By M. Arief
DBMS Lecture 9  Object Database Management Group –12 Rules for an OODBMS –Components of the ODMG standard  OODBMS Object Model Schema  OO Data Model.
The Relational Model. Review Why use a DBMS? OS provides RAM and disk.
Section 11 : Normalisation
CSCE 520- Relational Data Model Lecture 2. Relational Data Model The following slides are reused by the permission of the author, J. Ullman, from the.
Software School of Hunan University Database Systems Design Part III Section 5 Design Methodology.
Chapter 9 Designing Databases Modern Systems Analysis and Design Sixth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich.
© 2006 ITT Educational Services Inc. SE350 System Analysis for Software Engineers: Unit 8 Slide 1 Chapter 9 Structuring System Data Requirements.
Information Systems: Databases Define the role of general information systems Describe the elements of a database management system (DBMS) Describe the.
A Z Approach in Validating ORA-SS Data Models Scott Uk-Jin Lee Jing Sun Gillian Dobbie Yuan Fang Li.
Concepts and Terminology Introduction to Database.
© 2007 by Prentice Hall (Hoffer, Prescott & McFadden) 1 Introduction to SQL.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 UNIT 6: Chapter 7: Introduction to SQL Modern Database Management 9 th Edition Jeffrey A.
I Information Systems Technology Ross Malaga 4 "Part I Understanding Information Systems Technology" Copyright © 2005 Prentice Hall, Inc. 4-1 DATABASE.
1/26/2004TCSS545A Isabelle Bichindaritz1 Database Management Systems Design Methodology.
Lecture2: Database Environment Prepared by L. Nouf Almujally & Aisha AlArfaj 1 Ref. Chapter2 College of Computer and Information Sciences - Information.
Chapters 15 &16 Conceptual and Logical Database Design Methodology.
Chapter 4 Database Processing Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall 4-1.
© 2005 Prentice Hall10-1 Stumpf and Teague Object-Oriented Systems Analysis and Design with UML.
Relational Database. Database Management System (DBMS)
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 7 (Part a): Introduction to SQL Modern Database Management 9 th Edition Jeffrey A.
1 © Prentice Hall, 2002 Chapter 5: Logical Database Design and the Relational Model Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B.
CS 338The Relational Model2-1 The Relational Model Lecture Topics Overview of SQL Underlying relational model Relational database structure SQL DDL and.
CSCE 520- Relational Data Model Lecture 2. Oracle login Login from the linux lab or ssh to one of the linux servers using your cse username and password.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 5 (Part a): Logical Database Design and the Relational Model Modern Database Management.
Department of Mathematics Computer and Information Science1 CS 351: Database Management Systems Christopher I. G. Lanclos Chapter 4.
CSC314 DAY 8 Introduction to SQL 1. Chapter 6 © 2013 Pearson Education, Inc. Publishing as Prentice Hall SQL OVERVIEW  Structured Query Language  The.
Lecture # 24 Introduction to SQL Muhammad Emran Database Systems.
Gene Notebook Example Mark Graves. This presentation is Copyright 2001, 2002 by Mark Graves and contains material Copyright 2002 by Prentice Hall PTR.
LECTURE TWO Introduction to Databases: Data models Relational database concepts Introduction to DDL & DML.
Understand Data Definition Language (DDL) Database Administration Fundamentals LESSON 1.4.
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 The Relational Model Chapter 3.
1 The Relational Data Model David J. Stucki. Relational Model Concepts 2 Fundamental concept: the relation  The Relational Model represents an entire.
1 CS122A: Introduction to Data Management Lecture #4 (E-R  Relational Translation) Instructor: Chen Li.
ISC321 Database Systems I Chapter 2: Overview of Database Languages and Architectures Fall 2015 Dr. Abdullah Almutairi.
Business System Development
Entity- Relationship (ER) Model
Business System Development
MIS 322 – Enterprise Business Process Analysis
Chapter 4 Relational Databases
Chapter 9 Designing Databases
Accounting System Design
Chapter 9 Web Services: JAX-RPC, WSDL, XML Schema, and SOAP
CMPT 354: Database System I
Accounting System Design
Lecture 10 Structuring System Requirements: Conceptual Data Modeling
Presentation transcript:

Integrated Database Design Mark Graves

This presentation is Copyright 2001, 2002 by Mark Graves and contains material Copyright 2002 by Prentice Hall PTR. All rights reserved.

Agenda: Integrated Database Design Definitions & Overview Graph Conceptual Design XML Document Design Relational Database Design Summary

Relational Databases Relational Database -- a collection of relations Example ð Person(name, phone, ) ð Gene(name, organism, chr_loc) Table -- a data structure for implementing a relation Implement using SQL ð create table gene ( idnumber, namestring, organismstring, chr_locstring);

Database Definitions Database -- collection of persistent data Database Management System -- software to manage a database (add, delete, modify, query) Database System -- database, DBMS, application software, users, hardware, … Web-enabled Database -- database accessible via WWW (internet or intranet) Web-enabled Database System -- database, users, DBMS, web servers, application software, and other software to deliver persistent data via WWW

Integrated Design Process Conceptual Graph Schema Database Design Database Schema Object-oriented Design UML Class Diagram XML Schema (DTD) Document XML Schema (DTD) Definition Implementation Java SQL Implementation XML Document Document Design

Benefits Unified Design Smooth data exchange between: –Relational Databases –Object-oriented applications –XML documents

Graph Conceptual Model Graph is a collection of nodes and edges Node represents –concept –object –complex relationship Edge represents –characteristic –binary relationship

Example Conceptual Schema

Graph Conceptual Design 1. List domain concepts and relationships. 2. Connect domain concepts by simple sentences (that describe relationships). 3. Select major concepts in the domain from the list. 4. Draw the major concepts as nodes. 5. Draw the simple sentences as edges. 6. Add cardinality constraints to the edges. 7. Revise the schema.

Basic Gene Concepts Concepts Gene Protein Gene name Gene sequence Protein name Protein sequence Simple Sentences Gene has a gene name. Gene has a gene sequence. Protein has a protein name. Protein has a protein sequence. Gene encodes for a protein.

Gene Conceptual Schema

Exercise 1. List concepts and relationships. 2. Connect concepts (or relationships) by simple sentences. 3. Select major concepts from the list. 4. Draw major concepts as nodes. 5. Draw simple sentences as edges.

Microarray Definition Microarray hybridization experiments consist of labeled DNA probes being hybridized against DNA pieces that have been immobilized in a grid layout on a glass slide. Spots on the slide 'light up' when a probe DNA sticks to one of the immobilized DNA spots. Experimental results describe the intensity of each spot on the grid.

Microarray Concepts & Relationships Concepts Experiment, Gene, Array, Spot Complex Relationship Experiment has a result for a spot. (ExperimentResult) Simple Sentences Experiment has conditions. Gene has a name. Array has a collection of spots. Spot has a gene. Experiment has an experiment result Experiment Result has a value Experiment Result has a spot

Conceptual Schema

Integrated Design Process Conceptual Graph Schema Database Design Database Schema Object-oriented Design UML Class Diagram XML Schema Document DTD Definition Implementation Java SQL Implementation XML Document Document Design XML Schema Definition DTD Document

XML Document Design Process Define Empty XML Document (with Elements & Attributes) –Choose graph node for root element(s). –Each graph node with protruding edges becomes an element type with the same name. –When a edge refers to a concept with no protruding edges it may be either an attribute or a subelement as preferred, with the following recommendations: If a characteristic depends on the concept for its existence in the domain and has cardinality 1:1 or Many:1, it becomes an attribute. If more detail may be added later, then it should be a subelement. Translate Empty XML Document to DTD or XML Schema Add restrictions for cardinality and type

Define Empty XML Document Empty XML

XML Schema Empty XML

Document Type Definition Empty XML DTD <!ATTLIST exper_result value CDATA #REQUIRED> <!ATTLIST spot grid CDATA #REQUIRED position CDATA #REQUIRED>

Exercise Choose concept for root element(s) Each concept with edges becomes an element When a edge refers to a concept with no edges: –If a characteristic depends on the concept for its existence in the domain and has cardinality 1:1 or Many:1, it becomes an attribute. –If more detail may be added later, then it should be a subelement.

Database Design Conceptual Design -- Unconstrained description of the data to gain overview of data Logical Design -- Precise, mathematical description of data to understand types and relationships of data Physical Design -- Specification in Data Definition Language of selected DBMS to specify all data requirements for implementation

Database Design Schemas Conceptual Schema -- Language of the domain Logical Schema -- Language of relational databases Physical Schema -- Language of a relational DBMS

Integrated Design Process Conceptual Graph Schema Logical Design Logical Schema Object-oriented Design UML Class Diagram XML Schema (DTD) Document XML Schema (DTD) Design Physical Design Physical Schema Java SQL Implementation

Relational Database Design Graph Conceptual Design Logical Design (embedded relations) Logical Design (1 st normal form) Physical Design Implementation

Logical Design Each concept that aggregates other concepts becomes a relation. Each concept without characteristics becomes an atomic value (implied or explicit). Other concepts become non-relational domains.

Logical Schema Gene(name STRING, organism ORGANISM) Spot(gene GENE, grid GRID, position GRID_POSITION) Experiment(project STRING, run_date DATE, experimenter PERSON) Experiment_result(experiment EXPERIMENT, variant STRING, spot SPOT, value NUMBER)

Normal Forms Remove embedded relations (first normal form) Create unique identifiers (primary keys) for each relation if needed Create foreign key constraints to associate use of identifiers (foreign keys) with their relation (primary keys) Some cardinalities (many-to-many) may require helper relations.

Normalized Logical Schema Gene(id GENE_ID, name STRING, organism ORGANISM) Spot(id SPOT_ID, gene GENE_ID, grid GRID, position GRID_POSITION) Experiment(id EXPERIMENT_ID, project STRING, run_date DATE, experimenter PERSON) Experiment_result(experiment EXPERIMENT_ID, variant STRING, spot SPOT_ID, value NUMBER)  Every additional use of GENE_ID, SPOT_ID, EXPERIMENT_ID is a foreign key reference

Physical Design Define the physical data type for each domain that is not associated with a relation Define additional database constraints for uniqueness and cardinality

Physical Schema

Implementation create table gene ( idnumber(10) not null, namevarchar2(10), descriptionvarchar2(500), pathwayvarchar2(64), organismvarchar2(16)); create table spot ( id number(10) not null, gridnumber(10) not null, versionvarchar2(8), positionvarchar2(6) not null, genenumber(10) not null); create table experiment ( id number(10) not null, exper_condvarchar2(100), projectvarchar2(10), run_datedate, experimentorvarchar2(32)); create table exper_result ( id number(10) not null, spot number(10), experiment number(10) not null, variant varchar2(6), value number(8,4)); -- Constraints alter table gene add primary key (id); alter table spot add primary key (id); alter table experiment add primary key (id); alter table exper_result add primary key (id); alter table spot add constraint fk1_gene foreign key (gene) references gene (id); alter table exper_result add constraint fk1_exper_result foreign key (spot) references spot (id); alter table exper_result add constraint fk2_exper_result foreign key (experiment) references experiment (id);

Integrated Design Process Conceptual Graph Schema Logical Design Logical Schema Object-oriented Design UML Class Diagram Physical Design Physical Schema Java SQL Implementation XML Schema Document DTD Definition XML Document Document Design XML Schema Definition DTD Document

Micro-array Design Deliverables Gene(name STRING, organism ORGANISM) Spot(gene GENE, grid GRID, position GRID_POSITION) Experiment(project STRING, run_date DATE, experimenter PERSON) Experiment_result(experiment EXPERIMENT, variant STRING, spot SPOT, value NUMBER) XML Schema Empty XML Conceptual Graph Schema Logical Schema Physical Schema