Chapter 11 The semi-structured data model Structured data XML (http://www.w3.org/XML/) Document Type Definitions XML Schema 1
1 Chapter 11 The semi-structured data model Structured data XML (http://www.w3.org/XML/) Document Type Definitions XML Schema
Graphs of Semistructured Data ▣Nodes=objects Labels on arcs (like attribute names). Atomic values at leaf nodes (nodes with no arcs out). Flexibility:no restriction on: ■Labels out of a node, Number of successors with a given label. 2
2 Graphs of Semistructured Data Nodes = objects. Labels on arcs (like attribute names). Atomic values at leaf nodes (nodes with no arcs out). Flexibility: no restriction on: Labels out of a node. Number of successors with a given label
Example:Data Graph Notice a new kind beer beer of data. bar manf manf prize name A.B. name servedAt (Bud year award Mlob 1995 Gold name addr Joe's Maple The beer object for Bud The bar object for Joe's Bar 3
3 Example: Data Graph Bud A.B. 1995 Gold Joe’s Maple M’lob beer beer bar manf manf servedAt name name name addr prize year award root The bar object for Joe’s Bar The beer object for Bud Notice a new kind of data
XML 目XML= Extensible Markup Language. While HTML uses tags for formatting (e.g.,"italic"),XML uses tags for semantics (e.g.,"this is an address"). Key idea:create tag sets for a domain,and translate all data into properly tagged XML documents
4 XML XML = Extensible Markup Language. While HTML uses tags for formatting (e.g., “italic”), XML uses tags for semantics (e.g., “this is an address”). Key idea: create tag sets for a domain, and translate all data into properly tagged XML documents
XML:Motivation Data interchange is critical in today's networked world Examples: Banking:funds transfer Order processing (especially inter-company orders) ▣Scientific data ■ Chemistry:ChemML,.. ■ Genetics(n.遗传学): BSML (Bio-Sequence Markup Language),... Paper flow of information between organizations is being replaced by electronic flow of information Each application area has its own set of standards for representing information XML has become the basis for all new generation data 5 interchange formats
5 XML: Motivation Data interchange is critical in today’s networked world Examples: Banking: funds transfer Order processing (especially inter-company orders) Scientific data Chemistry: ChemML, … Genetics (n.遗传学): BSML (Bio-Sequence Markup Language), … Paper flow of information between organizations is being replaced by electronic flow of information Each application area has its own set of standards for representing information XML has become the basis for all new generation data interchange formats