Presentation is loading. Please wait.

Presentation is loading. Please wait.

And Di s t r i b u t e d Databases on the Web Nathaniel Ayewah CSE 8330 Presentation SMU.

Similar presentations


Presentation on theme: "And Di s t r i b u t e d Databases on the Web Nathaniel Ayewah CSE 8330 Presentation SMU."— Presentation transcript:

1 and Di s t r i b u t e d Databases on the Web Nathaniel Ayewah CSE 8330 Presentation SMU

2 Introduction  Why XML?  In Databases? Structured Content Data Model

3 Overview  XML Technologies  XML and Databases  Will XML supplant Relational DBs? Querying XML Different Approaches

4 XML Origins  SGML  HTML  XML

5 XML Example (a)HTML Southern Methodist Universiy PO Box 0133, Dallas, TX 75275 SMU is a private university of more than 11,000 students near the vibrant heart of Dallas. (b)XML Southern Methodist University PO Box 0133 Dallas TX 75275 SMU is a private university of more than 11,000 students near the vibrant heart of Dallas. meta language

6 On Data and Documents Data-centric. Regular Structure Computer Science 23 Excellent Electrical Engineering 4353 O.K.. Document-centric Irregular Structure Rock the SEAS Vote! Vote for your favorite faculty member. Once a year, you get to choose your favorite faculty member. That time has come again. March 25 to April 1 Stop by the CSE office because you care vs

7 XML Technologies XSLT XQuery XML-QL XPath XQL XSL-FO XPointer XML Schema DTD SAX DOM XML Encryption XML Signature SOAP UDDI WSDL

8 XML Technologies  Validation and Structure  Query Languages**  Parsing and Processing  Transformation and Presentation

9 Validation and Structure DTD

10 Query Languages  Document Community  Database Community  W3C [XPath/XQL] [XML-QL] [XQuery]

11 “What is the size of the Computer Science Faculty?” XQL Document(“departments.xml”)//department [@id = “CSE”]/facultysize Output: 23

12 “What is the size of the Computer Science Faculty?” XML-QL WHERE $n $f $r IN “departments.xml”, $c = “CSE” CONSTRUCT $f Output: 23

13 “What is the size of the Computer Science Faculty?” XQuery for $b in doc(“departments.xml”)//department let $d := $b/facultysize where $b/@id = “CSE” return {$d} Output: 23 http://support.x-hive.com/xquery/index.html

14 { for $i in fn:doc("catalog.xml")//item, $p in fn:doc("parts.xml")//part[partno = $i/partno], $s in fn:doc("suppliers.xml")//supplier[suppno = $i/suppno] order by $p/description, $s/suppname return { $p/description, $s/suppname, $i/price } } XQuery: Joins Source: http://www.w3.org/TR/xqueryhttp://www.w3.org/TR/xquery

15 XML and Databases

16 Why distribute?  Data Integration  Data Distribution

17 Classification Data viewVirtual viewQuery view (d)(d)(v)(v)(q)(q) Classification: T d,v,q d, v, q  {R, X, H, N} R = Relational Data Model X = XML Data Model H = Hybrid Data Model N = View does not exist

18 Products  Native XML  XML Enabled  Middleware or XML Server  Wrappers  Standalone XML XQuery Engine  Content Management System T X,X,X T R,X,X T R,R,X ? http://www.rpbourret.com/xml/XMLDatabaseProds.htm T R,R,R T R,X,X T R,X,N T X,R,R T X,N,X T X,X,X

19 XML-Enabled Relation: DepartmentsXML IDNameSize CSE Computer Science 234 EE Electrical Engineering 334 CSEComputer Science234 EEElectrical Engineering334 Default View

20 Native XML Database Native Relational XML Document Collection Physical Storage Tuple(s) Relation XML::DB Initiative http://www.xmldb.orghttp://www.xmldb.org

21 Berkeley DB XML  XML Data Model over Physical Berkeley DB storage system  Native XML Storage  Supports transactions, recovery, indexing, replication, multiple users and concurrency, query processing, standards  C++/Java APIs http://www.sleepycat.com/products/xml.shtml

22 Berkeley DB XML Source: Berkeley DB XML Documentation

23 Current/Future Research Issues  Physical Storage  Query Optimization  Distributed Processing/Optimization  Static vs Dynamic Processing  First, Last, Partial Results  Updates

24 Conclusion and Future  Will XML replace existing DBs? Document-centric applications XML Sources Data warehousing (Xyleme) Data-centric applications Business Transactions


Download ppt "And Di s t r i b u t e d Databases on the Web Nathaniel Ayewah CSE 8330 Presentation SMU."

Similar presentations


Ads by Google