



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




D
o
o g
g i
i c
c a
a l
l d
d a
a t
t a
a m
m o
o d
d e
e l
l
In order to facilitate integrated and consistent logical data models across the project, we will
be establishing data modeling conventions. We will be using the ER Data Modeling notation
first documented by Peter Chen.[1] The actual implementation of the ER notation we will be
using will vary based on the tool we select. We will update these conventions once the tool
selection is made. The conventions now follow.
n
n t
t i
i t
t y
y t
t y
y p
p e
e s
s
Entity Type Names:
real-world objects such as persons, places and things.
capitalize the first letter of each word.
each capitalized and separated by “_”.
Super-types:
attributes. In the example on the right,
an Employee entity type might have
sub-types Hourly_Employee,
Salaried_Employee, and Consultant.
an OID (in this case Employee_OID) and
the child entity types will inherit the
OID of the parent entity type.
the sub-types are exclusive or inclusive.
o Exclusive sub-types are disjoint
in that an entity instance can be an instance of only one sub-type.
o Inclusive sub-types are overlapping in that an entity instance can be an instance
of two or more sub-types.
o To denote this, using a dashed line across the super-sub-type connectors with
either {disjoint} for Exclusive sub-types, or {overlapping} for Inclusive sub-types.
In the example we note {disjoint}, indicating the sub-types are exclusive.
D
e
e l
l a
a t
t i
i o
o n
n s
s h
h i
i p
p t
t y
y p
p e
e s
s
Relationship types represent named associations between entity types.
Relationship Type Names
unique throughout the data model.
the nature of the underlying relationship.
name should be in upper case.
symbol between words.
relationship type name.
Programme.
Cardinality and Mandatory / Optional:
instances of another entity type.
where Lower Bound and Upper Bound are integers, with Lower Bound being less than or
equal to Upper Bound.
instances of type R from any instance of an entity type with R as an outgoing
relationship type.
from any instance of an entity type with R as an outgoing relationship type.
Cardinality Lower
Bound
Upper
Bound
Mandatory(M)
Optional (O)
0 … 1 0 1 O
1 1 1 M
1 ... * 1 Any # M
0 ... m 0 m** O
n … m n* m** M
* n is an integer greater than 0
** m is an integer greater than or equal to n. m can also be * as in “5 … *”
indicates a mandatory relationship.
Any given Programme is managed by 1 and only 1 Office. A Programme does not exist if
it isn’t managed by an Office.
D
t
t t
t r
r i
i b
b u
u t
t e
e t
t y
y p
p e
e s
s
Attribute types represent descriptive primitive values associated with an entity or relationship
type. Attribute types represent atomic information and not composite information.
Attribute Type Names:
across entity types.
Derived Attribute Types:
age). Note that the values of derived attributes are not stored in the database but
computed on-demand.
at the end of the attribute name.
data dictionary entry for the derived attribute type.
Composite Attribute Types:
attribute types represent atomic information.
u
u s
s i
i n
n e
e s
s s
s r
r u
u l
l e
e s
s
Business rules are additional constraints on data model that cannot be represented in
standard ER data models. Such constraints should be documented in a data dictionary.
Constraints between Data Model
Elements:
data model can be defined as
business rules. For example, one
relationship type might be a subset
of another relationship type. The
value of one attribute might need to
be less than the value of another
attribute.
be defined as free-form text associated with the appropriate model element in the data
dictionary.
D
a
a t
t a
a d
d i
i c
c t
t i
i o
o n
n a
a r
r y
y
A data dictionary is a separate .html document in the style defined by <URL: Devin: design a
standard .html format to be used by all teams for data model> that more fully defines the
entity, relationship and attribute types defined in the ER data model. Data dictionary entries
should be grouped together alphabetically by entity type. For each entity type, list and define
the entity type, followed by the associated attribute types and then the relationship types.
Each entry in the data dictionary should contain the following items:
type name.
defined in the data dictionary.
M Miisscceellllaanneeoouuss
Integration with base data model:
current version of the integrated LEAP data model. Such changes must be made both in
the data model and in the associated data dictionary. Specific attention should be paid to
integrating with existing data model constructs (entity types, relationship types, etc.) and
not creating redundant data model constructs. The existing LEAP data model and
dictionary can be found on the development server.
Data Model Quality Assurance:
consideration.
o Completeness: Does the data model represent all of the database requirements?
Are all database requirements traceable and satisfied by the ER data model?
o Minimal: Are all requirements represented only once in the ER data model?
o Understandability: Does the ER data model represent requirements in such a way
as to be easily understood?
o Readability/Aesthetics: Is the ER data model easy to read in terms of graphic
layout (line crossings minimized, etc.)? Is the ER data model easy to understand
and intuitive?
o Extensibility: Does the ER data model accommodate anticipated changes in the
database requirements so that such changes are easy to support when eventually
needed?
o Correctness: Does the ER data model properly use the ER data model constructs?
Use of entity type instead of attribute type
Use of attribute type instead of entity type
Proper cardinality constraints
Use of an entity type instead of a relationship type
Use of attribute type instead of relationship type
D
o
o n
n s
s i
i d
d e
e r
r a
a t
t i
i o
o n
n s
s
cardinality