conceptual modeling - uow

39
CSIT115 Data Management and Security Conceptual Modeling Dr Janusz R. Getta School of Computing and Information Technology - University of Wollongong Conceptual Modeling file:///Users/jrg/115-2021-SPRING/LECTURES/04conceptualmodeling/04conceptualmodeling.html#2 1 of 39 18/7/21, 12:40 pm

Upload: others

Post on 16-Oct-2021

7 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Conceptual Modeling - UOW

  CSIT115 Data Management and Security

Conceptual ModelingDr Janusz R. Getta

School of Computing and Information Technology -University of Wollongong

Conceptual Modeling file:///Users/jrg/115-2021-SPRING/LECTURES/04conceptualmodeling/04conceptualmodeling.html#2

1 of 39 18/7/21, 12:40 pm

Page 2: Conceptual Modeling - UOW

Conceptual ModelingOutline

Methodology

Example 1

Example 2

Example 3

Example 4

TOP         Created by Janusz R. Getta, CSIT115 Data Management and Security, Spring 2021 2/39

Conceptual Modeling file:///Users/jrg/115-2021-SPRING/LECTURES/04conceptualmodeling/04conceptualmodeling.html#2

2 of 39 18/7/21, 12:40 pm

Page 3: Conceptual Modeling - UOW

Methodology

Input: Specification of the requirements (usually a natural languagedescription of a database domain)

Tools: Object Modeling graphical notation

Methods: Systematic transformation of individual components ofspecification of requirements into the components of Object Modelingnotation

Output: Conceptual schema - simplified object class diagram

TOP         Created by Janusz R. Getta, CSIT115 Data Management and Security, Spring 2021 3/39

Conceptual Modeling file:///Users/jrg/115-2021-SPRING/LECTURES/04conceptualmodeling/04conceptualmodeling.html#2

3 of 39 18/7/21, 12:40 pm

Page 4: Conceptual Modeling - UOW

Methodology

The transformations of specifications are performed in the followingsequence of steps:

Step 1: Creating classes of objects

Step 2: Creating associations and association classes

Step 3: Creating attributes and link attributes

Step 4: Creating identifiers

Step 5: Creating qualifications

Step 6: Creating generalizations

-

-

-

-

-

-

TOP         Created by Janusz R. Getta, CSIT115 Data Management and Security, Spring 2021 4/39

Conceptual Modeling file:///Users/jrg/115-2021-SPRING/LECTURES/04conceptualmodeling/04conceptualmodeling.html#2

4 of 39 18/7/21, 12:40 pm

Page 5: Conceptual Modeling - UOW

Conceptual ModelingOutline

Methodology

Example 1

Example 2

Example 3

Example 4

TOP         Created by Janusz R. Getta, CSIT115 Data Management and Security, Spring 2021 5/39

Conceptual Modeling file:///Users/jrg/115-2021-SPRING/LECTURES/04conceptualmodeling/04conceptualmodeling.html#2

5 of 39 18/7/21, 12:40 pm

Page 6: Conceptual Modeling - UOW

Example 1

An objective is to create a conceptual schema of a small database thatcontains information about employees and projects

A detailed specification is the following:A group of employees works on the projects

Some of employees supervise other employees

An employee is described by an employee number and their full name

A project is described by a project title, completion date and budget

Employees are identified by their employee numbers and projects are identifiedby the titles

-

-

-

-

-

TOP         Created by Janusz R. Getta, CSIT115 Data Management and Security, Spring 2021 6/39

Conceptual Modeling file:///Users/jrg/115-2021-SPRING/LECTURES/04conceptualmodeling/04conceptualmodeling.html#2

6 of 39 18/7/21, 12:40 pm

Page 7: Conceptual Modeling - UOW

Example 1

Step 1: Creating classes of objects

A group of employees works on the projects. Some of employeessupervise other employees. An employee is described by an employeenumber and full name. A project is described by a project title,completion date and budget. Employees are identified by theiremployee numbers and projects are identified by the titles

TOP         Created by Janusz R. Getta, CSIT115 Data Management and Security, Spring 2021 7/39

Conceptual Modeling file:///Users/jrg/115-2021-SPRING/LECTURES/04conceptualmodeling/04conceptualmodeling.html#2

7 of 39 18/7/21, 12:40 pm

Page 8: Conceptual Modeling - UOW

Example 1

Step 2: Creating associations and association classes

A group of employees works on the projects. Some of employeessupervise other employees. An employee is described by an employeenumber and full name. A project is described by a project title,completion date and budget. Employees are identified by theiremployee numbers and projects are identified by the titles

TOP         Created by Janusz R. Getta, CSIT115 Data Management and Security, Spring 2021 8/39

Conceptual Modeling file:///Users/jrg/115-2021-SPRING/LECTURES/04conceptualmodeling/04conceptualmodeling.html#2

8 of 39 18/7/21, 12:40 pm

Page 9: Conceptual Modeling - UOW

Example 1

Step 3: Creating attributes and link attributes

A group of employees works on the projects. Some of employeessupervise other employees. An employee is described by an employeenumber and full name. A project is described by a project title,completion date and budget. Employees are identified by theiremployee numbers and projects are identified by the titles

TOP         Created by Janusz R. Getta, CSIT115 Data Management and Security, Spring 2021 9/39

Conceptual Modeling file:///Users/jrg/115-2021-SPRING/LECTURES/04conceptualmodeling/04conceptualmodeling.html#2

9 of 39 18/7/21, 12:40 pm

Page 10: Conceptual Modeling - UOW

Example 1

Step 4: Creating identifiers

A group of employees works on the projects. Some of employeessupervise other employees. An employee is described by an employeenumber and full name. A project is described by a project title,completion date and budget. Employees are identified by theiremployee numbers and projects are identified by the titles

TOP         Created by Janusz R. Getta, CSIT115 Data Management and Security, Spring 2021 10/39

Conceptual Modeling file:///Users/jrg/115-2021-SPRING/LECTURES/04conceptualmodeling/04conceptualmodeling.html#2

10 of 39 18/7/21, 12:40 pm

Page 11: Conceptual Modeling - UOW

Example 1

Step 5: Creating qualifications

A group of employees works on the projects. Some of employeessupervise other employees. An employee is described by an employeenumber and full name. A project is described by a project title,completion date and budget. Employees are identified by theiremployee numbers and projects are identified by the titles

TOP         Created by Janusz R. Getta, CSIT115 Data Management and Security, Spring 2021 11/39

Conceptual Modeling file:///Users/jrg/115-2021-SPRING/LECTURES/04conceptualmodeling/04conceptualmodeling.html#2

11 of 39 18/7/21, 12:40 pm

Page 12: Conceptual Modeling - UOW

Example 1

Step 6: Creating generalizations

A group of employees works on the projects. Some of employeessupervise other employees. An employee is described by an employeenumber and full name. A project is described by a project title,completion date and budget. Employees are identified by theiremployee numbers and projects are identified by the titles

TOP         Created by Janusz R. Getta, CSIT115 Data Management and Security, Spring 2021 12/39

Conceptual Modeling file:///Users/jrg/115-2021-SPRING/LECTURES/04conceptualmodeling/04conceptualmodeling.html#2

12 of 39 18/7/21, 12:40 pm

Page 13: Conceptual Modeling - UOW

Conceptual ModelingOutline

Methodology

Example 1

Example 2

Example 3

Example 4

TOP         Created by Janusz R. Getta, CSIT115 Data Management and Security, Spring 2021 13/39

Conceptual Modeling file:///Users/jrg/115-2021-SPRING/LECTURES/04conceptualmodeling/04conceptualmodeling.html#2

13 of 39 18/7/21, 12:40 pm

Page 14: Conceptual Modeling - UOW

Example 2

An objective is to create a conceptual schema of a small database thatcontains information about publications such as journals andconference proceedings, published research papers and authors

A detailed specification is the following:A publishing company publishes the journals and conference proceedings

The research papers are included in the journals and proceedings

The company employs the general editors who take responsibility for editingthe research papers

A research paper is written by one or more authors

-

-

-

-

TOP         Created by Janusz R. Getta, CSIT115 Data Management and Security, Spring 2021 14/39

Conceptual Modeling file:///Users/jrg/115-2021-SPRING/LECTURES/04conceptualmodeling/04conceptualmodeling.html#2

14 of 39 18/7/21, 12:40 pm

Page 15: Conceptual Modeling - UOW

Example 2

Step 1: Creating classes of objects

A publishing company publishes the journals and conferenceproceedings. The research papers are included in the journals andproceedings. The company employs the general editors who takeresponsibility for editing the research papers. A research paper iswritten by one or more authors

TOP         Created by Janusz R. Getta, CSIT115 Data Management and Security, Spring 2021 15/39

Conceptual Modeling file:///Users/jrg/115-2021-SPRING/LECTURES/04conceptualmodeling/04conceptualmodeling.html#2

15 of 39 18/7/21, 12:40 pm

Page 16: Conceptual Modeling - UOW

Example 2

Step 2: Creating associations and association classes

A publishing company publishes the journals and conferenceproceedings. The research papers are included in the journals andproceedings. The company employs the general editors who takeresponsibility for editing the research papers. A research paper iswritten by one or more authors

TOP         Created by Janusz R. Getta, CSIT115 Data Management and Security, Spring 2021 16/39

Conceptual Modeling file:///Users/jrg/115-2021-SPRING/LECTURES/04conceptualmodeling/04conceptualmodeling.html#2

16 of 39 18/7/21, 12:40 pm

Page 17: Conceptual Modeling - UOW

Example 2

Step 3: Creating attributes and link attributes

A publishing company publishes the journals and conferenceproceedings. The research papers are included in the journals andproceedings. The company employs the general editors who takeresponsibility for editing the research papers. A research paper iswritten by one or more authors

TOP         Created by Janusz R. Getta, CSIT115 Data Management and Security, Spring 2021 17/39

Conceptual Modeling file:///Users/jrg/115-2021-SPRING/LECTURES/04conceptualmodeling/04conceptualmodeling.html#2

17 of 39 18/7/21, 12:40 pm

Page 18: Conceptual Modeling - UOW

Example 2

Step 4: Creating identifiers

A publishing company publishes the journals and conferenceproceedings. The research papers are included in the journals andproceedings. The company employs the general editors who takeresponsibility for editing the research papers. A research paper iswritten by one or more authors

TOP         Created by Janusz R. Getta, CSIT115 Data Management and Security, Spring 2021 18/39

Conceptual Modeling file:///Users/jrg/115-2021-SPRING/LECTURES/04conceptualmodeling/04conceptualmodeling.html#2

18 of 39 18/7/21, 12:40 pm

Page 19: Conceptual Modeling - UOW

Example 2

Step 5: Creating qualifications

A publishing company publishes the journals and conferenceproceedings. The research papers are included in the journals andproceedings. The company employs the general editors who takeresponsibility for editing the research papers. A research paper iswritten by one or more authors

TOP         Created by Janusz R. Getta, CSIT115 Data Management and Security, Spring 2021 19/39

Conceptual Modeling file:///Users/jrg/115-2021-SPRING/LECTURES/04conceptualmodeling/04conceptualmodeling.html#2

19 of 39 18/7/21, 12:40 pm

Page 20: Conceptual Modeling - UOW

Example 2

Step 6: Creating generalizations

A publishing company publishes the journals and conferenceproceedings. The research papers are included in the journals andproceedings. The company employs the general editors who takeresponsibility for editing the research papers. A research paper iswritten by one or more authors

Journal, proceedings IS-A publication

TOP         Created by Janusz R. Getta, CSIT115 Data Management and Security, Spring 2021 20/39

Conceptual Modeling file:///Users/jrg/115-2021-SPRING/LECTURES/04conceptualmodeling/04conceptualmodeling.html#2

20 of 39 18/7/21, 12:40 pm

Page 21: Conceptual Modeling - UOW

Conceptual ModelingOutline

Methodology

Example 1

Example 2

Example 3

Example 4

TOP         Created by Janusz R. Getta, CSIT115 Data Management and Security, Spring 2021 21/39

Conceptual Modeling file:///Users/jrg/115-2021-SPRING/LECTURES/04conceptualmodeling/04conceptualmodeling.html#2

21 of 39 18/7/21, 12:40 pm

Page 22: Conceptual Modeling - UOW

Example 3

An objective is to create a conceptual schema of a small database thatcontains information about the construction companies and buildingsbuilt by the companies

A detailed specification is the following:A group of construction companies is involved in the construction of industrialbuildings

A building is located at a different address, it has a unique name andcompletion date

A number of construction stages apply to each building

A construction stage is described by its name, the names of the constructioncompanies involved together with the start date, completion date and the totalcosts

A construction company is usually involved in many construction stages of thesame building

Many construction companies are involved in one construction stage

-

-

-

-

-

-

TOP         Created by Janusz R. Getta, CSIT115 Data Management and Security, Spring 2021 22/39

Conceptual Modeling file:///Users/jrg/115-2021-SPRING/LECTURES/04conceptualmodeling/04conceptualmodeling.html#2

22 of 39 18/7/21, 12:40 pm

Page 23: Conceptual Modeling - UOW

Example 3

Step 1: Creating classes of objects

A group of construction companies is involved in the construction ofindustrial buildings. A building is located at a different address, it has aunique name and completion date. A number of construction stagesapply to each building. A construction stage is described by its name, thenames of the construction companies involved together with the startdate, completion date and the total costs. A construction company isusually involved in many construction stages of the same building. Manyconstruction companies are involved in one construction stage

TOP         Created by Janusz R. Getta, CSIT115 Data Management and Security, Spring 2021 23/39

Conceptual Modeling file:///Users/jrg/115-2021-SPRING/LECTURES/04conceptualmodeling/04conceptualmodeling.html#2

23 of 39 18/7/21, 12:40 pm

Page 24: Conceptual Modeling - UOW

Example 3

Step 2: Creating associations and association classes

A group of construction companies is involved in the construction ofindustrial buildings. A building is located at a different address, it has aunique name and completion date. A number of construction stagesapply to each building. A construction stage is described by its name, thenames of the construction companies involved together with the startdate, completion date and the total costs. A construction company isusually involved in many construction stages of the same building. Manyconstruction companies are involved in one construction stage

TOP         Created by Janusz R. Getta, CSIT115 Data Management and Security, Spring 2021 24/39

Conceptual Modeling file:///Users/jrg/115-2021-SPRING/LECTURES/04conceptualmodeling/04conceptualmodeling.html#2

24 of 39 18/7/21, 12:40 pm

Page 25: Conceptual Modeling - UOW

Example 3

Step 2 (improved): Creating associations and association classes

A group of construction companies is involved in the construction ofindustrial buildings. A building is located at a different address, it has aunique name and completion date. A number of construction stagesapply to each building. A construction stage is described by its name, thenames of the construction companies involved together with the startdate, completion date and the total costs. A construction company isusually involved in many construction stages of the same building. Manyconstruction companies are involved in one construction stage

If a company is involved in a construction stage that applies to a buildingthen such company is involved in construction of the building

TOP         Created by Janusz R. Getta, CSIT115 Data Management and Security, Spring 2021 25/39

Conceptual Modeling file:///Users/jrg/115-2021-SPRING/LECTURES/04conceptualmodeling/04conceptualmodeling.html#2

25 of 39 18/7/21, 12:40 pm

Page 26: Conceptual Modeling - UOW

Example 3

Step 2 (improved): Creating associations and association classes

It means that we do not need an association Involved-in bettwen theclasses COMPANY and BUILDING because such association can bederived from the other two associations

TOP         Created by Janusz R. Getta, CSIT115 Data Management and Security, Spring 2021 26/39

Conceptual Modeling file:///Users/jrg/115-2021-SPRING/LECTURES/04conceptualmodeling/04conceptualmodeling.html#2

26 of 39 18/7/21, 12:40 pm

Page 27: Conceptual Modeling - UOW

Example 3

Step 3: Creating attributes and link attributes

A group of construction companies is involved in the construction ofindustrial buildings. A building is located at a different address, it has aunique name and completion date. A number of construction stagesapply to each building. A construction stage is described by its name, thenames of the construction companies involved together with the startdate, completion date and the total costs. A construction company isusually involved in many construction stages of the same building. Manyconstruction companies are involved in one construction stage

TOP         Created by Janusz R. Getta, CSIT115 Data Management and Security, Spring 2021 27/39

Conceptual Modeling file:///Users/jrg/115-2021-SPRING/LECTURES/04conceptualmodeling/04conceptualmodeling.html#2

27 of 39 18/7/21, 12:40 pm

Page 28: Conceptual Modeling - UOW

Example 3

Step 4: Creating identifiers

A group of construction companies is involved in the construction ofindustrial buildings. A building is located at a different address, it has aunique name and completion date. A number of construction stagesapply to each building. A construction stage is described by its name, thenames of the construction companies involved together with the startdate, completion date and the total costs. A construction company isusually involved in many construction stages of the same building. Manyconstruction companies are involved in one construction stage

What we know about the reality is that construction companies haveunique names

TOP         Created by Janusz R. Getta, CSIT115 Data Management and Security, Spring 2021 28/39

Conceptual Modeling file:///Users/jrg/115-2021-SPRING/LECTURES/04conceptualmodeling/04conceptualmodeling.html#2

28 of 39 18/7/21, 12:40 pm

Page 29: Conceptual Modeling - UOW

Example 3

Step 5: Creating qualifications

A group of construction companies is involved in the construction ofindustrial buildings. A building is located at a different address, it has aunique name and completion date. A number of construction stagesapply to each building. A construction stage is described by its name, thenames of the construction companies involved together with the startdate, completion date and the total costs. A construction company isusually involved in many construction stages of the same building. Manyconstruction companies are involved in one construction stage

What we also know about the reality is that a construction stage of abuilding starts once at a given moment in time

TOP         Created by Janusz R. Getta, CSIT115 Data Management and Security, Spring 2021 29/39

Conceptual Modeling file:///Users/jrg/115-2021-SPRING/LECTURES/04conceptualmodeling/04conceptualmodeling.html#2

29 of 39 18/7/21, 12:40 pm

Page 30: Conceptual Modeling - UOW

Example 3

Step 6: Creating generalizations

A group of construction companies is involved in the construction ofindustrial buildings. A building is located at a different address, it has aunique name and completion date. A number of construction stagesapply to each building. A construction stage is described by its name, thenames of the construction companies involved together with the startdate, completion date and the total costs. A construction company isusually involved in many construction stages of the same building. Manyconstruction companies are involved in one construction stage

TOP         Created by Janusz R. Getta, CSIT115 Data Management and Security, Spring 2021 30/39

Conceptual Modeling file:///Users/jrg/115-2021-SPRING/LECTURES/04conceptualmodeling/04conceptualmodeling.html#2

30 of 39 18/7/21, 12:40 pm

Page 31: Conceptual Modeling - UOW

Conceptual ModelingOutline

Methodology

Example 1

Example 2

Example 3

Example 4

TOP         Created by Janusz R. Getta, CSIT115 Data Management and Security, Spring 2021 31/39

Conceptual Modeling file:///Users/jrg/115-2021-SPRING/LECTURES/04conceptualmodeling/04conceptualmodeling.html#2

31 of 39 18/7/21, 12:40 pm

Page 32: Conceptual Modeling - UOW

Example 4

An objective is to create a conceptual schema for a database domaindescribed by the following poem for kids

"Caterpillar"

by Christina Rossetti

Brown and furry

Caterpillar in a hurry,

Take your walk

To the shady leaf, or stalk,

Or what not,

Which may be the chosen spot.

No toad spy you,

Hovering bird of prey pass by you;

Spin and die,

To live again a butterfly. 32/39

Conceptual Modeling file:///Users/jrg/115-2021-SPRING/LECTURES/04conceptualmodeling/04conceptualmodeling.html#2

32 of 39 18/7/21, 12:40 pm

Page 33: Conceptual Modeling - UOW

Example 4

Step 1: Creating classes of objects

Brown and furry Caterpillar in a hurry Take your walk To the shady leaf,or stalk, Or what not, Which may be the chosen spot. No toad spy you,Hovering bird of prey pass by you; Spin and die, To live again a butterfly.

TOP         Created by Janusz R. Getta, CSIT115 Data Management and Security, Spring 2021 33/39

Conceptual Modeling file:///Users/jrg/115-2021-SPRING/LECTURES/04conceptualmodeling/04conceptualmodeling.html#2

33 of 39 18/7/21, 12:40 pm

Page 34: Conceptual Modeling - UOW

Example 4

Step 2: Creating associations and association classes

Brown and furry Caterpillar in a hurry Take your walk To the shady leaf,or stalk, Or what not, Which may be the chosen spot. No toad spy you,Hovering bird of prey pass by you; Spin and die, To live again a butterfly.

TOP         Created by Janusz R. Getta, CSIT115 Data Management and Security, Spring 2021 34/39

Conceptual Modeling file:///Users/jrg/115-2021-SPRING/LECTURES/04conceptualmodeling/04conceptualmodeling.html#2

34 of 39 18/7/21, 12:40 pm

Page 35: Conceptual Modeling - UOW

Example 4

Step 3: Creating attributes and link attributes

Brown and furry Caterpillar in a hurry Take your walk To the shady leaf,or stalk, Or what not, Which may be the chosen spot. No toad spy you,Hovering bird of prey pass by you; Spin and die, To live again a butterfly.

TOP         Created by Janusz R. Getta, CSIT115 Data Management and Security, Spring 2021 35/39

Conceptual Modeling file:///Users/jrg/115-2021-SPRING/LECTURES/04conceptualmodeling/04conceptualmodeling.html#2

35 of 39 18/7/21, 12:40 pm

Page 36: Conceptual Modeling - UOW

Example 4

Step 4: Creating identifiers

Brown and furry Caterpillar in a hurry Take your walk To the shady leaf,or stalk, Or what not, Which may be the chosen spot. No toad spy you,Hovering bird of prey pass by you; Spin and die, To live again a butterfly.

TOP         Created by Janusz R. Getta, CSIT115 Data Management and Security, Spring 2021 36/39

Conceptual Modeling file:///Users/jrg/115-2021-SPRING/LECTURES/04conceptualmodeling/04conceptualmodeling.html#2

36 of 39 18/7/21, 12:40 pm

Page 37: Conceptual Modeling - UOW

Example 4

Step 5: Creating qualifications

Brown and furry Caterpillar in a hurry Take your walk To the shady leaf,or stalk, Or what not, Which may be the chosen spot. No toad spy you,Hovering bird of prey pass by you; Spin and die, To live again a butterfly.

TOP         Created by Janusz R. Getta, CSIT115 Data Management and Security, Spring 2021 37/39

Conceptual Modeling file:///Users/jrg/115-2021-SPRING/LECTURES/04conceptualmodeling/04conceptualmodeling.html#2

37 of 39 18/7/21, 12:40 pm

Page 38: Conceptual Modeling - UOW

Example 4

Step 6: Creating generalizations

Brown and furry Caterpillar in a hurry Take your walk To the shady leaf,or stalk, Or what not, Which may be the chosen spot. No toad spy you,Hovering bird of prey pass by you; Spin and die, To live again a butterfly.

TOP         Created by Janusz R. Getta, CSIT115 Data Management and Security, Spring 2021 38/39

Conceptual Modeling file:///Users/jrg/115-2021-SPRING/LECTURES/04conceptualmodeling/04conceptualmodeling.html#2

38 of 39 18/7/21, 12:40 pm

Page 39: Conceptual Modeling - UOW

References

C. Coronel, S. Morris, A. Basta, M. Zgola, Data Management and Security,Chapters 3 and 4, Cengage Compose eBook, 2018, eBook: DataManagement and Security, 1st Edition

T. Connoly, C. Begg, Database Systems, A Practical Approach to Design,Implementation, and Management, Chapter 16 Methodology -Conceptual Database Design, Pearson Education Ltd, 2015

How to ... ? Cookbook, How to use UMLetlet for conceptual modeling ?Recipe 2.1 How to create very simple conceptual schemas with UMLetlet?

How to ... ? Cookbook, How to use UMLetlet for conceptual modeling ?Recipes 2.2, 2.3, and 2.4 How to do design a conceptual schema withUMLetlet (Design 1, 2, and 3) ?

TOP         Created by Janusz R. Getta, CSIT115 Data Management and Security, Spring 2021 39/39

Conceptual Modeling file:///Users/jrg/115-2021-SPRING/LECTURES/04conceptualmodeling/04conceptualmodeling.html#2

39 of 39 18/7/21, 12:40 pm