This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
teaching:infoh509 [2019/02/12 13:35] svsummer |
teaching:infoh509 [2019/03/13 16:27] gdejaege [Practical Sessions] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== INFO-H-509 : XML and Web Technologies ====== | ====== INFO-H-509 : XML and Web Technologies ====== | ||
+ | |||
+ | <note important>If you are a VUB studetn following this course, please register by filling in [[https://docs.google.com/forms/d/e/1FAIpQLSfKvLyims3KrWWVJN7T5PQJK9X5uJNLQ04cl8Kd1932RNxj6A/viewform|this online form]] by February 22 at the latest. It allows the course responsibles to contact you when that is needed.</note> | ||
===== GENERAL INFORMATION ===== | ===== GENERAL INFORMATION ===== | ||
Line 37: | Line 39: | ||
* The book chapter 1 (pages 3-31) and chapter 8 (pages 343-361). | * The book chapter 1 (pages 3-31) and chapter 8 (pages 343-361). | ||
* The {{:teaching:infoh509:1-intro-webarch.pdf|slides}} | * The {{:teaching:infoh509:1-intro-webarch.pdf|slides}} | ||
+ | |||
+ | ==== Lecture 2: XML, XPath, and JSON === | ||
+ | |||
+ | Lecture 2 has introduced XML and XPath in depth. | ||
+ | |||
+ | **Required reading:** | ||
+ | |||
+ | * Chapter 2 and chapter 3 (except section 3.6) in the book | ||
+ | * The {{:teaching:infoh509:2-xml-xpath.pdf|corresponding slides}}. | ||
+ | |||
+ | ==== Lecture 3: XML Schema Languages: DTDs === | ||
+ | Lecture 3 has introduced (1) the motivation behind XML Schema Languages, (2) syntax and | ||
+ | semantics of DTDs, and (3) regular expressions. | ||
+ | |||
+ | See pages 92-113 in the book as well as the {{:teaching:infoh509:3-xml_schemas.pdf|corresponding slides}}. | ||
+ | |||
+ | ==== Lecture 4: XML Schema Languages: XSDs === | ||
+ | |||
+ | In Lecture 4, we have discussed the limitations of DTDs. Some of these | ||
+ | limitations are lifted by XML Schema, whose syntax and semantics were studied during lecture 4. | ||
+ | |||
+ | See pages 113-158 in the book as well as the | ||
+ | {{:teaching:infoh509:4-xml_schemas_part_2.pdf|corresponding slides}}. | ||
+ | |||
+ | The example XML Schema files used during the theory lecture is also {{:teaching:infoh509:xml-schema-demo.zip|available for download.}} | ||
+ | |||
+ | ==== Project Assignment 1: XML Schema Definition ==== | ||
+ | |||
+ | Construct an XML Schema Definition for the information recorded by a | ||
+ | bookshop ({{:teaching:infoh509:un_en.pdf|full assignment}}). | ||
+ | |||
+ | This assignment is to be made in groups of | ||
+ | two persons and contributes 2/20 to the overall grade (there are two | ||
+ | more assignments to follow, each contributing 2/20). The written exam | ||
+ | contributes the remaining 14/20 points. | ||
+ | |||
+ | See the full assignment for related dealine(s), what the solution should entail, and to whom it should be submitted). | ||
+ | |||
+ | <note tip>You can use these simple {{:teaching:infoh509:validationtools.zip|validation tools}} (written in Java) to help check if your example documents conform toyour XSD. Unzip the file, and then use either ''java -jar DTDValidator.jar <xmldoc>'' or ''java -jar XSDValidator.jar <schemadoc> <xmldoc>'' to validate. The third jar file contains the source code, should you be interested.</note> | ||
===== Practical Sessions ===== | ===== Practical Sessions ===== | ||
+ | {{:teaching:infoh509:infoh509_01_1617.zip|Practical session 1}} | ||
+ | |||
+ | You can test your Xpath query in the folder containing saxon9he.jar with the following command: | ||
+ | java -cp "saxon9he.jar" net.sf.saxon.Query -s:"<sourcefile>" -qs:'<query>' -o:"<outputfile>" | ||
===== References ===== | ===== References ===== | ||
* A. Moller and M. Schwartzbach. //[[http://www.brics.dk/ixwt/|An Introduction to XML and Web Technologies]]//. Addison-Wesley, 2006. ISBN-13: 978-0-321-26966-9 | * A. Moller and M. Schwartzbach. //[[http://www.brics.dk/ixwt/|An Introduction to XML and Web Technologies]]//. Addison-Wesley, 2006. ISBN-13: 978-0-321-26966-9 |