Semantic Modeling of Object Oriented Databases

Total Page:16

File Type:pdf, Size:1020Kb

Semantic Modeling of Object Oriented Databases Semantic Modeling of Object Oriented Databases Mokrane Bouzeghoub, Elisabeth Mttais Laboratoire MAX, Universite P. et M. Curie - CNRS, Centre de Versailles 45, avenue des Etats-Unis 78000 Versailles, France Email: [email protected] Abstract: can easily be specified. Class hierarchies and inheritance are generally defined in the same way. The dynamic aspect can be This paper describes a design methodology for fulfilled by introducing the concept of behavior in the an object oriented database, based on a semantic semantic data models. In some sense, this was already done in network. This approach is based on the the AI domain by the concept of script which has been assumption that Yemantic data models are more developped ‘to enhance the expressive power of semantic powerful and more easy to use than current networks and frames. We follow the same approach and proposed object oriented data models. They are describe the behavior of a semantic data model by means of especially more poweful in representing production rules. This kind of a declarative language permits integrity constraints and various relationships, to avoid the complexily of procedural languages which arc Object oriented data models are generally based gcncrally used in objccl oriented data models. The behavior of only on class hierarchies and inheritance, plus each object in the semantic data model will be described by one or several rules expressing either integrity constraints or their ability to represent the behavior of objects, any management rules concerning objects. But this latter capability is generally provided through an algorithmic language which cannot This paper highlights on one hand the object-oriented be considered as a conceptual language. This databasedesign methodology we have developped, and on the paper describes a design procedure which olher hand the design tool which supports this methodology. generates an object oriented database schema This methodology is baseci on two design levels: a Semantic (both the structural aspect and the dynamic qbicct oriented level and an eperatio&lect oriented 1e el (Figure 1). The process of interactive acquisiG& aspect) from an abstract specification giveri in a completeness and consistency checkings of the behavioural high level language. This specification language rules is particularly emphasized in the first level. At the is built upon a semantic network and allows to second level, we use as an operational object oriented data define integrity constraints and behavior rules. model, called 02 model, which was developed by Alta’ir This approach is presented through a CASE project [ Bancilhon 871. Then a mapping process between the tool environment. two models is proposed. Besides the data structure mappings, the transformation of a semantic object oriented schema into 1. Introduction an operational object oriented schema consists, among others, in the generation of procedural methods (C written) from a Like relational databases, the design of an object oriented declarative language specification (production rules). database is a complex art which needs many expertise in the domain. The simultaneous modeling of the structural aspect 1 CONCEPTUAL LEVEL! and the behaviouralaspect of objectsincreases the complexity of the design. The current object oriented data models are mainly defmed by a few basic constructors (like the tuple constructor and the set constructor) and a taxonomy of objects + productlon rules (i.e. hierarchy of classes and inheritance). The power of object oriented data models is highlighted by their ability to describe the dynamic behavior of the objects (methods). However, as generally proposed in the object oriented database systems, this dynamic description is made in a procedural language; this fact makes the specification of the methods too difficult at the conceptual level. Another weakness of current object oriented data models is that, except through methods, they do not easily permit to specify integrity constraints on the objects. Except for the dynamic aspect, the expressive power of semantic data models is stronger than that of object-oriented data models. Various relationships and integrity constraints 0 level v Barcelona, September, 1991 Proceedings df the 17th International 3 Conference on Very Large Data Bases The second section of this paper will give an overview of o(Y,X), i(Y,X), s(Y,X)). To simplify the graphical the two data models used. Section 3 describes the general representation, we use only one specification which mapping process from the semantic network to the object subsumes the other (for example p, o, c and g) except if oriented model 02. This mapping process is only concerned constraint specification is needed for each specific arc. with the structural aspect and with some static integrity constraints. Section 4 describes the mapping of general integrity constraints (Fist order formulas) and behavioural rules (production rules) to the operational level expressed in C language. Roblems of method definition and attachment are also addressed in this section. Section 5 gives a general flavour of the modelling prototype which was designed. Section 6 concludes on the obtained results and the remaining problems to solve. 2. The Hierarchy of Data Models Used This section gives a general overview of the two data models considered in the methodology. The first one is a generic semantic network called Morse. The second one is an object oriented data model called 02. 2.1. The Semantic Network Model Whght A semantic network is an oriented diagram where the nodes represent real world objects and the arcs represent semantic The inheritance is one of the interesting properties of relationships between these objects. In addition, constraints generalization hierarchies; each atomic or molecular can be defined over these nodes and arcs. In the following, component of an object X can be transfered by inheritance to such a semantic network data model is designated by the name objects X1 . ..Xn. if these latters are sub-classes of X. Morse [Bouzeghoub 841. This model is formalized in such a Inversely, each instance of a sub-class is an instance of its way it can represent the most important concepts used in super-classes. We say that components of objects propagate semantic data models. The objective of this formal definition toward the leaves of the hierarchy whereas the instances is to provide a general framework whithin which a CASE tool propagate toward the root(s) of the hierarchy. could be specified and programmed. The external vision of the model could be any desired diagram (e.g. Entity-Relationship) Different integrity constraints can be specified in a Morse or abstract syntaxe. semantic network to enhance its capability to capture more meaning from the real world. Among these constraints, we An object is a generic term to designate the different real can mention domains, cardinalities, functional dependencies, world individuals refered to in Morse schemas.We distinguish keys, intersection and disjunction of classes, etc. In the four categories of objects: in one hand instances of atomic semantic network, some of these constraints are defined over objects (IA) and instances of molecular objects (IM), in the nodes, others are defined over arcs. The constraints are other hand classes of atomic objects (NA) and classes of specified either as a complementary information of binary arcs molecular objects (NM). Then, in the following, we use the or as new predicates. For example, cardinal@ constraints are term object in a generic way, and whenever necessary, we use expressed as complementary information over a/p arcs and r/o the more specific term. arcs, while other constraints like functional dependencies are The distinction between atomic objects and molecular representedby a new fd arc: objects permits to highlight their structural links for a better specification of the corresponding constraints. Atomic objects a(Number,VEHICLE, [l,l] ), have values taken from basic domain such as: integer, real, p(VEHICLE,Number, [l,ll), boolean and string. The set of all atomic values in all domains are refered to by the name VA. Molecular objects a(Type,VEHICLE, [l,N]), have molecular values which are composed from the p(VEHICLE, Type, [I,11 ), corresponding atomic objects which constitute the molecular object. Both atomic objects and molecular objects have unique a(Power,VEHICLE, [O,N]), identifiers which are independant of their values. p(VEHICLE,Power, [l,l]), Semantic links are basic binary relationships between the r(VEHICLE,CONTRACT,[l,l)), different categories of objects mentioned above. These binary o(CONTRACT,VEHICLE,[l,N]), relationships formalize the well-known concepts of aggregation and generalization [Smith 771. Specific r(PERSON,CONTRACT,[l,N]), refinements of these concepts are introduced to take into o(CONTRACT,PERSON,[l,l]). account the distinction between atomic objects and molecular objects. The aggregation concept is refined as aromic fd(VEHICLE,lhs(Type),rhs(Power)) aggregation (arc a(X,Y)) and molecular aggregation (arc r(X,Y)). Generalization is refiied as instance generalisation Graphically, a given semantic network can be represented as (arc c(X,Y)) and class generalizafion (arc g(X,l’)). Each portrayed in figure 2. binary relationship has its reverse link (respectively p(Y,X), Proceedings of the 17th International 4 Barcelona, September, 1991 Conference on Very Large Data Bases 2.2. The ObJect Orlented Data Model type tuple(name:string,age:integer, address:string,children:set(Person)) The 02 data model belongs to the category of the so-called add cla88 Agent inharite Person object oriented data models [Lecluse 871. Then, its basic type tupl*(code:string,salary:integer) concepts are objects and types, type constructors and type hierarchies. The data manipulation language could be the C /* method declaration */ language with embedded 02 expressions (called C02) [Haux method category: 8tring i8 public 881 or an SQL like declarative query language (called LOOQ). body category:string in cla88 PgentC02 In the 02 data model, an object is composed of an /* method procedure */ identifier (the name of the object) and a value.
Recommended publications
  • Data Warehouse: an Integrated Decision Support Database Whose Content Is Derived from the Various Operational Databases
    1 www.onlineeducation.bharatsevaksamaj.net www.bssskillmission.in DATABASE MANAGEMENT Topic Objective: At the end of this topic student will be able to: Understand the Contrasting basic concepts Understand the Database Server and Database Specified Understand the USER Clause Definition/Overview: Data: Stored representations of objects and events that have meaning and importance in the users environment. Information: Data that have been processed in such a way that they can increase the knowledge of the person who uses it. Metadata: Data that describes the properties or characteristics of end-user data and the context of that data. Database application: An application program (or set of related programs) that is used to perform a series of database activities (create, read, update, and delete) on behalf of database users. WWW.BSSVE.IN Data warehouse: An integrated decision support database whose content is derived from the various operational databases. Constraint: A rule that cannot be violated by database users. Database: An organized collection of logically related data. Entity: A person, place, object, event, or concept in the user environment about which the organization wishes to maintain data. Database management system: A software system that is used to create, maintain, and provide controlled access to user databases. www.bsscommunitycollege.in www.bssnewgeneration.in www.bsslifeskillscollege.in 2 www.onlineeducation.bharatsevaksamaj.net www.bssskillmission.in Data dependence; data independence: With data dependence, data descriptions are included with the application programs that use the data, while with data independence the data descriptions are separated from the application programs. Data warehouse; data mining: A data warehouse is an integrated decision support database, while data mining (described in the topic introduction) is the process of extracting useful information from databases.
    [Show full text]
  • Multiple-Aspect Analysis of Semantic Trajectories
    Konstantinos Tserpes Chiara Renso Stan Matwin (Eds.) Multiple-Aspect Analysis LNAI 11889 of Semantic Trajectories First International Workshop, MASTER 2019 Held in Conjunction with ECML-PKDD 2019 Würzburg, Germany, September 16, 2019 Proceedings Lecture Notes in Artificial Intelligence 11889 Subseries of Lecture Notes in Computer Science Series Editors Randy Goebel University of Alberta, Edmonton, Canada Yuzuru Tanaka Hokkaido University, Sapporo, Japan Wolfgang Wahlster DFKI and Saarland University, Saarbrücken, Germany Founding Editor Jörg Siekmann DFKI and Saarland University, Saarbrücken, Germany More information about this series at http://www.springer.com/series/1244 Konstantinos Tserpes • Chiara Renso • Stan Matwin (Eds.) Multiple-Aspect Analysis of Semantic Trajectories First International Workshop, MASTER 2019 Held in Conjunction with ECML-PKDD 2019 Würzburg, Germany, September 16, 2019 Proceedings Editors Konstantinos Tserpes Chiara Renso Harokopio University ISTI-CNR Athens, Greece Pisa, Italy Stan Matwin Dalhousie University Halifax, NS, Canada ISSN 0302-9743 ISSN 1611-3349 (electronic) Lecture Notes in Artificial Intelligence ISBN 978-3-030-38080-9 ISBN 978-3-030-38081-6 (eBook) https://doi.org/10.1007/978-3-030-38081-6 LNCS Sublibrary: SL7 – Artificial Intelligence © The Editor(s) (if applicable) and The Author(s) 2020. This book is an open access publication. Open Access This book is licensed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license and indicate if changes were made.
    [Show full text]
  • Arcgis Marine Data Model Reference
    ArcGIS Marine Data Model Reference ArcGIS Marine Data Model (June 2003) This document provides an Dawn J. Wright, Oregon State U. overview of the ArcGIS Marine Patrick N. Halpin, Duke U. Data Model. This model focuses on Michael Blongewicz, DHI important features of the ocean realm, both natural and manmade, Steve Grisé, ESRI Redlands with a view towards the many Joe Breman, ESRI Redlands applications of marine GIS data. ArcGIS Data Models TABLE OF CONTENTS Acknowledgements ................................................................................................................... 4 Introduction ............................................................................................................................... 5 Why a Marine Data Model?.................................................................................................... 6 Intended Audience and Scope of the Model............................................................................ 8 The Process of Building a Data Model ..................................................................................... 10 Final Data Model Content, Purpose and Use........................................................................ 14 Data Model Description ........................................................................................................... 16 Overview ............................................................................................................................. 16 Conceptual Framework....................................................................................................
    [Show full text]
  • Graph Databases – Are They Really So New
    International Journal of Advances in Science Engineering and Technology, ISSN: 2321-9009 Volume- 4, Issue-4, Oct.-2016 GRAPH DATABASES – ARE THEY REALLY SO NEW 1MIRKO MALEKOVIC, 2KORNELIJE RABUZIN, 3MARTINA SESTAK 1,2,3Faculty of Organization and Informatics Varaždin, University of Zagreb, Croatia E-mail: [email protected], [email protected], [email protected] Abstract- Even though relational databases have been (and still are) the most widely used database solutions for many years, there were other database solutions in use before the era of relational databases. One of those solutions were network databases with the underlying network model, whose characteristics will be presented in detail in this paper. The network model will be compared to the graph data model used by graph databases, the relatively new category of NoSQL databases with a growing share in the database market. The similarities and differences will be shown through the implementation of a simple database using network and graph data model. Keywords- Network data model, graph data model, nodes, relationships, records, sets. I. INTRODUCTION ● Hierarchical databases This type of databases is based on the hierarchical The relational databases were introduced by E. G. data model, whose structure can be represented as a Codd in his research papers in 1970s. In those papers layered tree in which one data table represents the he discussed relational model as the underlying data root of that tree (top layer), and the others represent model for the relational databases, which was based tree branches (nodes) emerging from the root of the on relational algebra and first-order predicate logic.
    [Show full text]
  • A Model-To-Model Transformation of a Generic Relational Database Schema Into a Form Type Data Model
    Proceedings of the Federated Conference on Computer Science DOI: 10.15439/2016F408 and Information Systems pp. 1577–1580 ACSIS, Vol. 8. ISSN 2300-5963 A Model-to-Model Transformation of a Generic Relational Database Schema into a Form Type Data Model Sonja Ristić, Slavica Kordić, Milan Čeliković, Vladimir Dimitrieski, Ivan Luković University of Novi Sad, Faculty of Technical Sciences, Trg D. Obradovića 6, 21000 Novi Sad, Serbia Email: {sdristic, slavica, milancel, dimitrieski, ivan}@uns.ac.rs ฀ engineering and review different database meta-models Abstract—An important phase of a data-oriented software (MM) that are used in the database reengineering process system reengineering is a database reengineering process and, applied in IIS*Studio. In [5] we propose an MD approach to in particular, its subprocess – a database reverse engineering data structure conceptualization phase of database reverse process. In this paper we present one of the model-to-model engineering process that is conducted through a chain of transformations from a chain of transformations aimed at transformation of a generic relational database schema into a M2M transformations. In this paper we present the final step form type data model. The transformation is a step of the data of the conceptualization phasethe M2M transformation of structure conceptualization phase of a model-driven database a generic relational database schema into a form type model. reverse engineering process that is implemented in IIS*Studio The form type concept and the IIS*Studio architecture are development environment. given in Section 2. Classifications of form types and relation schemes are described in Section 3. The transformation of a I.
    [Show full text]
  • Chapter 2: Database System Concepts and Architecture Define
    Chapter 2: Database System Concepts and Architecture define: data model - set of concepts that can be used to describe the structure of a database data types, relationships and constraints set of basic operations - retrievals and updates specify behavior - set of valid user-defined operations categories: high-level (conceptual data model) - provides concepts the way a user perceives data - entity - real world object or concept to be represented in db - attribute - some property of the entity - relationship - represents and interaction among entities representational (implementation data model) - hide some details of how data is stored, but can be implemented directly - record-based models like relational are representational low-level (physical data model) - provides details of how data is stored - record formats - record orderings - access path (for efficient search) schemas and instances: database schema - description of the data (meta-data) defined at design time each object in schema is a schema construct EX: look at TOY example - top notation represents schema schema constructs: cust ID; order #; etc. database state - the data in the database at any particular time - also called set of instances an instance of data is filled when database is populated/updated EX: cust name is a schema construct; George Grant is an instance of cust name difference between schema and state - at design time, schema is defined and state is the empty state - state changes each time data is inserted or updated, schema remains the same Three-schema architecture
    [Show full text]
  • Data Models for Home Services
    __________________________________________PROCEEDING OF THE 13TH CONFERENCE OF FRUCT ASSOCIATION Data Models for Home Services Vadym Kramar, Markku Korhonen, Yury Sergeev Oulu University of Applied Sciences, School of Engineering Raahe, Finland {vadym.kramar, markku.korhonen, yury.sergeev}@oamk.fi Abstract An ultimate penetration of communication technologies allowing web access has enriched a conception of smart homes with new paradigms of home services. Modern home services range far beyond such notions as Home Automation or Use of Internet. The services expose their ubiquitous nature by being integrated into smart environments, and provisioned through a variety of end-user devices. Computational intelligence require a use of knowledge technologies, and within a given domain, such requirement as a compliance with modern web architecture is essential. This is where Semantic Web technologies excel. A given work presents an overview of important terms, vocabularies, and data models that may be utilised in data and knowledge engineering with respect to home services. Index Terms: Context, Data engineering, Data models, Knowledge engineering, Semantic Web, Smart homes, Ubiquitous computing. I. INTRODUCTION In recent years, a use of Semantic Web technologies to build a giant information space has shown certain benefits. Rapid development of Web 3.0 and a use of its principle in web applications is the best evidence of such benefits. A traditional database design in still and will be widely used in web applications. One of the most important reason for that is a vast number of databases developed over years and used in a variety of applications varying from simple web services to enterprise portals. In accordance to Forrester Research though a growing number of document, or knowledge bases, such as NoSQL is not a hype anymore [1].
    [Show full text]
  • Metamodeling the Enhanced Entity-Relationship Model
    Metamodeling the Enhanced Entity-Relationship Model Robson N. Fidalgo1, Edson Alves1, Sergio España2, Jaelson Castro1, Oscar Pastor2 1 Center for Informatics, Federal University of Pernambuco, Recife(PE), Brazil {rdnf, eas4, jbc}@cin.ufpe.br 2 Centro de Investigación ProS, Universitat Politècnica de València, València, España {sergio.espana,opastor}@pros.upv.es Abstract. A metamodel provides an abstract syntax to distinguish between valid and invalid models. That is, a metamodel is as useful for a modeling language as a grammar is for a programming language. In this context, although the Enhanced Entity-Relationship (EER) Model is the ”de facto” standard modeling language for database conceptual design, to the best of our knowledge, there are only two proposals of EER metamodels, which do not provide a full support to Chen’s notation. Furthermore, neither a discussion about the engineering used for specifying these metamodels is presented nor a comparative analysis among them is made. With the aim at overcoming these drawbacks, we show a detailed and practical view of how to formalize the EER Model by means of a metamodel that (i) covers all elements of the Chen’s notation, (ii) defines well-formedness rules needed for creating syntactically correct EER schemas, and (iii) can be used as a starting point to create Computer Aided Software Engineering (CASE) tools for EER modeling, interchange metadata among these tools, perform automatic SQL/DDL code generation, and/or extend (or reuse part of) the EER Model. In order to show the feasibility, expressiveness, and usefulness of our metamodel (named EERMM), we have developed a CASE tool (named EERCASE), which has been tested with a practical example that covers all EER constructors, confirming that our metamodel is feasible, useful, more expressive than related ones and correctly defined.
    [Show full text]
  • Appendix E: an Overview of the Network Data Model
    Elmasri_APPC Page 1 Monday, April 3, 2006 3:40 PM An Overview of the APPENDIXE Network Data Model This appendix provides an overview of the network data model.1 The original network model and language were presented in the CODASYL Data Base Task Group’s 1971 report; hence it is sometimes called the DBTG model. Revised reports in 1978 and 1981 incorporated more recent concepts. In this appendix, rather than concentrating on the details of a particular CODASYL report, we present the general concepts behind net- work-type databases and use the term network model rather than CODASYL model or DBTG model. The original CODASYL/DBTG report used COBOL as the host language. Regardless of the host programming language, the basic database manipulation commands of the net- work model remain the same. Although the network model and the object-oriented data model are both navigational in nature, the data structuring capability of the network model is much more elaborate and allows for explicit insertion/deletion/modification semantic specification. However, it lacks some of the desirable features of the object mod- els that we discussed in Chapter 11, such as inheritance and encapsulation of structure and behavior. 1. The complete chapter on the network data model and about the IDMS system from the second edition of this book is available at http://www.awl.com/cseng/titles/0-8053-1755-4. This appendix is an edited excerpt of that chapter. E–1 Elmasri_APPC Page 2 Monday, April 3, 2006 3:40 PM E–2 Appendix E / An Overview of the Network Data Model E.1 Network Data Modeling Concepts There are two basic data structures in the network model: records and sets.
    [Show full text]
  • Ontology Transformation: from Requirements to Conceptual Model*
    Justas Trinkunas, Olegas Vasilecas Ontology Transformation: from Requirements to .. SCIeNTIfIC PAPeRS, UNIVeRSITy of Latvia, 2009. Vol. 751 COMPUTER SCIENCE AND Information TECHNOLOGIES 52–64 P. Ontology Transformation: from Requirements to Conceptual Model* Justas Trinkunas1 and Olegas Vasilecas2, 3 1 Information Systems Research Laboratory, Faculty of Fundamental Sciences, Vilnius Gediminas Technical University, Sauletekio al. 11, LT-10223 Vilnius-40, Lithuania, [email protected] 2 Information Systems Research Laboratory, Faculty of Fundamental Sciences, Vilnius Gediminas Technical University, Sauletekio al. 11, LT-10223 Vilnius-40, Lithuania, [email protected] 3 Department of Computer Science, Faculty of Natural Sciences, Klaipeda University, Herkaus Manto 84, LT-92294 Klaipeda, [email protected] Information systems are increasingly complex, especially in the enormous growth of the volume of data, different structures, different technologies, and the evolving requirements of the users. Consequently, current applications require an enormous effort of design and development. The fast-changing requirements are the main problem in creating and/or modifying conceptual data models. To improve this process, we proposed to reuse already existing knowledge for conceptual modelling. In the paper, we have analysed reusable knowledge models. We present our method for creating conceptual models from various knowledge models. Keywords: transformation, ontology, data modelling. 1 Introduction Most of information systems analysts have at least once considered how many times they have to analyse the same problems, create and design the same things. Most of them ask, is it possible to reuse already existing knowledge? Our answer is yes. We believe that knowledge can and should be reused for information systems development.
    [Show full text]
  • Enterprise Data Modeling Using the Entity-Relationship Model
    Database Systems Session 3 – Main Theme Enterprise Data Modeling Using The Entity/Relationship Model Dr. Jean-Claude Franchitti New York University Computer Science Department Courant Institute of Mathematical Sciences Presentation material partially based on textbook slides Fundamentals of Database Systems (6th Edition) by Ramez Elmasri and Shamkant Navathe Slides copyright © 2011 1 Agenda 11 SessionSession OverviewOverview 22 EnterpriseEnterprise DataData ModelingModeling UsingUsing thethe ERER ModelModel 33 UsingUsing thethe EnhancedEnhanced Entity-RelationshipEntity-Relationship ModelModel 44 CaseCase StudyStudy 55 SummarySummary andand ConclusionConclusion 2 Session Agenda Session Overview Enterprise Data Modeling Using the ER Model Using the Extended ER Model Case Study Summary & Conclusion 3 What is the class about? Course description and syllabus: » http://www.nyu.edu/classes/jcf/CSCI-GA.2433-001 » http://cs.nyu.edu/courses/fall11/CSCI-GA.2433-001/ Textbooks: » Fundamentals of Database Systems (6th Edition) Ramez Elmasri and Shamkant Navathe Addition Wesley ISBN-10: 0-1360-8620-9, ISBN-13: 978-0136086208 6th Edition (04/10) 4 Icons / Metaphors Information Common Realization Knowledge/Competency Pattern Governance Alignment Solution Approach 55 Agenda 11 SessionSession OverviewOverview 22 EnterpriseEnterprise DataData ModelingModeling UsingUsing thethe ERER ModelModel 33 UsingUsing thethe EnhancedEnhanced Entity-RelationshipEntity-Relationship ModelModel 44 CaseCase StudyStudy 55 SummarySummary andand ConclusionConclusion
    [Show full text]
  • Mapping Conceptual Models to Database Schemas
    Chapter 4 Mapping Conceptual Models to Database Schemas David W. Embley and Wai Yin Mok 4.1 Introduction The mapping of a conceptual-model instance to a database schema is fun- damentally the same for all conceptual models. A conceptual-model instance describes the relationships and constraints among the various data items. Given the relationships and constraints, the mappings group data items to- gether into flat relational schemas for relational databases and into nested relational schemas for object-based and XML storage structures. Although we are particularly interested in the basic principles behind the mappings, we take the approach of first presenting them in Sections 4.2 and 4.3 in terms of mapping an ER model to a relational database. In these sections, for the ER constructs involved, we (1) provide examples of the constructs and say what they mean, (2) give rules for mapping the constructs to a relational schema and illustrate the rules with examples, and (3) state the underlying principles. We then take these principles and show in Section 4.4 how to apply them to UML. This section on UML also serves as a guide to applying the principles to other conceptual models. In Section 4.5 we ask and answer the question about the circumstances under which the mappings yield normalized relational database schemas. In Section 4.6 we extend the mappings beyond flat relations for relational databases and show how to map conceptual-model instances to object-based and XML storage structures. We provide pointers to additional readings in Section 4.7. Throughout, we use an application in which we assume that we are designing a database for a bed and breakfast service.
    [Show full text]