
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
In this document, students participate in a competition where they must decide whether to convert a json data set into xml or sql format to answer a series of queries related to recipes. The data set includes information about recipe titles, ingredients, and food categories. Students are provided with starter code and queries to help them complete the task. The goal is to find information such as the titles of breakfast recipes, the number of recipes with more than 5 ingredients, the average number of ingredients required for a recipe, and more.
Typology: Study notes
1 / 1
This page cannot be seen from the preview
Don't miss anything!

Welcome to the XML vs. SQL bake-off, where you and your group will race other groups in answering a set of queries! The data set is given to you in JSON, and you will have to choose to convert it to either XML or SQL for querying. (Hint: look at the queries before deciding whether to use XML or SQL!) We’ve provided starter code to get you most of the way to either creating an XML file or creating a CSV file to load into SQLite. You can run the starter code and queries on your own machine if you have python, plus SQLite (for SQL) or Saxon or Kernow (for XML). You may also choose to use the Corn cluster. Data set: /usr/class/cs145/bakeoff/bakeoff_cookbook.json Starter code: /usr/class/cs145/bakeoff/bakeoff_starter.py Queries: