CS122aSlides18 - CS122A EECS116 Introduction to Data...

Info icon This preview shows pages 1–15. Sign up to view the full content.

View Full Document Right Arrow Icon
CS122A / EECS116 Introduction to Data Management Spring 2009 Prof. Mike Carey Bren School of ICS UC Irvine Slides based on previous CS122a lecture notes as well as  material borrowed from U-Wisconsin, Stanford, & Berkeley
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
CS122A/EECS116 Notes 16 2 Announcements Homework, project, etc. notes Part 4 of project is due Thursday by midnight HW #7 (the last homework!) is due Friday by midnight Don’t miss discussion section this week…! This week’s plan Last time we covered relational database design theory This week we will relax two of the main constraints… “Schema first” (vs. “schema last” or “schema never”) Flat world (vs. more complex data, e.g., with nesting) Any lingering questions…?
Image of page 2
XML Stands for eXtensible Markup Language XML 1.0 – a recommendation from W3C, 1998 Roots: SGML (a complex document markup language) After the roots: a format for sharing data as well
Image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Why XML is of Interest to Us XML is just syntax for data Note: we have no syntax for relational data But XML is not relational: it’s semistructured This is exciting because: Can translate any data to XML Can ship XML over the Web (HTTP) Can input XML into any application Thus: data sharing and exchange on the Web
Image of page 4
XML Data Sharing and Exchange application relational data Transform Integrate Warehouse XML Data WEB (HTTP) application application legacy data object-relational
Image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
From HTML to XML HTML describes the presentation
Image of page 6
HTML < h1 > Bibliography </ h1 > < p > < i > Foundations of Databases </ i > Abiteboul, Hull, Vianu <br> Addison Wesley, 1995 < p > < i > Data on the Web </ i > Abiteoul, Buneman, Suciu < br > Morgan Kaufmann, 1999
Image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
XML < bibliography > < book > < title > Foundations… </ title > < author > Abiteboul </ author > < author > Hull </ author > < author > Vianu </ author > < publisher > Addison Wesley </ publisher > < year > 1995 </ year > </ book > </ bibliography > XML describes the content
Image of page 8
Web Services A new paradigm for creating distributed applications? Systems communicate via messages, contracts. Example: order processing system MS .NET, J2EE – some of the platforms XML – a part of the story, namely the data format
Image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
XML Terminology: Elements & Tags Tags: book , title , author , … Start tag: < book >, end tag: </ book > Elements: < book >…</ book >,< author >…</ author > Elements are nested Empty element: < red ></ red > abbrv. < red /> An XML document: single root element Well formed  XML document: if it has matching tags
Image of page 10
More XML: Attributes < book price = “55” currency = “USD”> < title > Foundations of Databases </ title > < author > Abiteboul </ author > < year > 1995 </ year > </ book > Attributes are alternative ways to represent data
Image of page 11

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
More XML: Attributes Revisited < book> < title > Foundations of Databases </ title > < author > Abiteboul </ author > < year > 1995 </ year > < price currency = “USD”> 55 </ price > </ book > Attributes are best used to represent “metadata”
Image of page 12
More XML: Ids and References < person id =“o555”> < name > Jane </ name > </ person > < person id =“o456”> < name > Mary </ name > < children idrefs =“o123 o555”/> </ person > < person id =“o123” mother =“o456”>< name >John</ name > </ person > Ids and references in XML are just syntax
Image of page 13

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
XML Semantics: a Tree !
Image of page 14
Image of page 15
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern