Soumettre la recherche
Mettre en ligne
XML Schema
•
Télécharger en tant que ODP, PDF
•
0 j'aime
•
1,440 vues
Carlos Castillo (ChaTo)
Suivre
Technologie
Signaler
Partager
Signaler
Partager
1 sur 27
Télécharger maintenant
Recommandé
Learning To Love Forms (Web Directions South '07)
Learning To Love Forms (Web Directions South '07)
Aaron Gustafson
Presentation1
Presentation1
Wirda Weird
XML em Aplicações e-Business
XML em Aplicações e-Business
elliando dias
Web Services
Web Services
mikata
Xml Xls ed Excel per la produzione espressa di Html - Chiara Bettaglio
Xml Xls ed Excel per la produzione espressa di Html - Chiara Bettaglio
Girl Geek Dinners Milano
Semantic HTML Basic
Semantic HTML Basic
Joseph Chiang
Writing beautiful HTML
Writing beautiful HTML
mintran
CSS Technieken Toegelicht
CSS Technieken Toegelicht
Tweepixels
Recommandé
Learning To Love Forms (Web Directions South '07)
Learning To Love Forms (Web Directions South '07)
Aaron Gustafson
Presentation1
Presentation1
Wirda Weird
XML em Aplicações e-Business
XML em Aplicações e-Business
elliando dias
Web Services
Web Services
mikata
Xml Xls ed Excel per la produzione espressa di Html - Chiara Bettaglio
Xml Xls ed Excel per la produzione espressa di Html - Chiara Bettaglio
Girl Geek Dinners Milano
Semantic HTML Basic
Semantic HTML Basic
Joseph Chiang
Writing beautiful HTML
Writing beautiful HTML
mintran
CSS Technieken Toegelicht
CSS Technieken Toegelicht
Tweepixels
Finding High Quality Content in Social Media
Finding High Quality Content in Social Media
Carlos Castillo (ChaTo)
When no clicks are good news
When no clicks are good news
Carlos Castillo (ChaTo)
Socia Media and Digital Volunteering in Disaster Management @ DSEM 2017
Socia Media and Digital Volunteering in Disaster Management @ DSEM 2017
Carlos Castillo (ChaTo)
Detecting Algorithmic Bias (keynote at DIR 2016)
Detecting Algorithmic Bias (keynote at DIR 2016)
Carlos Castillo (ChaTo)
Discrimination Discovery
Discrimination Discovery
Carlos Castillo (ChaTo)
Fairness-Aware Data Mining
Fairness-Aware Data Mining
Carlos Castillo (ChaTo)
Big Crisis Data for ISPC
Big Crisis Data for ISPC
Carlos Castillo (ChaTo)
Databeers: Big Crisis Data
Databeers: Big Crisis Data
Carlos Castillo (ChaTo)
Observational studies in social media
Observational studies in social media
Carlos Castillo (ChaTo)
Natural experiments
Natural experiments
Carlos Castillo (ChaTo)
Content-based link prediction
Content-based link prediction
Carlos Castillo (ChaTo)
Link prediction
Link prediction
Carlos Castillo (ChaTo)
Recommender Systems
Recommender Systems
Carlos Castillo (ChaTo)
Graph Partitioning and Spectral Methods
Graph Partitioning and Spectral Methods
Carlos Castillo (ChaTo)
Finding Dense Subgraphs
Finding Dense Subgraphs
Carlos Castillo (ChaTo)
Graph Evolution Models
Graph Evolution Models
Carlos Castillo (ChaTo)
Link-Based Ranking
Link-Based Ranking
Carlos Castillo (ChaTo)
Text Indexing / Inverted Indices
Text Indexing / Inverted Indices
Carlos Castillo (ChaTo)
Indexing
Indexing
Carlos Castillo (ChaTo)
Text Summarization
Text Summarization
Carlos Castillo (ChaTo)
Contenu connexe
Plus de Carlos Castillo (ChaTo)
Finding High Quality Content in Social Media
Finding High Quality Content in Social Media
Carlos Castillo (ChaTo)
When no clicks are good news
When no clicks are good news
Carlos Castillo (ChaTo)
Socia Media and Digital Volunteering in Disaster Management @ DSEM 2017
Socia Media and Digital Volunteering in Disaster Management @ DSEM 2017
Carlos Castillo (ChaTo)
Detecting Algorithmic Bias (keynote at DIR 2016)
Detecting Algorithmic Bias (keynote at DIR 2016)
Carlos Castillo (ChaTo)
Discrimination Discovery
Discrimination Discovery
Carlos Castillo (ChaTo)
Fairness-Aware Data Mining
Fairness-Aware Data Mining
Carlos Castillo (ChaTo)
Big Crisis Data for ISPC
Big Crisis Data for ISPC
Carlos Castillo (ChaTo)
Databeers: Big Crisis Data
Databeers: Big Crisis Data
Carlos Castillo (ChaTo)
Observational studies in social media
Observational studies in social media
Carlos Castillo (ChaTo)
Natural experiments
Natural experiments
Carlos Castillo (ChaTo)
Content-based link prediction
Content-based link prediction
Carlos Castillo (ChaTo)
Link prediction
Link prediction
Carlos Castillo (ChaTo)
Recommender Systems
Recommender Systems
Carlos Castillo (ChaTo)
Graph Partitioning and Spectral Methods
Graph Partitioning and Spectral Methods
Carlos Castillo (ChaTo)
Finding Dense Subgraphs
Finding Dense Subgraphs
Carlos Castillo (ChaTo)
Graph Evolution Models
Graph Evolution Models
Carlos Castillo (ChaTo)
Link-Based Ranking
Link-Based Ranking
Carlos Castillo (ChaTo)
Text Indexing / Inverted Indices
Text Indexing / Inverted Indices
Carlos Castillo (ChaTo)
Indexing
Indexing
Carlos Castillo (ChaTo)
Text Summarization
Text Summarization
Carlos Castillo (ChaTo)
Plus de Carlos Castillo (ChaTo)
(20)
Finding High Quality Content in Social Media
Finding High Quality Content in Social Media
When no clicks are good news
When no clicks are good news
Socia Media and Digital Volunteering in Disaster Management @ DSEM 2017
Socia Media and Digital Volunteering in Disaster Management @ DSEM 2017
Detecting Algorithmic Bias (keynote at DIR 2016)
Detecting Algorithmic Bias (keynote at DIR 2016)
Discrimination Discovery
Discrimination Discovery
Fairness-Aware Data Mining
Fairness-Aware Data Mining
Big Crisis Data for ISPC
Big Crisis Data for ISPC
Databeers: Big Crisis Data
Databeers: Big Crisis Data
Observational studies in social media
Observational studies in social media
Natural experiments
Natural experiments
Content-based link prediction
Content-based link prediction
Link prediction
Link prediction
Recommender Systems
Recommender Systems
Graph Partitioning and Spectral Methods
Graph Partitioning and Spectral Methods
Finding Dense Subgraphs
Finding Dense Subgraphs
Graph Evolution Models
Graph Evolution Models
Link-Based Ranking
Link-Based Ranking
Text Indexing / Inverted Indices
Text Indexing / Inverted Indices
Indexing
Indexing
Text Summarization
Text Summarization
XML Schema
1.
XML Schema Carlos
Castillo [email_address] Departamento de Ciencias de la Computacion Facultad de Ciencias Fisicas y Matematicas Universidad de Chile
2.
3.
4.
5.
6.
Jerarquía de lenguajes
7.
8.
Ejemplo simple XML
Schema <?xml version="1.0"?> <xsd: schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.example.com" targetNamespace="http://www.example.com" elementFormDefault="qualified"> <xsd: element name ="note"> <xsd: complexType > <xsd: sequence > <xsd:element name="to" type ="xsd:string"/> <xsd:element name="from" type="xsd:string"/> <xsd:element name="heading" type="xsd:string"/> <xsd:element name="body" type="xsd:string"/> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:schema> note.xsd
9.
Ejemplo simple XML
Schema + doc. <xsd:element name="note"> <xsd:complexType> <xsd:sequence> <xsd:element name="to" type="xsd:string"/> <xsd:element name="from" type="xsd:string"/> <xsd:element name="heading" type="xsd:string"/> <xsd:element name="body" type="xsd:string"/> </xsd:sequence> </xsd:complexType> </xsd:element note.xsd <?xml version=”1.0”?> <note> < to >Juan</ to > < from >Miguel</ from > < heading >Llama a X</ heading > < body >X te busca urgente</ body > </note> note.xml
10.
XML Schema v/s
DTD, 1/2 <xsd:element name="note"> <xsd:complexType> <xsd:sequence> <xsd:element name="to" type="xsd:string"/> <xsd:element name="from" type="xsd:string"/> <xsd:element name="heading" type="xsd:string"/> <xsd:element name="body" type="xsd:string"/> </xsd:sequence> </xsd:complexType> </xsd:element note.xsd <!ELEMENT note (to,from,heading,body)> <!ELEMENT to (#PCDATA)> <!ELEMENT from (#PCDATA)> <!ELEMENT heading (#PCDATA)> <!ELEMENT body (#PCDATA)> note.dtd
11.
XML Schema v/s
DTD, 2/2 <xsd:element name="note"> <xsd:complexType> <xsd:sequence> <xsd:element name="to" type="xsd:string"/> <xsd:element name="priority" type=" xsd:integer "/> <xsd:element name="heading"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:maxLength value="10"/> </xsd:restriction> </xsd:simpleType> </xsd:element> <xsd:element name="body" type="xsd:string"/> </xsd:sequence> </xsd:complexType> </xsd:element> note2.xsd <!ELEMENT note (to,from,heading,body)> <!ELEMENT to (#PCDATA)> <!ELEMENT priority ( #PCDATA )> <!ELEMENT heading ( #PCDATA )> <!ELEMENT body (#PCDATA)> note2.dtd
12.
Orden de compra
<?xml version="1.0"?> <purchaseOrder orderDate="1999-10-20"> <shipTo country="US"> <name>Alice Smith</name> <street>12 Maple Street</street> <city>Mill Valley</city> <state>CA</state> <zip>90952</zip> </shipTo> <billTo country="US"> <name>Robert Smith</name> <street>8 Oak Avenue</street> <city>Old Town</city> <state>PA</state> <zip>95819</zip> </billTo> <comment>Hurry, my lawn is going wild!</comment> <items> <item partNum="872-AA"> < productName >Lawnmower</productName> <quantity>1</quantity> <USPrice>148.95</USPrice> <comment>Confirm this is electric</comment> </item> <item partNum="926-AA"> <productName>Baby Monitor</productName> <quantity>1</quantity> <USPrice>39.98</USPrice> <shipDate>1999-05-21</shipDate> </item> </items> </purchaseOrder> orden_compra.xml
13.
Orden de compra
(tipos dato) <?xml version="1.0"?> <purchaseOrder orderDate=" 1999-10-20 "> <shipTo country=" US "> <name>Alice Smith</name> <street>12 Maple Street</street> <city>Mill Valley</city> <state> CA </state> <zip> 90952 </zip> </shipTo> <billTo country="US"> <name>Robert Smith</name> <street>8 Oak Avenue</street> <city>Old Town</city> <state>PA</state> <zip>95819</zip> </billTo> <comment>Hurry, my lawn is going wild!</comment> <items> <item partNum=" 872-AA "> < productName >Lawn mower</productName> <quantity> 2 </quantity> <USPrice> 148.95 </USPrice> <comment>Confirm this is electric</comment> </item> <item partNum="926-AA"> <productName>Baby Monitor</productName> <quantity>1</quantity> <USPrice>39.98</USPrice> <shipDate>1999-05-21</shipDate> </item> </items> </purchaseOrder> orden_compra.xml
14.
XML Schema 1/3
<schema xmlns=" http://www.w3.org/2001/XMLSchema "> <annotation> <documentation xml:lang="en"> Purchase order schema for Example.com. Copyright 2000 Example.com. All rights reserved. </documentation> </annotation> <element name="purchaseOrder" type="PurchaseOrderType"/> <!-- Tipo complejo --> <complexType name="PurchaseOrderType"> <sequence> <element name="shipTo" type="USAddress"/> <element name="billTo" type="USAddress"/> <element ref="comment" minOccurs="0"/> <element name="items" type="Items"/> </sequence> <attribute name="orderDate" type="date"/> </complexType>
15.
XML Schema 2/3
<!-- Tipo complejo --> <complexType name="USAddress"> <sequence> <element name="name" type="string"/> <element name="street" type="string"/> <element name="city" type="string"/> <element name="state" type="string"/> <element name="zip" type="decimal"/> </sequence> <attribute name="country" type="NMTOKEN" fixed="US"/> </complexType> <!-- Tipo simple --> <simpleType name="SKU"> <restriction base="string"> <pattern value="{3}-[A-Z]{2}"/> </restriction> </simpleType> <!-- Elemento --> <element name="comment" type="string"/>
16.
XML Schema Ej
(3) <complexType name="Items"> <sequence> <element name="item" minOccurs="0" maxOccurs="unbounded"> <complexType> <sequence> <element name="productName" type="string"/> <element name="quantity"> <simpleType> <restriction base="positiveInteger"> <maxExclusive value="100"/> </restriction> </simpleType> </element> <element name="USPrice" type="decimal"/> <element ref="comment" minOccurs="0"/> <element name="shipDate" type="date" minOccurs="0"/> </sequence> <attribute name="partNum" type="SKU" use="required"/> </complexType> </element> </sequence> </complexType> </schema>
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
Télécharger maintenant