XML Vocabularies o Web applications must agree on common vocabularies to communicate and collaborate e Communities and business sectors are defining their specialized vocabularies mathematics(MathML) bioinformatICs(BSML human resources(HRML 11 Chapter 2 A Semantic Web primer
Chapter 2 A Semantic Web Primer 11 XML Vocabularies ⚫ Web applications must agree on common vocabularies to communicate and collaborate ⚫ Communities and business sectors are defining their specialized vocabularies – mathematics (MathML) – bioinformatics (BSML) – human resources (HRML) – …
Lecture Outline 1. Introduction 2. Detailed Description of XML 3. Structuring a) DTDs b)XML Schema 4. Namespaces 5. Accessing, querying XML documents: XPath 6. Transformations: XSLT 12 Chapter 2 A Semantic Web primer
Chapter 2 A Semantic Web Primer 12 Lecture Outline 1. Introduction 2. Detailed Description of XML 3. Structuring a) DTDs b) XML Schema 4. Namespaces 5. Accessing, querying XML documents: XPath 6. Transformations: XSLT
The XML Language An xml document consists of e a prolog ● a number of elements e an optional epilog(not discussed 13 Chapter 2 A Semantic Web primer
Chapter 2 A Semantic Web Primer 13 The XML Language An XML document consists of ⚫ a prolog ⚫ a number of elements ⚫ an optional epilog (not discussed)
Prolog of an XML document The prolog consists of anⅩ ML declaration and e an optional reterence to external structuring documents <?xml version=1.encoding UTF-16?> <DOCTYPE book SYSTEM book dtd"> 14 Chapter 2 A Semantic Web primer
Chapter 2 A Semantic Web Primer 14 Prolog of an XML Document The prolog consists of ⚫ an XML declaration and ⚫ an optional reference to external structuring documents <?xml version="1.0" encoding="UTF-16"?> <!DOCTYPE book SYSTEM "book.dtd">
XML Elements The things the XML document talks about E.g. books, authors, publishers o An element consists of an opening tag he content a closing tag <lecturers David Billingtons/lecturer> 15 Chapter 2 A Semantic Web primer
Chapter 2 A Semantic Web Primer 15 XML Elements ⚫ The “things” the XML document talks about – E.g. books, authors, publishers ⚫ An element consists of: – an opening tag – the content – a closing tag <lecturer>David Billington</lecturer>