chapter 4 the semantic object model david m. kroenke database processing © 2000 prentice hall

29
Chapter 4 The Semantic Object Model David M. Kroenke Database Processing © 2000 Prentice Hall

Upload: reynold-evans

Post on 18-Jan-2016

244 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Chapter 4 The Semantic Object Model David M. Kroenke Database Processing © 2000 Prentice Hall

Chapter 4The Semantic Object Model

David M. Kroenke

Database Processing

© 2000 Prentice Hall

Page 2: Chapter 4 The Semantic Object Model David M. Kroenke Database Processing © 2000 Prentice Hall

Chapter 4

© 2000 Prentice Hall

Semantic Objects

“a named collection of attributes that sufficiently describes a distinct entity”

• Student• Customer• Employee

Page 74

Page 3: Chapter 4 The Semantic Object Model David M. Kroenke Database Processing © 2000 Prentice Hall

Attributes“define the characteristics of

semantic objects”

Page 75Figure 4-2a © 2000 Prentice Hall

Page 4: Chapter 4 The Semantic Object Model David M. Kroenke Database Processing © 2000 Prentice Hall

Attribute Cardinality“indicates the minimum or maximum number

of instances of the attribute that must exist in order for the object to be valid”

Page 76Figure 4-2b © 2000 Prentice Hall

Page 5: Chapter 4 The Semantic Object Model David M. Kroenke Database Processing © 2000 Prentice Hall

Object Instances“the occurrence of a particular

semantic object”

Page 77Figure 4-3 © 2000 Prentice Hall

Page 6: Chapter 4 The Semantic Object Model David M. Kroenke Database Processing © 2000 Prentice Hall

Chapter 4

© 2000 Prentice Hall

Object Identifier

“one or more object attributes that the users employ to identify object instances”

Example: CustomerID for Customer

Page 78

Page 7: Chapter 4 The Semantic Object Model David M. Kroenke Database Processing © 2000 Prentice Hall

Chapter 4

© 2000 Prentice Hall

Domain

“a description of an attribute’s possible values”

Page 78

Page 8: Chapter 4 The Semantic Object Model David M. Kroenke Database Processing © 2000 Prentice Hall

Semantic Object View“the portion of an object that is

visible to a particular application; view”

Page 79Figure 4-4 © 2000 Prentice Hall

Page 9: Chapter 4 The Semantic Object Model David M. Kroenke Database Processing © 2000 Prentice Hall

Chapter 4

© 2000 Prentice Hall

Highline UniversityAdministration Database

• Objects:– College– Department– Professor– Student

Page 80

Page 10: Chapter 4 The Semantic Object Model David M. Kroenke Database Processing © 2000 Prentice Hall

Semantic Object Diagrams

Page 85Figure 4-13 (1) © 2000 Prentice Hall

Page 11: Chapter 4 The Semantic Object Model David M. Kroenke Database Processing © 2000 Prentice Hall

Semantic Object Diagrams

Page 85Figure 4-13 (2) © 2000 Prentice Hall

Page 12: Chapter 4 The Semantic Object Model David M. Kroenke Database Processing © 2000 Prentice Hall

Semantic Object Diagrams

Page 85Figure 4-13 (3) © 2000 Prentice Hall

Page 13: Chapter 4 The Semantic Object Model David M. Kroenke Database Processing © 2000 Prentice Hall

Semantic Object Diagrams

Page 85Figure 4-13 (4) © 2000 Prentice Hall

Page 14: Chapter 4 The Semantic Object Model David M. Kroenke Database Processing © 2000 Prentice Hall

Semantic Object Specifications

Page 86Figure 4-14 (1) © 2000 Prentice Hall

Page 15: Chapter 4 The Semantic Object Model David M. Kroenke Database Processing © 2000 Prentice Hall

Semantic Object Specifications

Page 86Figure 4-14 (2) © 2000 Prentice Hall

Page 16: Chapter 4 The Semantic Object Model David M. Kroenke Database Processing © 2000 Prentice Hall

Semantic Object Specifications

Page 86Figure 4-14 (3) © 2000 Prentice Hall

Page 17: Chapter 4 The Semantic Object Model David M. Kroenke Database Processing © 2000 Prentice Hall

Semantic Object Specifications

Page 86Figure 4-14 (4) © 2000 Prentice Hall

Page 18: Chapter 4 The Semantic Object Model David M. Kroenke Database Processing © 2000 Prentice Hall

Chapter 4

© 2000 Prentice Hall

Domain Types

• Formula• Group• Simple• Semantic Object

Page 87

Page 19: Chapter 4 The Semantic Object Model David M. Kroenke Database Processing © 2000 Prentice Hall

Domain Specifications

Page 87Figure 4-14b © 2000 Prentice Hall

Page 20: Chapter 4 The Semantic Object Model David M. Kroenke Database Processing © 2000 Prentice Hall

Simple Objects“contain only single-value, nonobject

attributes”

Page 89Figure 4-15 © 2000 Prentice Hall

Page 21: Chapter 4 The Semantic Object Model David M. Kroenke Database Processing © 2000 Prentice Hall

Composite Objects“contain one or more multi-value,

nonobject attributes”

Page 89Figure 4-16 © 2000 Prentice Hall

Page 22: Chapter 4 The Semantic Object Model David M. Kroenke Database Processing © 2000 Prentice Hall

Composite Object with Nested Groups

Page 89Figure 4-18 © 2000 Prentice Hall

Page 23: Chapter 4 The Semantic Object Model David M. Kroenke Database Processing © 2000 Prentice Hall

Hybrid Objects

“combinations of objects of two types”

Page 89Figure 4-22 © 2000 Prentice Hall

Page 24: Chapter 4 The Semantic Object Model David M. Kroenke Database Processing © 2000 Prentice Hall

Association Objects“relate two (or more) objects and

store data that are peculiar to that relationship”

Page 99Figure 4-26b © 2000 Prentice Hall

Page 25: Chapter 4 The Semantic Object Model David M. Kroenke Database Processing © 2000 Prentice Hall

Association Object Example

Page 100Figure 4-27b © 2000 Prentice Hall

Page 26: Chapter 4 The Semantic Object Model David M. Kroenke Database Processing © 2000 Prentice Hall

Subtype Object

Page 101Figure 4-28 © 2000 Prentice Hall

Page 27: Chapter 4 The Semantic Object Model David M. Kroenke Database Processing © 2000 Prentice Hall

Archetype/Version Object

Page 104Figure 4-31 © 2000 Prentice Hall

Page 28: Chapter 4 The Semantic Object Model David M. Kroenke Database Processing © 2000 Prentice Hall

Semantic vs. E-R Model

Page 105Figure 4-33 © 2000 Prentice Hall

Page 29: Chapter 4 The Semantic Object Model David M. Kroenke Database Processing © 2000 Prentice Hall

Semantic vs. E-R Model

Page 105Figure 4-34 © 2000 Prentice Hall