Keeping Chess Alive – Do we need 1-unambiguous content models? Murali Mani, UCLA/CSD Extreme Markup Languages 2001 Montreal, Canada.

Slides:



Advertisements
Similar presentations
1 Example Constraint Between Components Consider an XML instance document that has two parts: 1.The "what" part describes - using a standard taxonomy.
Advertisements

The eXtensible Markup Language (XML) An Applied Tutorial Kevin Thomas.
XML to Relational Database Mapping
XDuce Tabuchi Naoshi, M1, Yonelab.
Can schemas help SVG interwork with other markup vocabularies? MURATA Makoto (FAMILY Given) International University of Japan XHTML XForms SVG XML Events.
ISO DSDL ISO – Document Schema Definition Languages (DSDL) Martin Bryan Convenor, JTC1/SC18 WG1.
CS570 Artificial Intelligence Semantic Web & Ontology 2
XML & Data Structures for the Internet Yingcai Xiao.
1 DTD (Document Type Definition) Imposing Structure on XML Documents (W3Schools on DTDs)W3Schools on DTDs.
SDPL 2003Notes 2: Document Instances and Grammars1 2.5 XML Schemas n A quick introduction to XML Schema –W3C Recommendation, May 2, 2001: »XML Schema Part.
ModelicaXML A Modelica XML representation with Applications Adrian Pop, Peter Fritzson Programming Environments Laboratory Linköping University.
XML e X tensible M arkup L anguage 1/23.
15-Jun-15 RELAX NG. 2 What is RELAX NG? RELAX NG is a schema language for XML It is an alternative to DTDs and XML Schemas It is based on earlier schema.
Lecture 14 XML Validation. a simple element containing text attribute; attributes provide additional information about an element and consist of a name.
Validating Streaming XML Documents Luc Segoufin & Victor Vianu Presented by Harel Paz.
RELAX NG. Caveat I did not have a RELAX NG validator when I wrote these slides. Therefore, if an example appears to be wrong, it probably is.
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic XML.
CS155b: E-Commerce Lecture 10: Feb. 13, 2003 XML and its relationship to B2B commerce Acknowledgements: R. Glushko, A. Gregory, and V. Ramachandran.
Sunday, June 28, 2015 Abdelali ZAHI : FALL 2003 : XML Schemas XML Schemas Presented By : Abdelali ZAHI Instructor : Dr H.Haddouti.
1 Augmenting MatML with Heat Treating Semantics Aparna Varde, Elke Rundensteiner, Murali Mani Mohammed Maniruzzaman and Richard D. Sisson Jr. Worcester.
5-1 Facilitating Business over the Internet: The XML language CR (2004) Prentice Hall, Inc. The xml goals The main objects of xml: Diagrams: Blocks and.
Unit 4 – XML Schema XML - Level I Basic.
Jennifer Widom XML Data XML Schema. Jennifer Widom XML Schema “Valid” XML Adheres to basic structural requirements  Also adheres to content-specific.
Jennifer Widom XML Data DTDs, IDs & IDREFs. Jennifer Widom DTDs, IDs & IDREFs “Well-Formed” XML Adheres to basic structural requirements Single root element.
XP New Perspectives on XML Tutorial 4 1 XML Schema Tutorial – Carey ISBN Working with Namespaces and Schemas.
XML Validation I DTDs Robin Burke ECT 360 Winter 2004.
XML – Extensible Markup Language Sivakumar Kuttuva & Janusz Zalewski.
Lecture 15 XML Validation. a simple element containing text attribute; attributes provide additional information about an element and consist of a name.
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.
November 1&2, Are we there yet? YES What to expect along the way A Brief History Some Jargon you may need to know First Detour: NLM DTD vs PMC.
SDPL 2002Notes 2: Document Instances and Grammars1 2.5 XML Schemas n A quick introduction to XML Schema –W3C Recommendation, May 2, 2001: »XML Schema Part.
1 XML at a neighborhood university near you Innovation 2005 September 16, 2005 Kwok-Bun Yue University of Houston-Clear Lake.
XML BIS4430 – unit 10. XML Origins Extensible Markup Language (XML) 1998 Inspired by Standard Generalized Markup Language (SGML) and HTML. SGML defines.
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.
Intro. to XML & XML DB Bun Yue Professor, CS/CIS UHCL.
Session IV Chapter 9 – XML Schemas
Avoid using attributes? Some of the problems using attributes: Attributes cannot contain multiple values (child elements can) Attributes are not easily.
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 –
XML Data Management 10. Deterministic DTDs and Schemas Werner Nutt.
SDPL 2005Notes 2.5: XML Schemas1 2.5 XML Schemas n Short introduction to XML Schema –W3C Recommendation, 1 st Ed. May, 2001; 2 nd Ed. Oct, 2004: »XML Schema.
© GMV S.A., 2004 Property of GMV S.A. All rights reserved 2004/05/13 XML in CCSDS CCSDS Spring Meeting - Montreal Fran Martínez GMVSA 4081/04.
XML Validation I DTDs Robin Burke ECT 360 Winter 2004.
XSDL & Relax : 2 new schema languages for XML Rajasekar Krishnamurthy.
An OO schema language for XML SOX W3C Note 30 July 1999.
Internet Technologies Review Week 1 How does Jigsaw differ from EchoServer.java? What abstractions are made available to the servlet writer (under.
The eXtensible Markup Language (XML). Presentation Outline Part 1: The basics of creating an XML document Part 2: Developing constraints for a well formed.
Tutorial 13 Validating Documents with Schemas
XML Grammar and Parser for WSOL Kruti Patel, Vladimir Tosic, Bernard Pagurek Network Management & Artificial Intelligence Lab Department of Systems & Computer.
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.
XML eXtensible Markup Language. XML A method of defining a format for exchanging documents and data. –Allows one to define a dialect of XML –A library.
XML Validation II Schemas Robin Burke ECT 360. Outline Namespaces Documents  Data types XML Schemas Elements Attributes Derived data types RELAX NG.
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 4 1COMP9321, 15s2, Week.
XML A Language Presentation. Outline 1. Introduction 2. XML 2.1 Background 2.2 Structure 2.3 Advantages 3. Related Technologies 3.1 DTD 3.2 Schemas and.
Introduction to XML Schema John Arnett, MSc Standards Modeller Information and Statistics Division NHSScotland Tel: (x2073)
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 Validation II Advanced DTDs + Schemas Robin Burke ECT 360.
SEMI-STRUCTURED DATA (XML) 1. SEMI-STRUCTURED DATA ER, Relational, ODL data models are all based on schema Structure of data is rigid and known is advance.
CSE 202 – Formal Languages and Automata Theory 1 REGULAR EXPRESSION.
SDPL : XML Schemas1 2.5 XML Schemas n Short introduction to XML Schema –W3C Recommendation, 1 st Ed. May, 2001; 2 nd Ed. Oct, 2004: »XML Schema.
Formal Language Theory
Eugenia Fernandez IUPUI
Web Programming Maymester 2004
XML Data Introduction, Well-formed XML.
XML Data DTDs, IDs & IDREFs.
Piotr Kaminski University of Victoria September 24th, 2002
Semi-Structured data (XML Data MODEL)
Deniz Beser A Fundamental Tradeoff in Knowledge Representation and Reasoning Hector J. Levesque and Ronald J. Brachman.
Semi-Structured data (XML)
New Perspectives on XML
Presentation transcript:

Keeping Chess Alive – Do we need 1-unambiguous content models? Murali Mani, UCLA/CSD Extreme Markup Languages 2001 Montreal, Canada

Outline of the talk Why is 1-unambiguity important? Formalize few concepts and learn – – There exist regular languages that are inherently not 1-unambiguous. We do not need 1-unambiguity – No additional benefit – Difficulty for document processing (type inference)

Why is 1-unambiguity important? XML 1.0 specification [3.2.1] – “It is an error if an element in the document can match more than one occurrence of an element type in the content model”. [App E] – “The content model (b, c) | (b, d) is in error and may be reported as an error.”

Why is 1-unambiguity important? (contd…) XML Schema [3.8.6] – Schema Component Constraint: Unique Particle Attribution “A content model must be formed such that during validation of an element information item sequence, the particle with which we attempt to validate each item in the sequence can be uniquely determined without examining the content or attributes of that element, and without any information about items in the remainder of the sequence”

Concepts Regular expression – ‘,’, ‘|’,,’*’ (a | b)*, c Model group – other operators also – ‘+’, ‘?’, ‘&’ a?, (b | c)* = (a, (b | c)*) | (b | c)* Every regular expression is a model group Every model group can be expressed as a regular expression.

1-unambiguous content models Ambiguity in Graphs and Expressions – Book, Evan, Greibach, Ott, 1971 – Given a regular expression, E, is E ambiguous? For example, (a | (a, b*)) is ambiguous Deterministic Regular Languages – Anne Bruggemann Klein, 1991 – Studied 1-unambiguity in SGML content models

1-unambiguous content models (contd…) Reasoning about XML Schema Languages using Formal Language Theory –Dongwon Lee, Murali Mani, Makoto Murata, 2000 – Content models without the 1-unambiguous contraint open.org/cover/topics.html#ambiguity Example content model -- (whitemove, blackmove)*, whitemove?

Type assignment

Type assignment (contd…) Assumption – If the type of an element can be determined by a SAX parser on seeing the start element tag, it is sufficient. DTDs and XML-Schema have the above property even without the 1-unambiguity constraint.

Disadvantages of having the 1-unambiguity constraint Significant loss in ability to describe constraints – the game of chess might be described as (whitemove | blackmove)* We lost the following constraints – whitemove and blackmove alternate – We start with a whitemove Shall we stick to the chess rules?

Disadvantages of having the 1-unambiguity constraint (contd…) Difficult for document processing, and type inference – No characterization of 1-unambiguous model groups – Less constraints => less algebraic optimization is possible.

Conclusions One class of schema languages identified by the property – the type of an element can be determined by a depth first traversal (SAX parser) on seeing the start element tag Such schema languages do not need the 1- unambiguity constraint. 1-unambiguity constraint is difficult to work with for type inference, and for playing chess.

Acknowledgements XML-DEV mailing list – the discussions in this list largely motivated this talk.

Additional material at this conference Taxonomy of XML Schema languages using Formal Language Theory – Aug 15, 4:00 pm RELAX NG: Unification of RELAX Core and TREX – Aug 17, 9:00 am