22-Sep-06 CS6795 Semantic Web Techniques 0 Extensible Markup Language.

Slides:



Advertisements
Similar presentations
Chungnam National University DataBase System Lab
Advertisements

1 eXtensible Markup Language. XML is based on SGML: Standard Generalized Markup Language HTML and XML are both based on SGML 2 SGML HTMLXML.
Copyright © 2003 Pearson Education, Inc. Slide 7-1 Created by Cheryl M. Hughes, Harvard University Extension School Cambridge, MA The Web Wizards Guide.
Copyright © 2003 Pearson Education, Inc. Slide 6-1 Created by Cheryl M. Hughes, Harvard University Extension School Cambridge, MA The Web Wizards Guide.
1 Copyright © 2010, Elsevier Inc. All rights Reserved Fig 2.1 Chapter 2.
By D. Fisher Geometric Transformations. Reflection, Rotation, or Translation 1.
Relational Database and Data Modeling
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
DIVIDING INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
Addition Facts
Dr. Alexandra I. Cristea CS 253: Topics in Database Systems: XPath, NameSpaces.
Yunling Wang VoIP Security COMS 4995 Nov 24, 2008 XCAP The Extensible Markup Language (XML) Configuration Access Protocol (XCAP)
XML Basics Wednesday May 12, 1999 SD99 Copyright 1999 Elliotte Rusty Harold
XML Schema Heewon Lee. Contents 1. Introduction 2. Concepts 3. Example 4. Conclusion.
Squares and Square Root WALK. Solve each problem REVIEW:
XML: Extensible Markup Language
XML INTRODUCTION Prepared by Hongming Yu Modified by Fernando Farfán.
Data-centric XML Other Schema Languages Montag, 5. Juli 2010.
Addition 1’s to 20.
XML Craig Stewart Dr. Alexandra I. Cristea
Dr. Alexandra I. Cristea XHTML.
Dr. Alexandra I. Cristea XPath and Namespaces.
25 seconds left…...
1 An inference engine for the semantic web Naudts Guido Student at the Open University Netherlands.
Week 1.
We will resume in: 25 Minutes.
1 Web Services Based partially on Sun Java Tutorial at Also, XML, Java and the Future of The Web, Jon Bosak. And WSDL.
Semantics for Valid XML Documents Harold Boley Dagstuhl Seminar Semantics in Databases Jan. 7-12, 2001.
Processing of structured documents Spring 2003, Part 1 Helena Ahonen-Myka.
XML: text format Dr Andy Evans. Text-based data formats As data space has become cheaper, people have moved away from binary data formats. Text easier.
XML/EDI Overview West Chester Electronic Commerce Resource Center (ECRC)
XML & Data Structures for the Internet Yingcai Xiao.
An Introduction to XML Based on the W3C XML Recommendations.
1 XML and QUERY Shilpi Ahuja CSE Data Mining 4 th April 2002.
XML(EXtensible Markup Language). XML XML stands for EXtensible Markup Language. XML is a markup language much like HTML. XML was designed to describe.
1 Advanced Topics XML and Databases. 2 XML u Overview u Structure of XML Data –XML Document Type Definition DTD –Namespaces –XML Schema u Query and Transformation.
XML – Data Model, DTD and Schema
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.
XML Anisha K J Jerrin Thomas. Outline  Introduction  Structure of an XML Page  Well-formed & Valid XML Documents  DTD – Elements, Attributes, Entities.
XML: Overview MIS 181.9: Service Oriented Architecture 2 nd Semester,
XML CPSC 315 – Programming Studio Fall 2008 Project 3, Lecture 1.
MIS 315 Bsharah An Introduction to XML 1MIS Bsharah.
18-Sep-14 CS6795 Semantic Web Techniques 0 Extensible Markup Language.
WHAT THE HELL IS XML?. What the Hell is XML? What the hell is XML?  Markup Language  Derived from SGML (Standardized General Markup Language)  Describes.
What is 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.
Winter 2006Keller, Ullman, Cushing18–1 Plan 1.Information integration: important new application that motivates what follows. 2.Semistructured data: a.
1 Chapter 10: XML What is XML What is XML Basic Components of XML Basic Components of XML XPath XPath XQuery XQuery.
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 –
Accessing Data Using XML CHAPTER NINE Matakuliah: T0063 – Pemrograman Visual Tahun: 2009.
Chapter 27 The World Wide Web and XML. Copyright © 2004 Pearson Addison-Wesley. All rights reserved.27-2 Topics in this Chapter The Web and the Internet.
Jeff Ullman: Introduction to XML 1 XML Semistructured Data Extensible Markup Language Document Type Definitions.
An Introduction to XML Sandeep Bhattaram
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Understanding How XML Works Ellen Pearlman Eileen Mullin Programming the.
XML Introduction. What is XML? XML stands for eXtensible Markup Language XML stands for eXtensible Markup Language XML is a markup language much like.
Jennifer Widom XML Data Introduction, Well-formed XML.
CS 157B: Database Management Systems II February 11 Class Meeting Department of Computer Science San Jose State University Spring 2013 Instructor: Ron.
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 4 1COMP9321, 15s2, Week.
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.
Martin Kruliš by Martin Kruliš (v1.1)1.
C Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Introduction to XML Standards.
CHAPTER NINE Accessing Data Using XML. McGraw Hill/Irwin ©2002 by The McGraw-Hill Companies, Inc. All rights reserved Introduction The eXtensible.
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.
Unit 4 Representing Web Data: XML
XML in Web Technologies
Web Programming Maymester 2004
XML Data Introduction, Well-formed XML.
ece 720 intelligent web: ontology and beyond
Extensible Markup Language
CSE591: Data Mining by H. Liu
Presentation transcript:

22-Sep-06 CS6795 Semantic Web Techniques 0 Extensible Markup Language

22-Sep-06 CS6795 Semantic Web Techniques 1 General Advantages of XML for KR (1) Definition of self-describing data in worldwide standardized, non-proprietary format (2) Structured data and knowledge exchange for enterprises in various industries (3) Integration of information from different sources (into uniform documents) XML offers new general possibilities, from which AI knowledge representation (KR) can profit:

22-Sep-06 CS6795 Semantic Web Techniques 2 Specific Advantages of XML for KR XML provides the most suitable infrastructure for knowledge bases on the Web (incl. for W3C languages such as RDF) Additional special KR uses of XML are: Uniform storage of knowledge bases Interchange of knowledge bases between different AI languages Exchange between knowledge bases and databases, application systems, etc. Even transformation/compilation of AI source programs using XML markup and annotations is possible

22-Sep-06 CS6795 Semantic Web Techniques 3 Address Example: External to HTML Xaver M. Linde Wikingerufer Berlin Xaver M. Linde Wikingerufer Berlin External Presentation: HTML Markup: HTML tags are still presentation-oriented

22-Sep-06 CS6795 Semantic Web Techniques 4 Address Example: HTML to XML Xaver M. Linde Wikingerufer Berlin HTML Markup: XML tags are chosen for content-structuring needs Xaver M. Linde Wikingerufer Berlin XML Markup: While not conveying any formal semanticsany formal semantics:

22-Sep-06 CS6795 Semantic Web Techniques 5 Address Example: XML to External Xaver M. Linde Wikingerufer Berlin XML Markup: Xaver M. Linde Wikingerufer Berlin External Presentations: XML stylesheets are, e.g., usable to generate different presentations Xaver M. Linde Wikingerufer Berlin...

22-Sep-06 CS6795 Semantic Web Techniques 6 Xaver M. Linde Wikingerufer Berlin Address Example: XML to XML Xaver M. Linde Wikingerufer Berlin XML Markup 1: XML Markup 2: XML stylesheets are also usable to transform XML representations

22-Sep-06 CS6795 Semantic Web Techniques 7 Address Example: Some Stylesheets Will Contain Term-(Tree-)Rewriting Rules address N S T namestreettown address name streettown place N S T

22-Sep-06 CS6795 Semantic Web Techniques 8 Xaver M. Linde Wikingerufer Berlin WHERE Xaver M. Linde $s $t CONSTRUCT $s $t Address Example: XML Queries XML Markup: XML Query (XML-QL): XML queries can select subelements of XML elements elementelement s subelements Wikingerufer Berlin

22-Sep-06 CS6795 Semantic Web Techniques 9 address( name("Xaver M. Linde"), street("Wikingerufer 7"), town("10555 Berlin") ) Address Example: Prolog Queries Prolog Term: Prolog Query: Prolog queries can select substructures of Prolog structures S = "Wikingerufer 7" T = "10555 Berlin" structurestructure s substructures address( name("Xaver M. Linde"), street(S), town(T) )

22-Sep-06 CS6795 Semantic Web Techniques 10 Address Example: The Element Tree address( name("Xaver M. Linde"), street("Wikingerufer 7"), town("10555 Berlin") ) Prolog Term: structurestructure s substructures Xaver M. Linde Wikingerufer Berlin XML Markup: elementelement s subelements Node-Labeled, (Left-to-Right-)Ordered Element Tree: address Xaver M. LindeWikingerufer Berlin namestreettown subtreessubtrees tree

22-Sep-06 CS6795 Semantic Web Techniques 11 Address Example: Document Type Definition and Tree (1) Document Type Definition (DTD): Document Type Tree: address PCDATA namestreettown address ::=name street town name ::=PCDATA street ::=PCDATA town ::=PCDATA Extended Backus-Naur Form (EBNF):

22-Sep-06 CS6795 Semantic Web Techniques 12 Address Example: Document Type Definition and Tree (2) Document Type Tree: Document Type Definition (DTD): address PCDATA name streettown place

22-Sep-06 CS6795 Semantic Web Techniques 13 Well-Formedness and Validity Open and close all tags Empty tags end with /> There is a unique root element Elements may not overlap Attribute values are quoted < and & are only used to start tags and entities Only the five predefined entity references are used Match the constraints listed in the DTD (or, generate from DTD as linearized derivation tree, as shown later) XML principles for a document being well- formed: XML principle for a document being valid with respect to (w.r.t.) a DTD : Checked by validators such as ervice/xmlvalid/ ervice/xmlvalid/

22-Sep-06 CS6795 Semantic Web Techniques 14 Mail-Box Example: Address Variant Node-Labeled, (Left-to-Right-)Ordered Element Tree: address( name("Xaver M. Linde"), box("2001"), town("10555 Berlin") ) Prolog Term: Xaver M. Linde Berlin XML Markup: address Xaver M. Linde Berlin name box town

22-Sep-06 CS6795 Semantic Web Techniques 15 "|" - Disjoined Street/Mail-Box Example: Document Type Definition and Tree Document Type Tree: Document Type Definition (DTD): address PCDATA name street town PCDATA box "|": Choice The above box address and the original street address are valid w.r.t. this "|"-DTD

22-Sep-06 CS6795 Semantic Web Techniques 16 Phone & Fax Example: Address Variant Node-Labeled, (Left-to-Right-)Ordered Element Tree: address( name("Xaver M. Linde"), street("Wikingerufer 7"), town("10555 Berlin"), phone("030/ "), phone("030/ "), fax("030/ ") ) Prolog Term: Xaver M. Linde Wikingerufer Berlin 030/ / / XML Markup: address Xaver M. LindeWikingerufer Berlin name street town 030/ / / phone fax

22-Sep-06 CS6795 Semantic Web Techniques 17 "+"/"*" - Repetitive-Phone & -Fax Example: Document Type Definition and Tree Document Type Tree: Document Type Definition (DTD): address PCDATA name street town PCDATA phone PCDATA fax "+"/"*": One/Zero or More The above two-phone/one-fax address is valid w.r.t. this "+"/"*"-DTD but the original no-phone/no-fax address is not ( 1 phone!)

22-Sep-06 CS6795 Semantic Web Techniques 18 Country Example: Address Variant Node-Labeled, (Left-to-Right-)Ordered Element Tree: address( name("Xaver M. Linde"), street("Wikingerufer 7"), town("10555 Berlin"), country("Germany") ) Xaver M. Linde Wikingerufer Berlin Germany XML Markup: address Xaver M. Linde Wikingerufer Berlin name street town Germany country Prolog Term:

22-Sep-06 CS6795 Semantic Web Techniques 19 "?" - Optional-Country Example: Document Type Definition and Tree Document Type Tree: Document Type Definition (DTD): address PCDATA name street town PCDATA country "?": One or Zero The above country address and the original countriless address are valid w.r.t. this "?"-DTD

22-Sep-06 CS6795 Semantic Web Techniques 20 Country Address: A Complete XML Document Referring to an External DTD Xaver M. Linde Wikingerufer Berlin Germany XML Document (just ASCII, e.g. stored in a file): The XML declaration uses standalone attribute with "no" value: DTD import The DOCument TYPE declaration names the root element address and, after the SYSTEM keyword, refers to an external DTD "country-address.dtd" (or, at some absolute URL, to an "

22-Sep-06 CS6795 Semantic Web Techniques 21 "minOccurs" - Optional-Country Example: XML Schema Definition Equivalent XML Schema Definition (XSD):

22-Sep-06 CS6795 Semantic Web Techniques 22 "minOccurs" - Optional-Country Example: XML Schema Tree Equivalent Document Schema Tree: address xsd:string name street town xsd:string country

22-Sep-06 CS6795 Semantic Web Techniques 23 Country Address: A Complete XML Document Referring to an External XSD <address xsi:noNamespaceSchemaLocation="country-address.xsd" xmlns:xsi=" > Xaver M. Linde Wikingerufer Berlin Germany Equivalent XML Document (just ASCII, e.g. stored in a file): The xsi:noNamespaceSchemaLocation attribute is embedded in the root element address and refers to an external XSD "country-address.xsd" (or, at some absolute URL, to an "