Selected Topic: Data Modeling and Management: What Are You Thinking of When We Talk About ?
Selected Topic: Data Modeling and Management: What Are You Thinking of When We Talk About ?
9003
Selected Topic:
Data Modeling and Management
WARM UP Discussion:
Data …
What are you thinking of when we
talk about data?
2
3
Let’s Discuss:
Sources of Data …
Where do data come from?
Who/what generates data?
4
Three major sources of data...
6
?
Let’s Discuss:
What is a Data Model?
Why do we care about data model?
Data Model
describes data
characteristics
8
Data Model describes data characteristics
10
Structure
Data Model Structures
Unstructured
Structured
Semi-structured
11
Structure
Data Model Structures
12
Structure
Data Model Structures
13
Structure
Data Model Structures
14
Structure
Data Model Structures
15
Structure
Data Model Structures
16
Operations
Data Model Operations
Subsetting Substructure
extraction
Union Join
17
Operations
Data Model Operations
18
Operations
Data Model Operations
Field#1, Field#2
(John, Smith)
(Liz, Spencer)
(Marie, Bishop)
(Steve, Richards)
19
Operations
Data Model Operations
20
Operations
Data Model Operations
21
Constraints
Data Model Constraints
22
Constraints
Data Model Constraints
Types of Constraints
◎ Value constraint
○ Age is never negative
◎ Uniqueness constraint
○ A movie can have only one title
◎ Cardinality constraint
○ A person can take between 0 and 3 blood pressure
medications at a time
23
Constraints
Data Model Constraints
Types of Constraints
◎ Type constraint
○ Lname:string
◎ Domain constraint
○ Month in (1 … 12) or Month in (‘Jan’, ‘Feb’, …
‘Dec’)
24
?
Let’s Discuss:
Modeling Data in your daily life
Think of something in your daily life and explain
what kind of model and constraints you would
design for such data.
25
Different Kinds of
Data Models
List some data models you are
aware or have heard of?
Semi-structured
Data Model
Data Model behind the Web
A Simple HTML Document
29
31
Key-value Pair
Tuple / Object
Array
32
?
33
34
Tree Data Structure
Let’s Discuss:
Utilization of XML or JSON on the Internet
● XML (and its lightweight younger sibling JSON) often gets referred to as "the
language of the Internet". That means Web applications talk to each other in XML
or JSON. For instance, they are used to "markup" vast amount of big data on the
Internet for access and retrieval by programs running in applications. They are also
used to send messages through which that programs can talk to each other.
● An example application would be a program using an XML-based data standard
which defines a common way of describing the news items. This application can
use XML (or JSON) to gather news data from multiple web sources and aggregate
them in a news portal for the readers.
● Think of other applications that can use XML and discuss it with your fellow class
mates.
36
Data Management &
Database Technology
38
Questions!!
• What is a database?
• Give some examples of database systems
that we encounter in our lives.
39
Introduction: Database
• Database
– Collection of related data
– Data: known facts that can be recorded and
that have implicit meaning
– Represents some aspect of the real world
– Built for a specific purpose
40
Questions!!
41
• Multimedia databases
– Store textual or numeric information
– Store images, audio clips, and video streams
digitally
• Give examples of Multimedia DB
systems!!
44
45
Overview: Geographic database
• Geographic database
– Store and analyze maps, weather data, and satellite
images
• Give examples of Geographic database!!
46
47
Overview: Data warehouses and OLAP
systems
48
49
Introduction: DBMS
50
51
Introduction: DBMS (cont'd.)
• Defining a database
– Specify the data types, structures, and constraints
of the data to be stored
• Meta-data
– Database definition or descriptive information
– Stored by the DBMS in the form of a database
catalog or dictionary
• Manipulating a database
– Query and update the database miniworld
– Generate reports
52
• Sharing a database
– Allow multiple users and programs to access the
database simultaneously
• Application program
– Accesses database by sending queries to DBMS
• Query
– Causes some data to be retrieved
53
Introduction: DBMS (cont'd.)
• Transaction
– May cause some data to be read and some data to
be written into the database
• Protection includes:
– System protection (against HW & SW malfunction)
– Security protection
• Maintain the database system
– Allow the system to evolve as requirements change
over time
54
55
Thank you.
Exit Slip:
Discuss 3 important things / concepts
You have learned today.
56