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

Slides:



Advertisements
Similar presentations
TWO STEP EQUATIONS 1. SOLVE FOR X 2. DO THE ADDITION STEP FIRST
Advertisements

Warm-up Solve each equation. 1. k2 = b2 = m2 – 196 = c = 36
1 Quick Intro to XPath Roger L. Costello 14 December, 2012.
Slide 1 Insert your own content. Slide 2 Insert your own content.
1 4 Approaches to Structuring Lists February 22, 2009.
1 How to Specify Validation Information Roger L. Costello 27 December, 2008.
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 8-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.
LOM-XML, 16 September 2002, Lawrence, KA, USA ©Erik Duvalp. 1 LOM XML Bindings Erik Duval Dept. Computerwetenschappen K.U.Leuven
OLAC Metadata Steven Bird University of Melbourne / University of Pennsylvania OLAC Workshop 10 December 2002.
Requirements. UC&R: Phase Compliance model –RIF must define a compliance model that will identify required/optional features Default.
Business Transaction Management Software for Application Coordination 1 Business Processes and Coordination.
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
0 - 0.
ALGEBRAIC EXPRESSIONS
DIVIDING INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
MULTIPLICATION EQUATIONS 1. SOLVE FOR X 3. WHAT EVER YOU DO TO ONE SIDE YOU HAVE TO DO TO THE OTHER 2. DIVIDE BY THE NUMBER IN FRONT OF THE VARIABLE.
SUBTRACTING INTEGERS 1. CHANGE THE SUBTRACTION SIGN TO ADDITION
MULT. INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
Teacher Name Class / Subject Date A:B: Write an answer here #1 Write your question Here C:D: Write an answer here.
Addition Facts
ZMQS ZMQS
22-Sep-06 CS6795 Semantic Web Techniques 0 Extensible Markup Language.
Copyright © Questionmark Corporation and/or Questionmark Computing Limited, known collectively as Questionmark. All rights reserved. Questionmark.
Solve Both Sides Day 1 Teacher Notes
XML Schema Heewon Lee. Contents 1. Introduction 2. Concepts 3. Example 4. Conclusion.
August 2012 This work is licensed under the Creative Commons Attribution 3.0 Unported License. To view a copy of this license, visit
O X Click on Number next to person for a question.
DiGIR1 DiGIR Distributed Generic Information Retrieval Stan Blum, Dave Vieglais, P.J. Schwartz.
5.9 + = 10 a)3.6 b)4.1 c)5.3 Question 1: Good Answer!! Well Done!! = 10 Question 1:
XML Data Validation An Open QA Framework February 28, 2005 The Exchange Network Node Mentoring Workshop.
Heppenheim Producer-Archive Interface Specification Status of standardisation project Main characteristics, major changes, items pending.
Squares and Square Root WALK. Solve each problem REVIEW:
Lets play bingo!!. Calculate: MEAN Calculate: MEDIAN
Past Tense Probe. Past Tense Probe Past Tense Probe – Practice 1.
Properties of Exponents
Chapter 5 Test Review Sections 5-1 through 5-4.
Data-centric XML Other Schema Languages Montag, 5. Juli 2010.
1 First EMRAS II Technical Meeting IAEA Headquarters, Vienna, 19–23 January 2009.
Addition 1’s to 20.
25 seconds left…...
Test B, 100 Subtraction Facts
11 = This is the fact family. You say: 8+3=11 and 3+8=11
Week 1.
We will resume in: 25 Minutes.
Solving Addition and Subtraction Inequalities
Use the substitution method
Bottoms Up Factoring. Start with the X-box 3-9 Product Sum
FIND THE AREA ( ROUND TO THE NEAREST TENTHS) 2.7 in 15 in in.
O X Click on Number next to person for a question.
Solve an equation by multiplying by a reciprocal
Addition 14 Days (English) Slide Show Menu 1st2ndEnd DAY 11+1=2 1+2=3 1+3=4*1+4=5 1+5=6 1+6=7*1+7=8 1+8=9 1+9=10* DAY 22+2=4 2+3=5 2+4=6*2+5=7 2+6=8 2+7=9*2+8=10.
Introducing XML : Table of Contents 1. From HTML to XML 2. Well-Formed XML 3. Validity / DTDs 4. Encodings 5. XML Namespaces 6. XML Schema 7. XML Tools.
1 The Personal Health Record (PHR) Presentation G Adapted from training materials of the Royal College of Paediatrics and Child Health [RCPCH.
EAD Revision: Technical Considerations Terry Catapano EAD Roundtable Meeting
ISO DSDL ISO – Document Schema Definition Languages (DSDL) Martin Bryan Convenor, JTC1/SC18 WG1.
SOAP SOAP is a protocol for accessing a Web Service. SOAP stands for Simple Object Access Protocol * SOAP is a communication protocol * SOAP is for communication.
1 Web Data Management XML Schema. 2 In this lecture XML Schemas Elements v. Types Regular expressions Expressive power Resources W3C Draft:
1 Using NVDL with XML Signatures Rob Miller. 2 What is NVDL? NVDL = Namespace-based Validation Dispatching Language NVDL is an XML technology NVDL is.
Jennifer Widom XML Data XML Schema. Jennifer Widom XML Schema “Valid” XML Adheres to basic structural requirements  Also adheres to content-specific.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Schemas Ellen Pearlman Eileen Mullin Programming the Web Using XML.
XML – Tools and Trends Schematron Tim Bornholtz Session 55.
Schematron Tim Bornholtz. Schema languages Many people turn to schema languages when they want to be sure that an XML instance follows certain rules –DTD.
CS 157B: Database Management Systems II February 11 Class Meeting Department of Computer Science San Jose State University Spring 2013 Instructor: Ron.
Processing of structured documents Spring 2003, Part 3 Helena Ahonen-Myka.
Using DSDL plus annotations for Netconf (+) data modeling Rohan Mahy draft-mahy-canmod-dsdl-01.
XML Data DTDs, IDs & IDREFs.
Presentation transcript:

1 Example 23

2 Constraint Between Components Consider an XML instance document that has two parts: 1.The "what" part describes - using a standard taxonomy - what's in the other part. 2. The "payload" part contains a data component. EXAMPLE #1 The "what" part uses the DMOZ taxonomy to provide the hierarchy for a philosophy book. The "payload" part contains data on a philosophy book. The First and Last Freedom J. Krishnamurti Harper & Row

3 Constraint Between Components EXAMPLE #2 The "what" part uses the DMOZ taxonomy to provide the hierarchy for the Chinese language. The "payload" part contains data on the Chinese language. Ta

4 Constraint Between Components PROBLEM How do you create an NVDL script which will validate that: If the value of the taxonomy attribute is then validate the data component in against: the Book schema If the value of the taxonomy attribute is then validate the data component in against: the Chinese schema Further... the data components in may be expressed in any schema language (XML Schema, Relax NG, DTD, Schematron). How would you create an NVDL script to do this?

5 An NVDL Processor Divides the Instance into Sections N V D L processor Ta Ta

6 … and then Validates each Section N V D L processor Ta Ta Document.xsd Validate Chinese.xsd

7 N V D L processor Ta Ta How do we express the constraint between the taxonomy value and the payload value?

8 Acknowledgement Thanks to George Cristian Bina for explaining to me how to solve this problem (see the following slides for the solution). Thanks George!

9 Solution Validate each section independently –Validate the Document section against Document.xsd –Validate the payload section against it's schema Validate a Book section against Book.xsd Validate a Chinese section against Chinese.xsd Attach the payload section to its parent (Document) section and then use Schematron to validate the relationship between the taxonomy and the payload

10 NVDL Script <rules xmlns=" startMode="example"> See following slides for an explanation

11 <rules xmlns=" startMode="example"> Validate the Document section against Document.xsd and then for the child (payload) section switch to the content mode.

12 <rules xmlns=" startMode="example"> Validate a payload against book.xsd and a payload against chinese.xsd

13 <rules xmlns=" startMode="example"> Attach any child sections of to its parent, and then use a Schematron schema to validate constraints between the sections.

14 Schematron expresses the constraint between the taxonomy value and the payload When taxonomy is the Payload should contain content from the namespace When taxonomy is the Payload should contain content from the namespace

15 Implementation See the folder example23 for the NVDL script, the schemas, and actual XML instances.

16 Validating Constraints Across Components This example has shown how to express constraints across components Furthermore, the components can be expressed in different schema languages. Relax NG DTD Schematron XML Schema Wow!