A Graphical Environment to Query XML Data with XQuery

Slides:



Advertisements
Similar presentations
XML Data Management 8. XQuery Werner Nutt. Requirements for an XML Query Language David Maier, W3C XML Query Requirements: Closedness: output must be.
Advertisements

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 …
Introduction to Compilation of Functional Languages Wanhe Zhang Computing and Software Department McMaster University 16 th, March, 2004.
XML: Extensible Markup Language
Web Data Management XQuery 1. In this lecture Summary of XQuery FLWOR expressions – For, Let, Where, Order by, Return FOR and LET expressions Collections.
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.
Peer-to-Peer Networking for Distributed Learning Repositories: The Edutella Network Diplomarbeit von Boris Wolf.
CSE 6331 © Leonidas Fegaras XML and Relational Databases 1 XML and Relational Databases Leonidas Fegaras.
TIMBER A Native XML Database Xiali He The Overview of the TIMBER System in University of Michigan.
XQuery Or, what about REAL databases?. XQuery - its place in the XML team XLink XSLT XQuery XPath XPointer.
XQUERY. What is XQuery? XQuery is the language for querying XML data The best way to explain XQuery is to say that XQuery is to XML what SQL is to database.
1 XQuery Web and Database Management System. 2 XQuery XQuery is to XML what SQL is to database tables XQuery is designed to query XML data What is XQuery?
1 Rewriting Nested XML Queries Using Nested Views Nicola Onose joint work with Alin Deutsch, Yannis Papakonstantinou, Emiran Curtmola University of California,
NaLIX: A Generic Natural Language Search Environment for XML Data Presented by: Erik Mathisen 02/12/2008.
Web-site Management System Strudel Presented by: LAKHLIFI Houda Instructor: Dr. Haddouti.
Querying XML (cont.). Comments on XPath? What’s good about it? What can’t it do that you want it to do? How does it compare, say, to SQL?
Visual Web Information Extraction With Lixto Robert Baumgartner Sergio Flesca Georg Gottlob.
IS432: Semi-Structured Data Dr. Azeddine Chikh. 7. XQuery.
QSX (LN 3)1 Query Languages for XML XPath XQuery XSLT (not being covered today!) (Slides courtesy Wenfei Fan, Univ Edinburgh and Bell Labs)
XML Views El Hazoui Ilias Supervised by: Dr. Haddouti Advanced XML data management.
XQuery: 1 W3C (World Wide Web Consortium) What is W3C? –An industry consortium, best known for standardizing HTML and XML. –Working Groups create or adopt.
1 Efficient XML Stream Processing with Automata and Query Algebra A Master Thesis Presentation Student: Advisor: Reader: Jinhui Jian Prof. Elke A. Rundensteiner.
CMPT 354, Simon Fraser University, Fall 2008, Martin Ester 357 Database Systems I Query Languages for XML.
XQuery language Presented by: Tayeb sbihi supervised by: Dr. H. Haddouti.
1 COS 425: Database and Information Management Systems XML and information exchange.
XGI: A Graphic Interface for XQuery Creation and XML Schema Visualization Xiang Li University of Washington Biomedical and Health Informatics Master Thesis.
Query Languages - XQuery Slides partially from Dan Suciu.
XQuery – The W3C XML Query Language Jonathan Robie, Software AG Don Chamberlin, IBM Research Daniela Florescu, INRIA.
1 A Unified Model for XQuery Evaluation over XML Data Streams Jinhui Jian Hong Su Elke A. Rundensteiner Worcester Polytechnic Institute ER 2003.
4/15/2002Bo Du 1 - Bo Du, April 15, XML - QL A Query Language for XML.
XML QUERY LANGUAGE Prepared by Prof. Zaniolo, Hung-chih Yang, Ling-Jyh Chen Modified by Fernando Farfán.
XML –Query Languages, Extracting from Relational Databases ADVANCED DATABASES Khawaja Mohiuddin Assistant Professor Department of Computer Sciences Bahria.
CIS607, Fall 2005 Semantic Information Integration Article Name: Clio Grows Up: From Research Prototype to Industrial Tool Name: DH(Dong Hwi) kwak Date:
Querying XML February 12 th, Querying XML Data XPath = simple navigation through the tree XQuery = the SQL of XML XSLT = recursive traversal –will.
Processing of structured documents Spring 2003, Part 8 Helena Ahonen-Myka.
XQuery Your gateway to manipulating XML in SQL Server 2005.
Advisor: Prof. Zaniolo Hung-chih Yang Ling-Jyh Chen XML Query Language.
Xquery. Summary of XQuery FLWR expressions FOR and LET expressions Collections and sorting Resource W3C recommendation:
SPARQL All slides are adapted from the W3C Recommendation SPARQL Query Language for RDF Web link:
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.
XML-QL A Query Language for XML Charuta Nakhe
1 XML INTEROPERABILITY Manjusha Ravindranath. 2 CONTENTS Introduction Interoperability XSSQL syntax Usecases document Group By -Without aggregation -With.
TDDD43 XML and RDF Slides based on slides by Lena Strömbäck and Fang Wei-Kleiner 1.
1 XTree for Declarative XML Querying Zhuo Chen, Tok Wang Ling, Mengchi Liu, and Gillian Dobbie January 2004.
VICTORIA UNIVERSITY OF WELLINGTON Te Whare Wananga o te Upoko o te Ika a Maui SWEN 432 Advanced Database Design and Implementation An Introduction to XQuery.
VICTORIA UNIVERSITY OF WELLINGTON Te Whare Wananga o te Upoko o te Ika a Maui SWEN 432 Advanced Database Design and Implementation An Introduction to XQuery.
VICTORIA UNIVERSITY OF WELLINGTON Te Whare Wananga o te Upoko o te Ika a Maui SWEN 432 Advanced Database Design and Implementation eXist Update Lecturer.
Pattern tree algebras: sets or sequences? Stelios Paparizos, H. V. Jagadish University of Michigan Ann Arbor, MI USA.
Introduction to XQuery Bun Yue Professor, CS/CIS UHCL.
NaLIX Natural Language Interface for querying XML Huahai Yang Department of Information Studies Joint work with Yunyao Li and H.V. Jagadish at University.
Database Systems Part VII: XML Querying Software School of Hunan University
SDPL 2002Notes 9: XQuery1 9 Querying XML Data and Documents n XQuery, W3C XML Query Language –"work in progress", Working Draft, 30 April 2002 –joint work.
XML Databases by Sebastian Graf Hier beginnt mein toller Vortrag.
XML query. introduction An XML document can represent almost anything, and users of an XML query language expect it to perform useful queries on whatever.
Streaming XPath Engine Oleg Slezberg Amruta Joshi.
XML e X tensible M arkup L anguage (XML) By: Albert Beng Kiat Tan Ayzer Mungan Edwin Hendriadi.
XML Query: xQuery Reference: Xquery By Priscilla Walmsley, Published by O’Reilly.
Week 04 Object Oriented Analysis and Designing. What is a model? A model is quicker and easier to build A model can be used in simulations, to learn more.
XML May 6th, Instructor AnHai Doan Brief bio –high school in Vietnam & undergrad in Hungary –M.S. at Wisconsin –Ph.D. at Washington under Alon &
IS432 Semi-Structured Data Lecture 6: XQuery Dr. Gamal Al-Shorbagy.
CSE 6331 © Leonidas Fegaras XQuery 1 XQuery Leonidas Fegaras.
Lecture 17: XPath and XQuery Wednesday, Nov. 7, 2001.
A Framework For Testing Web Services Based On XQPN Petri Nets Piotr Szwed, Dariusz Wadowski and Krzysztof Paździora Institute of Automatics, AGH University.
SDPL 2005Notes 7: XQuery1 7 Querying XML n How to access different sources (DBs, docs) as XML? n XQuery, W3C XML Query Language –"work in progress", (last.
XML Query languages--XPath. Objectives Understand XPath, and be able to use XPath expressions to find fragments of an XML document Understand tree patterns,
ADT 2010 Introduction to (XML, XPath &) XQuery Chapter 10 in Silberschatz, Korth, Sudarshan “Database System Concepts” Stefan Manegold
Querying and Transforming XML Data
XQuery Leonidas Fegaras.
Presentation transcript:

A Graphical Environment to Query XML Data with XQuery

TCP/IP Illustrated Stevens W. Addison-Wesley Advanced Programming in the Unix... Stevens W. Addison-Wesley XML data from the W3C Use Cases

XQuery List books published by Addison-Wesley after 1991, including their year and title {for $b in document(" where $b/publisher="Addison-Wesley" and return { $b/title } }

 XQBE, a visual dialect of XQuery inspired by QBE paradigm (Zloof 77).  The availability of simpler XQuery “dialects” could contribute to its success, especially for users with a very limited experience of query languages.  To fit the XML data model, XQBE uses hierarchical structures to denote the data taken in input and generated as output. Such structures are annotated to express selection predicates, while explicit bindings visualize the input/output mappings. XQBE (XQuery By Example)

Motivation and design principles XQBE was designed with the objectives of being –intuitive –easy to map directly to XQuery –capable of running on top of any existing XQuery engine XQBE includes most of the expressive power of XPath XQBE allows for arbitrarily deep nesting of XQuery FLWOR expressions XQBE supports the construction of new XML elements and permits to restructure existing documents

Visual querying paradigm  The left part describes the data to be matched to construct the result, the right one specifies which parts will be retained in the result, together with (optional) newly generated items.  A vertical line divides the source (left) part from the construct (right) part.  The query has a natural reading order from left to right. Data Flow Data Flow ResultdataSourcedata Bindings

XQBE

Element projection and renaming For each book in the bibliography, list the title and authors, grouped inside a result element

For each book list only the title and the surnames of the authors Element projection and renaming

For each book found at both and list the title of the book and its price from each source Join between two documents

Create a flat list of all the title-author pairs, with each pair enclosed in a result element Document restructuring

Make a list of all the books with their title, including the editors only if they are affiliated to CITI Filtering nodes in the construct part

List books published by Addison-Wesley after 1991, including their year and title, sorting the retrieved books in lexicographic order Sorting

List all the books not published by Addison-Wesley and with an author whose first name is Jack. Rename each of these books in, and only retain the title and the full name of the authors whose first name is Jack Nesting and negation

Translation principles A query translates to one XQuery FLWR expression It can be contained into an arbitrary number of node constructors The for clause of the outmost FLWR expression contains a list of variable bindings, each of which corresponds to a binding edge Where clauses have a fixed structure –existential quantifier ( some...satisfies )

The tool in action

Future works Extend the set of supported core functions and add the capability of querying the document order Specialize XQBE with capabilities specific to some applicative domain –An XQBE for digital libraries Produce the XQBE view of a given XQuery statement

Conclusions XQBE is a graphical query language that offers a visual interface to query XML documents. We have presented a prototype that implements our proposed interface and translates graphical queries into XQuery, so that it can be used in conjunction with any XQuery engine.