|
NOTE:
These slides have not been updated since 2003. They have been superseded by the book
Anders Møller and Michael Schwartzbach, February 2006 |
|
| THE XML REVOLUTION - TECHNOLOGIES FOR THE FUTURE WEB |
|
Mapping from XML to relations is called shredding, which for the recipes could look like:
collection
| id | description |
| 147 | Some recipes used in the XML tutorial. |
recipe
| id | parent | title |
| 231 | 147 | Beef Parmesan with Garlic Angel Hair Pasta |
| 237 | 147 | Ricotta Pie |
| 242 | 147 | Linguine Pescadoro |
| 247 | 147 | Zuppa Inglese |
| 253 | 147 | Cailles en Sarcophages |
ingredient
| id | parent | name | amount | unit |
| 411 | 231 | beef cube steak | 1.5 | pound |
| 462 | 237 | ricotta cheese | 3 | pound |
| 535 | 247 | egg yolks | 4 | |
| 612 | 247 | pastry | ||
| 789 | 612 | flour | 3 | cup |
| ... | ... | ... | ... | ... |
preparation
| id | parent |
| 376 | 231 |
| ... | ... |
step
| id | parent | text |
| 423 | 376 | Preheat oven to 350 degrees F (175 degrees C). |
| ... | ... | ... |
comment
| id | parent | text |
| ... | ... | ... |
nutrition
| id | parent | calories | fat | carbohydrates | protein | alcohol |
| ... | ... | ... | ... | ... | ... | ... |
In this construction, we have:
|
| COPYRIGHT © 2000-2003 ANDERS MØLLER & MICHAEL I. SCHWARTZBACH |
|