What information can we see… WWW2002 The eleventh international world wide web conference Sheraton waikiki hotel Honolulu, hawaii, USA 7-11 may 2002 1.

Slides:



Advertisements
Similar presentations
CSCI N241: Fundamentals of Web Design Copyright ©2004 Department of Computer & Information Science Introducing XHTML: Module B: HTML to XHTML.
Advertisements

XML I.
What is XML? a meta language that allows you to create and format your own document markups a method for putting structured data into a text file; these.
XML Schemas Microsoft XML Schemas W3C XML Schemas.
Chapter 2A Semantic Web Primer 1 Chapter 2 Structured Web Documents in XML Grigoris Antoniou Frank van Harmelen.
Thayer School of Engineering Dartmouth Lecture 2 Overview Web Services concept XML introduction Visual Studio.net.
XML(EXtensible Markup Language). XML XML stands for EXtensible Markup Language. XML is a markup language much like HTML. XML was designed to describe.
XML Primer. 2 History: SGML vs. HTML vs. XML SGML (1960) XML(1996) HTML(1990) XHTML(2000)
Introducing XHTML: Module B: HTML to XHTML. Goals Understand how XHTML evolved as a language for Web delivery Understand the importance of DTDs Understand.
Introduction to XML This material is based heavily on the tutorial by the same name at
Copyright © 2003 Pearson Education, Inc. Slide 2-1 Created by Cheryl M. Hughes, Harvard University Extension School — Cambridge, MA The Web Wizard’s Guide.
ECA 228 Internet/Intranet Design I Intro to XML. ECA 228 Internet/Intranet Design I HTML markup language very loose standards browsers adjust for non-standard.
XP New Perspectives on XML Tutorial 4 1 XML Schema Tutorial – Carey ISBN Working with Namespaces and Schemas.
Ontology.
RDF (Resource Description Framework) Why?. XML XML is a metalanguage that allows users to define markup XML separates content and structure from formatting.
VICTORIA UNIVERSITY OF WELLINGTON Te Whare Wananga o te Upoko o te Ika a Maui SWEN 432 Advanced Database Design and Implementation Document Type Definition.
XP Tutorial 9New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Working with XHTML Creating a Well-Formed Valid Document Tutorial 9.
XML Anisha K J Jerrin Thomas. Outline  Introduction  Structure of an XML Page  Well-formed & Valid XML Documents  DTD – Elements, Attributes, Entities.
Chapter 2 Structured Web Documents in XML Adapted from slides from Grigoris Antoniou and Frank van Harmelen.
Ian Horrocks and Alan Rector
Neminath Simmachandran
XML CPSC 315 – Programming Studio Fall 2008 Project 3, Lecture 1.
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.
1 © Netskills Quality Internet Training, University of Newcastle Introducing XML © Netskills, Quality Internet Training University.
Introduction to XML. What is XML? Extensible Markup Language XML Easier-to-use subset of SGML (Standard Generalized Markup Language) XML is a.
August Chapter 2 - Markup and Core Concepts Learning XML by Erik T. Ray Slides were developed by Jack Davis College of Information Science and Technology.
XML Extensible Markup Language. What is XML? ● meta-markup language ● a language for defining a family of languages ● semantic/structured mark-up language.
XML Extensible Markup Language. What is XML? An infrastructure for describing text and data Developed by W3C(the World Wide Web Consortium)
XP 1 DECLARING A DTD A DTD can be used to: –Ensure all required elements are present in the document –Prevent undefined elements from being used –Enforce.
 XML is designed to describe data and to focus on what data is. HTML is designed to display data and to focus on how data looks.  XML is created to structure,
Session IV Chapter 9 – XML Schemas
1 Tutorial 13 Validating Documents with DTDs Working with Document Type Definitions.
Towards a Knowledge Society Why & How? XML. What information can we see… WWW2002 The eleventh international world wide web conference Sheraton waikiki.
Avoid using attributes? Some of the problems using attributes: Attributes cannot contain multiple values (child elements can) Attributes are not easily.
1 Chapter 10: XML What is XML What is XML Basic Components of XML Basic Components of XML XPath XPath XQuery XQuery.
XML – An Introduction Structured Data Mark-up James McCartney CSCE 590, Cluster and Grid Computing.
Of 33 lecture 3: xml and xml schema. of 33 XML, RDF, RDF Schema overview XML – simple introduction and XML Schema RDF – basics, language RDF Schema –
Chapter 2A Semantic Web Primer 1 Chapter 2 Structured Web Documents in XML Grigoris Antoniou Frank van Harmelen.
XML 2nd EDITION Tutorial 1 Creating An Xml Document.
Waqas Anwar Next SlidePrevious Slide. Waqas Anwar Next SlidePrevious Slide XML XML stands for EXtensible Markup Language.
XML Documents Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University Elements Attributes Comments PI Document.
XML Instructor: Charles Moen CSCI/CINF XML  Extensible Markup Language  A set of rules that allow you to create your own markup language  Designed.
XP 1 Creating an XML Document Developing an XML Document for the Jazz Warehouse XML Tutorial.
Lecture 16 Introduction to XML Boriana Koleva Room: C54
1 Introduction to XML XML stands for Extensible Markup Language. Because it is extensible, XML has been used to create a wide variety of different markup.
1 Credits Prepared by: Rajendra P. Srivastava Ernst & Young Professor University of Kansas Sponsored by: Ernst & Young, LLP (August 2005) XBRL Module Part.
XML Introduction. What is XML? XML stands for eXtensible Markup Language XML stands for eXtensible Markup Language XML is a markup language much like.
The eXtensible Markup Language (XML). Presentation Outline Part 1: The basics of creating an XML document Part 2: Developing constraints for a well formed.
XML Design Goals 1.XML must be easily usable over the Internet 2.XML must support a wide variety of applications 3.XML must be compatible with SGML 4.It.
1 Tutorial 11 Creating an XML Document Developing a Document for a Cooking Web Site.
1 Tutorial 14 Validating Documents with Schemas Exploring the XML Schema Vocabulary.
Tutorial 13 Validating Documents with Schemas
Chapter 2 Structured Web Documents in XML Adapted from slides from Grigoris Antoniou and Frank van Harmelen.
Internet & World Wide Web How to Program, 5/e. © by Pearson Education, Inc. All Rights Reserved.2.
1 herbert van de sompel CS 502 Computing Methods for Digital Libraries Cornell University – Computer Science Herbert Van de Sompel
Chapter 15: XML TP2543 Web Programming Mohammad Faidzul Nasrudin.
Introduction to XML XML – Extensible Markup Language.
Introduction to DTD A Document Type Definition (DTD) defines the legal building blocks of an XML document. It defines the document structure with a list.
XML CSC1310 Fall HTML (TIM BERNERS-LEE) HyperText Markup Language  HTML (HyperText Markup Language): December  Markup  Markup is a symbol.
C Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Introduction to XML Standards.
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 7 Representing Web Data:
XML Notes taken from w3schools. What is XML? XML stands for EXtensible Markup Language. XML was designed to store and transport data. XML was designed.
Chapter 2A Semantic Web Primer 1 Chapter 2 Structured Web Documents in XML Grigoris Antoniou Frank van Harmelen.
Unit 4 Representing Web Data: XML
Ian Horrocks and Alan Rector
XML QUESTIONS AND ANSWERS
Logic for Artificial Intelligence
Chapter 7 Representing Web Data: XML
ece 720 intelligent web: ontology and beyond
14 XML.
Presentation transcript:

What information can we see… WWW2002 The eleventh international world wide web conference Sheraton waikiki hotel Honolulu, hawaii, USA 7-11 may location 5 days learn interact Registered participants coming from australia, canada, chile denmark, france, germany, ghana, hong kong, india, ireland, italy, japan, malta, new zealand, the netherlands, norway, singapore, switzerland, the united kingdom, the united states, vietnam, zaire Register now On the 7 th May Honolulu will provide the backdrop of the eleventh international world wide web conference. This prestigious event … Speakers confirmed Tim berners-lee Tim is the well known inventor of the Web, … Ian Foster Ian is the pioneer of the Grid, the next generation internet …

What information can a machine see…                          

Solution: markup with “meaningful” tags?                       …

Structured Web Documents in XML XML, a language that lets one write structured Web documents with a user-defined vocabulary

Web page which contains information about a particular book in html Nonmonotonic Reasoning: Context- Dependent Reasoning by V. Marek and M. Truszczynski Springer 1993 ISBN

A typical representation in xml Nonmonotonic Reasoning: Context-Dependent Reasoning V. Marek M. Truszczynski Springer

Imagine an intelligent agent trying to retrieve the authors of the particular book From html From xml

XML allows to represent information that is also machine-accessible. XML separates content from use and presentation.

Another Example Relationship matter-energy E = M × c 2 Relationship matter-energy E M × c 2

XML is a meta-language: it does not have a fixed set of tags, but allows users to define tags of their own. applications on the WWW must agree on common vocabularies if they need to communicate and collaborate Communities and business sectors are in the process of defining their specialized vocabularies, creating XML applications

mathematics (MathML) bioinformatics (BSML) human resources (HRML) astronomy (AML) news (NewsML) investment (IRML) SBML (System Biology) Bioinformatic Sequence Markup Language (BSML) MicroArray and Gene Expression Markup Language (MAGE-ML)

 Chemical Markup Language  Molecular Dynamics [Markup] Language (MoDL)  StarDOM - Transforming Scientific Data into XML  Bioinformatic Sequence Markup Language (BSML)  BIOpolymer Markup Language (BIOML)  CellML  Gene Expression Markup Language (GEML)  GeneX Gene Expression Markup Language (GeneXML)  Genome Annotation Markup Elements (GAME)  Microarray Markup Language (MAML)  XML for Multiple Sequence Alignments (MSAML)  Systems Biology Markup Language (SBML)  OMG Gene Expression RFP  Protein Extensible Markup Language (PROXIML)

The XML Language An XML document consists of a prolog a number of elements and attributes

Prolog of an XML Document The prolog consists of an XML declaration and an optional reference to external structuring documents

XML Elements The “things” the XML document talks about E.g. books, authors, publishers An element consists of: an opening tag the content a closing tag David Billington

XML Elements (continue) Tag names can be chosen almost freely. The first character must be a letter, an underscore, or a colon No name may begin with the string “xml” in any combination of cases E.g. “Xml”, “xML”

Content of XML Elements Content may be text, or other elements, or nothing David Billington +61 − 7 − If there is no content, then the element is called empty; it is abbreviated as follows: for

XML Attributes An empty element is not necessarily meaningless It may have some properties in terms of attributes An attribute is a name-value pair inside the opening tag of an element <lecturer name="David Billington" phone="+61 − 7 − “ />

XML Attributes: An Example <order orderNo="23456" customer="John Smith" date="October 15, 2002“>

The Same Example without Attributes John Smith October 15, 2002 a528 1 c817 3

XML Elements vs Attributes Attributes can be replaced by elements When to use elements and when attributes is a matter of taste and need But attributes cannot be nested

Further Components of XML Docs Comments A piece of text that is to be ignored by parser Processing Instructions (PIs) Define procedural attachments

Well-Formed XML Documents Syntactically correct documents Some syntactic rules: Only one outermost element (called root element) Each element contains an opening and a corresponding closing tag Tags may not overlap Lee Hong Attributes within an element have unique names Element and tag names must be permissible

The Tree Model of XML Documents: An Example <from name="Michael Maher" <to name="Grigoris Antoniou" Where is your draft? Grigoris, where is the draft of the paper you promised me last week?

The Tree Model of XML Documents: An Example

The Tree Model of XML Docs The tree representation of an XML document is an ordered labeled tree: There is exactly one root There are no cycles Each non-root node has exactly one parent Each node has a label. The order of elements is important … but the order of attributes is not important

XML is not enough to ensure valid data structure! Any XML document which conforms to the XML syntax (such as every tag must have a corresponding closing tag is considered) to be well-formed However, this does not mean that all the structure of the data is what you wanted. For instance you may want to enforce: That a particular data field is present for each child Data fields in each child appear in the same order That a data field may not be present more than once in a child node How machines know about structure they process?

Issues Validation and Interoperability How application can verify whether the data you receive from the outside world? Is xml document follows the specified structure? Is xml document follows the restrictions on the elements and attributes? How all the xml document follows that particular structure?

Structuring XML Documents An XML document is valid if it is well-formed respects the structuring information it uses There are two ways of defining the structure of XML documents: DTDs (the older and more restricted way) XML Schema (offers extended possibilities)