1 XML Data Management Motivation: What is XML? Where does it occur? How is it used? Werner Nutt.

Slides:



Advertisements
Similar presentations
DOCUMENT TYPES. Digital Documents Converting documents to an electronic format will preserve those documents, but how would such a process be organized?
Advertisements

XML: Extensible Markup Language
Getting a Taste of Cascading Stylesheets Steve Mooradian December 14, 2005.
CSE 190: Internet E-Commerce Lecture 17: XML, XSL.
©Silberschatz, Korth and Sudarshan10.1Database System Concepts W3C Activities HTML: is the lingua franca for publishing on the Web XHTML: an XML application.
XML, XSL, XSLT, XHTML and others By Sean Hunter. Why XML?  XML was created to be a quick and easy way to provide structured data over the web.  Existing.
1 COS 425: Database and Information Management Systems XML and information exchange.
XML A brief introduction ---by Yongzhu Li. XML --- a brief introduction 2 CSI668 Topics in System Architecture SUNY Albany Computer Science Department.
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic XML.
Introduction to HTML 2006 CIS101. What is the Internet? Global network of computers that are connected and communicate via a series of Protocols Protocols.
Upgrading to XHTML DECO 3001 Tutorial 1 – Part 1 Presented by Ji Soo Yoon 19 February 2004 Slides adopted from
W3C Activities HTML: is the lingua franca for publishing on the Web XHTML: an XML application with a clean migration path from HTML 4.01 CSS: Style sheets.
September 15, 2003Houssam Haitof1 XSL Transformation Houssam Haitof.
XML October 24, Unit 6. What is XML? Stands for eXtensible Markup Language It is a markup language, like HTML But, –XML is designed to markup data –HTML.
Developing a Basic Web Page with HTML
Mgt 240 Lecture Website Construction: Software and Language Alternatives March 29, 2005.
4.01B Authoring Languages and Web Authoring Software 4.01 Examine webpage development and design.
Chapter 14 Introduction to HTML
CNIT 133 Interactive Web Pags – JavaScript and AJAX Review HTML5.
Chapter 1 Internet & Web Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D. 1.
XML at Work John Arnett, MSc Standards Modeller Information and Statistics Division NHSScotland Tel: (x2073)
XML Anisha K J Jerrin Thomas. Outline  Introduction  Structure of an XML Page  Well-formed & Valid XML Documents  DTD – Elements, Attributes, Entities.
16-1 The World Wide Web The Web An infrastructure of distributed information combined with software that uses networks as a vehicle to exchange that information.
Chapter 1 Internet & Web Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D. Revised 1/12/2015 by William Pegram 1.
Scientific Markup Languages Birds of a Feather A 10-Minute Introduction to XML Timothy W. Cole Mathematics Librarian & Professor of.
IS432 Semi-Structured Data Lecture 5: XSLT Dr. Gamal Al-Shorbagy.
XML The Overview. Three Key Questions What is XML? What Problems does it solve? Where and how is it used?
Introduction technology XSL. 04/11/2005 Script of the presentation Introduction the XSL The XSL standard Tools for edition of codes XSL Necessary resources.
CIS 451: XSL Dr. Ralph Westfall February, Problems With XML no formatting capabilities contra formatting tags like, etc. in HTML CSS can be used.
XP 1 CREATING AN XML DOCUMENT. XP 2 INTRODUCING XML XML stands for Extensible Markup Language. A markup language specifies the structure and content of.
Introduction to XML Eugenia Fernandez IUPUI. What is XML? From the World Wide Web Consortium (W3C) The Extensible Markup Language (XML) is the universal.
Chapter 1 Understanding the Web Design Environment Principles of Web Design, 4 th Edition.
Lecture 13 – XML and JSON SFDV3011 – Advanced Web Development Reference: 1.
Intro. to XML & XML DB Bun Yue Professor, CS/CIS UHCL.
Introduction to HTML Tutorial 1 eXtensible Markup Language (XML)
Fundamentals of Web Design Copyright ©2004  Department of Computer & Information Science Introducing XHTML: Module A: Web Design Basics.
XML A web enabled data description language 4/22/2001 By Mark Lawson & Edward Ryan L’Herault.
CITA 330 Section 6 XSLT. Transforming XML Documents to XHTML Documents XSLT is an XML dialect which is declared under namespace "
Transforming Documents „a how-to of transforming xml documents“ Lecture on Walter Kriha.
Lecture 11 XSL Transformations (part 1: Introduction)
XML eXtensible Markup Language. Topics  What is XML  An XML example  Why is XML important  XML introduction  XML applications  XML support CSEB.
XML Extensible Markup Language
Web Services for Satellite Emulation Development Kathy J. LiszkaAllen P. Holtz The University of AkronNASA Glenn Research Center.
Web Design and Development for E-Business By Jensen J. Zhao Copyright 2003 Prentice Hall, Inc. Web Design and Development for E-Business Jensen J. Zhao.
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
Introduction to XML This presentation covers introductory features of XML. What XML is and what it is not? What does it do? Put different related technologies.
XML, XSL, and SOAP Building Object Systems from Documents CSC/ECE 591o Summer 2000.
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 4 1COMP9321, 15s2, Week.
IS-907 Java EE World Wide Web - Overview. World Wide Web - History Tim Berners-Lee, CERN, 1990 Enable researchers to share information: Remote Access.
Web Technologies Lecture 4 XML and XHTML. XML Extensible Markup Language Set of rules for encoding a document in a format readable – By humans, and –
XSLT. XSLT stands for Extensible Stylesheet Language Transformations XSLT is used to transform XML documents into other kinds of documents. XSLT can produce.
4.01B Authoring Languages and Web Authoring Software 4.01 Examine webpage development and design.
©Silberschatz, Korth and Sudarshan10.1Database System Concepts W3C - The World Wide Web Consortium W3C - The World Wide Web Consortium.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 2: Markup Language and Site Development Essentials © 2007 Prosoft Learning Corporation All.
Martin Kruliš by Martin Kruliš (v1.1)1.
XP 1 HTML Tutorial 1: Developing a Basic Web Page.
 XML derives its strength from a variety of supporting technologies.  Structure and data types: When using XML to exchange data among clients, partners,
Web Design Principles 5 th Edition Chapter 3 Writing HTML for the Modern Web.
XML and Distributed Applications By Quddus Chong Presentation for CS551 – Fall 2001.
Beyond HTML: Extensible Markup Language (XML)
Kynn Bartlett 11 April 2001 STC San Diego The HTML Writers Guild Copyright © 2001 XML, XHTML, XSLT, and other X-named specifications.
XML: Extensible Markup Language
XML Related Technologies
Project 1 Introduction to HTML.
Introduction to XHTML.
XML in Web Technologies
Session I - Introduction
Session I - Introduction
Prepared for Md. Zakir Hossain Lecturer, CSE, DUET Prepared by Miton Chandra Datta
Presentation transcript:

1 XML Data Management Motivation: What is XML? Where does it occur? How is it used? Werner Nutt

2 Web Pages are in HTML

3 books.html <meta http-equiv="Content-Type” content="text/html; charset=UTF-8"> Books Books for the Course: Learning XML Author(s): Erik T. Ray Publisher: O'Reilly XQuery Author(s): Priscilla Walmsley Publisher: O'Reilly XQuery from the Experts Author(s): Howard Katz Denise Draper Mary Fernandez Publisher: Addison Wesley tags attributes data

4 Web Pages are in HTML HTML is a markup language An HTML page consists of tags with attributes and data HTML describes the style of the page (e.g., color, font type, etc.)

5 HTML: Pros and Cons  Easy to read/view the displayed HMTL for humans  Standardization makes content publishers independent from specific browsers  Many possibilities to display text, images, forms, …  Fixed vocabulary of tags and attributes  Content and presentation are mixed  Humans can grasp the meaning, machines can’t: what are the titles? where are the authors?  No easy way to transfer this info and combine it with similar other info

6 Data on the Web are in XML

7 books.xml Erik Ray O'Reilly Priscilla Walmsley O'Reilly tags attributes data declarations (optional)

8 books.xml (cntd.) Howard Katz Denise Draper Mary Fernandez Addison Wesley

9 What’s the Difference?

10 What’s the Difference? Display info is missing Tags express logical structure Attributes, too, contain data with information content Tree hierarchy reflects logical hierarchy in information Tags are not prescribed, but can be chosen freely HTML is “essentially” a special case of XML (  XHTML)

11 Both Files Looked the Same in the Browser … One line in books.xml gives us a hint: This is a reference to the file books.xsl, which is a stylesheet telling the browser how to display the info in books.xml

12 books.xsl <xsl:stylesheet version="1.0" xmlns:xsl=" Books

13 books.xsl (contd.) Books for the Course: Author(s): Publisher:

14 books.xsl (contd.)

15 Observations about the Stylesheet

16 Observations about the Stylesheet Similar syntax as XML HTML tags and attributes occur in the code Specific tags: xsl:template, xsl:value-of Specific attributes: match, select Document consists of templates with –match pattern –new stuff to be generated (HTML) –calls to apply template

17 Stylesheets The stylesheet is written in XSLT, which is part of XSL (= eXensible Stylesheet Language) XSL consists of three parts XPath non-XML notation –addresses parts of a document XSLT (= XSL Transformations) XML notation –transforms XML to XML, HTML, text XSL-FO (= XLS Formatting Objects) XML notation –talks about pages, regions, blocks, lines can be processed to PDF, RTF etc.

18 XML, XLS, and (X)HTML How do they work together? There is an XSLT interpreter at atalog&xsltfile=cdcatalog

19 XML XML: Extensible Markup Language Defined by the WWW Consortium (W3C) Originally intended as –a document markup language –not a data model

20 What is the W3C? World Wide Web Consortium International Standards Organization for the WWW Standards are called “recommendations” Head and founder Tim Berners-Lee The recommendation for XML is at

21 XML as a Markup Language Documents have tags with info about document parts e.g. XML … XML is derived from SGML (Standard Generalized Markup Language), but simpler Extensible, unlike HTML –Users can add new tags, and separately specify how the tag should be handled for display Goal was to replace HTML as the language for publishing documents on the Web

22 History: SGML, HTML, XML SGML: Standard Generalized Markup Language Charles Goldfarb (IBM), ISO 8879, 1986 DTD (Document Type Definition) powerful formalism for structuring information, but –full implementation of SGML difficult –tools for working with SGML documents expensive Two sub-languages of SGML made their way –HTML: HyperText Markup Language (Berners-Lee, 1991). Describing presentation –XML: eXtensible Markup Language, W3C,1998. Describing content.

23 XML Around us … Conference Proceedings VLDB 2011 on my laptop: Mix of HTML and XML (table of contents, author list), XML displayed with XSLT “Citizens’ Network South Tyrol” (province website) The “HTML” there is XHTML –HTML is an SGML-language, XHTML is an XML-language  follows stricter rules, can be more easily parsed –several differences, e.g. case-insensitive vs. case-sensitive

24 XML Around us … (cntd) Open Office document “HelloWorld.odt” –follows the OpenDocument (ODT) standard by OASIS –.odt,.ods,.odp file types for text, spreadsheets, presentations etc. –a document is zipped archive  unzip HelloWorld.odt the main file is content.xml MS Word 2007 document “HelloWorld.docx” –follows the Office Open XML standard by Microsoft –.docs,.xslx,.pptx file types –Again a document is zipped archive the main file is document.xml Both standards are based on XML. ODT is supported by IBM, Google, Adobe, LibreOffice, …

25 Scalable Vector Graphics file “HelloWorld.svg” –follows SVG 1.1 Recommendation of W3C Why SVG? –Scalability: Can be shrunk/enlarged w/o loss of detail –Accessibility: graphics can be parsed –Interactivity: SVG elements can trigger events –Scripting: the elements of an SVG figure can be accessed and manipulated by a scripting language (like JavaScript) XML Around us … (cntd)

26 XML Around us … (cntd) XML dumps are available of Wikipedia Gene Ontology DBLP (Computer Science Bibliography) XML updates are available from Weather forecast South Tyrol Medline/Pubmed

27 GPX — GPS Exchange Format Go to define a hike, and download the coordinates to your GPS device trekking.gpx contains XML

28 Google Geocoding API Google offers a REST (Representational State Transfer) interface for retrieving geocoding: Input: address Output: geographic coordinates With coordinates, applications can put symbols on maps Example: universita+bolzano+italy&sensor=false Results come in XML (and JSON)

29 Other Usages of XML MathML (Mathematical Markup Language) CML (Chemical Markup Language) SPL (Structured Product Labeling) human prescription drug labeling OWL (Web Ontology Language) RDF XML Serialization (RDF = Resource Description Format) WSDL (= Web Service Description Language) SOAP (= Simple Object Access Protocol) messages web services

30 XML = Data Exchange Format Data are exchanged –across platforms –across enterprises Data are integrated –from heterogeneous data sources –from data sources distributed across different locations Different application areas need different standards  XML is the basis for data interchange formats