Sistemi ICT per il Business Networking
|
|
- Claire Haynes
- 5 years ago
- Views:
Transcription
1 Corso di Laurea Specialistica Ingegneria Gestionale Sistemi ICT per il Business Networking XML Schema Docente: Vito Morreale 1
2 Motivation People are dissatisfied with DTDs It's a different syntax You write your XML (instance) document using one syntax and the DTD using another syntax --> bad, inconsistent Limited datatype capability You cannot, for example, say "I want the <elevation> element to hold an integer with a range of 0 to 12,000" Desire a set of datatypes compatible with those found in databases DTD supports 10 datatypes; XML Schemas supports 41+ datatypes
3 Highlights of XML Schemas XML Schemas are a tremendous advancement over DTDs: Enhanced datatypes 41+ versus 10 Can create your own datatypes Written in the same syntax as instance documents Object-oriented Can extend or restrict a type (derive new type definitions on the basis of old ones) Can express sets, i.e. can define the child elements to occur in any order
4 BookCatalogue.dtd <!-- A book catalogue contains zero or more books --> <!ELEMENT BookCatalogue (Book)*> <!ELEMENT Book (Title, Author, Date, ISBN, Publisher)> <!ELEMENT Title (#PCDATA)> <!ELEMENT Author (#PCDATA)> <!ELEMENT Date (#PCDATA)> <!ELEMENT ISBN (#PCDATA)> <!ELEMENT Publisher (#PCDATA)>
5 <?xml version="1.0"?> <schema xmlns=" targetnamespace=" elementformdefault="qualified" xmlns:cat=" <element name="bookcatalogue"> <complextype> <sequence> <annotation> <documentation>a book catalogue contains zero or more books</documentation> </annotation> <element ref="cat:book" minoccurs="0" maxoccurs="unbounded"/> </sequence> </element> <element name="book"> <complextype> <sequence> <element ref="cat:title" minoccurs="1" maxoccurs="1"/> <element ref="cat:author" minoccurs="1" maxoccurs="1"/> <element ref="cat:date" minoccurs="1" maxoccurs="1"/> <element ref="cat:isbn" minoccurs="1" maxoccurs="1"/> <element ref="cat:publisher" minoccurs="1" maxoccurs="1"/> </sequence> </element> <element name="title" type="string"/> <element name="author" type="string"/> <element name="date" type="string"/> <element name="isbn" type="string"/> <element name="publisher" type="string"/> </schema> (explanations on succeeding pages) xsd = Xml-Schema Definition
6 <?xml version="1.0"?> <schema xmlns=" targetnamespace=" aces/bookcatalogue" elementformdefault="qualified" All XML schemas have "schema" as the root element. xmlns:cat=" e"> </schema>
7 complextype element annotation documentation sequence schema This (default) namespace declaration says that all these elements come from the XMLSchema namespace <?xml version="1.0"?> <schema xmlns=" > </schema>
8 <?xml version="1.0"?> <schema xmlns=" targetnamespace= " elementformdefault="qualified" xmlns:cat=" </schema> The elements declared in this schema (BookCatalogue, Book, Title, Author, Date, ISBN, Publisher) are to be in this Namespace. Instance documents Instance documents will use the elements from this namespace.
9 Publishing Namespace BookCatalogue Author Book Title Publisher ISBN Date
10 <?xml version="1.0"?> <schema xmlns=" targetnamespace= " elementformdefault="qualified" xmlns:cat=" </schema> Says that in instance documents all the elements from the publishing namespace must be qualified with a namespace qualifier
11 <?xml version="1.0"?> <schema > <element name="bookcatalogue"> <complextype> <sequence> <annotation> <documentation> A book catalogue contains zero or more books </documentation> </annotation> </sequence> </element> </schema> The annotation/documentation elements are optional. Their content is intended for human consumption, i.e. it's a comment
12 Summary of Declaring Elements (two ways to do it) 1 <element name="name name" type="type type" minoccurs="int int" " maxoccurs="int int"/> A simple type (e.g., string) or the name of a complextype A nonnegative number A nonnegative number or "unbounded" 2 <element name="name name" " minoccurs="int int" " maxoccurs="int int"> <complextype> </element>
13 <?xml version="1.0"?> <schema > <element name="bookcatalogue"> <complextype> <sequence> <element name="book" minoccurs="0" maxoccurs="unbounded"> <complextype> <sequence> <element name="title" type="string" minoccurs="1" maxoccurs="1"/> <element name="author" type="string" minoccurs="1" maxoccurs="1"/> <element name="date" type="string" minoccurs="1" maxoccurs="1"/> <element name="isbn" type="string" minoccurs="1" maxoccurs="1"/> <element name="publisher" type="string" minoccurs="1" maxoccurs="1"/> </sequence> </element> </sequence> </element> </schema>
14 Named type <?xml version="1.0"?> <schema > <complextype name="cardcatalogueentry"> <sequence> <element name="title" type="string" minoccurs="1" maxoccurs="1"/> <element name="author" type="string" minoccurs="1" maxoccurs="1"/> <element name="date" type="string" minoccurs="1" maxoccurs="1"/> <element name="isbn" type="string" minoccurs="1" maxoccurs="1"/> <element name="publisher" type="string" minoccurs="1" maxoccurs="1"/> </sequence> </schema>
15 <element name="a" type= tns:foo"/> <complextype name="foo"> <sequence> <element name="b" /> <element name="c" /> </sequence> Element A references the complextype foo. is equivalent to <element name="a"> <complextype> <sequence> <element name="b" /> <element name="c" /> </sequence> </element> Element A has the complextype definition inlined in the element declaration.
16 type Attribute or complextype Child Element, but not Both! An element declaration can have a type attribute, or a complextype child element, but it cannot have both a type attribute and a complextype child element. <element name="a" type="foo"> <complextype> </element>
17 Problem Defining the Date element to be of type string is unsatisfactory We would like to constrain the allowable content that Date can have Modify the BookCatalogue schema to restrict the content of the Date element to just date values (actually, year values) <?xml version="1.0"?> <schema > <element name="bookcatalogue"> <complextype> <sequence> <element name="book" minoccurs="0" maxoccurs="unbounded"> <complextype> <sequence> <element name="date" type="string" minoccurs="1" maxoccurs="1"/> <element name="isbn" type="string" minoccurs="1" maxoccurs="1"/> <element name="publisher" type="string" minoccurs="1" maxoccurs="1"/> </sequence> </element> </sequence> </element> </schema> Similarly, constrain the content of the ISBN element to content of this form: ddddd-ddddd- ddddd or d-ddd-ddddd-d or d-dd-dddddd-d, where 'd' stands for 'digit'
18 The date Datatype A built-in datatype Elements must follow this form: CCYY-MM-DD range for CC is: range for YY is: range for MM is: range for DD is: if month is if month is 2 and the year is a leap year if month is 4, 6, 9, or if month is 1, 3, 5, 7, 8, 10, or 12 Example: represents May 31, 1999
19 A built-in datatype The year Datatype Elements declared to be of type year must follow this form: CCYY range for CC is: range for YY is: Example: 1999 indicates the year 1999
20 <simpletype name="isbntype"> <restriction base="string"> <pattern value="\d{5}-\d{5}-\d{5}"/> <pattern value="\d{1}-\d{3}-\d{5}-\d{1}"/> <pattern value="\d{1}-\d{2}-\d{6}-\d{1}"/> </restriction> </simpletype> Elements declared of this type must conform to one of the following patterns: - First Pattern: 5 digits followed by a dash followed by 5 digits followed by another dash followed by 5 more digits, or - Second Pattern: 1 digit followed by a dash followed by 3 digits followed by another dash followed by 5 digits followed by another dash followed by 1 more digit, or - Third Pattern: 1 digit followed by a dash followed by 2 digits followed by another dash followed by 6 digits followed by another dash followed by 1 more digit
21 <complextype> or <simpletype>? When do you use the complextype element and when do you use the simpletype element? Use the complextype element when you want to define child elements and/or attributes of an element Use the simpletype element when you want to create a new type that is a refinement of a built-in type (string, integer, etc)
22 Creating your own Datatypes A new datatype can be defined from an existing datatype (called the "base" type) by specifying values for one or more of the optional facets for the base type Example. The string primitive datatype has six optional facets: pattern enumeration length minlength maxlength whitespace (legal values: preserve, replace, collapse)
23 Example of Creating a New Datatype by Specifying Facet Values <simpletype name="telephonenumber TelephoneNumber"> <restriction base="string"> <length value="8"/> <pattern value="\d{3}-\d{4}"/> </restriction> </simpletype> This creates a new datatype called 'TelephoneNumber'. Elements of this type can hold string values, but the string length must be exactly 8 characters long and the string must follow the pattern: ddd-dddd, where 'd' represents a 'digit'. (Obviously, in this example the regular expression makes the length facet redundant.)
24 Another Example <simpletype name="us-flag-colors"> <restriction base="string"> <enumeration value="red"/> <enumeration value="white"/> <enumeration value="blue"/> </restriction> </simpletype> This creates a new type called US-Flag-Colors. An element declared to be of this type must have either the value red, or white, or blue.
25 General Form of Creating a New Datatype <simpletype name= "name"> <restriction base= "source"> <facet value= "value"/> <facet value= "value"/> </restriction> </simpletype> Facets: - length - minlength - maxlength - pattern - enumeration - mininclusive - maxinclusive - minexclusive - maxexclusive... Sources: - string - boolean - float - double - decimal - timeduration - recurringduration - urireference...
26 Element Containing a User-Defined Simple Type Example. Create a schema element declaration for an elevation element. Declare the elevation element to be an integer with a range to <elevation>5240</elevation> Here's one way of declaring the elevation element: <simpletype name="earthsurfaceelevation"> <restriction base="integer"> <mininclusive value="-1290"/> <maxinclusive value="29028"/> </restriction> </simpletype> <element name="elevation" type="a:earthsurfaceelevation"/>
27 Element Containing a User-Defined Simple Type (cont.) Here's an alternative method for declaring elevation: <element name="elevation elevation"> <simpletype> <restriction base="integer"> <mininclusive value="-1290"/> <maxinclusive value="29028"/> </restriction> </simpletype> </element>
28 Derived Types We can do a form of subclassing complextype definitions. We call this "derived types" derive by extension: extend the parent complextype with more elements derive by restriction: constrain the parent complextype by constraining some of the elements to have a more restricted range of values, or a more restricted number of occurrences
29 <?xml version="1.0"?> <schema > <complextype name="publication"> <sequence> <element name="title" type="string" minoccurs="1" maxoccurs="unbounded"/> <element name="author" type="string" minoccurs="1" maxoccurs="unbounded"/> <element name="date" type="year" minoccurs="1" maxoccurs="1"/> </sequence> <complextype name="book"> <complexcontent> <extension base= tns:publication" > <sequence> <element name="isbn" type="string" minoccurs="1" maxoccurs="1"/> <element name="publisher" type="string" minoccurs="1" maxoccurs="1"/> </sequence> </extension> </complexcontent>
30 Derive by Restriction <complextype name="publication"> <sequence> <element name="title" type="string" minoccurs="1" maxoccurs="unbounded"/> <element name="author" type="string" minoccurs="1" maxoccurs="unbounded "/> <element name="date" type="year" minoccurs="1" maxoccurs="1" /> </sequence> <complextype name= "SingleAuthorPublication"> <complexcontent> <restriction base= tns:publication"> <sequence> <element name="title" type="string" minoccurs="1" maxoccurs="unbounded"/> <element name="author" type="string" minoccurs="1" maxoccurs="1"/> <element name="date" type="year" minoccurs="1" maxoccurs="1"/> </sequence> </restriction> </complexcontent>
31 In a schema: Terminology: Declaration vs Definition You declare elements and attributes. Schema components that are declared are used in an XML instance document. You define components that are used just within the schema document(s) Declarations: - element declarations - attribute declarations Definitions: - type definitions - attribute group definitions - model group definitions
32 Terminology: Global versus Local Global element declarations, global type definitions: These are element declarations/type definitions that are immediate children of <schema> Local element declarations, local type definitions: These are element declarations/type definitions that are nested within other elements/types.
33 <?xml version="1.0"?> <schema > Local type definition <complextype name="publication"> <sequence> Local element declarations <element name="title" type="string" minoccurs="1" /> Global element declaration </sequence> Global type definition <complextype name="book"> <complexcontent> <extension base="cat:publication"> <sequence> <element name="isbn" type="string" minoccurs="1" maxoccurs="1"/> <element name="publisher" type="string" minoccurs="1" maxoccurs="1"/> </sequence> </extension> </complexcontent> <element name="bookcatalogue"> <complextype> <sequence> <element name="book" minoccurs="0" maxoccurs="unbounded" type="cat:book"/> </sequence> </element> </schema>
34 Attributes <!ELEMENT BookCatalogue (Book)*> <!ELEMENT Book (Title, Author+, Date, ISBN, Publisher)> <!ATTLIST Book Category (autobiography non-fiction fiction) #REQUIRED InStock (true false) "false" Reviewer CDATA ""> <!ELEMENT Title (#PCDATA)> <!ELEMENT Author (#PCDATA)> <!ELEMENT Date (#PCDATA)> <!ELEMENT ISBN (#PCDATA)> <!ELEMENT Publisher (#PCDATA)> <!ELEMENT Month (#PCDATA)> <!ELEMENT Year (#PCDATA)>
35 Attributes <?xml version="1.0"?> <schema "> <element name="book"> <complextype> <sequence> <element ref="title" minoccurs="1" maxoccurs="1"/> <element ref="author" minoccurs="1" maxoccurs="unbounded"/> <element ref="date" minoccurs="1" maxoccurs="1"/> <element ref="isbn" minoccurs="1" maxoccurs="1"/> <element ref="publisher" minoccurs="1" maxoccurs="1"/> </sequence> <attributegroup ref= cat:bookattributes"/> </element>
36 Attributes <attributegroup name="bookattributes"> <attribute name="category" use="required"> <simpletype> <restriction base="string"> <enumeration value="autobiography"/> <enumeration value="non-fiction"/> <enumeration value="fiction"/> </restriction> </simpletype> </attribute> <attribute name="instock" type="boolean" use="default" value="false"/> <attribute name="reviewer" type="string" use="default" value=""/> </attributegroup> </schema>
37 Summary of Declaring Attributes 1 <attribute name="name" type="simple-type" use="how-its-used" value="value"/> string integer boolean... required default fixed optional prohibited This attribute is only used with use="default" and use="fixed" 2 <attribute name="name" use="how-its-used" value="value"> <simpletype> <restriction base="simple-type"> <facet value="value"/> </restriction> </simpletype> </attribute>
38 <element name="book"> <complextype> <sequence> <element name="title" type="string" minoccurs="1" maxoccurs="1"/> <element name="author" type="string" minoccurs="1" maxoccurs="unbounded"/> <element name="date"type="string" minoccurs="1" maxoccurs="1"/> <element name="isbn" type="string" minoccurs="1" maxoccurs="1"/> <element name="publisher" type="string" minoccurs="1" maxoccurs="1"/> </sequence> <attribute name="category" use="required"> <simpletype> <restriction base="string"> <enumeration value="autobiography"/> <enumeration value="non-fiction"/> <enumeration value="fiction"/> </restriction> </simpletype> </attribute> <attribute name="instock" type="boolean" use="default" value="false"/> <attribute name="reviewer" type="string" use="default" value=""/> </element>
39 Notes about Attributes The attribute declarations always come after the element declarations. The attributes are always with respect to the element that they are defined (nested) within. "bar and boo are attributes of foo" <element name="foo"> <complextype> <sequence> </sequence> <attribute name="bar" /> <attribute name="boo" /> </element>
40 These attributes apply to the element they are nested within (Book) That is, Book has three attributes - Category, InStock, and Reviewer. <element name="book"> <complextype> <sequence> <element name="title" type="string" minoccurs="1" maxoccurs="1"/> <element name="author" type="string" minoccurs="1" maxoccurs="unbounded"/> <element name="date" type="string" minoccurs="1" maxoccurs="1"/> <element name="isbn" type="string" minoccurs="1" maxoccurs="1"/> <element name="publisher" type="string" minoccurs="1" maxoccurs="1"/> </sequence> <attribute name="category" use="required"> <simpletype> <restriction base="string"> <enumeration value="autobiography"/> <enumeration value="non-fiction"/> <enumeration value="fiction"/> </restriction> </simpletype> </attribute> <attribute name="instock" type="boolean" use="default" value="false"/> <attribute name="reviewer" type="string" use="default" value=""/> </element>
41 Expressing Alternates DTD: <!ELEMENT transportation (train plane automobile)> XML Schema: <?xml version="1.0"?> <schema xmlns=" targetnamespace=" elementformdefault="qualified"> <element name="transportation"> <complextype> <choice> <element name="train" type="string" minoccurs="1" maxoccurs="1"/> <element name="plane" type="string" minoccurs="1" maxoccurs="1"/> <element name="automobile" type="string" minoccurs="1" maxoccurs="1"/> </choice> </element> </schema>
42 Expressing Any Order Problem: create an element, Book, which contains Author, Title, Date, ISBN, and Publisher, in any order (Note: this cannot be done with DTDs). <?xml version="1.0"?> <schema > <element name="bookcatalogue"> <complextype> <sequence> <element name="book" minoccurs="0" maxoccurs="unbounded"> <complextype> <all> <element name="title" type="string" minoccurs="1" maxoccurs="1"/> XML <element name="author" type="string" minoccurs="1" maxoccurs="1"/> Schema: <element name="date" type="string" minoccurs="1" maxoccurs="1"/> <element name="isbn" type="string" minoccurs="1" maxoccurs="1"/> <element name="publisher" type="string" minoccurs="1" maxoccurs="1"/> </all> </element> </sequence> </element> </schema> <all> means that Book must contain all five child elements, but they may occur in any order.
43 Constraints on using <all> Elements declared within <all> must have a maxoccurs value of "1" (minoccurs can be either "0" or "1")
44 Assembling an Instance Document from Multiple Schema Documents An instance document may have elements from multiple schemas. Validation can apply to the entire XML instance document, or to a single element.
45 <?xml version="1.0"?> <Library xmlns:b=" xmlns:e=" xmlns:xsi=" xsi:schemalocation= " BookCatalogue.xsd </Library> Employee.xsd"> Validating against two schemas
46 <?xml version="1.0"?> <camera xmlns=" xmlns:nikon=" xmlns:olympus=" xmlns:pentax=" xmlns:xsi=" xsi:schemalocation= " Camera.xsd Nikon.xsd Olympus.xsd Pentax.xsd"> <body> <nikon:description>ergonomically designed casing for easy handling</nikon:description> </body> <lens> <olympus:zoom>300mm</olympus:zoom> <olympus:f-stop>1.2</olympus:f-stop> </lens> <manual_adapter> <pentax:speed>1/10,000 sec to 100 sec</pentax:speed> </manual_adapter> </camera> The Camera instance uses elements from the Nikon, Olympus, and Pentax namespaces. Camera.xml (see example 15)
47 anyattribute The <anyattribute> allows any attributes <element name="free-form"> <complextype> <anyattribute/> </element> The free-form element can have any attribute. <free-form comment="this is great"/>
48 Materiale didattico
49 Ulteriori Informazioni Dove reperire ulteriori informazioni su XML W3C (World Wide Web Consortium)
XML Schemas. Purpose of XML Schemas (and DTDs)
1 XML Schemas http://www.w3.org/tr/xmlschema-0/ (Primer) http://www.w3.org/tr/xmlschema-1/ (Structures) http://www.w3.org/tr/xmlschema-2/ (Datatypes) Roger L. Costello XML Technologies Course 2 Purpose
More informationXML Schemas Derived from
1 XML Schemas Derived from http://www.w3.org/tr/xmlschema-0/ Copyright by Roger L. Costello http://www.xfront.com/ Protected by the GNU General Public License Version 2 Modified by Fabrizio Riguzzi on
More informationXML (4) Extensible Markup Language
XML (4) Extensible Markup Language Acknowledgements and copyrights: these slides are a result of combination of notes and slides with contributions from: Michael Kiffer, Arthur Bernstein, Philip Lewis,
More informationXML Schemas A C U R A D I B E L U S S I A L B E R T O ( E S T R A T T I D A M A T E R I A L E D I S P O N I B I L E S U L S I T O W 3 C )
XML Schemas 1 A C U R A D I B E L U S S I A L B E R T O ( E S T R A T T I D A M A T E R I A L E D I S P O N I B I L E S U L S I T O W 3 C ) H T T P : / / W W W. W 3. O R G / T R / X M L S C H E M A - 0
More informationGrammars for XML Documents XML Schema, Part 1
Grammars for XML Documents XML Schema, Part 1 Lecture "XML in Communication Systems" Chapter 4 Dr.-Ing. Jesper Zedlitz Research Group for Communication Systems Dept. of Computer Science Christian-Albrechts-University
More information웹기술및응용. XML Schema 2018 년 2 학기. Instructor: Prof. Young-guk Ha Dept. of Computer Science & Engineering
웹기술및응용 XML Schema 2018 년 2 학기 Instructor: Prof. Young-guk Ha Dept. of Computer Science & Engineering Outline History Comparison with DTD Syntax Definitions and declaration Simple types Namespace Complex
More informationXML. Part II DTD (cont.) and XML Schema
XML Part II DTD (cont.) and XML Schema Attribute Declarations Declare a list of allowable attributes for each element These lists are called ATTLIST declarations Consists of 3 basic parts The ATTLIST keyword
More informationXML DTDs and Namespaces. CS174 Chris Pollett Oct 3, 2007.
XML DTDs and Namespaces CS174 Chris Pollett Oct 3, 2007. Outline Internal versus External DTDs Namespaces XML Schemas Internal versus External DTDs There are two ways to associate a DTD with an XML document:
More informationUNIL 2006 XML. Basic Notions A. BOUKOTTAYA
UNIL 2006 XML Basic Notions A. BOUKOTTAYA Evolution of Mark-Up languages GenCode Commitee (1967) GML (1969) Text Processing Systems SGML (Standard Generalized Mark-Up Language) (1986) Draft with Markup
More informationWho s Afraid of XML Schema?
Who s Afraid of XML Schema? Neil Graham IBM Canada Ltd. Page Objectives Review some of the scariest aspects of XML Schema Focus on broad concepts Heavy use of examples Prove that the basics of XML Schema
More informationMeasuring the Capacity of an XML Schema
Measuring the Capacity of an XML Schema Specifying an Information Channel with an XML Schema August 2006 Roger L. Costello 1, The MITRE Corporation Robin A. Simmons 2, The MITRE Corporation 1 Roger L.
More informationHTML vs. XML In the case of HTML, browsers have been taught how to ignore invalid HTML such as the <mymadeuptag> element and generally do their best
1 2 HTML vs. XML In the case of HTML, browsers have been taught how to ignore invalid HTML such as the element and generally do their best when dealing with badly placed HTML elements. The
More informationSession [2] Information Modeling with XSD and DTD
Session [2] Information Modeling with XSD and DTD September 12, 2000 Horst Rechner Q&A from Session [1] HTML without XML See Code HDBMS vs. RDBMS What does XDR mean? XML-Data Reduced Utilized in Biztalk
More informationXML and Content Management
XML and Content Management Lecture 3: Modelling XML Documents: XML Schema Maciej Ogrodniczuk, Patryk Czarnik MIMUW, Oct 18, 2010 Lecture 3: XML Schema XML and Content Management 1 DTD example (recall)
More informationAppendix H XML Quick Reference
HTML Appendix H XML Quick Reference What Is XML? Extensible Markup Language (XML) is a subset of the Standard Generalized Markup Language (SGML). XML allows developers to create their own document elements
More informationIntroducing our First Schema
1 di 11 21/05/2006 10.24 Published on XML.com http://www.xml.com/pub/a/2000/11/29/schemas/part1.html See this if you're having trouble printing code examples Using W3C XML By Eric van der Vlist October
More informationSchema Languages. Objectives. XML Languages. Motivation
Objectives Schema Languages The purpose of using schemas The schema languages DTD and XML Schema (and DSD2 and RELAX NG) Regular expressions a commonly used formalism in schema languages Anders Møller
More informationOverview. Introduction to XML Schemas. Tutorial XML Europe , Berlin. 1 Introduction. 2 Concepts. 3 Schema Languages.
Introduction to XML Schemas Tutorial XML Europe 2001 21.5.2001, Berlin Ulrike Schäfer. www.infotakt.de. slide 1 Overview 1 Introduction q Why are Schemas? 2 Concepts q What are schemas? 3 Schema Languages
More informationCOMP9321 Web Application Engineering. Extensible Markup Language (XML)
COMP9321 Web Application Engineering Extensible Markup Language (XML) Dr. Basem Suleiman Service Oriented Computing Group, CSE, UNSW Australia Semester 1, 2016, Week 4 http://webapps.cse.unsw.edu.au/webcms2/course/index.php?cid=2442
More information(One) Layer Model of the Semantic Web. Semantic Web - XML XML. Extensible Markup Language. Prof. Dr. Steffen Staab Dipl.-Inf. Med.
(One) Layer Model of the Semantic Web Semantic Web - XML Prof. Dr. Steffen Staab Dipl.-Inf. Med. Bernhard Tausch Steffen Staab - 1 Steffen Staab - 2 Slide 2 Extensible Markup Language Purpose here: storing
More informationETSI TS V8.1.0 ( )
TS 132 645 V8.1.0 (2012-01) Technical Specification Universal Mobile Telecommunications System (UMTS); LTE; Telecommunication management; Configuration Management (CM); UTRAN network resources Integration
More informationXML Schema. Mario Alviano A.Y. 2017/2018. University of Calabria, Italy 1 / 28
1 / 28 XML Schema Mario Alviano University of Calabria, Italy A.Y. 2017/2018 Outline 2 / 28 1 Introduction 2 Elements 3 Simple and complex types 4 Attributes 5 Groups and built-in 6 Import of other schemes
More informationETSI ES V3.3.1 ( ) ETSI Standard
ES 201 873-9 V3.3.1 (2008-07) Standard Methods for Testing and Specification (MTS); The Testing and Test Control Notation version 3; Part 9: Using XML schema with TTCN-3 2 ES 201 873-9 V3.3.1 (2008-07)
More informationXML - Schema. Mario Arrigoni Neri
XML - Schema Mario Arrigoni Neri 1 Well formed XML and valid XML Well formation is a purely syntactic property Proper tag nesting, unique root, etc.. Validation is more semantic, because it must take into
More informationEXTERNAL DATA PLATFORM PDE APPLICATION
EXTERNAL DATA PLATFORM PDE APPLICATION Implementation Guide TABLE OF CONTENTS Implementation Guide... 1 1 INTRODUCTION... 3 1.1 Purpose of the document... 3 1.2 Applicability... 3 1.3 Glossary... 3 2 SCHEMA
More informationInside Information Platform Implementation Guide
ID CODE: PIP Implementation Guide ver. 1.0 DATE: 15/12/2015 DOCUMENT TYPE: APPLICATION: Implementation Guide G.M.E. S.p.A. Inside Information Platform Implementation Guide The information contained in
More informationXML Schema & MPEG DDL
XML Schema & MPEG DDL 1 Outline Basic Tools: MPEG-7, XML Schema, DDL Why use MPEG-7 for MMDBMS? MPEG-7 DDL bases on XML Schema, but defines MPEG-7 specific extensions DDL is:...a language that allows the
More informationXML Schema for Job Definition Format. Graham Mann Internet Printing Group, Adobe Systems Inc
XML Schema for Job Definition Format Graham Mann Internet Printing Group, Adobe Systems Inc gmann@adobe.com Agenda! Why use XML schema! Summary of XML schema capability! Limitations of XML schema! JDF
More informationInformation Systems. DTD and XML Schema. Nikolaj Popov
Information Systems DTD and XML Schema Nikolaj Popov Research Institute for Symbolic Computation Johannes Kepler University of Linz, Austria popov@risc.uni-linz.ac.at Outline DTDs Document Type Declarations
More informationDTD MIGRATION TO W3C SCHEMA
Chapter 1 Schema Introduction The XML technical specification identified a standard for writing a schema (i.e., an information model) for XML called a document type definition (DTD). 1 DTDs were a carryover
More informationETSI STANDARD Methods for Testing and Specification (MTS); The Testing and Test Control Notation version 3; Part 9: Using XML schema with TTCN-3
ES 201 873-9 V4.7.1 (2016-07) STANDARD Methods for Testing and Specification (MTS); The Testing and Test Control Notation version 3; Part 9: Using XML schema with TTCN-3 2 ES 201 873-9 V4.7.1 (2016-07)
More informationDesign of the BonXai Schema Language
Design of the BonXai Schema Language Wim Martens Volker Mattick Matthias Niewerth Shivam Agarwal Najoua Douib Oliver Garbe Daniel Günther Denis Oliana Jens Kroniger Fabian Lücke Taner Melikoglu Kore Nordmann
More informationChapter 11 XML Data Modeling. Recent Development for Data Models 2016 Stefan Deßloch
Chapter 11 XML Data Modeling Recent Development for Data Models 2016 Stefan Deßloch Motivation Traditional data models (e.g., relational data model) primarily support structure data separate DB schema
More informationJava EE 7: Back-end Server Application Development 4-2
Java EE 7: Back-end Server Application Development 4-2 XML describes data objects called XML documents that: Are composed of markup language for structuring the document data Support custom tags for data
More informationDescribing Document Types: The Schema Languages of XML Part 2
Describing Document Types: The Schema Languages of XML Part 2 John Cowan 1 Copyright Copyright 2005 John Cowan Licensed under the GNU General Public License ABSOLUTELY NO WARRANTIES; USE AT YOUR OWN RISK
More informationETSI TS V9.2.0 ( )
TS 132 445 V9.2.0 (2012-03) Technical Specification Universal Mobile Telecommunications System (UMTS); LTE; Telecommunication management; Trace Management Integration Reference Point (IRP): extensible
More informationB oth element and attribute declarations can use simple types
Simple types 154 Chapter 9 B oth element and attribute declarations can use simple types to describe the data content of the components. This chapter introduces simple types, and explains how to define
More informationWhat is XML (extremely Marketed Language) XML, DTD, XML Schema. XML (extensible Markup Language) HTML. Markup
What is XML (extremely Marketed Language) Markup XML, DTD, XML Schema Some slides are from Roger Costello From XML Handbook 1 2 XML (extensible Markup Language) Markup in XML A sequence of characters inserted
More informationIntroduction Syntax and Usage XML Databases Java Tutorial XML. November 5, 2008 XML
Introduction Syntax and Usage Databases Java Tutorial November 5, 2008 Introduction Syntax and Usage Databases Java Tutorial Outline 1 Introduction 2 Syntax and Usage Syntax Well Formed and Valid Displaying
More informationMarkup Languages. Lecture 4. XML Schema
Markup Languages Lecture 4. XML Schema Introduction to XML Schema XML Schema is an XML-based alternative to DTD. An XML schema describes the structure of an XML document. The XML Schema language is also
More information!" DTDs rely on a mechanism based on the use of. !" It is intended to specify cross references" !" Reference to a figure, chapter, section, etc.!
MULTIMEDIA DOCUMENTS! XML Schema (Part 2)"!" DTDs rely on a mechanism based on the use of attributes (ID et IDREF) to specify links into documents"!" It is intended to specify cross references"!" Reference
More informationCountryData Technologies for Data Exchange. Introduction to XML
CountryData Technologies for Data Exchange Introduction to XML What is XML? EXtensible Markup Language Format is similar to HTML, but XML deals with data structures, while HTML is about presentation Open
More informationXML Schema Part 2: Datatypes
XML Schema Part 2: Datatypes W3C Recommendation 02 May 2001 This version: http://www.w3.org/tr/2001/rec-xmlschema-2-20010502/ (in XML and HTML, with a schema and DTD including datatype definitions, as
More informationSCA Model using XSD. Status: in progress. Version Date Author(s) Comments. v1.0 06/06/07 Damien Fournier, Philippe Merle (INRIA) Initial version
SCA Model using XSD This document lists the corrections on the XSD files (from OSOA: http://www.osoa.org/xmlns/sca/1.0/) required to enable the validation of the XSD model and to reflect properly the SCA
More informationTowards Federated Referatories. Erik Wilde Computer Engineering and Networks Laboratory ETH Zürich. Abstract
Erik Wilde Computer Engineering and Networks Laboratory ETH Zürich http://dret.net/projects/bibtexml/ Abstract Metadata usage often depends on schemas for metadata, which are important to convey the meaning
More informationETSI TS V (201
TS 128 736 V13.1.0 (201 16-08) TECHNICAL SPECIFICATION Universal Mobile Telecommunications System (UMTS); LTE; Telecommunication management; Signalling Transport Network (STN) interface Network Resource
More informationDOM Interface subset 1/ 2
DOM Interface subset 1/ 2 Document attributes documentelement methods createelement, createtextnode, Node attributes nodename, nodevalue, nodetype, parentnode, childnodes, firstchild, lastchild, previoussibling,
More informationXML Standards for Ontology Exchange
Marin Dimitrov OntoText Lab., Sirma AI Ltd, 38A Hristo Botev Blvd, Sofia 1000, Bulgaria marin@sirma.bg Abstract. This paper contains a brief introduction to XML and comparison of different languages for
More informationModule 3. XML Schema
Module 3 XML Schema 1 Recapitulation (Module 2) XML as inheriting from the Web history SGML, HTML, XHTML, XML XML key concepts Documents, elements, attributes, text Order, nested structure, textual information
More informationSemantic Web. XML and XML Schema. Morteza Amini. Sharif University of Technology Fall 94-95
ه عا ی Semantic Web XML and XML Schema Morteza Amini Sharif University of Technology Fall 94-95 Outline Markup Languages XML Building Blocks XML Applications Namespaces XML Schema 2 Outline Markup Languages
More informationEMERGING TECHNOLOGIES. XML Documents and Schemas for XML documents
EMERGING TECHNOLOGIES XML Documents and Schemas for XML documents Outline 1. Introduction 2. Structure of XML data 3. XML Document Schema 3.1. Document Type Definition (DTD) 3.2. XMLSchema 4. Data Model
More information3GPP TS V ( )
TS 32.766 V10.1.0 (2010-09) Technical Specification 3rd Generation Partnership Project; Technical Specification Group Services and System Aspects; Telecommunication management; Evolved Universal Terrestrial
More informationWBM-RDA Integration. User Guide
WBM-RDA Integration User Guide Level: Intermediate Ray W. Ellis (rayellis@us.ibm.com) Daniel T. Chang (dtchang@us.ibm.com) Mei Y. Selvage (meis@us.ibm.com) User Guide WBM and RDA Integration Page 1 of
More informationNetwork Working Group. Category: Standards Track DENIC eg January IRIS: The Internet Registry Information Service (IRIS) Core Protocol
Network Working Group Request for Comments: 3981 Category: Standards Track A. Newton VeriSign, Inc. M. Sanz DENIC eg January 2005 IRIS: The Internet Registry Information Service (IRIS) Core Protocol Status
More informationXML. Document Type Definitions XML Schema. Database Systems and Concepts, CSCI 3030U, UOIT, Course Instructor: Jarek Szlichta
XML Document Type Definitions XML Schema 1 XML XML stands for extensible Markup Language. XML was designed to describe data. XML has come into common use for the interchange of data over the Internet.
More informationWeek 5 Aim: Description. Source Code
Week 5 Aim: Write an XML file which will display the Book information which includes the following: 1) Title of the book 2) Author Name 3) ISBN number 4) Publisher name 5) Edition 6) Price Write a Document
More informationXML Schema Element and Attribute Reference
E XML Schema Element and Attribute Reference all This appendix provides a full listing of all elements within the XML Schema Structures Recommendation (found at http://www.w3.org/tr/xmlschema-1/). The
More informationArtix ESB. Writing Artix ESB Contracts. Version 5.5 December 2008
Artix ESB Writing Artix ESB Contracts Version 5.5 December 2008 Writing Artix ESB Contracts Version 5.5 Published 11 Dec 2008 Copyright 2008 IONA Technologies PLC, a wholly-owned subsidiary of Progress
More informationMore XML Schemas, XSLT, Intro to PHP. CS174 Chris Pollett Oct 15, 2007.
More XML Schemas, XSLT, Intro to PHP CS174 Chris Pollett Oct 15, 2007. Outline XML Schemas XSLT PHP Overview of data types There are two categories of data types in XML Schemas: simple types -- which are
More informationXML Reference: Siebel Enterprise Application Integration. Siebel Innovation Pack 2014 November 2014
XML Reference: Siebel Enterprise Application Integration Siebel Innovation November 2014 Copyright 2005, 2014 Oracle and/or its affiliates. All rights reserved. This software and related documentation
More informationArtix ESB. Writing Artix ESB Contracts. Making Software Work Together. Version 5.0 July 2007
Artix ESB Writing Artix ESB Contracts Version 5.0 July 2007 Making Software Work Together Writing Artix ESB Contracts IONA Technologies Version 5.0 Published 28 Jun 2007 Copyright 1999-2007 IONA Technologies
More informationRelax NG. Relax New Generation. Three Kinds of Schema Languages. Key Features of Relax NG
Relax NG Relax New Generation Relax NG was developed by merging two previous schema languages: Relax TREX Regular Language for XML (Murata Makoto) Tree Regular Expressions for XML (James Clark) Three Kinds
More informationETSI TS V5.3.0 ( )
TS 132 615 V5.3.0 (2003-12) Technical Specification Universal Mobile Telecommunications System (UMTS); Telecommunication management; Configuration Management (CM); Bulk CM Integration Reference Point (IRP):
More informationStructured documents
Structured documents An overview of XML Structured documents Michael Houghton 15/11/2000 Unstructured documents Broadly speaking, text and multimedia document formats can be structured or unstructured.
More informationLast week we saw how to use the DOM parser to read an XML document. The DOM parser can also be used to create and modify nodes.
Distributed Software Development XML Schema Chris Brooks Department of Computer Science University of San Francisco 7-2: Modifying XML programmatically Last week we saw how to use the DOM parser to read
More informationXML Format Plug-in User s Guide. Version 10g Release 3 (10.3)
XML Format Plug-in User s Guide Version 10g Release 3 (10.3) XML... 4 TERMINOLOGY... 4 CREATING AN XML FORMAT... 5 CREATING AN XML FORMAT BASED ON AN EXISTING XML MESSAGE FORMAT... 5 CREATING AN EMPTY
More informationDevice Capability Query via CTI Feature
Feature Description, page 1 IP Phones and Codecs, page 1 XML Object Changes, page 5 Schema Definition, page 5 Request and Response Examples for getdevicecaps, page 6 Troubleshooting, page 6 Feature Description
More informationFILTERING UNSATISFIABLE XPATH QUERIES
FILTERING UNSATISFIABLE XPATH QUERIES Jinghua Groppe 1 and Sven Groppe 2 1 Kahlhorststrasse 36a, D-23562 Lübeck, Germany 2 University of Lübeck, Ratzeburger Allee 160, D-23538 Lübeck, Germany groppe@ifis.uni-luebeck.de
More informationSEMANTIC AND TECHNICAL STRUCTURE OF ELECTRONIC MESSAGES STORAGE AND RETRIEVAL OF MODELS
SEMANTIC AND TECHNICAL STRUCTURE OF ELECTRONIC MESSAGES STORAGE AND RETRIEVAL OF MODELS Andreas.pelekies@gefeg.com SCOBDO Table of contents Table of contents... 1 Version history... 2 Status... 2 Introduction...
More informationA Study of Conventional Schema Versioning in the τxschema Framework
A Study of Conventional Schema Versioning in the τxschema Framework Zouhaier Brahmia, Rafik Bouaziz, Fabio Grandi, Barbara Oliboni June 13, 2012 TR-94 A TIMECENTER Technical Report Title A Study of Conventional
More informationETSI TS V9.0.0 ( ) Technical Specification
TS 132 335 V9.0.0 (2010-01) Technical Specification Digital cellular telecommunications system (Phase 2+); Universal Mobile Telecommunications System (UMTS); LTE; Telecommunication management; Notification
More informationETSI TS V ( )
TS 128 623 V14.1.0 (2017-07) TECHNICAL SPECIFICATION Universal Mobile Telecommunications System (UMTS); LTE; Telecommunication management; Generic Network Resource Model (NRM) Integration Reference Point
More informationETSI TS V ( )
TS 132 786 V11.0.0 (2012-10) Technical Specification Digital cellular telecommunications system (Phase 2+); Universal Mobile Telecommunications System (UMTS); LTE; Telecommunication management; Home enhanced
More informationDziennik Ustaw 37 Poz. 125 SCHEMAT GML
Dziennik Ustaw 37 Poz. 125 1. Schemat GML dla EMUiA SCHEMAT GML
More information7.1 Introduction. 7.1 Introduction (continued) - Problem with using SGML: - SGML is a meta-markup language
7.1 Introduction - SGML is a meta-markup language - Developed in the early 1980s; ISO std. In 1986 - HTML was developed using SGML in the early 1990s - specifically for Web documents - Two problems with
More informationXML. XML Namespaces, XML Schema, XSLT
XML XML Namespaces, XML Schema, XSLT Contents XML Namespaces... 2 Namespace Prefixes and Declaration... 3 Multiple Namespace Declarations... 4 Declaring Namespaces in the Root Element... 5 Default Namespaces...
More informationDedicated Links Connectivity Specifications
V0.1 Author 4CB Version V0.1 Date 28/10/2011 All rights reserved. Reproduction for educational and non-commercial purposes is permitted provided that the source is acknowledged. Introduction 1. INTRODUCTION
More informationQuerying XML Data. Querying XML has two components. Selecting data. Construct output, or transform data
Querying XML Data Querying XML has two components Selecting data pattern matching on structural & path properties typical selection conditions Construct output, or transform data construct new elements
More informationETSI TS V6.3.1 ( )
TS 132 615 V6.3.1 (2007-03) Technical Specification Digital cellular telecommunications system (Phase 2+); Universal Mobile Telecommunications System (UMTS); Telecommunication management; Configuration
More informationNetwork Working Group. Category: Standards Track DENIC eg February 2008
Network Working Group Request for Comments: 5144 Category: Standards Track A. Newton American Registry for Internet Numbers M. Sanz DENIC eg February 2008 A Domain Availability Check (DCHK) Registry Type
More informationWeb Services Resource Metadata 1.0 (WS-ResourceMetadataDescriptor)
1 2 3 4 Web Services Resource Metadata 1.0 (WS-ResourceMetadataDescriptor) Committee Specification 01, November 9, 2006 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 Document identifier:
More informationXML and Web Services
XML and Web Services Lecture 8 1 XML (Section 17) Outline XML syntax, semistructured data Document Type Definitions (DTDs) XML Schema Introduction to XML based Web Services 2 Additional Readings on XML
More informationWA2217 Programming Java EE 6 SOAP Web Services with JAX-WS - JBoss / Eclipse EVALUATION ONLY
WA2217 Programming Java EE 6 SOAP Web Services with JAX-WS - JBoss / Eclipse Web Age Solutions Inc. USA: 1-877-517-6540 Canada: 1-866-206-4644 Web: http://www.webagesolutions.com The following terms are
More informationQualys Cloud Platform v2.x API Release Notes
API Release Notes Version 2.32.2 April 25, 2018 Qualys Cloud Suite API gives you many ways to integrate your programs and API calls with Qualys capabilities. You ll find all the details in our user guides,
More information7.1 Introduction. extensible Markup Language Developed from SGML A meta-markup language Deficiencies of HTML and SGML
7.1 Introduction extensible Markup Language Developed from SGML A meta-markup language Deficiencies of HTML and SGML Lax syntactical rules Many complex features that are rarely used HTML is a markup language,
More information3. XML Foundations; Introduction to Modeling
3. XML Foundations; Introduction to Modeling DE + IA (INFO 243) - 30 January 2008 Bob Glushko 1 of 35 Plan for Today's Lecture XML Foundations for Document Engineering Models and modeling The classical
More informationETSI TS V9.0.0 ( ) Technical Specification
TS 132 695 V9.0.0 (2010-01) Technical Specification Digital cellular telecommunications system (Phase 2+); Universal Mobile Telecommunications System (UMTS); LTE; Telecommunication management; Inventory
More informationSyntax XML Schema XML Techniques for E-Commerce, Budapest 2004
Mag. iur. Dr. techn. Michael Sonntag Syntax XML Schema XML Techniques for E-Commerce, Budapest 2004 E-Mail: sonntag@fim.uni-linz.ac.at http://www.fim.uni-linz.ac.at/staff/sonntag.htm Michael Sonntag 2004
More informationEXAM IN SEMI-STRUCTURED DATA Study Code Student Id Family Name First Name
EXAM IN SEMI-STRUCTURED DATA 184.705 28. 10. 2016 Study Code Student Id Family Name First Name Working time: 100 minutes. Exercises have to be solved on this exam sheet; Additional slips of paper will
More informationAuthor: Irena Holubová Lecturer: Martin Svoboda
A7B36XML, AD7B36XML XML Technologies Lecture 5 XML Schema 31. 3. 2017 Author: Irena Holubová Lecturer: Martin Svoboda http://www.ksi.mff.cuni.cz/~svoboda/courses/2016-2-a7b36xml/ Lecture Outline XML schema
More informationModelling XML Applications (part 2)
Modelling XML Applications (part 2) Patryk Czarnik XML and Applications 2014/2015 Lecture 3 20.10.2014 Common design decisions Natural language Which natural language to use? It would be a nonsense not
More information1 FinSurv Reporting System Section D.2 Business and Technical Specifications
1 IMPORT VERIFICATION SYSTEM A) Introduction As a result of the modernisation programme initiated by Customs, no physical documents will be issued by Customs in future but only electronic documents. To
More informationAnalysis and Metrics of XML Schema
Analysis and Metrics of XML Schema Andrew McDowell University of Houston- Clear Lake andrew@rendai.com Chris Schmidt University of Houston- Clear Lake chris@rendai.com Kwok-Bun Yue University of Houston-
More informationIntroduction to Semistructured Data and XML. Overview. How the Web is Today. Based on slides by Dan Suciu University of Washington
Introduction to Semistructured Data and XML Based on slides by Dan Suciu University of Washington CS330 Lecture April 8, 2003 1 Overview From HTML to XML DTDs Querying XML: XPath Transforming XML: XSLT
More informationCopyright 2007 Ramez Elmasri and Shamkant B. Navathe. Slide 27-1
Slide 27-1 Chapter 27 XML: Extensible Markup Language Chapter Outline Introduction Structured, Semi structured, and Unstructured Data. XML Hierarchical (Tree) Data Model. XML Documents, DTD, and XML Schema.
More informationTC57 Use of XML Schema. Scott Neumann. October 3, 2005
TC57 Use of XML Schema Scott Neumann October 3, 2005 Introduction The purpose of this presentation is to respond to an action item from the last WG14 meeting regarding the use of XML Schema by WG14 and
More informationETSI TS V ( )
TS 128 676 V12.0.0 (2014-10) TECHNICAL SPECIFICATION Universal Mobile Telecommunications System (UMTS); LTE; Telecommunication management; Home enhanced Node B (HeNB) Subsystem (HeNS) Network Resource
More information2006 Martin v. Löwis. Data-centric XML. XML Schema (Part 1)
Data-centric XML XML Schema (Part 1) Schema and DTD Disadvantages of DTD: separate, non-xml syntax very limited constraints on data types (just ID, IDREF, ) no support for sets (i.e. each element type
More informationPositioning Additional Constraints
Positioning Additional Constraints Issue XML Schema 1.1 allows additional constraints to be imposed on elements and attributes, above and beyond the constraints specified by their data type. Where should
More information