XQuery How to handle databases with the XML standard? Peter van Keeken Industrial trainee, Evitech 4 th period 2002.

Slides:



Advertisements
Similar presentations
Chungnam National University DataBase System Lab
Advertisements

The XML Server Dr. Zhiwang Fan
The Integration of Biological Data Using Semantic Web Technologies Susie Stephens Principal Product Manager, Life Sciences Oracle
Data formats in e-Science Two key requirements Two key requirements –Interoperability and Scalability –XML is flexible, but verbose –Binary formats are.
XML Data Management 8. XQuery Werner Nutt. Requirements for an XML Query Language David Maier, W3C XML Query Requirements: Closedness: output must be.
Querying on the Web: XQuery, RDQL, SparQL Semantic Web - Spring 2006 Computer Engineering Department Sharif University of Technology.
XML Examples. Bank Information Basic structure: A-101 Downtown 500 … Johnson Alma Surrey … A-101 Johnson …
Native XML Database or RDBMS. Data or Document orientation If you are primarily storing documents, then a Native XML Database may be the best option.
XML: Extensible Markup Language
XML May 3 rd, XQuery Based on Quilt (which is based on XML-QL) Check out the W3C web site for the latest. XML Query data model –Ordered !
XML, XML Schema, Xpath and XQuery Slides collated from various sources, many from Dan Suciu at Univ. of Washington.
Relational Databases for Querying XML Documents: Limitations & Opportunities VLDB`99 Shanmugasundaram, J., Tufte, K., He, G., Zhang, C., DeWitt, D., Naughton,
1 CS 561 Presentation: Indexing and Querying XML Data for Regular Path Expressions A Paper by Quanzhong Li and Bongki Moon Presented by Ming Li.
Hibernate 1. Introduction ORM goal: Take advantage of the things SQL databases do well, without leaving the Java language of objects and classes. ORM.
XML Views El Hazoui Ilias Supervised by: Dr. Haddouti Advanced XML data management.
Advanced Topics COMP163: Database Management Systems University of the Pacific December 9, 2008.
1 COS 425: Database and Information Management Systems XML and information exchange.
U of R eXtensible Catalog Team MetaCat. Problem Domain.
Summary. Chapter 9 – Triggers Integrity constraints Enforcing IC with different techniques –Keys –Foreign keys –Attribute-based constraints –Schema-based.
Automatic Data Ramon Lawrence University of Manitoba
XMLII XSchema XSchema XQuery XQuery. XML Schema XML Schema is a more sophisticated schema language which addresses the drawbacks of DTDs. Supports XML.
4/20/2017.
Object and object-relational databases 1. Object databases vs. Object-relational databases Object databases Stores complex objects – Data + functions.
Integrating XML with Microsoft SQL Server ©NIITeXtensible Markup Language/Lesson 9/Slide 1 of 31 Objectives In this lesson, you will learn to: * Generate.
SPARQL All slides are adapted from the W3C Recommendation SPARQL Query Language for RDF Web link:
By: Blake Peters.  OODB- Object Oriented Database  An OODB is a database management system in which information is represented in the form of objects.
Lecture 7 of Advanced Databases XML Querying & Transformation Instructor: Mr.Ahmed Al Astal.
Lecture 21 XML querying. 2 XSL (eXtensible Stylesheet Language) In HTML, default styling is built into browsers as tag set for HTML is predefined and.
Lecture 6 of Advanced Databases XML Schema, Querying & Transformation Instructor: Mr.Ahmed Al Astal.
Lecture 6 of Advanced Databases XML Querying & Transformation Instructor: Mr.Eyad Almassri.
DATABASE and XML Moussa Mané. Learning Objectives ● Learn about Native XML Databases ● Learn about the conversion technology available ● Understand New.
An Introduction to XML Presented by Scott Nemec at the UniForum Chicago meeting on 7/25/2006.
Session II Chapter 2 – Chapter 2 – XSLhttp://
Alternative databases CMSC 461 Michael Wilson. The power of relational databases  It’s often useful to have relational database power in unusual situations.
Interoperability in Information Schemas Ruben Mendes Orientador: Prof. José Borbinha MEIC-Tagus Instituto Superior Técnico.
1 Advanced Databases – CM036 Dr. Akhtar Ali School of Informatics.
Company LOGO OODB and XML Database Management Systems – Fall 2012 Matthew Moccaro.
XML & Mediators Thitima Sirikangwalkul Wai Sum Mong April 10, 2003.
Openadaptor XML Support Using openadaptor for XML processing Oleg Dulin,
1 CS 430 Database Theory Winter 2005 Lecture 17: Objects, XML, and DBMSs.
Paul Cotton, XML Query WG1 Querying XML Documents Paul Cotton ZIG Washington, Dec 7, 2000.
Copyright © 2004 Pearson Education, Inc.. Chapter 26 XML and Internet Databases.
XML and Database COSC643 Sungchul Hong. Is XML a Database? Yes but only in the strictest sense of the term. It is a collection of data. (some sort) XML.
ISP 433/533 Week 11 XML Retrieval. Structured Information Traditional IR –Unit of information: terms and documents –No structure Need more granularity.
VICTORIA UNIVERSITY OF WELLINGTON Te Whare Wananga o te Upoko o te Ika a Maui SWEN 432 Advanced Database Design and Implementation Exam and Lecture Overview.
TA. Min-Joong Lee x7837)
Web: Minimal Metadata for Data Services Through DIALOGUE Neil Chue Hong AHM2007.
XQuery Leah Andrews. Overview  Queries data stored in XML trees  Declarative  High-level  Functional (no side effects)  Strongly typed  Nodes 
XML Databases by Sebastian Graf Hier beginnt mein toller Vortrag.
[ Part III of The XML seminar ] Presenter: Xiaogeng Zhao A Introduction of XQL.
13 1 Chapter 13 The Data Warehouse Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
XML and Its Applications Ben Y. Zhao, CS294-7 Spring 1999.
CS 157B: Database Management Systems II February 11 Class Meeting Department of Computer Science San Jose State University Spring 2013 Instructor: Ron.
CS 157B: Database Management Systems II February 20 Class Meeting Department of Computer Science San Jose State University Spring 2013 Instructor: Ron.
 XML derives its strength from a variety of supporting technologies.  Structure and data types: When using XML to exchange data among clients, partners,
Introduction to ORM Hibernate Hibernate vs JDBC. May 12, 2011 INTRODUCTION TO ORM ORM is a programming technique for converting data between relational.
XML Extensible Markup Language
XML 1. Chapter 8 © 2013 Pearson Education, Inc. Publishing as Prentice Hall SAMPLE XML SCHEMA (XSD) 2 Schema is a record definition, analogous to the.
NOSQL Data Models.
XML: Extensible Markup Language
Querying and Transforming XML Data
Lecture 15: Midterm Review
XML and Databases.
Relational Algebra Chapter 4, Part A
Relational Algebra Chapter 4, Sections 4.1 – 4.2
2/18/2019.
Convert (flatten) IATI XML file to CSV file(s) using XQUERY
Query Language (Definition)
Lecture 24: Final Review Friday, March 10, 2006.
Social Practice of the language: Describe and share information
Presentation transcript:

XQuery How to handle databases with the XML standard? Peter van Keeken Industrial trainee, Evitech 4 th period 2002

What is XQuery? XQuery is a data query language for XML designed by W3C. XQuery is designed to be broadly applicable across all types of XML data sources (eg. Databases).

XQuery history XQuery is derived from Quilt an XML query language which borrowed features from languages like: –XPath 1.0 –XQL (XML Query Language) –XML-QL (a query language for XML) –SQL (Structured Query Language) –OQL (ODMG, Object Database Standard)

XQuery specifications: Able to query databases and data from (XML) documents XQuery is a data model describing how a XQuery processor should process an XML document or datasource that is available to an XQuery processor. XQuery is also based on: 1.XML Schema 2.XPath (version 2.0) a human-readable syntax and an XML-based syntax is required

More practical decription: Allows joins between XML documents Allows sorting and grouping Language is SQL like but works on trees rather then relational tables

An simple example: You have for instance the next list of recipes in an XML Document: recipes.xml recipes.xml Example XQuery: FOR $t IN document (recipes.xml) // title RETURN $t The result: The query will return all the titles of the recipes in the file.

Another example: A more complex query based on the same resource: recipes.xml recipes.xml Example XQuery: FOR $i IN distinct(document("recipes.xml") RETURN { FOR $r IN document("recipes.xml")//recipe WHERE RETURN $r/title } The result: The query will return for each ingredient, the recipes that it is used in.

The Good about XQuery Can store document or data style XML Tremendous flexibility Complement RDBMS with XML mapping solutions Performance can be very good

The Bad about XQuery Standard is still in development Techniques are unfamiliar to people Not good at transaction processing Some expected database practices are still unsupported Interoperability between products is minimal

Resources: WWW: people.cs.uct.ac.za/~agelderb/hons/coursXMLAarhus.pdf Book (for XML Schemas) : D. Hunter, Beginning XML, 2 nd Edition, Wrox P2P serie

THE END Questions?