임 순 범 숙명여대 정보과학부 멀티미디어학과 1 III. XML-QL 멀티미디어 데이터베이스 (2001.10.23~11.1)

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

XML e X tensible M arkup L anguage (XML) By: Albert Beng Kiat Tan Ayzer Mungan Edwin Hendriadi.
XML: Extensible Markup Language
XML, XML Schema, Xpath and XQuery Slides collated from various sources, many from Dan Suciu at Univ. of Washington.
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.
Relational Databases for Querying XML Documents: Limitations & Opportunities VLDB`99 Shanmugasundaram, J., Tufte, K., He, G., Zhang, C., DeWitt, D., Naughton,
ViST: a dynamic index method for querying XML data by tree structures Authors: Haixun Wang, Sanghyun Park, Wei Fan, Philip Yu Presenter: Elena Zheleva,
Agenda from now on Done: SQL, views, transactions, conceptual modeling, E/R, relational algebra. Starting: XML To do: the database engine: –Storage –Query.
Managing XML and Semistructured Data Lecture 8: Query Languages - XML-QL Prof. Dan Suciu Spring 2001.
Web-site Management System Strudel Presented by: LAKHLIFI Houda Instructor: Dr. Haddouti.
The Query Language TQL Speaker: Giovanni Conforti Joint work with: G. Ghelli, A. Albano, D. Colazzo, P. Manghi, and C. Sartiani Università di Pisa WebDB.
Visual Web Information Extraction With Lixto Robert Baumgartner Sergio Flesca Georg Gottlob.
IS432: Semi-Structured Data Dr. Azeddine Chikh. 7. XQuery.
From Semistructured Data to XML: Migrating The Lore Data Model and Query Language Roy Goldman, Jason McHugh, Jennifer Widom Stanford University
Integrating Keyword Search into XML Query Processing Presentation By: Alex Kremer Ariel Rosenblatt XML Query Language (XML-QL) Extending XML-QL with Keyword.
QSX (LN 3)1 Query Languages for XML XPath XQuery XSLT (not being covered today!) (Slides courtesy Wenfei Fan, Univ Edinburgh and Bell Labs)
A Graphical Environment to Query XML Data with XQuery
Query Languages Aswin Yedlapalli. XML Query data model Document is viewed as a labeled tree with nodes Successors of node may be : - an ordered sequence.
CMPT 354, Simon Fraser University, Fall 2008, Martin Ester 357 Database Systems I Query Languages for XML.
1 COS 425: Database and Information Management Systems XML and information exchange.
XML - QL A Query Language for XML Version /2000XML-QL2 Outline * Introduction * Examples in XML-QL * A Data Model for XML * Advanced Examples in.
1 Statistics XML: –Altavista: 800,000 pages returned. –Amazon.com: 242 books. In comparison: –God: 12,000 books, 7 Million pages –Bible: 32,000 books,
1 XML and QUERY Shilpi Ahuja CSE Data Mining 4 th April 2002.
Models and languages for semistructured data Bridging documents and databases.
1 New Ways of Querying the Web by Eliahu Brodsky and Alina Blizhovsky.
Database Systems and XML David Wu CS 632 April 23, 2001.
4/15/2002Bo Du 1 - Bo Du, April 15, XML - QL A Query Language for XML.
XML –Query Languages, Extracting from Relational Databases ADVANCED DATABASES Khawaja Mohiuddin Assistant Professor Department of Computer Sciences Bahria.
Fundamentals, Design, and Implementation, 9/e Text and XML databases Instructor: Dragomir R. Radev Winter 2005.
Putting Semi-structured Data to Practice Alon Levy Seattle, Washingon University of Washington.
(C) 2000, The University of Michigan 1 Database Application Design Handout #11 March 24, 2000.
1 Advanced Topics XML and Databases. 2 XML u Overview u Structure of XML Data –XML Document Type Definition DTD –Namespaces –XML Schema u Query and Transformation.
XML: Extensible Markup Language FST-UMAC Gong Zhiguo.
IS432: Semi-Structured Data Dr. Azeddine Chikh. 1. Semi Structured Data Object Exchange Model.
XML-to-Relational Schema Mapping Algorithm ODTDMap Speaker: Artem Chebotko* Wayne State University Joint work with Mustafa Atay,
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 XML Taken from Chapter 7.
XML-QL A Query Language for XML Charuta Nakhe
Dan SuciuTools for XML Data Exchange Dan Suciu AT&T Labs Joint work with Mary Fernandez.
TDDD43 XML and RDF Slides based on slides by Lena Strömbäck and Fang Wei-Kleiner 1.
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.
XML과 Database 홍기형 성신여자대학교 성신여자대학교 홍기형.
By Mohsen ashouri.  Introduction  Comparison between XML and HTML  XML Syntax  Challenges  Summary.
JSTL, XML and XSLT An introduction to JSP Standard Tag Library and XML/XSLT transformation for Web layout.
1 What Is XML? eXtensible Markup Language for data –Standard for publishing and interchange –“Cleaner” SGML for the Internet Applications: –Data exchange.
Lecture 6: XML Query Languages Thursday, January 18, 2001.
Database Systems Part VII: XML Querying Software School of Hunan University
5/2/20051 XML Data Management Yaw-Huei Chen Department of Computer Science and Information Engineering National Chiayi University.
XML Name: Niki Sardjono Class: CS 157A Instructor : Prof. S. M. Lee.
[ Part III of The XML seminar ] Presenter: Xiaogeng Zhao A Introduction of XQL.
Jeff Ullman: Introduction to XML 1 XML Semistructured Data Extensible Markup Language Document Type Definitions.
More XML: semantics, DTDs, XPATH February 18, 2004.
The Semistructured-Data Model Programming Languages for XML Spring 2011 Instructor: Hassan Khosravi.
CS 157B: Database Management Systems II February 11 Class Meeting Department of Computer Science San Jose State University Spring 2013 Instructor: Ron.
Sept. 27, 2002 ISDB’02 Transforming XPath Queries for Bottom-Up Query Processing Yoshiharu Ishikawa Takaaki Nagai Hiroyuki Kitagawa University of Tsukuba.
XML e X tensible M arkup L anguage (XML) By: Albert Beng Kiat Tan Ayzer Mungan Edwin Hendriadi.
Submitted To: Ms. Poonam Saini, Asst. Prof., NITTTR Submitted By: Rohit Handa ME (Modular) CSE 2011 Batch.
Structured Documents - XML and FrameMaker 7 Asit Pant.
IS432 Semi-Structured Data Lecture 6: XQuery Dr. Gamal Al-Shorbagy.
Semi-structured Data In many applications, data does not have a rigidly and predefined schema: –e.g., structured files, scientific data, XML. Managing.
1 Holistic Twig Joins: Optimal XML Pattern Matching Nicolas Bruno, Nick Koudas, Divesh Srivastava ACM SIGMOD 2002 Presented by Jun-Ki Min.
Querying Large XML Data Hsuan-Heng, Wu Shawn Ju. XML V.S. HTML XML is designed to describe data XML don’t use predefined tags XML is used to exchange.
XML Query languages--XPath. Objectives Understand XPath, and be able to use XPath expressions to find fragments of an XML document Understand tree patterns,
Lecture 14: Relational Algebra Projects XML?
XML: Extensible Markup Language
Managing XML and Semistructured Data
XML Data DTDs, IDs & IDREFs.
eXtensible Markup Language (XML)
Alin Deutsch, University of Pennsylvania Mary Mernandez, AT&T Labs
Semi-structured Data In many applications, data does not have a rigidly and predefined schema: e.g., structured files, scientific data, XML. Managing such.
Presentation transcript:

임 순 범 숙명여대 정보과학부 멀티미디어학과 1 III. XML-QL 멀티미디어 데이터베이스 ( ~11.1)

2 목차 [ 교재 ] XML-QL: A Query Language for XML, W3C NOTE-xml-ql , 1. Introduction 2. Examples ** 3. XML Data Model 4. Advanced Examples **

3 1. Introduction 많은 량의 XML 데이터 –XML simplicity, flexibility => XML 응용이 많이 개발되고 있음 문제점 –data extraction from large XML documents –XML data exchange : XML documents or queries, using different DTD –XML data integration from multiple XML sources Data extraction, transformation, and integration 을 위하여 –Also database problem –query language for semi-structured data model (XML document) XML-QL : query language for XML data –Queries : extract pieces of data from XML documents –Transformations : map XML data between DTD, integrate XML data => extract data from XML documents and construct new XML data/doc.

4 2. Examples –bib.xml 데이터베이스 시스템 홍길동 숙명여대 XML 데이터베이스 홍길동 고소영 숙명여대

5 Query –Abbreviation : … – 변수 : 매치되는 모든 $t 와 $a pair – 결과 : 내에 생성 WHERE 숙명여대 $t $a IN "bib.xml" CONSTRUCT $a $t 홍길동 데이터베이스 시스템 홍길동 XML 데이터베이스 고소영 XML 데이터베이스

6 Grouping – element : $p Nested Query –… ~ … IN $p Shorthand – 공통구절 (idiom) –Content matching WHERE $p IN "bib.xml", $t, 숙명여대 IN $p CONSTRUCT $t WHERE $a IN $p CONSTRUCT $a 데이터베이스 시스템 홍길동 XML 데이터베이스 홍길동 고소영 WHERE $t 숙명여대 CONTENT_AS $p IN "bib.xml" CONSTRUCT...

7 Joining by value – …$f, $l Value Condition –$y < 2001 공통구절 –element matching –ELEMENT_AS WHERE $f $l CONTENT_AS $a IN "bib.xml" $f // join $l // join IN "bib.xml", $y < 2001 CONSTRUCT $a... 홍길동 홍길동... WHERE $f $l ELEMENT_AS $e IN "bib.xml"... CONSTRUCT $e

8 3. XML Data Model XML graph model –G has a root, 각 vertex 는 OID(Object identifier) 로 표현 –Labeling : edge <= element tag, node <= attribute-value pairs, leave <= value (string) –ex) Etc. –Element Identity, IDs, and ID References : sharing –Join, Scalar Value, Element Order, etc.

9 4. Advanced Examples Tag Variables –Binding to tag group –$p :, –$e :, –WHERE ~ $p, $e CONSTRUCT ~ $p, $e WHERE $t 2000 홍길동 IN "bib.xml" $e IN {author, editor} CONSTRUCT $t 홍길동 데이터베이스 시스템 홍길동 홍길동 * * * * * * 홍길동

10 Regular Path Expression –DTD with recursive element –part* : any edge of part –Wildcard : $ (any tag), S* => *, ex) *.brand –Regular Expression : |. * + WHERE $r FORD IN "bib.xml" CONSTRUCT $r WHERE $r FORD IN "bib.xml" CONSTRUCT $r WHERE $r IN "bib.xml" CONSTRUCT $r

11 Transforming XML Data object identifiers (OID's) and Skolem functions –generate a new identifier for every distinct values of $fn,$ln –not create another, but append to the existing WHERE $fn $ln $t IN "bib.xml" CONSTRUCT $fn $ln $t … <!ELEMENT article (author+, title, year?, …

12 Integration from different XML source –Query Blocks : like semi-join, use OID given by function WHERE ELEMENT_AS $n $ssn IN "data.xml", $ssn ELEMENT_AS $i IN "taxpayer.xml" CONSTRUCT $n $i { WHERE ELEMENT_AS $n $ssn IN "data.xml" CONSTRUCT $n } { WHERE $ssn ELEMENT_AS $i IN "taxpayer.xml" CONSTRUCT $i }

13 Query Block –Outer block, Inner block WHERE $t 2000 CONTENT_AS $p IN "bib.xml" CONSTRUCT $t { WHERE $e = "journal-paper", $m IN $p CONSTRUCT $m } { WHERE $e = "book", $q IN $p CONSTRUCT $q }

14 Matching order in ordered data model * –Pattern –Match yes O no X –Matching Order –order variables : extract the index of some element. $x $y str1 str2 str2 str1 string1 string2 string3 string4 $x $y string1 string2 string1 string4 string3 string4 WHERE $p in "people.xml", $x [$i] in $p, $y [$j] in $p, $j < $i CONSTRUCT $p

15 –ORDER-BY clause –reverse order WHERE &p in "bib.xml", $t in $p, $y in $p $z in $p ORDER-BY $y,$z CONSTRUCT $t WHERE $p in "bib.xml" CONSTRUCT WHERE $a [$i] in $p ORDER-BY $i DESCENDING CONSTRUCT $a WHERE $v in $p, $e != "author" CONSTRUCT $v

16 Imbedding Query in data Function definitions and DTD's : 생략 WHERE $t $y IN "bib.xml", $y > 1995 CONSTRUCT $t WHERE $t $y IN "bib.xml", $y > 1995 CONSTRUCT $t