ODL Design to Relational Designs Object-Relational Database Systems (ORDBS) Extensible Markup Language (XML)

Size: px
Start display at page:

Download "ODL Design to Relational Designs Object-Relational Database Systems (ORDBS) Extensible Markup Language (XML)"

Transcription

1 ODL Design to Relational Designs Object-Relational Database Systems (ORDBS) Extensible Markup Language (XML) INF3100, V 2004, U9F1 Chapter 4, Sections 1-5 and 7 Edited By M. Naci Akkøk 25/2-2003, 20/ Based upon slides by Pål Halvorsen (26/2-2002). Contains slides made by Arthur M. Keller, Vera Goebel. Overview 9 From ODL design to relational design (briefly) 9 Object-relational DBS (ORDBS) 9 Semi-structured data 9 Extensible Markup Language (XML) 1

2 ODL Design to Relational Designs Translating ODL to Relations Similar to converting ER-diagrams to relations: 9 Classes without relationships are like entity classes (or sets), but some new problems arise: Keys are optional in ODL (Some situations may require inventing new attributes to serve as a key) ODL may have non-atomic attributes (Resulting relations may be non-normalized and must be redesigned) ODL allows methods as part of design 9 Classes with relationships: Treat the relationship separately, as in E/R. Attach a many-one relationship to the relation for the many. 2

3 Translating ODL to Relations: Attributes and Keys 9 Each atomic ODL attribute translates to a relational attribute. 9 ODL allows non-atomic attributes (structures and collection types): Structure: make one attribute for each field. SET: make one tuple for each member of the set. (More than one set attribute? Make tuples for all combinations.) BAG: make only distinct tuples, add a count attribute LIST: make one member for each member of the list, add a position attribute ARRAY: fixed length, add each field in the array as own attributes DICTIONARY: represent as set, but with a tuple for all pairs that are member of the dictionary 9 ODL class may have no key, but we should have one in the relation to represent OID. Translating ODL to Relations: Attributes and Keys - Example ODL class: class Person (extent persons key name) { attribute string name; attribute Struct Addr{string street, string city} address; attribute Set<string> phone; } name street city phone Relation schema: persons (name, street, city, phone) n 1 s 1 c 1 p 1 n 1 s 1 c 1 p 2 9 Surprise : the key for the class (name) is not the key for the relation (name, phone): name in the class determines a unique object, including a set of phone numbers. name in the relation does not determine a unique tuple. Since tuples are not identical to objects, there is no inconsistency! 9 BCNF violation: name Æ (street, city), name not superkey, separate out name-phone. 3

4 Translating ODL to Relations: Relationships 9 Can create a new relation for each relationship 9 If the relationship is many-to-one from A to B, put key of B attributes in the relation for class A. 9 If relationship is many-many, we ll have to duplicate A-tuples as in ODL with set-valued attributes. Wouldn t you really rather create a separate relation for a many-many-relationship? You ll wind up separating it anyway, during BCNF decomposition. Translating ODL to Relations: Relationships - Example ODL class: class Person (extent persons key name) { attribute string name; attribute Struct Addr{string street, string city} address; relationship Set<Cars> owncar inverse Cars::ownedBy; relationship Person spouse inverse spouse; relationship Set<Person> buddies inverse buddies; } Relation schema: persons (name, street, city, owncar, spouse, buddies) 9 BCNF violation: name Æ (street, city, spouse) 9 4NF violation: name ÆÆ owncar buddies 9 Decomposition into 4NF: persons (name, street, city, spouse) persons_cars (name, owncar) persons_buddies (name, buddies) 4

5 Object-Relational Database Systems (ORDBS) Data Models & Database System Architectures - Chronological Overview - 9 Network Data Models (1964) 9 Hierarchical Data Models (1968) 9 Relational Data Models (1970) 9 Object-oriented Data Models (~ 1985) 9 Object-relational Data Models (~ 1990) 9 Semistructured Data Models (XML 1.0) (~1998) INF 212 database theory 2002 Pål Halvorsen 5

6 Object-Relational Database Systems (ORDBS) 9 Motivations Allow DBMS to deal with specialized types maps, signals, images, etc. with their own specialized methods. Supports specialized methods even on conventional relational data. Supports structure more complex than flat files. Ö Object-oriented ideas enter the relational world Keep the relation as the fundamental abstraction whereas the OODBS use the class as the fundamental abstraction. ORDBS: New Features 9 Structured types Not only atomic types. ODL-like type system. (Also: BLOB, CLOB, ADT, BFILE) 9 Methods Special operations can be defined for a type. 9 Identifiers Allowing unique IDs for each tuple. 9 References Pointers to tuples. 6

7 ORDBS: Nested Relations 9 Attributes may have non-atomic types Nested-relational data models give up 1NF (atomic values) A relation s type can be any schema consisting one or more attributes. An attribute may even have an own schema as type. 9 Example: moviestar(name, address(street,city), birth, movies(title,year)) name address street Fisher city Maple Hollywood 5. Avenue New York street Hamill birth title 9/9/1950 city Sunset Bvld LA movie year Star Wars 1977 Empire 1980 title 8/8/1962 year Star Wars 1977 Return 1983 ORDBS: References - I 9Non-normalized relation 9Introduce references to allow a tuple t refer to a tuple s rather than including s in t. name address street Fisher Hamill city Maple Hollywood 5. Avenue New York street movie title 9/9/1950 city Sunset Blvd LA birth Star Wars 1977 Empire 1980 title 8/8/1962 year year Star Wars 1977 Return

8 ORDBS: References - II 9 If attribute A has a type that is a reference to a relation with schema R, we denote A as A(*R) 9 If A is a set of references, we denote A as A({*R}) 9 Example: moviestar(name, address(street,city), birth, movies({*movies})) movies(title,year) name address birth movie Fisher street Maple 5. Avenue city Hollywood New York 9/9/1950 title Star Wars Empire year Hamil street Sunset Bvld city LA 8/8/1962 Return 1883 OODBS vs. ORDBS - I two ways to integrate object-orientation into DBS Æ both directions (OODBS and ORDBS) are also reflected in the standard developments Several vendors: commercial OODBS: commercial ORDBS: -GemStone -ORACLE - O2 (now: Ardent) - Sybase - ObjectivityDB - Illustra - ObjectStore - UNISQL - ONTOS POET -Versant

9 OODBS vs. ORDBS - II 9 Objects/tuples: Both objects and tuples are structs with components for attributes and relationships 9 Extents/relations: Both may share the same declaration among several collections 9 Methods: Both has the same ability to declare and define methods associated with a type 9 Type systems: Both are based on atomic types and constructions of new types by structs and collection types 9 References/OID: OODBS OID hidden ORDBS ID visible (may be part of type) 9 Backwards Compatibility: Migrating existing applications to an OODBS require extensive rewriting, but ORDBSes have maintained backward compatibility OODBS: OODBS vs. ORDBS - III 9 simpler way for programmer to use DBS (familiar with OOPLs) 9 seamlessness, no impedance mismatch 9 OO functionality + DBS functionality Æ higher performance for specific applications 9 revolutionary approach, no legacy problems 9... ORDBS: 9 substancial investment in SQL-based rel. DBSs Æ evolutionary approach 9 systems are more robust due to many years of usage and experience 9 application development tools 9 transaction processing performance 9... prediction: both kinds of systems will exist, used for different kinds of applications 9

10 Semi-Structured Data Information Integration - I Problem: related data exists in many places. They talk about the same things, but differ in model, schema, conventions (e.g., terminology). How should one retrieve data from different places? Examples: In the real world, every bar has its own database. 9 Some may have relations like beer-price; others have an Microsoft Word file from which the menu is printed. 9 Some keep phones of manufacturers but not addresses. 9 Some distinguish beers and ales; others do not. 10

11 Information Integration - II 9 Warehousing: Make copies of information at each data source centrally, combine into a global schema. Query data stored at the warehouse. Reconstruct (recopy) data daily/weekly/monthly, but do not try to keep it up-to-date. 9 Mediation: Create a view of all information, but do not make copies. Answer queries by sending appropriate queries to sources (no local data). Semi-Structured Data 9 Semi-structured data model allows information from several sources, with related but different properties, to be fit together in one whole. Thus, suitable for integration of databases sharing information on the Web 9 Semi-structured data is data that may be irregular or incomplete and have a structure that may change rapidly or unpredictably. It generally has some structure, but does not conform to a fixed schema Schemaless and self-describing, i.e., data carries information about its own schema (e.g., in terms of XML element tags) 9 Characteristics Heterogeneous Irregular structure Large evolving schema 9 Major application: XML documents 11

12 Semi-Structured Data: Graph Representation 9 Collection of nodes Atomic values on leaf nodes Interior nodes have one or more arcs 9 Nodes connected in a general rooted graph structure 9 Labels on arcs name of attribute/type relationship 9 Example: Beer-Bar-Manufacturer name bud makes root beer beer name miller serves bar addr name servedat manufacturer Joe s madeby name addr Extensible Markup Language (XML) 12

13 Data Models & Database System Architectures - Chronological Overview - 9 Network Data Models (1964) 9 Hierarchical Data Models (1968) 9 Relational Data Models (1970) 9 Object-oriented Data Models (~ 1985) 9 Object-relational Data Models (~ 1990) 9 Semistructured Data Models (XML 1.0) (~1998) INF 212 database theory 2002 Pål Halvorsen Extensible Markup Language (XML) 9 Standard of the World Wide Web Consortium (W3C) in An XML document is only a file of characters 9 Similar to HTML, but HTML uses tags for formatting (e.g., italic ). XML uses tags for semantics (e.g., this is an address ). 9 Two modes: Well-formed XML allows you to invent your own tags, much like labels in semi-structured data. Valid XML involves a Document Type Definition (DTD) that tells the labels and gives a grammar for how they may be nested. INF 212 database theory 2002 Pål Halvorsen 13

14 Tags 9 Tags are text surrounded by brackets, i.e., <...> 9 Tags come in matching pairs, e.g., <FOO> is balanced by </FOO> 9 Nesting allowed (start and end in same range), e.g., <BAR> <NAME></NAME> </BAR> 9 Unbalanced tags not allowed, e.g., <P>, <BR>, and <HR> in HTML INF 212 database theory 2002 Pål Halvorsen Well-Formed XML 9 Minimal requirement: XML declaration and root tags surrounding entire body <? XML VERSION = "1.0" STANDALONE = "yes"?> <XXX>... </XXX> NOTE 1: XML version NOTE 2: there is no DTD specified INF 212 database theory 2002 Pål Halvorsen 14

15 Well-Formed Example <?XML VERSION = "1.0" STANDALONE = "yes"?> <BARS> <BAR> <NAME>Joe s Bar</NAME> <BEER> <NAME>Bud</NAME> <PRICE>2.50</PRICE> </BEER> <BEER> <NAME>Miller</NAME> <PRICE>3.00</PRICE> </BEER> </BAR> <BAR>... </BAR> </BARS> NOTE 1: only balanced tags NOTE 2: value between two surrounding tags NOTE 3: nesting within the same range Document Type Definitions (DTD) 9 Essentially a grammar describing the legal nesting of tags 9 Intention is that DTD s will be standards for a domain, used by everyone preparing or using data in that domain Example: a DTD for describing protein structure; a DTD for describing bar menus, etc. 9 Structure of a DTD: <!DOCTYPE root tag [ <!ELEMENT name (components)>... more elements... ]> 9 The root-tag is used to surround the document which uses these rules 15

16 Elements of a DTD 9 An element is a name (its tag) and a parenthesized description of tags within an element. 9 Special case: (#PCDATA) after an element name means it is text. 9 Each element name is a tag. 9 Its components are the tags that appear nested within, in the order specified. 9 Multiplicity of a tag is controlled by: 1. * = zero or more of = one or more of. 3.? = zero or one of. 9 In addition: = or. DTD: Example <!DOCTYPE Bars [ <!ELEMENT BARS (BAR*)> <!ELEMENT BAR (NAME, BEER+)> <!ELEMENT NAME (#PCDATA)> <!ELEMENT BEER (NAME, PRICE)> <!ELEMENT PRICE (#PCDATA)> ]> NOTE 1: BARS is root-tag NOTE 2: multiplicity of tags NOTE 3: name (and price) has a text value NOTE 4: Inside <BARS>-tag we ll find zero or more <BAR>-tags NOTE 5: a BAR has a name and serves one or more beers (which again has components) 16

17 Using a DTD 9 To use a DTD, set STANDALONE = "no": <?XML VERSION = "1.0" STANDALONE = "no"?> 9 Either Include the DTD as a preamble, or Follow the XML tag by a DOCTYPE declaration with the root tag, the keyword SYSTEM, and a file where the DTD can be found. Using a DTD: Example <?XML VERSION = "1.0" STANDALONE = "no"?> <!DOCTYPE Bars [ SYSTEM "bar.dtd"> <!ELEMENT BARS (BAR*)> <!ELEMENT BAR (NAME, BEER+)> <!ELEMENT NAME (#PCDATA)> <!ELEMENT BEER (NAME, PRICE)> <!ELEMENT PRICE (#PCDATA)> ]> <BARS> <BAR><NAME>Joe s Bar</NAME> <BEER> <NAME>Bud</NAME> <PRICE>2.50</PRICE></BEER> <BEER> <NAME>Miller</NAME> <PRICE>3.00</PRICE></BEER> </BAR> <BAR>... </BARS> NOTE 1: DTD may be in a separate file NOTE 2: DTD may be included as a preamble NOTE 3: BARS is root-tag and surround the document which uses these rules NOTE 4: BEER has a name and a price NOTE 5: BAR has a name and serves one or more beers. 17

18 Attribute Lists 9 Opening tags can have arguments that appear within the tag, in analogy to constructs like <A HREF =...> in HTML. 9 Keyword!ATTLIST introduces a list of attributes and their types for a given element in the DTD. 9 Example of declaration: <!ELEMENT BAR (NAME BEER*)> <!ATTLIST BAR type = "sushi" "sports" "other"> 9 Bar objects can have a type, and the value of that type is limited to the three strings shown. 9 Example of use: <BAR type = "sports">... </BAR> ID s and IDREF s 9 ID is used to give a unique name for an element/object 9 IDREF is used to provide pointers to elements/object (by the ID-name), and multiple object references within one tag is allowed. IDREFS is used if there might be a set of references 9 Analogous to NAME = foo and HREF = #foo in HTML 9 Allows the structure of an XML document to be a general graph, rather than just a tree. 18

19 ID s and IDREF s: Example 9 Let us include in our Bars document type elements that are the manufacturers of beers, and have each beer object link, with an IDREF, to the proper manufacturer object: NOTE 1: MANUFACTURER has <!DOCTYPE Bars [ a name-id <!ELEMENT BARS (BAR*)> <!ELEMENT BAR (NAME, BEER+)> NOTE 2: <!ELEMENT NAME (#PCDATA)> BEER has a poiner <!ELEMENT MANUFACTURER (ADDR,...)> to a manufacturer <!ATTLIST MANUFACTURER (name ID)> <!ELEMENT ADDR (#PCDATA)> NOTE 3: <!ELEMENT BEER (NAME, PRICE)> The IDREF value in <!ATTLIST BEER (manf IDREF)> BEER equals the ID <!ELEMENT PRICE (#PCDATA)> value in the ]> corresponding... manufacturer <MANUFACTURER name= ="X">...</MANUFACTURER>... <BEER manf="x"><name>bud</name><price>2.50</price></beer> Summary 9 From ODL design to relational design 9 Object-relational DBSes (ORDBS) 9 Semi-structured data 9 Extensible Markup Language (XML) 19

Object-Relational Database Systems (ORDBS) Contains slides made by Naci Akkøk, Pål Halvorsen, Arthur M. Keller and Vera Goebel.

Object-Relational Database Systems (ORDBS) Contains slides made by Naci Akkøk, Pål Halvorsen, Arthur M. Keller and Vera Goebel. Object-Relational Database Systems (ORDBS) Contains slides made by Naci Akkøk, Pål Halvorsen, Arthur M. Keller and Vera Goebel. Data Models & Database System Architectures - Chronological Overview - Network

More information

Relational Data Model is quite rigid. powerful, but rigid.

Relational Data Model is quite rigid. powerful, but rigid. Lectures Desktop - 2 (C) Page 1 XML Tuesday, April 27, 2004 8:43 AM Motivation: Relational Data Model is quite rigid. powerful, but rigid. With the explosive growth of the Internet, electronic information

More information

XML. Document Type Definitions XML Schema. Database Systems and Concepts, CSCI 3030U, UOIT, Course Instructor: Jarek Szlichta

XML. Document Type Definitions XML Schema. Database Systems and Concepts, CSCI 3030U, UOIT, Course Instructor: Jarek Szlichta XML Document Type Definitions XML Schema 1 XML XML stands for extensible Markup Language. XML was designed to describe data. XML has come into common use for the interchange of data over the Internet.

More information

CSCI3030U Database Models

CSCI3030U Database Models CSCI3030U Database Models CSCI3030U RELATIONAL MODEL SEMISTRUCTURED MODEL 1 Content Design of databases. relational model, semistructured model. Database programming. SQL, XPath, XQuery. Not DBMS implementation.

More information

CS145 Introduction. About CS145 Relational Model, Schemas, SQL Semistructured Model, XML

CS145 Introduction. About CS145 Relational Model, Schemas, SQL Semistructured Model, XML CS145 Introduction About CS145 Relational Model, Schemas, SQL Semistructured Model, XML 1 Content of CS145 Design of databases. E/R model, relational model, semistructured model, XML, UML, ODL. Database

More information

XML. Document Type Definitions. Database Systems and Concepts, CSCI 3030U, UOIT, Course Instructor: Jarek Szlichta

XML. Document Type Definitions. Database Systems and Concepts, CSCI 3030U, UOIT, Course Instructor: Jarek Szlichta XML Document Type Definitions 1 XML XML stands for extensible Markup Language. XML was designed to describe data. XML has come into common use for the interchange of data over the Internet. 2 Well-Formed

More information

XQUERY: an XML Query Language

XQUERY: an XML Query Language SQL-99 XQUERY: an XML Query Language 5/3-2002 by Pål Halvorsen (edited by N. Akkøk spring semester 2003) Contains slides made by Arthur M. Keller, Vera Goebel SQL-99 user-defined types (UDTs) methods for

More information

Text. Additional ODL Concepts OO Model to Relational Model Object-Relational Design OO vs OR. New edition/complete book: Section

Text. Additional ODL Concepts OO Model to Relational Model Object-Relational Design OO vs OR. New edition/complete book: Section Additional ODL Concepts OO Model to Relational Model Object-Relational Design OO vs OR Text New edition/complete book: Section 4.3-4.5 Old edition: 2.4.1, 2.4.2 2.5.2, 2.5.5 3.2 (all subsections) 3.4.1

More information

Semistructured data, XML, DTDs

Semistructured data, XML, DTDs Semistructured data, XML, DTDs Introduction to Databases Manos Papagelis Thanks to Ryan Johnson, John Mylopoulos, Arnold Rosenbloom and Renee Miller for material in these slides Structured vs. unstructured

More information

Introduction to XML. Yanlei Diao UMass Amherst April 17, Slides Courtesy of Ramakrishnan & Gehrke, Dan Suciu, Zack Ives and Gerome Miklau.

Introduction to XML. Yanlei Diao UMass Amherst April 17, Slides Courtesy of Ramakrishnan & Gehrke, Dan Suciu, Zack Ives and Gerome Miklau. Introduction to XML Yanlei Diao UMass Amherst April 17, 2008 Slides Courtesy of Ramakrishnan & Gehrke, Dan Suciu, Zack Ives and Gerome Miklau. 1 Structure in Data Representation Relational data is highly

More information

Answer Key for Exam II Computer Science 420 Dr. St. John Lehman College City University of New York 18 April 2002

Answer Key for Exam II Computer Science 420 Dr. St. John Lehman College City University of New York 18 April 2002 Answer Key for Exam II Computer Science 420 Dr. St. John Lehman College City University of New York 18 April 2002 1. True or False: (a) T Every set is a bag. (b) T SQL regards relations as bags of tuples,

More information

Contains slides made by Naci Akkøk, Pål Halvorsen, Arthur M. Keller, Vera Goebel

Contains slides made by Naci Akkøk, Pål Halvorsen, Arthur M. Keller, Vera Goebel SQL-99 Contains slides made by Naci Akkøk, Pål Halvorsen, Arthur M. Keller, Vera Goebel SQL-99 user-defined types (UDTs) methods for UDTs declarations references operations Overview 2 SQL Development SQL-86

More information

Introduction to Database Systems CSE 414

Introduction to Database Systems CSE 414 Introduction to Database Systems CSE 414 Lecture 14-15: XML CSE 414 - Spring 2013 1 Announcements Homework 4 solution will be posted tomorrow Midterm: Monday in class Open books, no notes beyond one hand-written

More information

W5.L2. Week 5, Lecture 2

W5.L2. Week 5, Lecture 2 W5.L2 Week 5, Lecture 2 Part 1: ODMG and ODMG s s object model Part 2: Introduction to Object Definition Language (ODL) Part 3: Introduction to Object-Relational Database Management Systems (OR-DBMS) M.

More information

CSE 880. Advanced Database Systems. Semistuctured Data and XML

CSE 880. Advanced Database Systems. Semistuctured Data and XML CSE 880 Advanced Database Systems Semistuctured Data and XML S. Pramanik 1 Semistructured Data 1. Data is self describing with schema embedded to the data itself. 2. Theembeddedschemacanchangewithtimejustlike

More information

COURSE 11. Object-Oriented Databases Object Relational Databases

COURSE 11. Object-Oriented Databases Object Relational Databases COURSE 11 Object-Oriented Databases Object Relational Databases 1 The Need for a DBMS On one hand we have a tremendous increase in the amount of data applications have to handle, on the other hand we want

More information

Running Example Tables name location

Running Example Tables name location Running Example Pubs-Drinkers-DB: The data structures of the relational model Attributes and domains Relation schemas and database schemas databases Pubs (name, location) Drinkers (name, location) Sells

More information

Query Languages for XML

Query Languages for XML Query Languages for XML XPath XQuery 1 The XPath/XQuery Data Model Corresponding to the fundamental relation of the relational model is: sequence of items. An item is either: 1. A primitive value, e.g.,

More information

EMERGING TECHNOLOGIES. XML Documents and Schemas for XML documents

EMERGING TECHNOLOGIES. XML Documents and Schemas for XML documents EMERGING TECHNOLOGIES XML Documents and Schemas for XML documents Outline 1. Introduction 2. Structure of XML data 3. XML Document Schema 3.1. Document Type Definition (DTD) 3.2. XMLSchema 4. Data Model

More information

Introduction to Semistructured Data and XML. Overview. How the Web is Today. Based on slides by Dan Suciu University of Washington

Introduction to Semistructured Data and XML. Overview. How the Web is Today. Based on slides by Dan Suciu University of Washington Introduction to Semistructured Data and XML Based on slides by Dan Suciu University of Washington CS330 Lecture April 8, 2003 1 Overview From HTML to XML DTDs Querying XML: XPath Transforming XML: XSLT

More information

Administrivia. CS 235: Introduction to Databases. Examples. What is a DBMS? The DBMS Marketplace. Relational Model

Administrivia. CS 235: Introduction to Databases. Examples. What is a DBMS? The DBMS Marketplace. Relational Model Administrivia CS 235: Introduction to Databases Svetlozar Nestorov Three handouts today: Course info, Schedule, Slides. Latest info will always be online! Come to class! Ask questions! Give feedback! Have

More information

Additional Readings on XPath/XQuery Main source on XML, but hard to read:

Additional Readings on XPath/XQuery Main source on XML, but hard to read: Introduction to Database Systems CSE 444 Lecture 10 XML XML (4.6, 4.7) Syntax Semistructured data DTDs XML Outline April 21, 2008 1 2 Further Readings on XML Additional Readings on XPath/XQuery Main source

More information

CSE 544 Data Models. Lecture #3. CSE544 - Spring,

CSE 544 Data Models. Lecture #3. CSE544 - Spring, CSE 544 Data Models Lecture #3 1 Announcements Project Form groups by Friday Start thinking about a topic (see new additions to the topic list) Next paper review: due on Monday Homework 1: due the following

More information

Chapter 12 Object and Object Relational Databases

Chapter 12 Object and Object Relational Databases Chapter 12 Object and Object Relational Databases - Relational Data Model - Object data model (OODBs) - Object-relational data models Traditional data models -network - hierarchical - relational They lack

More information

Chapter 2 The relational Model of data. Relational model introduction

Chapter 2 The relational Model of data. Relational model introduction Chapter 2 The relational Model of data Relational model introduction 1 Contents What is a data model? Basics of the relational model Next : How to define? How to query? Constraints on relations 2 What

More information

The data structures of the relational model Attributes and domains Relation schemas and database schemas

The data structures of the relational model Attributes and domains Relation schemas and database schemas The data structures of the relational model Attributes and domains Relation schemas and database schemas databases First normal form (1NF) Running Example Pubs-Drinkers-DB: Pubs (name, location) Drinkers

More information

Object-Oriented Database Languages. Object Description Language Object Query Language

Object-Oriented Database Languages. Object Description Language Object Query Language Object-Oriented Database Languages Object Description Language Object Query Language 1 Object-Oriented DBMS s Standards group: ODMG = Object Data Management Group. ODL = Object Description Language, like

More information

Ch. 21: Object Oriented Databases

Ch. 21: Object Oriented Databases Ch. 21: Object Oriented Databases Learning Goals: * Learn about object data model * Learn about o.o. query languages, transactions Topics: * 21.1 * 21.2 * 21.3 * 21.4 * 21.5 Source: Ch#21, Bertino93, Kim

More information

Introduction to Semistructured Data and XML

Introduction to Semistructured Data and XML Introduction to Semistructured Data and XML Chapter 27, Part D Based on slides by Dan Suciu University of Washington Database Management Systems, R. Ramakrishnan 1 How the Web is Today HTML documents often

More information

Course Content. Object-Oriented Databases. Objectives of Lecture 6. CMPUT 391: Object Oriented Databases. Dr. Osmar R. Zaïane. University of Alberta 4

Course Content. Object-Oriented Databases. Objectives of Lecture 6. CMPUT 391: Object Oriented Databases. Dr. Osmar R. Zaïane. University of Alberta 4 Database Management Systems Fall 2001 CMPUT 391: Object Oriented Databases Dr. Osmar R. Zaïane University of Alberta Chapter 25 of Textbook Course Content Introduction Database Design Theory Query Processing

More information

Introduction to SQL SELECT-FROM-WHERE STATEMENTS SUBQUERIES DATABASE SYSTEMS AND CONCEPTS, CSCI 3030U, UOIT, COURSE INSTRUCTOR: JAREK SZLICHTA

Introduction to SQL SELECT-FROM-WHERE STATEMENTS SUBQUERIES DATABASE SYSTEMS AND CONCEPTS, CSCI 3030U, UOIT, COURSE INSTRUCTOR: JAREK SZLICHTA Introduction to SQL SELECT-FROM-WHERE STATEMENTS MULTIRELATION QUERIES SUBQUERIES 1 SQL SQL is a standard language for accessing databases. SQL stands for Structured Query Language. SQL lecture s material

More information

Introduction to Database Systems CSE 444

Introduction to Database Systems CSE 444 Introduction to Database Systems CSE 444 Lecture 25: XML 1 XML Outline XML Syntax Semistructured data DTDs XPath Coverage of XML is much better in new edition Readings Sections 11.1 11.3 and 12.1 [Subset

More information

10/24/12. What We Have Learned So Far. XML Outline. Where We are Going Next. XML vs Relational. What is XML? Introduction to Data Management CSE 344

10/24/12. What We Have Learned So Far. XML Outline. Where We are Going Next. XML vs Relational. What is XML? Introduction to Data Management CSE 344 What We Have Learned So Far Introduction to Data Management CSE 344 Lecture 12: XML and XPath A LOT about the relational model Hand s on experience using a relational DBMS From basic to pretty advanced

More information

CS54100: Database Systems

CS54100: Database Systems CS54100: Database Systems Data Modeling 13 January 2012 Prof. Chris Clifton Main categories of data models Logical models: used to describe, organize and access data in DBMS; application programs refers

More information

Introduction to Data Management CSE 344

Introduction to Data Management CSE 344 Introduction to Data Management CSE 344 Lecture 11: XML and XPath 1 XML Outline What is XML? Syntax Semistructured data DTDs XPath 2 What is XML? Stands for extensible Markup Language 1. Advanced, self-describing

More information

Data Formats and APIs

Data Formats and APIs Data Formats and APIs Mike Carey mjcarey@ics.uci.edu 0 Announcements Keep watching the course wiki page (especially its attachments): https://grape.ics.uci.edu/wiki/asterix/wiki/stats170ab-2018 Ditto for

More information

Semistructured Data and XML

Semistructured Data and XML Semistructured Data and XML Computer Science E-66 Harvard University David G. Sullivan, Ph.D. Structured Data The logical models we've covered thus far all use some type of schema to define the structure

More information

Introduction to Database Design, fall 2011 IT University of Copenhagen. Normalization. Rasmus Pagh

Introduction to Database Design, fall 2011 IT University of Copenhagen. Normalization. Rasmus Pagh Introduction to Database Design, fall 2011 IT University of Copenhagen Normalization Rasmus Pagh Based on KBL sections 6.1-6.8 (except p. 203 207m), 6.9 (until Multivalued dependencies ), 6.11, and 6.12.

More information

Chapter 13 XML: Extensible Markup Language

Chapter 13 XML: Extensible Markup Language Chapter 13 XML: Extensible Markup Language - Internet applications provide Web interfaces to databases (data sources) - Three-tier architecture Client V Application Programs Webserver V Database Server

More information

Introduction to SQL. Select-From-Where Statements Multirelation Queries Subqueries. Slides are reused by the approval of Jeffrey Ullman s

Introduction to SQL. Select-From-Where Statements Multirelation Queries Subqueries. Slides are reused by the approval of Jeffrey Ullman s Introduction to SQL Select-From-Where Statements Multirelation Queries Subqueries Slides are reused by the approval of Jeffrey Ullman s 1 Why SQL? SQL is a very-high-level language. Say what to do rather

More information

3. Object-Oriented Databases

3. Object-Oriented Databases 3. Object-Oriented Databases Weaknesses of Relational DBMSs Poor representation of 'real world' entities Poor support for integrity and business rules Homogenous data structure Limited operations Difficulty

More information

CSE 544 Principles of Database Management Systems. Lecture 4: Data Models a Never-Ending Story

CSE 544 Principles of Database Management Systems. Lecture 4: Data Models a Never-Ending Story CSE 544 Principles of Database Management Systems Lecture 4: Data Models a Never-Ending Story 1 Announcements Project Start to think about class projects If needed, sign up to meet with me on Monday (I

More information

Introduction to Database Systems CSE 414

Introduction to Database Systems CSE 414 Introduction to Database Systems CSE 414 Lecture 13: XML and XPath 1 Announcements Current assignments: Web quiz 4 due tonight, 11 pm Homework 4 due Wednesday night, 11 pm Midterm: next Monday, May 4,

More information

Relational data model

Relational data model Relational data model Iztok Savnik FAMNIT, 18/19 Why Study the Relational Model? Most widely used model. Vendors: IBM, Informix, Microsoft, Oracle, Sybase, etc. Legacy systems in older models E.G., IBM

More information

Systems Analysis and Design in a Changing World, Fourth Edition. Chapter 12: Designing Databases

Systems Analysis and Design in a Changing World, Fourth Edition. Chapter 12: Designing Databases Systems Analysis and Design in a Changing World, Fourth Edition Chapter : Designing Databases Learning Objectives Describe the differences and similarities between relational and object-oriented database

More information

S emistructured Data & XML

S emistructured Data & XML S emistructured Data & XML Database Systems, A Practical Approach to Design, Implementation and Management (Connolly & Begg, Ch. 29) XML Bible (Harold, Ch. 1) S lide:1 14/04/04 1 Overview Semistructured

More information

Overview. Structured Data. The Structure of Data. Semi-Structured Data Introduction to XML Querying XML Documents. CMPUT 391: XML and Querying XML

Overview. Structured Data. The Structure of Data. Semi-Structured Data Introduction to XML Querying XML Documents. CMPUT 391: XML and Querying XML Database Management Systems Winter 2004 CMPUT 391: XML and Querying XML Lecture 12 Overview Semi-Structured Data Introduction to XML Querying XML Documents Dr. Osmar R. Zaïane University of Alberta Chapter

More information

Database Systems. Sven Helmer. Database Systems p. 1/567

Database Systems. Sven Helmer. Database Systems p. 1/567 Database Systems Sven Helmer Database Systems p. 1/567 Chapter 1 Introduction and Motivation Database Systems p. 2/567 Introduction What is a database system (DBS)? Obviously a system for storing and managing

More information

Relational Algebra and SQL. Basic Operations Algebra of Bags

Relational Algebra and SQL. Basic Operations Algebra of Bags Relational Algebra and SQL Basic Operations Algebra of Bags 1 What is an Algebra Mathematical system consisting of: Operands --- variables or values from which new values can be constructed. Operators

More information

XML: Extensible Markup Language

XML: Extensible Markup Language XML: Extensible Markup Language CSC 375, Fall 2015 XML is a classic political compromise: it balances the needs of man and machine by being equally unreadable to both. Matthew Might Slides slightly modified

More information

The concept of DTD. DTD(Document Type Definition) Why we need DTD

The concept of DTD. DTD(Document Type Definition) Why we need DTD Contents Topics The concept of DTD Why we need DTD The basic grammar of DTD The practice which apply DTD in XML document How to write DTD for valid XML document The concept of DTD DTD(Document Type Definition)

More information

Copyright 2007 Ramez Elmasri and Shamkant B. Navathe. Slide 27-1

Copyright 2007 Ramez Elmasri and Shamkant B. Navathe. Slide 27-1 Slide 27-1 Chapter 27 XML: Extensible Markup Language Chapter Outline Introduction Structured, Semi structured, and Unstructured Data. XML Hierarchical (Tree) Data Model. XML Documents, DTD, and XML Schema.

More information

Lab Manual BE(IT) SEM VII

Lab Manual BE(IT) SEM VII Lab Manual ADVANCED DATABASES BE(IT) SEM VII Index Sr. No. Title of Programming Assignment Page No. 1 Study of EER diagram. 2 Study of ODL schema. 3 Implement Abstract data type. 4 Implement Varrays.

More information

Beyond Rows and Columns: Is the Fourth Time the Charm? The Birth of Today s DBMS Field

Beyond Rows and Columns: Is the Fourth Time the Charm? The Birth of Today s DBMS Field Beyond Rows and Columns: Is the Fourth Time the Charm? Michael J. Carey University of California-Irvine and Couchbase, Inc. The Birth of Today s DBMS Field In the beginning was the Word, and the Word was

More information

Parallel/Distributed Databases XML

Parallel/Distributed Databases XML Parallel/Distributed Databases XML Mihai Pop CMSC424 most slides courtesy of Amol Deshpande Project due today Admin Sign up for demo, if you haven't already myphpbib.sourceforge.net - example publication

More information

ODBMS: PROTOTYPES & PRODUCTS. The ODBMS Manifesto [M.Atkinson & al 89]

ODBMS: PROTOTYPES & PRODUCTS. The ODBMS Manifesto [M.Atkinson & al 89] ODBMS: PROTOTYPES & PRODUCTS Systems providing object databases programming languages Prototypes: Encore-Ob/Server (Brown Univ.), IRIS (Hewlett- Packard), EXODUS (Winsconsin Univ.), Zeitgeist (Texas Instrument),

More information

Chapter 1: Introduction

Chapter 1: Introduction Chapter 1: Introduction Database System Concepts, 6 th Ed. See www.db-book.com for conditions on re-use Outline The Need for Databases Data Models Relational Databases Database Design Storage Manager Query

More information

Copyright 2016 Ramez Elmasri and Shamkant B. Navathe

Copyright 2016 Ramez Elmasri and Shamkant B. Navathe Chapter 12 Outline Overview of Object Database Concepts Object-Relational Features Object Database Extensions to SQL ODMG Object Model and the Object Definition Language ODL Object Database Conceptual

More information

CS425 Fall 2016 Boris Glavic Chapter 1: Introduction

CS425 Fall 2016 Boris Glavic Chapter 1: Introduction CS425 Fall 2016 Boris Glavic Chapter 1: Introduction Modified from: Database System Concepts, 6 th Ed. See www.db-book.com for conditions on re-use Textbook: Chapter 1 1.2 Database Management System (DBMS)

More information

B.H.GARDI COLLEGE OF MASTER OF COMPUTER APPLICATION. Ch. 1 :- Introduction Database Management System - 1

B.H.GARDI COLLEGE OF MASTER OF COMPUTER APPLICATION. Ch. 1 :- Introduction Database Management System - 1 Basic Concepts :- 1. What is Data? Data is a collection of facts from which conclusion may be drawn. In computer science, data is anything in a form suitable for use with a computer. Data is often distinguished

More information

DATABASE TECHNOLOGY - 1DL124

DATABASE TECHNOLOGY - 1DL124 1 DATABASE TECHNOLOGY - 1DL124 Summer 2007 An introductury course on database systems http://user.it.uu.se/~udbl/dbt-sommar07/ alt. http://www.it.uu.se/edu/course/homepage/dbdesign/st07/ Kjell Orsborn

More information

Introduction to Database Systems. Fundamental Concepts

Introduction to Database Systems. Fundamental Concepts Introduction to Database Systems Fundamental Concepts Werner Nutt 1 Characteristics of the DB Approach Insulation of application programs and data from each other Use of a ue to store the schema Support

More information

Introduction to Relational Databases. Introduction to Relational Databases cont: Introduction to Relational Databases cont: Relational Data structure

Introduction to Relational Databases. Introduction to Relational Databases cont: Introduction to Relational Databases cont: Relational Data structure Databases databases Terminology of relational model Properties of database relations. Relational Keys. Meaning of entity integrity and referential integrity. Purpose and advantages of views. The relational

More information

The Relational Model. Chapter 3

The Relational Model. Chapter 3 The Relational Model Chapter 3 Why Study the Relational Model? Most widely used model. Systems: IBM DB2, Informix, Microsoft (Access and SQL Server), Oracle, Sybase, MySQL, etc. Legacy systems in older

More information

Introduction Syntax and Usage XML Databases Java Tutorial XML. November 5, 2008 XML

Introduction Syntax and Usage XML Databases Java Tutorial XML. November 5, 2008 XML Introduction Syntax and Usage Databases Java Tutorial November 5, 2008 Introduction Syntax and Usage Databases Java Tutorial Outline 1 Introduction 2 Syntax and Usage Syntax Well Formed and Valid Displaying

More information

CSE 544 Principles of Database Management Systems. Fall 2016 Lecture 4 Data models A Never-Ending Story

CSE 544 Principles of Database Management Systems. Fall 2016 Lecture 4 Data models A Never-Ending Story CSE 544 Principles of Database Management Systems Fall 2016 Lecture 4 Data models A Never-Ending Story 1 Announcements Project Start to think about class projects More info on website (suggested topics

More information

Introduction to Semistructured Data and XML. Contents

Introduction to Semistructured Data and XML. Contents Contents Overview... 106 What is XML?... 106 How the Web is Today... 108 New Universal Data Exchange Format: XML... 108 What is the W3C?... 108 Semistructured Data... 110 What is Self-describing Data?...

More information

Normalization. Anomalies Functional Dependencies Closures Key Computation Projecting Relations BCNF Reconstructing Information Other Normal Forms

Normalization. Anomalies Functional Dependencies Closures Key Computation Projecting Relations BCNF Reconstructing Information Other Normal Forms Anomalies Functional Dependencies Closures Key Computation Projecting Relations BCNF Reconstructing Information Other Normal Forms Normalization Niklas Fors (niklas.fors@cs.lth.se) Normalization 1 / 45

More information

Keep relation as the fundamental. Compare with ëobject-oriented DBMS," which. and tacks on relations as one of many types.

Keep relation as the fundamental. Compare with ëobject-oriented DBMS, which. and tacks on relations as one of many types. Object-Relational Systems Object-oriented ideas enter the relational world. Keep relation as the fundamental abstraction. Compare with ëobject-oriented DBMS," which uses the class as the fundamental abstraction

More information

Part V. Relational XQuery-Processing. Marc H. Scholl (DBIS, Uni KN) XML and Databases Winter 2007/08 297

Part V. Relational XQuery-Processing. Marc H. Scholl (DBIS, Uni KN) XML and Databases Winter 2007/08 297 Part V Relational XQuery-Processing Marc H Scholl (DBIS, Uni KN) XML and Databases Winter 2007/08 297 Outline of this part (I) 12 Mapping Relational Databases to XML Introduction Wrapping Tables into XML

More information

The Relational Model. Chapter 3. Comp 521 Files and Databases Fall

The Relational Model. Chapter 3. Comp 521 Files and Databases Fall The Relational Model Chapter 3 Comp 521 Files and Databases Fall 2012 1 Why Study the Relational Model? Most widely used model by industry. IBM, Informix, Microsoft, Oracle, Sybase, etc. It is simple,

More information

Describe The Differences In Meaning Between The Terms Relation And Relation Schema

Describe The Differences In Meaning Between The Terms Relation And Relation Schema Describe The Differences In Meaning Between The Terms Relation And Relation Schema describe the differences in meaning between the terms relation and relation schema. consider the bank database of figure

More information

Concepts for Object-Oriented Databases

Concepts for Object-Oriented Databases Concepts for Object-Oriented Databases Chapter 20 March 24, 2008 ADBS: OODB 1 Chapter Outline Overview of O-O Concepts O-O Identity, Object Structure and Type Constructors Encapsulation of Operations,

More information

The Relational Model. Chapter 3. Database Management Systems, R. Ramakrishnan and J. Gehrke 1

The Relational Model. Chapter 3. Database Management Systems, R. Ramakrishnan and J. Gehrke 1 The Relational Model Chapter 3 Database Management Systems, R. Ramakrishnan and J. Gehrke 1 Why Study the Relational Model? Most widely used model. Vendors: IBM, Informix, Microsoft, Oracle, Sybase, etc.

More information

Final Examination Computer Science 420 Dr. St. John Lehman College City University of New York 21 May 2002

Final Examination Computer Science 420 Dr. St. John Lehman College City University of New York 21 May 2002 Final Examination Computer Science 420 Dr. St. John Lehman College City University of New York 21 May 2002 NAME (Printed) NAME (Signed) E-mail Exam Rules Show all your work. Your grade will be based on

More information

Object-Relational and Nested-Relational Databases Dr. Akhtar Ali

Object-Relational and Nested-Relational Databases Dr. Akhtar Ali Extensions to Relational Databases Object-Relational and Nested-Relational Databases By Dr. Akhtar Ali Lecture Theme & References Theme The need for extensions in Relational Data Model (RDM) Classification

More information

CONTEXT FREE GRAMMAR. presented by Mahender reddy

CONTEXT FREE GRAMMAR. presented by Mahender reddy CONTEXT FREE GRAMMAR presented by Mahender reddy What is Context Free Grammar? Why we are using Context Free Grammar? Applications of Context free Grammar. Definition of CFG: A Context free grammar is

More information

Exam I Computer Science 420 Dr. St. John Lehman College City University of New York 12 March 2002

Exam I Computer Science 420 Dr. St. John Lehman College City University of New York 12 March 2002 Exam I Computer Science 420 Dr. St. John Lehman College City University of New York 12 March 2002 NAME (Printed) NAME (Signed) E-mail Exam Rules Show all your work. Your grade will be based on the work

More information

Keep relation as the fundamental. Compare with ëobject-oriented DBMS," which. and tacks on relations as one of many types.

Keep relation as the fundamental. Compare with ëobject-oriented DBMS, which. and tacks on relations as one of many types. Object-Relational Systems Object-oriented ideas enter the relational world. Keep relation as the fundamental abstraction. Compare with ëobject-oriented DBMS," which uses the class as the fundamental abstraction

More information

Supplier-Parts-DB SNUM SNAME STATUS CITY S1 Smith 20 London S2 Jones 10 Paris S3 Blake 30 Paris S4 Clark 20 London S5 Adams 30 Athens

Supplier-Parts-DB SNUM SNAME STATUS CITY S1 Smith 20 London S2 Jones 10 Paris S3 Blake 30 Paris S4 Clark 20 London S5 Adams 30 Athens Page 1 of 27 The Relational Data Model The data structures of the relational model Attributes and domains Relation schemas and database schemas (decomposition) The universal relation schema assumption

More information

Outline. CUGS Core - Databases. Requirements. Work method. Databanks/Databases. Databank

Outline. CUGS Core - Databases. Requirements. Work method. Databanks/Databases. Databank Outline CUGS Core - Databases Patrick Lambrix Linköpings universitet Introduction: storing and accessing data Semi-structured data Information integration Object-oriented and object-relational databases

More information

Chapter 1: Introduction. Chapter 1: Introduction

Chapter 1: Introduction. Chapter 1: Introduction Chapter 1: Introduction Database System Concepts, 5th Ed. See www.db-book.com for conditions on re-use Chapter 1: Introduction Purpose of Database Systems View of Data Database Languages Relational Databases

More information

Ryan Marcotte CS 475 (Advanced Topics in Databases) March 14, 2011

Ryan Marcotte  CS 475 (Advanced Topics in Databases) March 14, 2011 Ryan Marcotte www.cs.uregina.ca/~marcottr CS 475 (Advanced Topics in Databases) March 14, 2011 Outline Introduction to XNF and motivation for its creation Analysis of XNF s link to BCNF Algorithm for converting

More information

XML and Web Services

XML and Web Services XML and Web Services Lecture 8 1 XML (Section 17) Outline XML syntax, semistructured data Document Type Definitions (DTDs) XML Schema Introduction to XML based Web Services 2 Additional Readings on XML

More information

The Semi-Structured Data Model. csc343, Introduction to Databases Diane Horton originally based on slides by Jeff Ullman Fall 2017

The Semi-Structured Data Model. csc343, Introduction to Databases Diane Horton originally based on slides by Jeff Ullman Fall 2017 The Semi-Structured Data Model csc343, Introduction to Databases Diane Horton originally based on slides by Jeff Ullman Fall 2017 Recap: Data models A data model is a notation for describing data, including:

More information

Databases and Database Management Systems

Databases and Database Management Systems Databases and Database Management Systems 1 DBMS concepts and architecture ER model Relational Databases Relational Algebra Query Languages (SQL) Storage and Indexing (optional) Database Design : Normalization

More information

The Relational Model. Chapter 3. Comp 521 Files and Databases Fall

The Relational Model. Chapter 3. Comp 521 Files and Databases Fall The Relational Model Chapter 3 Comp 521 Files and Databases Fall 2014 1 Why the Relational Model? Most widely used model by industry. IBM, Informix, Microsoft, Oracle, Sybase, MySQL, Postgres, Sqlite,

More information

Lectures 12: Design Theory I. 1. Normal forms & functional dependencies 2/19/2018. Today s Lecture. What you will learn about in this section

Lectures 12: Design Theory I. 1. Normal forms & functional dependencies 2/19/2018. Today s Lecture. What you will learn about in this section Today s Lecture Lectures 12: Design Theory I Professor Xiannong Meng Spring 2018 Lecture and activity contents are based on what Prof Chris Ré used in his CS 145 in the fall 2016 term with permission 1.

More information

Chapter 11 Object and Object- Relational Databases

Chapter 11 Object and Object- Relational Databases Chapter 11 Object and Object- Relational Databases Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 11 Outline Overview of Object Database Concepts Object-Relational

More information

Context-Free Grammars and Languages (2015/11)

Context-Free Grammars and Languages (2015/11) Chapter 5 Context-Free Grammars and Languages (2015/11) Adriatic Sea shore at Opatija, Croatia Outline 5.0 Introduction 5.1 Context-Free Grammars (CFG s) 5.2 Parse Trees 5.3 Applications of CFG s 5.4 Ambiguity

More information

Overview. Introduction. Introduction XML XML. Lecture 16 Introduction to XML. Boriana Koleva Room: C54

Overview. Introduction. Introduction XML XML. Lecture 16 Introduction to XML. Boriana Koleva Room: C54 Overview Lecture 16 Introduction to XML Boriana Koleva Room: C54 Email: bnk@cs.nott.ac.uk Introduction The Syntax of XML XML Document Structure Document Type Definitions Introduction Introduction SGML

More information

EMERGING TECHNOLOGIES

EMERGING TECHNOLOGIES EMERGING TECHNOLOGIES XML (Part 3): XQuery Outline 1. Introduction 2. Structure of XML data 3. XML Document Schema 3.1. Document Type Definition (DTD) 3.2. XMLSchema 4. Data Model for XML documents. 5.

More information

Chapter 1: Introduction

Chapter 1: Introduction Chapter 1: Introduction Chapter 1: Introduction Purpose of Database Systems Database Languages Relational Databases Database Design Data Models Database Internals Database Users and Administrators Overall

More information

Constraints. Local and Global Constraints Triggers

Constraints. Local and Global Constraints Triggers Constraints Foreign Keys Local and Global Constraints Triggers 1 Constraints and Triggers A constraint is a relationship among data elements that the DBMS is required to enforce. Example: key constraints.

More information

CISC 3140 (CIS 20.2) Design & Implementation of Software Application II

CISC 3140 (CIS 20.2) Design & Implementation of Software Application II CISC 3140 (CIS 20.2) Design & Implementation of Software Application II Instructor : M. Meyer Email Address: meyer@sci.brooklyn.cuny.edu Course Page: http://www.sci.brooklyn.cuny.edu/~meyer/ CISC3140-Meyer-lec4

More information

DATA MODELS FOR SEMISTRUCTURED DATA

DATA MODELS FOR SEMISTRUCTURED DATA Chapter 2 DATA MODELS FOR SEMISTRUCTURED DATA Traditionally, real world semantics are captured in a data model, and mapped to the database schema. The real world semantics are modeled as constraints and

More information

XML: Introduction. !important Declaration... 9:11 #FIXED... 7:5 #IMPLIED... 7:5 #REQUIRED... Directive... 9:11

XML: Introduction. !important Declaration... 9:11 #FIXED... 7:5 #IMPLIED... 7:5 #REQUIRED... Directive... 9:11 !important Declaration... 9:11 #FIXED... 7:5 #IMPLIED... 7:5 #REQUIRED... 7:4 @import Directive... 9:11 A Absolute Units of Length... 9:14 Addressing the First Line... 9:6 Assigning Meaning to XML Tags...

More information

XML Introduction 1. XML Stands for EXtensible Mark-up Language (XML). 2. SGML Electronic Publishing challenges -1986 3. HTML Web Presentation challenges -1991 4. XML Data Representation challenges -1996

More information

Niklas Fors The Relational Data Model 1 / 17

Niklas Fors The Relational Data Model 1 / 17 The Relational Data Model From Entity Sets to Relations From Relationships to Relations Combining Relations Weak Entity Sets Relationships With Attributes Subclasses Niklas Fors (niklas.fors@cs.lth.se)

More information

COURSE OVERVIEW THE RELATIONAL MODEL. CS121: Relational Databases Fall 2017 Lecture 1

COURSE OVERVIEW THE RELATIONAL MODEL. CS121: Relational Databases Fall 2017 Lecture 1 COURSE OVERVIEW THE RELATIONAL MODEL CS121: Relational Databases Fall 2017 Lecture 1 Course Overview 2 Introduction to relational database systems Theory and use of relational databases Focus on: The Relational

More information