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

Slides:



Advertisements
Similar presentations
Giving Feedback. The right and the wrong. >> giving feedback
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.
Eat well and spend less By making a few simple change you could be saving money when serving up healthy meals. If you add some tinned beans, peas or lentils.
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
1 XML Data Management Course Outline and Organisation Werner Nutt.
RBU Synopsis Format. General details  Submit of completed Research Proposal in 8 copies.  The proposal detailing should not be less than 3000 words.
Lecture 13. The various node tests also work on this axis: eg node() This book has descendant-or- self nodes As expected, text nodes are included in the.
Lecture 13. The various node tests also work on this axis: eg node() This book has descendant-or- self nodes As expected, text nodes are included in the.
Exercise Exercise3.1 8 Exercise3.1 9 Exercise
Monday, 12/9/02, Slide #1 CS 106 Intro to CS 1 Monday, 12/9/02  QUESTIONS??  On HW #5 (Due 5 pm today)  Today:  Recursive functions  Reading: Chapter.
How to Make a Good Pie Julia Child Style Kristen Hess.
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.
I.E. Stalking Employers In Linked In Without Upgrading to the Paid Membership.
IBM Research © 2005 IBM Corporation XJ: Robust XML Processing in Java™ Mukund Raghavachari, Rajesh Bordawekar, Michael Burke, and Igor Peshansky IBM T.
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,
1 CIS336 Website design, implementation and management (also Semester 2 of CIS219, CIS221 and IT226) Lecture 6 XSLT (Based on Møller and Schwartzbach,
1 XML Data Management Course Outline and Organisation Werner Nutt.
Semantic web course – Computer Engineering Department – Sharif Univ. of Technology – Fall Querying on the Web: XQuery, RDQL, SparQL Semantic Web.
 Make an Observation  Then Ask a Question!  Perform research about your question  Use only credible sources .edu,.gov,.org  Cite your resources!
Title slide 2 pts Name of your food Your name (may be alone or with 1 partner)
XML Data Management XSLT Exercises: Right or Wrong? Werner Nutt.
Put your Title here Add a logo, your school name or photo here.
Ingredients 2 packs of graham crackers 2 packs of vanilla pudding mix 3 cups of milk 1 container of frozen whipped topping (thawed) 1 package of chocolate.
1 XML Data Management Extracting Data from XML: XPath Werner Nutt based on slides by Sara Cohen, Jerusalem.
1 XML Data Management XPath Principles Werner Nutt.
XML Data Management XPath Exercises: Right or Wrong? Werner Nutt.
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.
Workshop Overview What is a report? Sections of a report Report-Writing Tips.
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.
Factorization : Difference of Two Squares and Perfect Squares.
CIVIL AIR PATROL CADET PROGRAMS GREAT START CADET CADRE TRAINING.
Biosimilar (Insulin) – Competitive Landscape and Market & Pipeline Analysis, 2016 DelveInsight’s, “Biosimilar (Insulin) – Competitive Landscape and Market. Request for sample of this research report:
Imaging your ingredients and supplies for… ‘Draw a Recipe’
1 The XPath Language. 2 XPath Expressions Flexible notation for navigating around trees A basic technology that is widely used uniqueness and scope in.
网上报账系统包括以下业务: 日常报销 差旅费报销 借款业务 1. 填写报销内容 2. 选择支付方式 (或冲销借款) 3. 提交预约单 4. 打印预约单并同分类粘 贴好的发票一起送至财务 处 预约报销步骤: 网上报账系统 薪酬发放管理系统 财务查询系统 1.
Dr. Alexandra I. Cristea SPARQL Exerciess.
Presentation Title.
Presentation Title.
Exercise 1 Oral Examples.
Exercise Due for 10/08/2013.
Reading & Writing Recipes
Submitting Your Essay.
Querying XML XQuery.
Querying XML XQuery.
P1: Significant Significant Properties
Querying XML XPath.
Practical - Exam.
Healthy cereal bars for athletes
Querying XML XPath.
Poached pears.
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.
2/18/2019.
Numeracy and Food Technology
Make Stuffed chicken Breast & saute potatoes
Recipes.
Presentation Title Your information.
CIVIL AIR PATROL CADET PROGRAMS GREAT START CADET CADRE TRAINING
Recipe Parts What’s Missing?.
Make Calzone pizza Personal hygiene preparation. Collect dough.
Ignite presentation - Title slide
Elements and Compounds
First and Last Name Class day and period.
Unit 6 - XML Transformations
Presentation transcript:

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

Right or Wrong? 1.How many calories are in Linguine alla Pescatora? /recipes/recipe[title/text()= "Linguine alla Pescatora"] … and what about style?

Right or Wrong? 4. Which recipe has the highest number of calories? > | > /title … and what about style?

Right or Wrong? 4. Which recipe has the highest number of calories? <= and <= and <= … and what about style?

Right or Wrong? 6. How many compound ingredients (i.e., ingredients with ingredients) are there in Ricotta Pie? count(/recipes/recipe[title/text() = "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)] … 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)? /recipes/recipe [.//ingredient [count(preparation/step) > count(./ancestor::*[name()='recipe'][1] /preparation/step)]] … and what about style?

Right or Wrong? 13. Return the ingredients of recipes other than Zuppa Inglese that these recipes have in common with Zuppa Inglese. //recipe[title != "Zuppa Inglese" = //recipe[title="Zuppa Inglese”]//ingredient or ] //ingredient … 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?