Download Lecture 4.2b Data schemas and formats. In

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
UB LIS 571 Soergel
Lecture 4.2b
Data Schemas and Formats
In-lecture exercise
Dagobert Soergel
Department of Library and Information Studies
Graduate School of Education
University at Buffalo
Includes audio
1
How to use these slides
repeated
• The lecture or exercise is divided into segments listed on Slide 3.
• Many slides have audio. To start the audio:
• Mouse over the speaker icon.
•
A familiar play-back control bar appears.
Click on ►to start, click on || to pause.
• Other slides have just instructions or are just to read
or direct you to read something.
• If you do not have MS PowerPoint 2010 or later
(also available for Mac), get it free from UB IT.
2
Outline
Title
Slides
Time
Introduction
Slide 4
1 minute
Step 1. List questions
Slide 5
2 minutes
Step2. Develop a draft conceptual data schema
Slides 6 - 13
15 minutes
Step 3. Revise the conceptual data schema
Slides 14 - 17
10 minutes
Step3 to the bitter end. Optional
Slides 18 - 23
12 minutes
Total
30 minutes + 12 min. optional
The main part of this exercise, Slides 5 – 21, uses the computer club example.
Review Lecture Notes p. 118 first
The audio for each slide is very short. It starts automatically.
3
Lecture 4.2b In-Lecture Exercise
Developing an E-R conceptual data schema
This exercise will take you through developing a conceptual data schema
in three steps:
1
Write down realistic questions to be expected from users
(ideally based on a user requirements study).
2
Develop a draft conceptual data schema: For each question, determine
∙ the pieces of information needed to answer it
∙ for each piece of information the entity types and the relationship type to represent it.
3
Revise the conceptual data schema, consolidating entity types and relationship types
where possible.
This will prepare for Assignment 6
4
Lecture 4.2b In-Lecture Exercise. Developing an E-R conceptual data schema.
Sample questions
Entity types
Step1. List questions
Relationship types
Whom do I call about a printer problem?
I am looking for a review of Microsoft Word 16
What is a good word processor for Red Hat Linux
I'm searching for an article about creating websites.
What graphics cards are available for the Lenovo W510?
Does SimCity work with the Invidia 700 graphics card?
I need a good large high-res color monitor for the MacBook Pro
Where can I get the best price for the Canon MF229dw. I need the
phone number.
When and where is the next meeting of the computer graphics interest
group?
5
Lecture 4.2b In-Lecture Exercise. Developing an E-R conceptual data schema.
Sample questions
Entity types
Step 2. Draft conceptual data schema
Relationship types
Whom do I call about a printer problem?
Person
Person <knowsAbout> Subject
I am looking for a review of Microsoft Word 16
Subject
Person <hasPhoneNumber> PhoneNumber
What is a good word processor for Red Hat Linux
PhoneNumber
I'm searching for an article about creating websites.
What graphics cards are available for the Lenovo W510?
Does SimCity work with the Invidia 700 graphics card?
I need a good large high-res color monitor for the MacBook Pro
Where can I get the best price for the Canon MF229dw. I need the
phone number.
When and where is the next meeting of the computer graphics
interest group?
6
Lecture 4.2b In-Lecture Exercise. Developing an E-R conceptual data schema.
Sample questions
Entity types
Step 2. Draft conceptual data schema
Relationship types
Whom do I call about a printer problem?
Person
Person <knowsAbout> Subject
I am looking for a review of Microsoft Word 16
Subject
Person <hasPhoneNumber> PhoneNumber
PhoneNumber
Document <belongsTo> DocumentType
Document
Document <dealsWith>
What is a good word processor for Red Hat Linux
When and where is the next meeting of the computer graphics
interest group?
SoftwareMake&Model
DocumentType
SoftwareMake&Model
What graphics cards are available for the Lenovo W510?
Does SimCity work with the Invidia 700 graphics card?
I'm searching for an article about creating websites.
I need a good large high-res color monitor for the MacBook Pro
Where can I get the best price for the Canon MF229dw. I need the
phone number.
When and where is the next meeting of the computer graphics
interest group?
7
Lecture 4.2b In-Lecture Exercise. Developing an E-R conceptual data schema.
Sample questions
Entity types
Step 2. Draft conceptual data schema
Relationship types
Whom do I call about a printer problem?
Person
Person <knowsAbout> Subject
I am looking for a review of Microsoft Word 16
Subject
Person <hasPhoneNumber> PhoneNumber
What is a good word processor for Red Hat Linux
PhoneNumber
Document <belongsTo> DocumentType
I'm searching for an article about creating websites.
Document
Document <dealsWith>
What graphics cards are available for the Lenovo W510?
DocumentType
SoftwareMake&Model <hasRating> QualityRating
Does SimCity work with the Invidia 700 graphics card?
SoftwareMake&Model
SoftwareM&M <servesFunction> SoftwareFunction
I need a good large high-res color monitor for the MacBook Pro
QualityRating
(Values: 0 – 5 stars)
SoftwareM&M <worksWith> SoftwareM&M
Where can I get the best price for the Canon MF229dw. I need the
phone number.
When and where is the next meeting of the computer graphics
interest group?
SoftwareMake&Model
SoftwareFunction
(Sample value: WordProcessing)
8
Lecture 4.2b In-Lecture Exercise. Developing an E-R conceptual data schema.
Sample questions
Entity types
Step 2. Draft conceptual data schema
Relationship types
Whom do I call about a printer problem?
Person
Person <knowsAbout> Subject
I am looking for a review of Microsoft Word 16
Subject
Person <hasPhoneNumber> PhoneNumber
What is a good word processor for Red Hat Linux
PhoneNumber
Document <belongsTo> DocumentType
I'm searching for an article about creating websites.
Document
Document <dealsWith>
What graphics cards are available for the Lenovo W510?
DocumentType
SoftwareMake&Model <hasRating> QualityRating
Does SimCity work with the Invidia 700 graphics card?
SoftwareMake&Model
SoftwareM&M <servesFunction> SoftwareFunction
I need a good large high-res color monitor for the MacBook Pro
QualityRating
(Values: 0 – 5 stars)
SoftwareM&M <worksWith> SoftwareM&M
Where can I get the best price for the Canon MF229dw. I need the
phone number.
When and where is the next meeting of the computer graphics
interest group?
SoftwareMake&Model
Document <dealsWith> Subject
SoftwareFunction
(Sample value: WordProcessing)
9
Lecture 4.2b In-Lecture Exercise. Developing an E-R conceptual data schema.
Sample questions
Entity types
Step 2. Draft conceptual data schema
Relationship types
Whom do I call about a printer problem?
Person
Person <knowsAbout> Subject
I am looking for a review of Microsoft Word 16
Subject
Person <hasPhoneNumber> PhoneNumber
What is a good word processor for Red Hat Linux
PhoneNumber
Document <belongsTo> DocumentType
I'm searching for an article about creating websites.
Document
Document <dealsWith>
What graphics cards are available for the Lenovo W510?
DocumentType
SoftwareMake&Model <hasRating> QualityRating
Does SimCity work with the Invidia 700 graphics card?
SoftwareMake&Model
SoftwareM&M <servesFunction> SoftwareFunction
I need a good large high-res color monitor for the MacBook Pro
QualityRating
(Values: 0 – 5 stars)
SoftwareM&M <worksWith> SoftwareM&M
Where can I get the best price for the Canon MF229dw. I need the
phone number.
When and where is the next meeting of the computer graphics
interest group?
SoftwareFunction
(Sample value: WordProcessing)
HardwareMake&Model
SoftwareMake&Model
Document <dealsWith> Subject
HardwareM&M <servesFunction> HardwareFunction
HardwareM&M <worksWith> HardwareM&M
HardwareFunction
(Sample value: GraphicsProcessing)
10
Lecture 4.2b In-Lecture Exercise. Developing an E-R conceptual data schema.
Sample questions
Entity types
Step 2. Draft conceptual data schema
Relationship types
Whom do I call about a printer problem?
Person
Person <knowsAbout> Subject
I am looking for a review of Microsoft Word 16
Subject
Person <hasPhoneNumber> PhoneNumber
What is a good word processor for Red Hat Linux
PhoneNumber
Document <belongsTo> DocumentType
I'm searching for an article about creating websites.
Document
Document <dealsWith>
What graphics cards are available for the Lenovo W510?
DocumentType
SoftwareMake&Model <hasRating> QualityRating
Does SimCity work with the Invidia 700 graphics card?
SoftwareMake&Model
SoftwareM&M <servesFunction> SoftwareFunction
I need a good large high-res color monitor for the MacBook Pro
QualityRating
(Values: 0 – 5 stars)
SoftwareM&M <worksWith> SoftwareM&M
Where can I get the best price for the Canon MF229dw. I need the
phone number.
When and where is the next meeting of the computer graphics
interest group?
SoftwareFunction
(Sample value: WordProcessing)
HardwareMake&Model
HardwareFunction
(Sample value: GraphicsProcessing)
SoftwareMake&Model
Document <dealsWith> Subject
HardwareM&M <servesFunction> HardwareFunction
HardwareM&M <worksWith> HardwareM&M
SoftwareM&M <worksWith> HardwareM&M
11
Lecture 4.2b In-Lecture Exercise. Developing an E-R conceptual data schema.
Sample questions
Entity types
Step 2. Draft conceptual data schema
Relationship types
Whom do I call about a printer problem?
Person
Person <knowsAbout> Subject
I am looking for a review of Microsoft Word 16
Subject
Person <hasPhoneNumber> PhoneNumber
PhoneNumber
Document <belongsTo> DocumentType
Document
Document <dealsWith>
I'm searching for an article about creating websites.
DocumentType
SoftwareMake&Model <hasRating> QualityRating
What graphics cards are available for the Lenovo W510?
SoftwareMake&Model
SoftwareM&M <servesFunction> SoftwareFunction
Does SimCity work with the Invidia 700 graphics card?
QualityRating
(Values: 0 – 5 stars)
SoftwareM&M <worksWith> SoftwareM&M
What is a good word processor for Red Hat Linux
I need a good large high-res color monitor for the MacBook Pro
Where can I get the best price for the Canon MF229dw. I need the
phone number.
When and where is the next meeting of the computer graphics
interest group?
SoftwareFunction
(Sample value: WordProcessing)
HardwareMake&Model
HardwareFunction
(Sample values: GraphicsProcessing,
GraphicsDisplay)
Characteristic
(Sample values: Size, Resolution, #Colors)
SoftwareMake&Model
Document <dealsWith> Subject
HardwareM&M <servesFunction> HardwareFunction
HardwareM&M <worksWith> HardwareM&M
SoftwareM&M <worksWith> HardwareM&M
HardwareM&M <hasRating> QualityRating
HardwareM&M <hasCharacteristic> (Characteristic, Value)
e.g. HardwareM&M <hasCharacteristic> (Size, 25")
12
Lecture 4.2b In-Lecture Exercise. Developing an E-R conceptual data schema.
Sample questions
Entity types
Step 2. Draft conceptual data schema
Relationship types
Person
Person <knowsAbout> Subject
Subject
Person <hasPhoneNumber> PhoneNumber
PhoneNumber
Document <belongsTo> DocumentType
Document
Document <dealsWith>
I'm searching for an article about creating websites.
DocumentType
SoftwareMake&Model <hasRating> QualityRating
What graphics cards are available for the Lenovo W510?
SoftwareMake&Model
SoftwareM&M <servesFunction> SoftwareFunction
Does SimCity work with the Invidia 700 graphics card?
QualityRating
(Values: 0 – 5 stars)
SoftwareM&M <worksWith> SoftwareM&M
Whom do I call about a printer problem?
I am looking for a review of Microsoft Word 16
What is a good word processor for Red Hat Linux
I need a good large high-res color monitor for the MacBook Pro
Where can I get the best price for the Canon MF229dw. I need
the phone number.
When and where is the next meeting of the computer graphics
interest group? (Done later in optional Slide 22)
SoftwareFunction
(Sample value: WordProcessing)
HardwareMake&Model
HardwareFunction
(Sample values: GraphicsProcessing,
GraphicsDisplay)
Characteristic
(Sample values: Size, Resolution, #Colors)
Organization
SoftwareMake&Model
Document <dealsWith> Subject
HardwareM&M <servesFunction> HardwareFunction
HardwareM&M <worksWith> HardwareM&M
SoftwareM&M <worksWith> HardwareM&M
HardwareM&M <hasRating> QualityRating
HardwareM&M <hasCharacteristic> (Characteristic, Value)
e.g. HardwareM&M <hasCharacteristic> (Size, 25")
HardwareM&M <hasPrice> (MoneyNumber, Organization)
Organization <hasPhoneNumber> PhoneNumber
MoneyNumber
13
Lecture 4.2b In-Lecture Exercise. Developing an E-R conceptual data schema.
Entity types
Relationship types
Person
Person <knowsAbout> Subject
Subject
Person <hasPhoneNumber> PhoneNumber
PhoneNumber
Document <belongsTo> DocumentType
Document
Document <dealsWith>
DocumentType
SoftwareMake&Model <hasRating> QualityRating
SoftwareMake&Model
SoftwareM&M <servesFunction> SoftwareFunction
QualityRating
(Values: 0 – 5 stars)
SoftwareM&M <worksWith> SoftwareM&M
SoftwareFunction
(Sample value: WordProcessing)
HardwareMake&Model
HardwareFunction
(Sample values: GraphicsProcessing,
GraphicsDisplay)
Characteristic
(Sample values: Size, Resolution,
#Colors)
Organization
Entity types, revised
Step 3. Revise conceptual data schema
Relationship types, revised
SoftwareMake&Model
Document <dealsWith> Subject
HardwareM&M <servesFunction> HardwareFunction
HardwareM&M <worksWith> HardwareM&M
SoftwareM&M <worksWith> HardwareM&M
HardwareM&M <hasRating> QualityRating
HardwareM&M <hasCharacteristic> (Characteristic, Value)
e.g. HardwareM&M <hasCharacteristic> (Size, 25")
HardwareM&M <hasPrice> (MoneyNumber, Organization)
Organization <hasPhoneNumber> PhoneNumber
MoneyNumber
14
Lecture 4.2b In-Lecture Exercise. Developing an E-R conceptual data schema.
Entity types
Relationship types
Person
Person <knowsAbout> Subject
Subject
Person <hasPhoneNumber> PhoneNumber
PhoneNumber
Document <belongsTo> DocumentType
Document
Document <dealsWith>
DocumentType
SoftwareMake&Model <hasRating> QualityRating
SoftwareMake&Model
SoftwareM&M <servesFunction> SoftwareFunction
QualityRating
(Values: 0 – 5 stars)
SoftwareM&M <worksWith> SoftwareM&M
SoftwareFunction
(Sample value: WordProcessing)
HardwareMake&Model
HardwareFunction
(Sample values: GraphicsProcessing,
GraphicsDisplay)
Characteristic
(Sample values: Size, Resolution,
#Colors)
Organization
Entity types, revised
LegalEntity
Person
Organization
Step 3. Revise conceptual data schema
Relationship types, revised
LegalEntity <hasPhoneNumber> PhoneNumber
PhoneNumber
SoftwareMake&Model
Document <dealsWith> Subject
HardwareM&M <servesFunction> HardwareFunction
HardwareM&M <worksWith> HardwareM&M
SoftwareM&M <worksWith> HardwareM&M
HardwareM&M <hasRating> QualityRating
HardwareM&M <hasCharacteristic> (Characteristic, Value)
e.g. HardwareM&M <hasCharacteristic> (Size, 25")
HardwareM&M <hasPrice> (MoneyNumber, Organization)
Organization <hasPhoneNumber> PhoneNumber
MoneyNumber
15
Lecture 4.2b In-Lecture Exercise. Developing an E-R conceptual data schema.
Entity types
Relationship types
Person
Person <knowsAbout> Subject
Subject
Person <hasPhoneNumber> PhoneNumber
PhoneNumber
Document <belongsTo> DocumentType
Document
Document <dealsWith>
DocumentType
SoftwareMake&Model <hasRating> QualityRating
SoftwareMake&Model
SoftwareM&M <servesFunction> SoftwareFunction
QualityRating
(Values: 0 – 5 stars)
SoftwareM&M <worksWith> SoftwareM&M
SoftwareFunction
(Sample value: WordProcessing)
HardwareMake&Model
HardwareFunction
(Sample values: GraphicsProcessing,
GraphicsDisplay)
Characteristic
(Sample values: Size, Resolution,
#Colors)
Organization
SoftwareMake&Model
Document <dealsWith> Subject
Step 3. Revise conceptual data schema
Entity types, revised
LegalEntity
Person
Organization
Relationship types, revised
LegalEntity <hasPhoneNumber> PhoneNumber
PhoneNumber
ProductMake&Model
ProductM&M <hasRating> QualityRating
QualityRating
(Values: 0 – 5 stars)
ProductFunction
(Sample values: WordProcessing,
GraphicsProcessing, GraphicsDisplay)
ProductM&M <servesFunction> ProductFunction
HardwareM&M <servesFunction> HardwareFunction
HardwareM&M <worksWith> HardwareM&M
SoftwareM&M <worksWith> HardwareM&M
HardwareM&M <hasRating> QualityRating
HardwareM&M <hasCharacteristic> (Characteristic, Value)
e.g. HardwareM&M <hasCharacteristic> (Size, 25")
HardwareM&M <hasPrice> (MoneyNumber, Organization)
Organization <hasPhoneNumber> PhoneNumber
MoneyNumber
16
Lecture 4.2b In-Lecture Exercise. Developing an E-R conceptual data schema.
Entity types
Relationship types
Person
Person <knowsAbout> Subject
Subject
Person <hasPhoneNumber> PhoneNumber
PhoneNumber
Document <belongsTo> DocumentType
Document
Document <dealsWith>
DocumentType
SoftwareMake&Model <hasRating> QualityRating
SoftwareMake&Model
SoftwareM&M <servesFunction> SoftwareFunction
QualityRating
(Values: 0 – 5 stars)
SoftwareM&M <worksWith> SoftwareM&M
SoftwareFunction
(Sample value: WordProcessing)
HardwareMake&Model
HardwareFunction
(Sample values: GraphicsProcessing,
GraphicsDisplay)
Characteristic
(Sample values: Size, Resolution,
#Colors)
Organization
SoftwareMake&Model
Document <dealsWith> Subject
HardwareM&M <servesFunction> HardwareFunction
Step 3. Revise conceptual data schema
Entity types, revised
LegalEntity
Person
Organization
Relationship types, revised
LegalEntity <hasPhoneNumber> PhoneNumber
PhoneNumber
ProductMake&Model
ProductM&M <hasRating> QualityRating
QualityRating
(Values: 0 – 5 stars)
ProductFunction
(Sample values: WordProcessing,
GraphicsProcessing, GraphicsDisplay)
ProductM&M <servesFunction> ProductFunction
ProductM&M <worksWith> ProductM&M
HardwareM&M <worksWith> HardwareM&M
SoftwareM&M <worksWith> HardwareM&M
HardwareM&M <hasRating> QualityRating
HardwareM&M <hasCharacteristic> (Characteristic, Value)
e.g. HardwareM&M <hasCharacteristic> (Size, 25")
HardwareM&M <hasPrice> (MoneyNumber, Organization)
Organization <hasPhoneNumber> PhoneNumber
MoneyNumber
17
Lecture 4.2b In-Lecture Exercise
Developing an E-R conceptual data schema
• The revision of the conceptual data schema is not complete, but by now you should have the general idea
• The remaining slides for the guided exercise (19 – 23) are optional.
• Slides 24 and following point to further course materials on developing an E-R conceptual data schema.
Look at these only if you are specially interested in designing databases
18
Lecture 4.2b In-Lecture Exercise. Developing an E-R conceptual data schema.
Entity types
Relationship types
Person
Person <knowsAbout> Subject
Subject
Person <hasPhoneNumber> PhoneNumber
PhoneNumber
Document <belongsTo> DocumentType
Document
Document <dealsWith>
DocumentType
SoftwareMake&Model <hasRating> QualityRating
SoftwareMake&Model
SoftwareM&M <servesFunction> SoftwareFunction
QualityRating
(Values: 0 – 5 stars)
SoftwareM&M <worksWith> SoftwareM&M
SoftwareFunction
(Sample value: WordProcessing)
HardwareMake&Model
HardwareFunction
(Sample values: GraphicsProcessing,
GraphicsDisplay)
Characteristic
(Sample values: Size, Resolution,
#Colors)
Organization
SoftwareMake&Model
Document <dealsWith> Subject
HardwareM&M <servesFunction> HardwareFunction
Step 3. Revise conceptual data schema
Entity types, revised
LegalEntity
Person
Organization
Relationship types, revised
LegalEntity <hasPhoneNumber> PhoneNumber
PhoneNumber
ProductMake&Model
ProductM&M <hasRating> QualityRating
QualityRating
(Values: 0 – 5 stars)
ProductFunction
(Sample values: WordProcessing,
GraphicsProcessing, GraphicsDisplay)
ProductM&M <servesFunction> ProductFunction
ProductM&M <worksWith> ProductM&M
HardwareM&M <worksWith> HardwareM&M
SoftwareM&M <worksWith> HardwareM&M
HardwareM&M <hasRating> QualityRating
HardwareM&M <hasCharacteristic> (Characteristic, Value)
e.g. HardwareM&M <hasCharacteristic> (Size, 25")
HardwareM&M <hasPrice> (MoneyNumber, Organization)
Organization <hasPhoneNumber> PhoneNumber
MoneyNumber
19
Lecture 4.2b In-Lecture Exercise. Developing an E-R conceptual data schema.
Entity types
Relationship types
Person
Person <knowsAbout> Subject
Subject
Person <hasPhoneNumber> PhoneNumber
PhoneNumber
Document <belongsTo> DocumentType
Document
Document <dealsWith>
DocumentType
SoftwareMake&Model <hasRating> QualityRating
SoftwareMake&Model
SoftwareM&M <servesFunction> SoftwareFunction
QualityRating
(Values: 0 – 5 stars)
SoftwareM&M <worksWith> SoftwareM&M
SoftwareFunction
(Sample value: WordProcessing)
HardwareMake&Model
HardwareFunction
(Sample values: GraphicsProcessing,
GraphicsDisplay)
Characteristic
(Sample values: Size, Resolution,
#Colors)
Organization
SoftwareMake&Model
Document <dealsWith> Subject
Entity types, revised
LegalEntity
Person
Organization
SoftwareM&M <worksWith> HardwareM&M
HardwareM&M <hasRating> QualityRating
Relationship types, revised
LegalEntity <hasPhoneNumber> PhoneNumber
PhoneNumber
ProductMake&Model
ProductM&M <hasRating> QualityRating
QualityRating
(Values: 0 – 5 stars)
ProductFunction
(Sample values: WordProcessing,
GraphicsProcessing, GraphicsDisplay)
HardwareM&M <servesFunction> HardwareFunction
HardwareM&M <worksWith> HardwareM&M
Step 3. Revise conceptual data schema
ProductM&M <servesFunction> ProductFunction
ProductM&M <worksWith> ProductM&M
Subject
LegalEntity <knowsAbout> Subject
Document
Document <dealsWith>
ProductM&M
Document <dealsWith> Subject
HardwareM&M <hasCharacteristic> (Characteristic, Value)
e.g. HardwareM&M <hasCharacteristic> (Size, 25")
HardwareM&M <hasPrice> (MoneyNumber, Organization)
Organization <hasPhoneNumber> PhoneNumber
MoneyNumber
20
Lecture 4.2b In-Lecture Exercise. Developing an E-R conceptual data schema.
Entity types
Relationship types
Person
Person <knowsAbout> Subject
Subject
Person <hasPhoneNumber> PhoneNumber
PhoneNumber
Document <belongsTo> DocumentType
Document
Document <dealsWith>
DocumentType
SoftwareMake&Model <hasRating> QualityRating
SoftwareMake&Model
SoftwareM&M <servesFunction> SoftwareFunction
QualityRating
(Values: 0 – 5 stars)
SoftwareM&M <worksWith> SoftwareM&M
SoftwareFunction
(Sample value: WordProcessing)
HardwareMake&Model
HardwareFunction
(Sample values: GraphicsProcessing,
GraphicsDisplay)
Characteristic
(Sample values: Size, Resolution,
#Colors)
Organization
MoneyNumber
SoftwareMake&Model
Document <dealsWith> Subject
Entity types, revised
LegalEntity
Person
Organization
Step 3. Revise conceptual data schema
Relationship types, revised
LegalEntity <hasPhoneNumber> PhoneNumber
PhoneNumber
ProductMake&Model
ProductM&M <hasRating> QualityRating
QualityRating
(Values: 0 – 5 stars)
ProductFunction
(Sample values: WordProcessing,
GraphicsProcessing, GraphicsDisplay)
HardwareM&M <servesFunction> HardwareFunction
ProductM&M <servesFunction> ProductFunction
ProductM&M <worksWith> ProductM&M
HardwareM&M <worksWith> HardwareM&M
Subject
LegalEntity <knowsAbout> Subject
SoftwareM&M <worksWith> HardwareM&M
Document
Document <dealsWith>
HardwareM&M <hasRating> QualityRating
HardwareM&M <hasCharacteristic> (Characteristic, Value)
e.g. HardwareM&M <hasCharacteristic> (Size, 25")
HardwareM&M <hasPrice> (MoneyNumber, Organization)
Organization <hasPhoneNumber> PhoneNumber
ProductM&M
Document <dealsWith> Subject
DocumentType
Document <belongsTo> DocumentType
Characteristic
(Sample values: Size, Resolution,
#Colors)
ProductM&M <hasCharacteristic> (Characteristic, Value)
MoneyNumber
ProductM&M <hasPrice> (MoneyNumber, LegalEntity)
21
Lecture 4.2b In-Lecture Exercise. Developing a conceptual data schema. Elaboration (optional)
Sample questions
When and where is the next meeting of the computer graphics
interest group?
Entity types
Relationship types
PointInTime
Event <hasStartEnd> (PointInTime, PointInTime)
Place
Event <hasPlace> Place
Event
Event <belongsTo> EventType
EventType
Event <associatedWith> Organization
Organization
22
Lecture 4.2b In-Lecture Exercise. Developing a conceptual data schema. Elaboration (optional)
Sample question
Entity types
Relationship types
What is the phone number of legal entity (person or
organization) X?
SImple (simplistic) version
LegalEntity
Statements formed with the relationship type in this simple
form do not give enough information. They do not answer
• Personal or business phone?
• Mobile or land line?
• Voice or fax?
PhoneNumber
Complete version
Add entity types
Make a multi-way relationship
PersonalOrBusiness
(just two values: Personal and Business)
MobileOrLand
LegalEntity <hasPhoneNumber> PhoneNumber
LegalEntity <hasPhoneNumber>
(PhoneNumber, PersonalOrBusiness,
MobileOrLand, VoiceOrFax)
VoiceOrFax
23
Related documents