Comprehension of Hierarchical ER Diagrams Compared to Flat ER Diagrams

Revital Danoch, P. Shoval, Mira Balaban
{"title":"Comprehension of Hierarchical ER Diagrams Compared to Flat ER Diagrams","authors":"Revital Danoch, P. Shoval, Mira Balaban","doi":"10.4018/978-1-59140-375-3.CH012","DOIUrl":null,"url":null,"abstract":"HERD is a semi-algorithmic method for creating hierarchical ER diagrams from bottom up. The method is based on packaging operations that are applied in several steps on a given flat ER diagram. The result is a hierarchy of simple and interrelated diagrams (namely ER structures) with external relationships to other such diagrams. This chapter describes the application of HERD method using an example from a hospital domain, and an experiment in which we compare the comprehension of HERD diagrams with flat ER diagrams. INTRODUCTION An ER diagram (ERD) models the data structure of some reality in terms of entities, relationships, and attributes. In case of a large-scale application, the ER diagram may become very big, and it may be very difficult to understand and This chapter appears in the book, Information Modeling Methods and Methodologies, edited by John Krogstie, Terry Halpin and Keng Siau. Copyright © 2005, Idea Group Inc. Copying or distributing in print or electronic forms without written permission of Idea Group Inc. is prohibited. 701 E. Chocolate Avenue, Suite 200, Hershey PA 17033-1240, USA Tel: 717/533-8845; Fax 717/533-8661; URL-http://www.idea-group.com IDEA GROUP PUBLISHING 242 Danoch, Shoval, & Balabaan Copyright © 2005, Idea Group Inc. Copying or distributing in print or electronic forms without written permission of Idea Group Inc. is prohibited. to manage it, especially by users or managers (Teory, Wei, Bolton, & Koenig, 1989; Campbell, Halpin, & Proper, 1996). A mechanism is needed to improve ERD comprehensibility and to simplify their maintainability, in particular if we want to effectively apply the ER model on large databases. Indeed, the common ER model includes some abstraction mechanisms that support comprehensibility, mainly generalization (sub-typing of entity-types) and aggregation (whole-part relationships). However, these abstraction mechanisms alone do not solve the problem of too much detail in too small a space (Moody, 1996). A possible approach to handle the problem is to create hierarchical ER diagrams. Layering of diagrams has been a key tool of abstraction, thus removing complexity of large schemas generated by enterprise modeling. For example, layered diagrams are common in “traditional” system analysis, where functional decomposition is carried out with data flow diagrams (DeMarco, 1978). Hierarchical structuring is also common in novel software engineering methods. For example, UML class diagrams include the package construct, but only as an organizational tool (like a folder in file management), and not as a first-class construct. Various abstraction methods have been introduced in the ER literature. See, for example, methods proposed by Teory et al. (1989), Jaeschke, Oberweis, and Stucky (1993), Gandhi, Robertson, and Gucht (1994), Campbell, Halpin, and Proper (1996), and Moody (1996, 1999). A brief review of some of the abstraction methods is provided in Danoch, Shoval, and Balaban (2001). Consequently, they proposed HERD, a new semi-algorithmic method for creating hierarchical ERDs from bottom-up, namely from a given “flat” ERD. The HERD method utilizes well-known packaging (grouping) operations that were proposed in some of the earlier studies. The packaging operations are applied in steps, thus creating a hierarchy of simple and interrelated diagrams. To enable this, the common ER model is enriched by introducing new constructs: structure and composite relationship. A structure is a (partial) ER diagram that consists of entities and relationships; it may also contain other structures (hence, it is similar to package in UML), and is related to other structures by external relationships. An external relationship is a relationship of an entity within a structure with other entities that belong to another structure. A composite relationship is a relationship between structures or between entities and structures. In other words, it is an aggregation of one or more specific relationships among entities that do not belong to the same structure. The packaging operations are applied in four steps. In the first step, they are applied on the flat (bottom-level) ERD, creating leaf-level structures and external relationships. In the second step, the packaging operations are applied recursively on the bottom-level ERD as well as on the already created structures, thus creating higher-level structures (with external relationships to other entities) and composite relationships (within subordinate structures and entities). In the 15 more pages are available in the full version of this document, which may be purchased using the \"Add to Cart\" button on the publisher's webpage: www.igi-global.com/chapter/comprehension-hierarchicaldiagrams-compared-flat/23017","PeriodicalId":198105,"journal":{"name":"Information Modeling Methods and Methodologies","volume":"20 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1900-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"3","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Information Modeling Methods and Methodologies","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.4018/978-1-59140-375-3.CH012","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 3

Abstract

HERD is a semi-algorithmic method for creating hierarchical ER diagrams from bottom up. The method is based on packaging operations that are applied in several steps on a given flat ER diagram. The result is a hierarchy of simple and interrelated diagrams (namely ER structures) with external relationships to other such diagrams. This chapter describes the application of HERD method using an example from a hospital domain, and an experiment in which we compare the comprehension of HERD diagrams with flat ER diagrams. INTRODUCTION An ER diagram (ERD) models the data structure of some reality in terms of entities, relationships, and attributes. In case of a large-scale application, the ER diagram may become very big, and it may be very difficult to understand and This chapter appears in the book, Information Modeling Methods and Methodologies, edited by John Krogstie, Terry Halpin and Keng Siau. Copyright © 2005, Idea Group Inc. Copying or distributing in print or electronic forms without written permission of Idea Group Inc. is prohibited. 701 E. Chocolate Avenue, Suite 200, Hershey PA 17033-1240, USA Tel: 717/533-8845; Fax 717/533-8661; URL-http://www.idea-group.com IDEA GROUP PUBLISHING 242 Danoch, Shoval, & Balabaan Copyright © 2005, Idea Group Inc. Copying or distributing in print or electronic forms without written permission of Idea Group Inc. is prohibited. to manage it, especially by users or managers (Teory, Wei, Bolton, & Koenig, 1989; Campbell, Halpin, & Proper, 1996). A mechanism is needed to improve ERD comprehensibility and to simplify their maintainability, in particular if we want to effectively apply the ER model on large databases. Indeed, the common ER model includes some abstraction mechanisms that support comprehensibility, mainly generalization (sub-typing of entity-types) and aggregation (whole-part relationships). However, these abstraction mechanisms alone do not solve the problem of too much detail in too small a space (Moody, 1996). A possible approach to handle the problem is to create hierarchical ER diagrams. Layering of diagrams has been a key tool of abstraction, thus removing complexity of large schemas generated by enterprise modeling. For example, layered diagrams are common in “traditional” system analysis, where functional decomposition is carried out with data flow diagrams (DeMarco, 1978). Hierarchical structuring is also common in novel software engineering methods. For example, UML class diagrams include the package construct, but only as an organizational tool (like a folder in file management), and not as a first-class construct. Various abstraction methods have been introduced in the ER literature. See, for example, methods proposed by Teory et al. (1989), Jaeschke, Oberweis, and Stucky (1993), Gandhi, Robertson, and Gucht (1994), Campbell, Halpin, and Proper (1996), and Moody (1996, 1999). A brief review of some of the abstraction methods is provided in Danoch, Shoval, and Balaban (2001). Consequently, they proposed HERD, a new semi-algorithmic method for creating hierarchical ERDs from bottom-up, namely from a given “flat” ERD. The HERD method utilizes well-known packaging (grouping) operations that were proposed in some of the earlier studies. The packaging operations are applied in steps, thus creating a hierarchy of simple and interrelated diagrams. To enable this, the common ER model is enriched by introducing new constructs: structure and composite relationship. A structure is a (partial) ER diagram that consists of entities and relationships; it may also contain other structures (hence, it is similar to package in UML), and is related to other structures by external relationships. An external relationship is a relationship of an entity within a structure with other entities that belong to another structure. A composite relationship is a relationship between structures or between entities and structures. In other words, it is an aggregation of one or more specific relationships among entities that do not belong to the same structure. The packaging operations are applied in four steps. In the first step, they are applied on the flat (bottom-level) ERD, creating leaf-level structures and external relationships. In the second step, the packaging operations are applied recursively on the bottom-level ERD as well as on the already created structures, thus creating higher-level structures (with external relationships to other entities) and composite relationships (within subordinate structures and entities). In the 15 more pages are available in the full version of this document, which may be purchased using the "Add to Cart" button on the publisher's webpage: www.igi-global.com/chapter/comprehension-hierarchicaldiagrams-compared-flat/23017
层次ER图与平面ER图之比较理解
HERD是一种半算法方法,用于自底向上创建层次关系图。该方法基于在给定平面ER图上的几个步骤中应用的打包操作。其结果是具有与其他此类图的外部关系的简单且相互关联的图(即ER结构)的层次结构。本章用一个医院领域的例子描述了HERD方法的应用,并通过一个实验比较了对HERD图和平面ER图的理解。ER图(ERD)根据实体、关系和属性对某些现实的数据结构进行建模。在大规模应用程序的情况下,ER图可能会变得非常大,并且可能很难理解,本章出现在John Krogstie, Terry Halpin和Keng Siau编辑的《信息建模方法和方法论》一书中。Idea Group Inc.版权所有©2005未经Idea Group Inc.书面许可,禁止以印刷或电子形式复制或分发。美国宾夕法尼亚州好时市巧克力大道701号200室,电话:717/533-8845;传真717/533 - 8661;URL-http://www.idea-group.com IDEA GROUP PUBLISHING 242 Danoch, Shoval, & Balabaan版权©2005,IDEA GROUP Inc.。未经Idea Group Inc.书面许可,禁止以印刷或电子形式复制或分发。管理它,特别是由用户或管理者(Teory, Wei, Bolton, & Koenig, 1989;Campbell, Halpin, & Proper, 1996)。需要一种机制来提高ERD的可理解性并简化其可维护性,特别是如果我们想要在大型数据库上有效地应用ER模型。实际上,公共ER模型包括一些支持可理解性的抽象机制,主要是泛化(实体类型的子类型)和聚合(整体-部分关系)。然而,这些抽象机制本身并不能解决在太小的空间中存在太多细节的问题(Moody, 1996)。处理这个问题的一种可能方法是创建层次关系图。图的分层已经成为抽象的关键工具,从而消除了由企业建模生成的大型模式的复杂性。例如,分层图在“传统”系统分析中很常见,其中功能分解是用数据流图进行的(DeMarco, 1978)。分层结构在新的软件工程方法中也很常见。例如,UML类图包括包结构,但只是作为组织工具(像文件管理中的文件夹),而不是作为一级结构。在ER文献中已经介绍了各种抽象方法。例如,参见Teory等人(1989)、Jaeschke、Oberweis和Stucky(1993)、Gandhi、Robertson和Gucht(1994)、Campbell、Halpin和Proper(1996)以及Moody(1996、1999)提出的方法。Danoch, Shoval和Balaban(2001)提供了一些抽象方法的简要回顾。因此,他们提出了HERD,这是一种新的半算法方法,用于从自下而上创建分层ERD,即从给定的“扁平”ERD。HERD方法利用了一些早期研究中提出的众所周知的包装(分组)操作。包装操作是分步骤应用的,因此创建了一个简单且相互关联的图的层次结构。为了实现这一点,通过引入新的构造(结构和组合关系)来丰富公共ER模型。结构是由实体和关系组成的(部分)ER图;它也可能包含其他结构(因此,它类似于UML中的包),并且通过外部关系与其他结构相关联。外部关系是指一个结构内的实体与属于另一个结构的其他实体之间的关系。复合关系是结构之间或实体与结构之间的关系。换句话说,它是不属于同一结构的实体之间的一个或多个特定关系的聚合。包装操作分为四个步骤。在第一步中,它们被应用到平面(底层)ERD上,创建叶级结构和外部关系。在第二步中,打包操作递归地应用于底层ERD以及已经创建的结构,从而创建更高级别的结构(具有与其他实体的外部关系)和复合关系(在下属结构和实体中)。在15页以上的完整版本中,可以使用出版商网页上的“添加到购物车”按钮购买:www.igi-global.com/chapter/comprehension-hierarchicaldiagrams-compared-flat/23017
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信