Copyright © 2004 Pearson Education, Inc.. Chapter 26 XML and Internet Databases.

20
Copyright © 2004 Pearson Education, Inc.

Transcript of Copyright © 2004 Pearson Education, Inc.. Chapter 26 XML and Internet Databases.

Copyright © 2004 Pearson Education, Inc.

Copyright © 2004 Pearson Education, Inc.

Chapter 26

XML and Internet Databases

Slide 26-3Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition

Copyright © 2004 Pearson Education, Inc.

FIGURE 26.1Representing semistructured data as a graph.

Slide 26-4Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition

Copyright © 2004 Pearson Education, Inc.

FIGURE 26.2Part of an HTML document representing unstructured data.

Slide 26-5Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition

Copyright © 2004 Pearson Education, Inc.

FIGURE 26.3A complex XML element called <projects>.

Slide 26-6Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition

Copyright © 2004 Pearson Education, Inc.

FIGURE 26.4An XML DTD file called projects.

Slide 26-7Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition

Copyright © 2004 Pearson Education, Inc.

FIGURE 26.5An XML schema file called company.

Slide 26-8Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition

Copyright © 2004 Pearson Education, Inc.

FIGURE 26.5 (continued)An XML schema file called company.

Slide 26-9Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition

Copyright © 2004 Pearson Education, Inc.

FIGURE 26.5 (continued)An XML schema file called company.

Slide 26-10Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition

Copyright © 2004 Pearson Education, Inc.

FIGURE 26.5 (continued)An XML schema file called company.

Slide 26-11Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition

Copyright © 2004 Pearson Education, Inc.

FIGURE 26.6An ER schema diagram for a simplified UNIVERSITY database.

Slide 26-12Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition

Copyright © 2004 Pearson Education, Inc.

FIGURE 26.7Subset of the UNIVERSITY database schema needed for XML document extraction.

Slide 26-13Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition

Copyright © 2004 Pearson Education, Inc.

FIGURE 26.8Hierarchical (tree) view with COURSE as the root.

Slide 26-14Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition

Copyright © 2004 Pearson Education, Inc.

FIGURE 26.9XML schema document with COURSE as the root.

Slide 26-15Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition

Copyright © 2004 Pearson Education, Inc.

FIGURE 26.10Hierarchical (tree) view with STUDENT as the root.

Slide 26-16Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition

Copyright © 2004 Pearson Education, Inc.

FIGURE 26.11XML schema document with STUDENT as the root.

Slide 26-17Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition

Copyright © 2004 Pearson Education, Inc.

FIGURE 26.12Hierarchical (tree) view with SECTION as the root.

Slide 26-18Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition

Copyright © 2004 Pearson Education, Inc.

FIGURE 26.13Converting a graph with cycles into a hierarchical (tree) structure.

Slide 26-19Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition

Copyright © 2004 Pearson Education, Inc.

FIGURE 26.14Some examples of XPath expressions on XML documents that follow the XML schema file COMPANY in Figure 26.5.

Slide 26-20Elmasri and Navathe, Fundamentals of Database Systems, Fourth Edition

Copyright © 2004 Pearson Education, Inc.

FIGURE 26.15Some examples of XQuery queries on XML documents that follow the XML schema file COMPANY in Figure 26.5.