上海交通大学:《数据库系统原理 The principle of Database System》课程教学资源(课件讲稿)chapter11 The semi-structured data model Structured data

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

XML Motivation (Cont. Earlier generation formats were based on plain text with line headers indicating the meaning of fields Similar in concept to email headers Does not allow for nested structures,no standard "type”language Each XML based standard defines what are valid elements, using XML type specification languages to specify the syntax DTD (Document Type Descriptors) ▣XML Schema I Plus textual descriptions of the semantics 目 XML allows new tags to be defined as required However,this may be constrained by dTDs A wide variety of tools is available for parsing,browsinge and querying XML documents/data(next chapter)
6 XML Motivation (Cont.) Earlier generation formats were based on plain text with line headers indicating the meaning of fields Similar in concept to email headers Does not allow for nested structures, no standard “type ” language Each XML based standard defines what are valid elements, using XML type specification languages to specify the syntax DTD (Document Type Descriptors) XML Schema Plus textual descriptions of the semantics XML allows new tags to be defined as required However, this may be constrained by DTDs A wide variety of tools is available for parsing, browsing and querying XML documents/data (next chapter)

Comparison with Relational Data Unlike relational tuples,XML data is self- documenting due to presence of tags Non-rigid format:tags can be added Allows nested structures Wide acceptance,not only in database systems,but also in browsers,tools,and applications 7
7 Comparison with Relational Data Unlike relational tuples, XML data is selfdocumenting due to presence of tags Non-rigid format: tags can be added Allows nested structures Wide acceptance, not only in database systems, but also in browsers, tools, and applications

Well-Formed and Valid XML 目 Wel/-Formed XML allows you to invent your own tags. Valid XML conforms to a certain DTD, or XML schema Relational database Valid XML Well-formed XML from strict Structure to loose Structure 8
8 Well-Formed and Valid XML Well-Formed XML allows you to invent your own tags. Valid XML conforms to a certain DTD, or XML schema . Relational database Valid XML Well-formed XML from strict Structure to loose Structure

Well-Formed XML 目 Start the document with a declaration, surrounded by "standalone"="no DTD provided." 目 Balance of document is a roof tag surrounding nested tags. 9
9 Well-Formed XML Start the document with a declaration, surrounded by . Normal declaration is: “standalone ” = “no DTD provided. ” Balance of document is a root tag surrounding nested tags

Tags Tags are normally matched pairs,as ., Unmatched tags also allowed,as Tags may be nested arbitrarily. XML tags are case-sensitive. 10
10 Tags Tags are normally matched pairs, as … . Unmatched tags also allowed, as Tags may be nested arbitrarily. XML tags are case-sensitive
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 上海交通大学:《数据库系统原理 The principle of Database System》课程教学资源(课件讲稿)Chapter1 Introduction.pdf
- 上海交通大学:《数据库系统原理 The principle of Database System》教学资源_intro.pdf
- 上海交通大学:《微机原理与接口技术》课程教学资源(课件讲稿)第二章 8086系统结构.pdf
- 上海交通大学:《微机原理与接口技术》课程教学资源(课件讲稿)第一章 绪论(毛义梅).pdf
- 上海交通大学:《微机原理与接口技术》课程教学资源(课件讲稿)第四章 汇编语言程序设计_习题及解答.pdf
- 上海交通大学:《微机原理与接口技术》课程教学资源(课件讲稿)第四章 汇编语言程序设计.pdf
- 上海交通大学:《微机原理与接口技术》课程教学资源(课件讲稿)第十章 串行通信和可编程接口芯片8251A_习题及解答.pdf
- 上海交通大学:《微机原理与接口技术》课程教学资源(课件讲稿)第十一章 A/D和D/A转换_习题及解答.pdf
- 上海交通大学:《微机原理与接口技术》课程教学资源(课件讲稿)第八章 可编程计数器_定时器8253_习题及解答.pdf
- 上海交通大学:《微机原理与接口技术》课程教学资源(课件讲稿)第八章 可编程计数器/定时器8253及其应用.pdf
- 上海交通大学:《微机原理与接口技术》课程教学资源(课件讲稿)第五章 存储器_习题及解答.pdf
- 上海交通大学:《微机原理与接口技术》课程教学资源(课件讲稿)第五章 存储器.pdf
- 上海交通大学:《微机原理与接口技术》课程教学资源(课件讲稿)第二章 8086系统结构_习题及答案.pdf
- 上海交通大学:《微机原理与接口技术》课程教学资源(课件讲稿)第二章 8086系统结构.pdf
- 上海交通大学:《微机原理与接口技术》课程教学资源(课件讲稿)第九章 可编程外围接口芯片8255A_习题及解答.pdf
- 上海交通大学:《微机原理与接口技术》课程教学资源(课件讲稿)第九章 可编程外围接口芯片 可编程外围接口芯片8255A及其应用.pdf
- 上海交通大学:《微机原理与接口技术》课程教学资源(课件讲稿)第三章 8086/8088寻址方式和指令系统.pdf
- 上海交通大学:《微机原理与接口技术》课程教学资源(课件讲稿)第七章 微型计算机中断系统_习题与解答.pdf
- 上海交通大学:《微机原理与接口技术》课程教学资源(课件讲稿)第七章 微型计算机中断系统.pdf
- 上海交通大学:《微机原理与接口技术》课程教学资源(课件讲稿)第一章 绪论 The Principle of Microcomputer:Programming and Interfacing(翁正新).pdf
- 上海交通大学:《数据库系统原理 The principle of Database System》课程教学资源(课件讲稿)chapter3 Design Theory for Relational Databases.pdf
- 上海交通大学:《数据库系统原理 The principle of Database System》课程教学资源(课件讲稿)chapter4 High-level Database Models.pdf
- 上海交通大学:《数据库系统原理 The principle of Database System》课程教学资源(课件讲稿)Chapter5 Algebraic and Logic Query languages.pdf
- 上海交通大学:《数据库系统原理 The principle of Database System》课程教学资源(课件讲稿)Chapter6 The database Language SQL –as a tutorial.pdf
- 上海交通大学:《数据库系统原理 The principle of Database System》课程教学资源(课件讲稿)Chapter7 Constraints and Triggers.pdf
- 上海交通大学:《数据库系统原理 The principle of Database System》课程教学资源(课件讲稿)chapter8 Views, Indexes.pdf
- 上海交通大学:《数据库系统原理 The principle of Database System》教学资源_第三章习题与答案(第三版).doc
- 上海交通大学:《数据库系统原理 The principle of Database System》教学资源_第二章习题与答案(第三版).doc
- 上海交通大学:《数据库系统原理 The principle of Database System》教学资源_Chapter 1 Introduction.pdf
- 上海交通大学:《程序设计基础》课程教学讲义(密西根学院)Lecture Notes_15 Introduction to matlab.pdf
- 上海交通大学:《程序设计基础》课程教学讲义(密西根学院)Lecture Notes_16 MATLAB environment short.pdf
- 上海交通大学:《程序设计基础》课程教学讲义(密西根学院)Lecture Notes_19 Recursion 1.pdf
- 上海交通大学:《程序设计基础》课程教学讲义(密西根学院)Lecture Notes_20 Looking Ahead.pdf
- 上海交通大学:《程序设计基础》课程教学讲义(密西根学院)Lecture Notes_Array and its Applications.pdf
- 上海交通大学:《程序设计基础》课程教学讲义(密西根学院)Lecture Notes_examples on class design.pdf
- 上海交通大学:《程序设计基础》课程教学讲义(密西根学院)Lecture Notes_Expressions and Statements.pdf
- 上海交通大学:《程序设计基础》课程教学讲义(密西根学院)Lecture Notes_files_DataBase Design.pdf
- 上海交通大学:《程序设计基础》课程教学讲义(密西根学院)Lecture Notes_Function.pdf
- 上海交通大学:《程序设计基础》课程教学讲义(密西根学院)Lecture Notes_Introduction to Computer and Programming.pdf
- 上海交通大学:《程序设计基础》课程教学讲义(密西根学院)Lecture Notes_Introduction to Vg101.pdf