CSE 391 Spring 2004 Stony Brook |
Web Queries: Methods and Tools
Annie Liu Assignment 2 |
Handout A2 Feb. 3, 2004 Due Feb. 17 |
XML Data Description
This homework is on XML data description using DTD and XML Schema for a database application.
We consider the following kinds of data:
For this assignment, you only need to work on data descriptions, using both DTD and XML Schema, not on the queries. Make as many constraints as possible, including necessary referential integrity constraints, be part of your data descriptions.
You also need to prepare sample XML data. It is your responsibility to come up with reasonable test data. If your data consists of just a few items that do not illustrate the schemas and constraints well, your grade will be affected accordingly.
Your XML data must conform to your data descriptions, and you must try to validate it using XMLSPY (installed on machines in the translab) or other tools that you can find. To reduce some work, you may use such a tool to generate data descriptions from XML data and convert between the descriptions as much as possible.
Besides your DTD, XML Schema, and sample XML data, you should also document the effort and result of your design (including important considerations and comparison among alternatives that you thought of, if any) as well as your effort and results of using XMLSPY or other tools.
Teams
The course projects, starting with this homework, are to be done in teams of two. Please form teams as soon as possible and by Thursday Feb. 5. After two of you decide to form a team, email me both names and email addrs, and I will post them with our wish list (of handins from assignment 1) that contains a list of all students. Those who do not yet have a teammate may look for one based on the list.
Handins
Before class on the due date, send your completed homework to cse391@cs.sunysb.edu (not to the instructor or TA). If there is more than one file in your homework, please zip the files before you send. There should be one file (either the README file, or the single file for your homework) that contains a description of where is what and instructions for how to test your homework.
Also, in class, hand in a printout that contains the documentation part of your work. You do not need to print out code and data.
Grading
This homework is worth about 6% of the course grade. Exceptionally well thought-out and well written homeworks will receive appropriate extra credit.