XML Data Management XPath Exercises: Right or Wrong? Werner Nutt.

Slides:



Advertisements
Similar presentations
Standardized Recipes & Converting Recipes
Advertisements

XML Data Management 8. XQuery Werner Nutt. Requirements for an XML Query Language David Maier, W3C XML Query Requirements: Closedness: output must be.
XQuery How to handle databases with the XML standard? Peter van Keeken Industrial trainee, Evitech 4 th period 2002.
Querying on the Web: XQuery, RDQL, SparQL Semantic Web - Spring 2006 Computer Engineering Department Sharif University of Technology.
Egg Cookery Functions and Facts!!. Boiled Eggs Example of setting also known as _ _ _ _ _ _ _ _ _ _ _ White coagulates at 60 C / Yolk at 70 C How are.
Recipe for ??????????????????????????????? What you will make Ingredients What to do
Limiting & Excess Reactants with Stoichiometry
My project Raphaela Cavichioni Hingst Project page 55 About your favorit food.
Content and Systems Week 3. Today’s goals Obtaining, describing, indexing content –XML –Metadata Preparing for the installation of Dspace –Computers available.
OMG! Its… GCF Greatest Common Factor
Why is Gelato Healthier than Ice- cream? By Jessica R.
Exercise Exercise3.1 8 Exercise3.1 9 Exercise
Exercise Exercise Exercise Exercise
Exercise Exercise Exercise Exercise
Exercise Exercise6.1 7 Exercise6.1 8 Exercise6.1 9.
The Knowledge, Skills, and Abilities (KSAs) of the CSUB Graduate First-Round Policy Delphi Results.
Why is it important to read through and understand all parts of the recipe?
Before you start, read the recipe from start to finish so there are no surprises. Preheat the oven to the correct temperature, so that it is ready when.
Traditional Apple Pie Transylvanian Recipe (Romania)
Evaluating Standardized Recipes. Step 1 Examine each recipe’s ingredient list for the following: Flour 1 cup Sugar1 Tablespoon (1Tbsp) Baking Powder1.
Jeopardy The EggBuyingCookingStoring Everything Q $100 Q $200 Q $300 Q $400 Q $500 Q $100 Q $200 Q $300 Q $400 Q $500 Final Jeopardy.
1 XML Data Management 7. XLST Werner Nutt. Kernow and Saxon To demo XSLT, we use Kernow –Kernow is a (graphical) front end for Saxon Saxon is an XSLT,
HALLOWE’EN COOKING TIME THE SPOOKIEST FOOD. MATERIALS: Cooking verbs flash cards. Gap-filling apple crumble recipe worksheet. Colour papers, cardboard,
Semantic web course – Computer Engineering Department – Sharif Univ. of Technology – Fall Querying on the Web: XQuery, RDQL, SparQL Semantic Web.
Do Now Circle the prime numbers :
Content and Computer Platforms Week 3. Today’s goals Obtaining, describing, indexing content –XML –Metadata Preparing for the installation of Dspace –Computers.
Title slide 2 pts Name of your food Your name (may be alone or with 1 partner)
New York Style Cheesecake By: Emily McCadams & Sammi Taylor.
XML Data Management XSLT Exercises: Right or Wrong? Werner Nutt.
It is a traditional Dutch apple pie. It has a long tradition in the Dutch cuisine. Already in the first printed cookbook notabel boecxken of cokeryen.
Put your Title here Add a logo, your school name or photo here.
1 XML Data Management XPath Principles Werner Nutt.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall. Chapter 3 Fractions.
1 XML Data Management XLST Werner Nutt. A Hello World! Stylesheet world.
REPORTS. WHY USE A REPORT  To present data / information from a query  Shows more than one record / strand of information  More presentable / professional.
AP-Style Multiple Choice
Warm Up: Goals and Objectives **Answer in complete sentences. 1.List at least three goals you would like to accomplish during your high school years. 1.
Chemistry Recipe Project Lemon Meringue Pie Nick Ketchum.
Tuesday, Jan. 17 th 3 rd & 6 th Please have 2 sharpened pencils and your math notebook. If you have not finished Friday’s quiz, please see me immediately!
A set of directions for preparing a food product. Recipe:
Imaging your ingredients and supplies for… ‘Draw a Recipe’
XML Data Management XPath Exercises: Right or Wrong? Werner Nutt.
Using a Recipe. Objectives  Identify the information found in a recipe and follow it successfully.  Demonstrate proper measuring techniques for different.
Title slide 2 pts Red Velvet Cupcakes with Cream Cheese Frosting Made by: Allison Sanderson.
网上报账系统包括以下业务: 日常报销 差旅费报销 借款业务 1. 填写报销内容 2. 选择支付方式 (或冲销借款) 3. 提交预约单 4. 打印预约单并同分类粘 贴好的发票一起送至财务 处 预约报销步骤: 网上报账系统 薪酬发放管理系统 财务查询系统 1.
Presentation Title.
Presentation Title.
Exercise Due for 10/08/2013.
3 Chapter Chapter 2 Fractions and Mixed Numbers.
Reading & Writing Recipes
Getting the Most From Your Recipe
PLAN OF LEARNING:- you will…
Pancakes By Oscar.
Querying XML XPath.
Practical - Exam.
Healthy cereal bars for athletes
Querying XML XPath.
Group 1 Group 1 Group 1 Group 1 word word word word word word word word word word word word word word word word word word word word word word word.
Numeracy and Food Technology
A set of directions for preparing a food product.
II. Food, Science, and Technology
Foods 1 Parts of a Recipe.
Recipes.
PRIME AND COMPOSITE NUMBERS
Standardizing and Quantifying
Presentation Title Your information.
Example 7 Investment The future value of $3000 invested for 3 years at rate r, compounded annually, is given by What interest rate will give a future value.
Recipe Parts What’s Missing?.
First and Last Name Class day and period.
A set of directions for preparing a food product.
Presentation transcript:

XML Data Management XPath Exercises: Right or Wrong? Werner Nutt

Right or Wrong? 2.Return the titles of the recipes that have more than 500 calories. /../title … and what about style?

Right or Wrong? 3.Return the recipes for which at least 4 eggs are needed. //recipe[sum(descendant::ingredient >= 4] /title

Right or Wrong? 4. Which recipe has the highest number of calories? > and >

Right or Wrong? 4. Which recipe has the highest number of calories? <= and <= … what exactly does this query return?

Right or Wrong? 6. How many compound ingredients (i.e., ingredients with ingredients) are there in Ricotta Pie? count(//recipe[title="Ricotta Pie"] /ingredient/ingredient/..) … and what about style?

Right or Wrong? 8. Which recipes have an ingredient whose preparation needs more steps than are needed for the recipe itself (i.e., top level steps)? //recipe[count(ingredient/preparation/step) > count(preparation/step)]

Right or Wrong? 10. Return the names of the ingredients of Zuppa Inglese. //recipe[title="Zuppa Inglese"]/ingredient

Right or Wrong? 12.Which recipes have an ingredient in common with Zuppa Inglese? //recipe[title!="Zuppa Inglese"] = //recipe[title="Zuppa Inglese"]

Right or Wrong? 14.Return the names of all elementary ingredients that occur in at least two recipes. //recipe///ingredient [count(.//ingredient) = 0 and = =

Right or Wrong? 14.Return the names of all elementary ingredients that occur in at least two recipes. //recipe[title!=preceding::title] =

Right or Wrong? 15.Return the titles of all recipes for which some form of egg is needed (like egg whites or egg yolk). /ancestor::recipe/title … and what about style?

Right or Wrong? 17. Return the names of those ingredients that are mentioned in a preparation step of their recipe. //ingredient[//preparation/step

Right or Wrong? 17. Return the names of those ingredients that are mentioned in a preparation step of their recipe.

Right or Wrong? 17. Return the names of those ingredients that are mentioned in a preparation step of their recipe. Could we write a query that asks for an occurrence of the ingredient name in any preparation step of the recipe?