| Entity Relationship |
Article Index for Entity |
Website Links For Model |
Information AboutEntity Relationship |
| CATEGORIES ABOUT ENTITY-RELATIONSHIP MODEL | |
| data modeling | |
| diagrams | |
|
In Data Modeling , an entity-relationship model (ERM) is a representation of structured data; '''entity-relationship modeling''' is the process of generating these models. The end-product of the modeling process is an '''entity-relationship diagram''' (ERD), a type of Conceptual Data Model or semantic data model. The first stage of Information System design uses these models to describe information needs or the type of Information that is to be stored in a Database during the Requirements Analysis . The Data Modeling technique can be used to describe any Ontology (i.e. an overview and classifications of used terms and their relationships) for a certain Universe Of Discourse (i.e. area of interest). In the case of the design of an information system that is based on a database, the conceptual data model is, at a later stage (usually called logical design), mapped to a logical data model, such as the Relational Model ; this in turn is mapped to a physical model during physical design. Note that sometimes, both of these phases are referred to as "physical design". There are a number of conventions for entity-relationship diagrams (ERDs). The classical notation is described in the remainder of this article, and mainly relates to conceptual modelling. There are a range of notations more typically employed in logical and physical database design, including '' Information Engineering '', '' IDEF1x '' (ICAM DEFinition Language) and '' Dimensional Modelling ''. CONNECTION ]] An Entity represents a discrete object. Entities can be thought of as Noun s. Examples: a computer, an employee, a song, a mathematical theorem. Entities are represented as rectangles. A relationship captures how two or more entities are related to one another. Relationships can be thought of as Verb s, linking two or more nouns. Examples: an ''owns'' relationship between a company and a computer, a ''supervises'' relationship between an employee and a department, a ''performs'' relationship between an artist and a song, a ''proved'' relationship between a mathematician and a theorem. Relationships are represented as diamonds, connected by lines to each of the entities in the relationship. The model's linguistic aspect described above is utilized in the database Query Language ERROL . Entities and relationships can both have attributes. Examples: an employee entity might have a Social Security Number attribute (in the US); the ''proved'' relationship may have a ''date'' attribute. Attributes are represented as ellipses connected to their owning entity sets by a line. Every entity (unless it is a Weak Entity ) must have a minimal set of uniquely identifying attributes, which is called the entity's Primary Key . Entity-relationship diagrams don't show single entities or single instances of relations. Rather, they show entity sets and relationship sets. Example: a particular ''song'' is an entity. The collection of all songs in a database is an entity set. The ''eaten'' relationship between a child and her lunch is a single relationship. The set of all such child-lunch relationships in a database is a relationship set. Lines are drawn between entity sets and the relationship sets they are involved in. If all entities in an entity set must participate in the relationship set, a thick or double line is drawn. This is called a Participation Constraint . If each entity of the entity set can participate in at most one relationship in the relationship set, an arrow is drawn from the entity set to the relationship set. This is called a Key Constraint . To indicate that each entity in the entity set is involved in exactly one relationship, a thick arrow is drawn. Associative Entity is used to solve the problem of two entities with a many-to-many relationship {Link without Title} . Unary Relationships - a unary relationship is a relationship between the rows of a single table. LESS COMMON SYMBOLS Some notions in ER modeling are used less often; many of them are avoided by modelers as a matter of principle. Entities may be either ''strong'' or ''weak''.
Attributes in an ER model may be further described as multi-valued, composite, or derived.
Sometimes two entities are more specific subtypes of a more general type of entity. For example, programmers and marketers might both be types of employees at a software company. To indicate this, a triangle with "ISA" on the inside is drawn. The Superclass is connected to the point on top and the two (or more) Subclass es are connected to the base. A relation and all its participating entity sets can be treated as a single entity set for the purpose of taking part in another relation through Aggregation , indicated by drawing a dotted rectangle around all aggregated entities and relationships. ALTERNATIVE DIAGRAMMING CONVENTIONS Crow's Feet The "Crow's Feet" notation (named for the resemblance of one of its symbols to the forward digits of a bird's claw) represents relationships with connecting lines between entities, and symbols at the ends of those lines to represent the Cardinality of the relationship. Three symbols are used to represent cardinality:
These symbols are used in combination to represent the four types of cardinality that an entity may have in a relationship.
You can see an example of the crow's feet notation in the diagram to the right. In the diagram, the following facts are detailed:
This notation is gaining acceptance through common usage in Oracle texts, and in tools such as Visio and PowerDesigner , with the following benefits:
SEE ALSO
PROPRIETARY ER DIAGRAMMING TOOLS
FREE SOFTWARE ER DIAGRAMMING TOOLS
REFERENCES This paper is one of the most cited papers in the computer field. It was selected as one of the most influential papers in computer science in a recent survey of over 1,000 computer science professors. The citation is listed, for example, in DBLP : http://dblp.uni-trier.de/ {Link without Title} EXTERNAL LINKS
|
|
|