Presentation is loading. Please wait.

Presentation is loading. Please wait.

XML Databases. XML Like HTML –Tags –Fixed vocabulary of tags and fixed structure –Tags indicate formatting, not semantics Strict HTML – XHTML –Always.

Similar presentations


Presentation on theme: "XML Databases. XML Like HTML –Tags –Fixed vocabulary of tags and fixed structure –Tags indicate formatting, not semantics Strict HTML – XHTML –Always."— Presentation transcript:

1 XML Databases

2 XML Like HTML –Tags –Fixed vocabulary of tags and fixed structure –Tags indicate formatting, not semantics Strict HTML – XHTML –Always a closing tag –All attribute values in quotes –Properly nested In XML, vocabulary and structure designed for a specific domain of documents

3 XML example – Module Specification - - UFCE3F-20-0 Program Design 0 S1 NA standard CEMS C 1062370800 0 -

4 XML Database Structure Database structured like a file systems with directories, sub-directories and XML documents XML files are simply copied to the database, and can be later viewed as XML documents Internally document is stored as separate nodes with indexes to speed retrieval Database queried using XQuery – comparable with SQL

5 XQuery – path expression Computing Project Dissertation (Software Engineering) Database Fundementals Internet Systems Program Design Programming Project Computational Intelligence Agent-Based Computing Software Development Principles …. document()/ms_module/ms_title

6 XQuery – path with Filter document()/ms_module[ms_level=‘M']/ms_title Dissertation (Software Engineering) Software Development Principles Group Work in Large Scale Software Development (Tutor Led) Learning Classifier Systems Evolutionary Computation Advanced Databases Object-Oriented Design and Programming Algorithms Inductive Learning

7 XQuery – path with filter(2) document()/ms_module[ms_level='M']/ms_title[contains(.,‘data')] Advanced Databases Data Management Prediction: Forecasting and Data Mining

8 XQuery – FLOWR for $mod in document() where $mod/ms_module/ms_level='2' and $mod/ms_module/ms_field='C' order by $mod/ms_module/ms_title return {$mod/ms_module/ms_title} {$mod/ms_module/ms_code} 3D Modelling and Animation UFCEKT-20-3 Advanced Databases UFCE4W-10-3 Agent-Based Computing <ms_c

9 PHP with XML Simple PHP interface to list modules by field and level http://localhost/xmldb/fllist.php?level=M&field=I&submit=http://localhost/xmldb/fllist.php?level=M&field=I&submit It has links to another script to fetch a specific module

10 XQuery v SQL XQuery is a full programming language Not as mature as SQl No theoretical foundation as in Relaional Algebra Active research area


Download ppt "XML Databases. XML Like HTML –Tags –Fixed vocabulary of tags and fixed structure –Tags indicate formatting, not semantics Strict HTML – XHTML –Always."

Similar presentations


Ads by Google