Ted Codd s Relational Model Derivability, Redundancy, and Consistency of Relations Stored in Large Data Banks, IBM Research Report RJ 599 ( August 19t

Similar documents
ebook 165-5

untitled

WTO

59-81

「人名權威檔」資料庫欄位建置表

( Version 0.4 ) 1

Microsoft PowerPoint ARIS_Platform_en.ppt

豐佳燕.PDF

摘 要 張 捷 明 是 台 灣 當 代 重 要 的 客 語 兒 童 文 學 作 家, 他 的 作 品 記 錄 著 客 家 人 的 思 想 文 化 與 觀 念, 也 曾 榮 獲 多 項 文 學 大 獎 的 肯 定, 對 台 灣 這 塊 土 地 上 的 客 家 人 有 著 深 厚 的 情 感 張 氏 於

Microsoft Word - SH doc

M M. 20

Microsoft PowerPoint - NCBA_Cattlemens_College_Darrh_B

Preface This guide is intended to standardize the use of the WeChat brand and ensure the brand's integrity and consistency. The guide applies to all d

<4D F736F F D205F FB942A5CEA668B443C5E9BB73A740B5D8A4E5B8C9A552B1D0A7F75FA6BFB1A4ACFC2E646F63>


A Study on JI Xiaolan s ( ) Life, Couplets and Theories of Couplets 紀 曉 嵐 ( ) 生 平 資 料 斠 正 及 對 聯 聯 論 研 究 LI Ha 李 夏 THE UNIVER

Questions and Answers

穨control.PDF


untitled

學 科 100% ( 為 單 複 選 題, 每 題 2.5 分, 共 100 分 ) 1. 請 參 閱 附 圖 作 答 : (A) 選 項 A (B) 選 項 B (C) 選 項 C (D) 選 項 D Ans:D 2. 下 列 對 於 資 料 庫 正 規 化 (Normalization) 的 敘

Microsoft Word doc

<4D F736F F D D3620B3AFB24DA8712DB747AFE0AC46A9B2BB50A4BDB0C8ADDBB27AA4A7B1B4B0512E646F63>

Microsoft PowerPoint - IAS 21 - IFRS宣導會.pptx

南華大學數位論文

穨423.PDF


UDC The Policy Risk and Prevention in Chinese Securities Market

國 史 館 館 刊 第 23 期 Chiang Ching-kuo s Educational Innovation in Southern Jiangxi and Its Effects ( ) Abstract Wen-yuan Chu * Chiang Ching-kuo wa

USPTO Academic research Corporate needs Global/International Inventors Libraries News Media/Publication Patent Attorney or Agent USPTO e (ebusiness Ce

4. 每 组 学 生 将 写 有 习 语 和 含 义 的 两 组 卡 片 分 别 洗 牌, 将 顺 序 打 乱, 然 后 将 两 组 卡 片 反 面 朝 上 置 于 课 桌 上 5. 学 生 依 次 从 两 组 卡 片 中 各 抽 取 一 张, 展 示 给 小 组 成 员, 并 大 声 朗 读 卡


Microsoft Word - TIP006SCH Uni-edit Writing Tip - Presentperfecttenseandpasttenseinyourintroduction readytopublish

PowerPoint Presentation

Microsoft PowerPoint - STU_EC_Ch08.ppt

University of Science and Technology of China A dissertation for master s degree Research of e-learning style for public servants under the context of

南華大學數位論文

考試學刊第10期-內文.indd

Shanghai International Studies University THE STUDY AND PRACTICE OF SITUATIONAL LANGUAGE TEACHING OF ADVERB AT BEGINNING AND INTERMEDIATE LEVEL A Thes

Microsoft Word - 05 許雪姬3校稿0123.doc

投影片 1

Time Estimation of Occurrence of Diabetes-Related Cardiovascular Complications by Ching-Yuan Hu A thesis submitted in partial fulfillment of the requi

ENGG1410-F Tutorial 6

<4D F736F F D20312E5FA473AEFCB867AED5AA605FBB50B04BCFC8AABAAFABB8DCACE3A8732E646F63>

國立中山大學學位論文典藏.PDF

% % % % % % ~

2015年4月11日雅思阅读预测机经(新东方版)

2015 Chinese FL Written examination

曹美秀.pdf

高中英文科教師甄試心得


國立中山大學學位論文典藏.PDF



論文封面

(Geographic data or geodata ) 30 (Buelher, K and L. Mckee1996) (Open GIS Consortium OGC) OGC GIS Open GIS OGC (Geography Markup Langu

~ ~ ~

文档 9

東吳大學


1


Microsoft Word - 口試本封面.doc

從詩歌的鑒賞談生命價值的建構


厦 门 大 学 学 位 论 文 原 创 性 声 明 本 人 呈 交 的 学 位 论 文 是 本 人 在 导 师 指 导 下, 独 立 完 成 的 研 究 成 果 本 人 在 论 文 写 作 中 参 考 其 他 个 人 或 集 体 已 经 发 表 的 研 究 成 果, 均 在 文 中 以 适 当 方

Microsoft Word - A_Daily

Microsoft Word - 論文封面 修.doc

coverage2.ppt

Microsoft Word - A_Daily


快乐蜂(Jollibee)快餐连锁店 的国际扩张历程

1505.indd

<4D F736F F D DA950A9FABBF62DA56AA8E5A4E5BEC7A4A42E646F63>

untitled

%

Microsoft Word - 11月電子報1130.doc


中國飲食色彩初探

. 1 4 Web PAD

01何寄澎.doc

关 于 瓶 装 水, 你 不 得 不 知 的 8 件 事 情 关 于 瓶 装 水, 你 不 得 不 知 的 8 件 事 情 1 水 质 : 瓶 装 的, 不 一 定 就 是 更 好 的 2 生 产 : 监 管 缺 位, 消 费 者 暴 露 于 风 险 之 中 人 们 往 往 假 定 瓶 装 水 是

<4D F736F F D2035B171AB73B6CBA8ECAB73A6D3A4A3B6CBA158B3AFA46CA9F9BB50B169A445C4D6AABAB750B94AB8D6B9EFA4F1ACE3A873>

Analysis of Cultural Elements of Meinong s Paper Umbrella Painting Abstract Meinong paper umbrellas are a traditional industrial art for the Hakka peo

曹 文 轩 小 说 中 的 空 间 叙 事 研 究 A STUDY OF SPATIAL NARRATIVE IN CAO WEN XUAN S NOVELS By 陈 诗 蓉 TAN SIH YONG 本 论 文 乃 获 取 文 学 硕 士 学 位 ( 中 文 系 ) 的 部 分 条 件 A di

Microsoft Word - A_Daily

untitled

Improved Preimage Attacks on AES-like Hash Functions: Applications to Whirlpool and Grøstl

has become a rarity. In other words, the water resources that supply the needs in Taiwan depend crucially on the reservoirs built at least more than t

ch_code_infoaccess

Transcription:

Topic 2: Semantic Data Model

Ted Codd s Relational Model Derivability, Redundancy, and Consistency of Relations Stored in Large Data Banks, IBM Research Report RJ 599 ( August 19th, 1969) A Relational Model of Data for Large Shared Data Banks, CACM 13, No.6 (June 1970)

Ted Codd s Data Model Incidentally, it s not as widely known as it should be that Ted not only invented the relational model in particular, he invented the whole concept of a data model in general. See his paper: Data models in Database Management, ACM SIGMOD Record 11, No.2 (Feb 1981)

Ted Codd s essentiality to The Great Debate The Great Debate the official title was Data Models: Data-Structure-Set vs. Relational was a special event held at the 1974 SIGMOD Workshop Information Principle: The entire information content of a relational database is represented in one and only one way: namely, as attribute values within tuples within relations

See SIGMOD Record, Vol.32, No.4, Dec 2003 A new formal definition of the relation model Briefly, the relational model consists of five components: An open-ended collection of scalar types (including the type boolean or truth value) A relation type generator Facilities for defining relation variables of such generated relation types A relational assignment operation for assigning relation values to such relation variables An open-ended collection of generic relational operators ( the relational algebra ) for deriving relation values from other relation values

C.J. Date :, C J Date

Relationship( has-subtype) has-attribute) instance) Data abstraction Constraints Unstructured objects Dynamic properties of an application

1 EER RM/T

2 SHM ADD LGDM SAM SDM RM/T SHM+ TAXIS Event Model : Semantic Data Models, ACM Computing Surveys, Vol.20(3),1988

---From Lowell Report Challenge Integration of Text, Data, Code, and Streams Structured data Text, space, time, image, and multimedia data Procedural data, that is data types and the methods that encapsulate them Triggers Data Streams and queues

Entity-Relationship Model ER model was proposed by Peter Chen in 1976. Many extensions have been made (Extended Entity-Relationship model or EER model). There is a dedicated International Conference on ER Approach. ER model has become de facto standard tool for conceptual schema design.

Extended ER Model (EER Model) Various extensions to ER model exist. We introduce two extensions: More accurate connectivity description. Generalization/specialization hierarchy. Aggregation

Multiplicity for Complex Relationships(1) One in ER model means zero or one. Many in ER model means zero or more. Multiplicity: The number (or range) of possible occurrences of an entity type in an n- ary relationaship when the other(n-1) values are fixed Students (1, 5) (5, takes 60) Courses

Multiplicity for Complex General format: Relationships(2) E (min_card, max_card) R 0 <= min_card <= max_card Interpretation: Each entity in E may involve between min_card and max_card relationships in R.

Multiplicity for Complex Relationships(3) Alternative ways to represent multiplicity constraints 0,1 zero or one entity occurrence 1,1 Exactly one entity occurrence 0,* zero or many entity occurrence 1,* one or many entity occurrence 5,60 min of 5 up to max of 60 entity 0,3,6-8

Cardinality and Participation Constraint (1) Multiplicity actually consists of two separate constraints know as Cardinality and Participation constraints Cardinality: describes the max number of possible relationship occurrences for an entity participating in a given relationship type Cardinality of a binary relationship is what we previously referred to as a one-to-one, one-to-many, and many-to-many

Cardinality and Participation Constraint (2) Participation: Determines whether all or only some entity occurrences participate in a relationship A Participation constrain represents whether all entity occurrences are involved in a particular relationship (ref. to as mandatory participation) or only some (ref. to as optional participation)

Cardinality and Participation Constraint (3) Definition: If every entity in E involves at least one relationship in R (i.e., min_card >= 1), E is said to have total (or mandatory) participation in R. If min_card = 0, E is said to have partial (or optional) participation in R.

Cardinality and Participation Constraint (4) Employees has a partial participation. Departments has a total participation. One emp manages One dept Cardinality One dept is managed By one emp Employees (0, 1) (1,1) manages Departments Not all emp All dept are managed Manage dept (optional) (mandatory) Participation

One emp manages One dept Cardinality One dept is managed By one emp Employees (1, 1) (0,1) manages Departments All emp Manage dept (Mandatory) Not all dept are managed (optional) Participation

Representing 1-to-1, 1-to-m, m-to-m Relationships one-to-one: many-to-many: one-to-many: E (0, 1) R (0, 1) F E (0, m) R (0, n) F E (0, m) R (0,1) F E 1 R m F

Problems with ER Models Problems may arise when designing a conceptual data model called connection traps. Often due to a misinterpretation of the meaning of certain relationships. Two main types of connection traps are called fan traps and chasm traps.

Problems with ER Models Fan Trap Where a model represents a relationship between entity types, but pathway between certain entity occurrences is ambiguous. Chasm Trap Where a model suggests the existence of a relationship between entity types, but pathway does not exist between certain entity occurrences.

An Example of a Fan Trap

Semantic Net of ER Model with Fan Trap At which branch office does staff number SG37 work?

Restructuring ER Model to Remove Fan Trap

Semantic Net of Restructured ER Model with Fan Trap Removed SG37 works at branch B003.

An Example of a Chasm Trap

Semantic Net of ER Model with Chasm Trap At which branch office is property PA14 available?

ER Model Restructured to Remove Chasm Trap

Semantic Net of Restructured ER Model with Chasm Trap Removed

Generalization (1) Definition: Generalization is the process of defining a generalized entity type from a given type of semantically related entity sets. GPA SSN Name GRE GPA SSN Name SAT G_Students UG_Students

Generalization (2) SSN Name GPA Students G_Students UG_Students GRE SAT

Generalization (3) Students is a super entity type (supertype, supperclass) G_Students and UG_Students are sub entity types (subtypes, subclass) Super entity type has only and all common attributes of sub entity types. Inheritance Principle: A sub entity type inherits all properties (attributes and relationships) from the super entity type.

Specialization Definition: Specialization is the process of defining a specialized entity types from a given entity type. IS_A semantics: every entity in a sub entity type is also an entity in the super entity type. Generalization and specialization hierarchies are called IS_A hierarchies.

AllStaff Relation Holding Details of all Staff

Specialization/Generalization of Staff Entity into Subclasses Representing Job Roles

Constraints on Specialization / Generalization Two constraints that may apply to a specialization/generalization: participation constraints, disjoint constraints. Participation constraint Determines whether every member in superclass must participate as a member of a subclass. May be mandatory or optional.

Constraints on Specialization / Generalization Disjoint constraint Describes relationship between members of the subclasses and indicates whether member of a superclass can be a member of one, or more than one, subclass. May be Disjoint (Or): can be a member of only one of the subclass nondisjoint(and): can be a member of more than one subclass

Constraints on Specialization / Generalization There are four categories of constraints of specialization and generalization: mandatory and disjoint; optional and disjoint; mandatory and nondisjoint; optional and nondisjoint.

Specialization/Generalization of Staff Entity into Subclasses Representing Job Roles

Specialization/Generalization of Staff Entity into Job Roles and Contracts of Employment

EER Diagram with Shared Subclass and Subclass with its own Subclass

DreamHome Worked Example - Staff Superclass with Supervisor and Manager Subclasses http://cwx.prenhall.com/bookbind/pubbooks/ema_he_uk_connolly_da tasys_3/chapter10/deluxe.html

DreamHome Worked Example - Owner Superclass with PrivateOwner and BusinessOwner Subclasses

DreamHome Worked Example - Person Superclass with Staff, PrivateOwner, and Client Subclasses

Guidelines for Representation of Superclass / Subclass Relationship See page 451

DreamHome Worked Example - {Mandatory, And} AllOwner(ownerNo, address, telno,fname, lname, bname, btype, pownerflag, bownerflag)

DreamHome Worked Example - {Optional, And} Owner(ownerNo, address, telno) OwnerDetail(ownerNo,,bType, pownerflag, bownerflag)

DreamHome Worked Example - {Mandatory, Or} PriviteOwner(ownerNo,Name, address, telno) BusinessOwnerDetail(ownerNo,bName,bType, address, telno)

DreamHome Worked Example - {Optional, Or} Owner(ownerNo, address, telno) PriviteOwner(ownerNo, Name, address, telno) reference Owner(ownerNo) BusinessOwnerDetail(ownerNo,bName,bType, address, telno)

Aggregation Represents a has-a or is-part-of relationship between entity types, where one represents the whole and the other the part.

Examples of Aggregation

Composition Specific form of aggregation that represents an association between entities, where there is a strong ownership and coincidental lifetime between the whole and the part.

Example of Composition

ER Diagram of Branch View of DreamHome