lecture5 - Semi-structured or Web-like Databases CS30785...

Info iconThis preview shows pages 1–10. Sign up to view the full content.

View Full Document Right Arrow Icon
Semi-structured or Web-like Databases CS30785 Lecture 5 –XML Dr. Gangmin Gary Li Department of CSSE XJTLU [email protected] Room: D441 XML 4-1 CS30785 - Semistructured or Web-like databases
Background image of page 1

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

View Full DocumentRight Arrow Icon
2 So Far: 1. We have established the WWW with SSDB or WDB. 2. WWW applications are queries to this DB 3. Three presentations: • Relational DB (tables) • Hyper set (HF-set, {} expressions • Graph (label on the edge and value on the vertices XML CS30785 - Semistructured or Web-like databases
Background image of page 2
XML representation of bracket expressions XML CS30785 - Semistructured or Web-like databases 5-3
Background image of page 3

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

View Full DocumentRight Arrow Icon
Examples XML CS30785 - Semistructured or Web-like databases 5-4 Consider what we have learnt in lecture 3.
Background image of page 4
The XML representation <staff> <person> <name> Alan</name> <phone>3127786</phone> <e-mail>[email protected]</e-mail> </person> <person> <name> <first>Sara</first> <last>Green</last> </name> <phone>2136877</phone> <fax>2136853>/fax> <e-mail>[email protected]</e-mail> </person> <person> <name>Fred </name> <phone> 7786312</phone> <height>170cm</height> </person> </staff> XML CS30785 - Semistructured or Web-like databases 5-5
Background image of page 5

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

View Full DocumentRight Arrow Icon
Atomic value We know L:{ } can be represented as <L> </L> or <L> </L> but, L: “atomic value” is represented in XML as, <L> atomic value </L> XML CS30785 - Semistructured or Web-like databases 5-6
Background image of page 6
XML • XML stands for EXtensible Markup Language • XML is a markup language much like HTML • XML was designed to carry data, not to display data • XML tags are not predefined. You must define your own tags • XML is designed to be self-descriptive • XML is a W3C Recommendation XML CS30785 - Semistructured or Web-like databases 5-7
Background image of page 7

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

View Full DocumentRight Arrow Icon
The Difference Between XML and HTML • XML is not a replacement for HTML. • XML and HTML were designed with different goals: – XML was designed to transport and store data, with focus on what data is. – HTML was designed to display data, with focus on how data looks. • HTML is about displaying information, while XML is about carrying information. XML 5-8 CS30785 - Semistructured or Web-like databases
Background image of page 8
XML does not DO anything The note above is quite self descriptive. It has sender and receiver information, it also has a heading and a message body. But still, this XML document does not DO anything. It is just pure information wrapped in tags. Someone must write a piece of software to send, receive or display it. XML
Background image of page 9

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

View Full DocumentRight Arrow Icon
Image of page 10
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/22/2011 for the course CS 30785 taught by Professor Garyli during the Spring '11 term at University of Liverpool.

Page1 / 37

lecture5 - Semi-structured or Web-like Databases CS30785...

This preview shows document pages 1 - 10. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online