Research Background

Research Background

Ibrahim Dweib (Sultan Qaboos University, Oman) and Joan Lu (University of Huddersfield, UK)
DOI: 10.4018/978-1-4666-1975-3.ch014
OnDemand PDF Download:
$30.00
List Price: $37.50

Abstract

In this chapter, the research background is discussed. This includes XML model, XML query languages, XML schema languages, XML Application Program Interface, XML documents types, XML data storage approaches, relational database model, and the similarities and differences between XML model and relational database model. Finally the chapter summary is given.
Chapter Preview
Top

Xml Model

EXtensible Markup Language (XML), is a W3C Recommendation in 1998 for marking up data” (Bray et al., 2007). It is designed for publishing and exchanging a large scale of digital data over the Internet. It is a Markup language that is used to define the structure of information and its elements’ contents, where HTML is used to define the way in which the elements are displayed on a web page. It can also be considered as an ideal format for server-to-server transfer of structured data (Bansal and Alam, 2001).

The importance of XML documents transformation is largely increased. Moreover different XML models have common requirements and limitations as tools for data management. For rich data to be shared among different groups, all concepts need to be placed into a common frame of reference. XML schemas must be globally standardized among groups, or mapping must be created between all pairs of related data. Parsing and text conversion slows down the access of the data.

A well-formed XML document is one that corresponds to the XML 1.0 (Bray et al., 2007) grammar specified by W3C. It has exactly one root element, which is called document element. Each starting element tag should have a corresponding closing tag. The elements should be nested within one another. The tags and nesting rules allow XML to represent information in a hierarchical manner. Figure ‎1 shows an example for valid XML document.

In recent years, significant development in the XML domain has been achieved. Many languages based upon XML Markup have been designed; XML Schema and XML XQuery have been developed. These standardized technologies augment the data processing abilities of XML. The following sections give a brief description of a variety of XML based languages and technologies.

Figure 1.

An example of XML document

Top

Xml Query Languages

XML query languages are used to enable the user to retrieve data from a single XML document using XPath language, or from multi-documents using XQuery language.

<b>XPath Language</b></div><p>XPath stands for the XML Path Language(Berglund et al., 2007). It is used for retrieving parts of a single XML document by using a path notation, like those used in URLs. Every XPath expression evaluates to one of four basic types:</p><ul class="xmlReaderUl"><li><i>• </i><p>Node-set (An unordered list of nodes)</p></li><li><i>• </i><p>Boolean</p></li><li><i>• </i><p>Number (floating-point number)</p></li><li><i>• </i><p>String (a sequence of UCS characters)</p></li></ul><p>An XPath location can be either a relative or an absolute location in an XML document. It can deal with seven node types:</p><ul class="xmlReaderUl"><li><i>• </i><p>Root node</p></li><li><i>• </i><p>Element nodes</p></li><li><i>• </i><p>Attribute nodes</p></li><li><i>• </i><p>Namespace nodes</p></li><li><i>• </i><p>Processing instruction nodes</p></li><li><i>• </i><p>Text nodes</p></li><li><i>• </i><p>Comment nodes</p></li></ul><p>The amount of nodes matched by an XPath location can be restricted further by specifying additional requirements for a match like comparison operators, functions or predefined variables. XPath supports equality operators and helper functions operating on the four basic types (i.e. node-set, Boolean, number and string), for instance substring extraction, summation of the values in a node-set or the number of nodes in a node-set to name a few. Table ‎1 shows an example of some XPath expressions to retrieve data from the XML document in Figure ‎1.</p><i>Table 1. </i><div class="xmlReaderFig"><div class="xmlReaderTitle4">Example of some XPath expressions </div></div><div class="xmlReaderTableContainer"><table border="1" cellpadding="4" cellspacing="1" class="xmlReaderTable"><colgroup><col width="21.83%" /><col width="78.17%" /><tr><td valign="top" align="left">./author</td><td valign="top" align="left">All <author> elements within the current context. Note that this is equivalent to the expression in the next row.</td></tr><tr><td valign="top" align="left">author</td><td valign="top" align="left">All <author> elements within the current context.</td></tr><tr><td valign="top" align="left">/books</td><td valign="top" align="left">The document element (<books>) of this document.</td></tr><tr><td valign="top" align="left">//author</td><td valign="top" align="left">All <author> elements in the document.</td></tr><tr><td valign="top" align="left">book/ISBN</td><td valign="top" align="left">All <ISBN> elements that are children of a <book> element.</td></tr><tr><td valign="top" align="left">books//name</td><td valign="top" align="left">All <name> elements one or more levels deep in the <books> element (arbitrary descendants). Note that this is different from the expression in the next row.</td></tr><tr><td valign="top" align="left">books/*/name</td><td valign="top" align="left">All <name> elements that are grandchildren of <books> elements.</td></tr><tr><td valign="top" align="left">author[1]</td><td valign="top" align="left">The first <author> element in the current context node.</td></tr><tr><td valign="top" align="left">book/*</td><td valign="top" align="left">All elements that are the children of <book> elements.</td></tr><tr><td valign="top" align="left">book[@price &lt “60.0”]</td><td valign="top" align="left">All <book> elements where price attribute is less than “60.0”.</td></tr><tr><td valign="top" align="left">ancestor::name[parent::book][1]</td><td valign="top" align="left">The nearest <name> ancestor in the current context and this <name> element is a child of a <book> element.</td></tr></colgroup></table></div></div><div class="preview-footer"><a href="javascript:__doPostBack('ctl00$cphFeatured$lnkAddToCart','')">Purchase this chapter to continue reading all 14 pages ></a></div></div><div id="table-of-contents"><h2>Complete Chapter List</h2><div class="search-contents"><span class="text"> Search this Book: </span><span class="text-box-container"><input id="txtKeywords" type="text" maxlength="50" onkeypress="return SearchBookFulltextHandleEnter(event, 64884);" placeholder="Full text search terms" title="Full text search terms" class="full-text-search-box" /></span><div class="inline-block search-contents-xs-full-width"><span class="search"><span class="search-button" onclick="RemoveSpecialCharacters();SearchBookFulltext(64884);"></span></span><span class="reset"><span onclick="RemoveSpecialCharacters();SearchBookFulltextReset();" class="link-gray-s">Reset</span></span></div></div><div id="searchResults"></div><div id="full-toc"></div><div id="loading-toc" class="text-align-center"><div class="loading-icon-lg"></div></div><script type="text/javascript"> $(document).ready(function () { var bookId = 64884; var titleId = 69137; var subjectId = 5; var compactView = 'True'; var onDemandDiscountDisplayPrice = ''; var onDemandDisplayPrice = '$37.50'; var chapterCount = 31; if (chapterCount !== 0) { GetBookToc(bookId, titleId, subjectId, compactView, onDemandDiscountDisplayPrice, onDemandDisplayPrice); } else { GetBookTocFromSubmissionSystem(bookId, titleId, subjectId, compactView, onDemandDiscountDisplayPrice, onDemandDisplayPrice); } }); </script></div></div></div></div><div class="contentcnav" style="display:none;"><span id="ctl00_cphFeatured_pnlAbstract"><a href="#abstract" class="navlinklightc">Abstract</a> | </span><span id="ctl00_cphFeatured_pnlPreview"><a href="#chapter-preview" class="navlinklightc">Chapter Preview</a> | </span><a href="#table-of-contents" class="navlinklightc">Complete Chapter List</a><div class="rightouter"><div class="rightheader"> Complete Book </div><div class="rightinner"><strong>$195.00 - $295.00</strong><div style="margin-top: 2px; padding-left: 2px;"><a href="/book/design-performance-analysis-innovative-information/64884" id="ctl00_cphFeatured_lnkBookPricing" class="navlinkcsmall">View Book Pricing Options</a></div></div></div><div id="ctl00_cphFeatured_ucInfoSciOnDemandSidebar_pnlSearch"><div class="panel-heading box-corner" data-toggle="collapse" data-target="#on-demand-search-toggle"><img src="/Images/infosci-ondemand-small.png" alt="InfoSci-OnDemand Powered Search" width="155" height="32" /></div><ul id="on-demand-search-toggle" class="nav nav-stacked list-unstyled collapse navbar-collapse nav-stacked-custom"><li style="padding: 6px 10px;"><div style="margin-bottom: 7px; font-size: 11px; color: #666;"> Full-text search over 109,700 research articles and chapters. </div><div style="display:inline-block;"><a onclick="RemoveSpecialCharacters();" id="ctl00_cphFeatured_ucInfoSciOnDemandSidebar_lnkSearch" class="ButtonBlack FloatRight" href="javascript:__doPostBack('ctl00$cphFeatured$ucInfoSciOnDemandSidebar$lnkSearch','')" style="height:19px;background-color:#777;"><span class="jQueryIconBlitzer ui-icon-search"></span></a><input name="ctl00$cphFeatured$ucInfoSciOnDemandSidebar$txtSearchPhrase" type="text" id="ctl00_cphFeatured_ucInfoSciOnDemandSidebar_txtSearchPhrase" class="SearchTextBox TextBoxWatermark FloatLeft" title="Full text search term(s)" style="width: 117px;" /></div></li></ul></div><div id="ctl00_cphFeatured_pnlRelatedTitles" class="rightouter"><div class="rightheader"> Related Chapters </div><div class="rightinner"><div class="list-item-link" style="border-bottom: dotted 1px #dadada; padding: 4px 0px; font-size: 11px;"><div title='Nature-Inspired-Based Modified Multi-Objective BB-BC Algorithm to Find Near-OGRs for Optical WDM Systems and Its Performance Comparison'><a id="Link" href="/chapter/nature-inspired-based-modified-multi-objective-bb-bc-algorithm-to-find-near-ogrs-for-optical-wdm-systems-and-its-performance-comparison/197692" title='Nature-Inspired-Based Modified Multi-Objective BB-BC Algorithm to Find Near-OGRs for Optical WDM Systems and Its Performance Comparison'> Nature-Inspired-Based Modified Multi-Objective BB-BC... </a><div style="color: #555;">© 2018, 25 pp.</div></div></div><div class="list-item-link" style="border-bottom: dotted 1px #dadada; padding: 4px 0px; font-size: 11px;"><div title='A New Meta-Heuristics for Intrusion Detection System by Scenario Inspired From the Protection System of Social Bees'><a id="Link" href="/chapter/a-new-meta-heuristics-for-intrusion-detection-system-by-scenario-inspired-from-the-protection-system-of-social-bees/197693" title='A New Meta-Heuristics for Intrusion Detection System by Scenario Inspired From the Protection System of Social Bees'> A New Meta-Heuristics for Intrusion Detection System... </a><div style="color: #555;">© 2018, 12 pp.</div></div></div><div class="list-item-link" style="border-bottom: dotted 1px #dadada; padding: 4px 0px; font-size: 11px;"><div title='Comparative Study Between a Swarm Intelligence for Detection and Filtering of SPAM'><a id="Link" href="/chapter/comparative-study-between-a-swarm-intelligence-for-detection-and-filtering-of-spam/197694" title='Comparative Study Between a Swarm Intelligence for Detection and Filtering of SPAM'> Comparative Study Between a Swarm Intelligence for... </a><div style="color: #555;">© 2018, 28 pp.</div></div></div><div class="list-item-link" style="border-bottom: dotted 1px #dadada; padding: 4px 0px; font-size: 11px;"><div title='Methods for Gene Selection and Classification of Microarray Dataset'><a id="Link" href="/chapter/methods-for-gene-selection-and-classification-of-microarray-dataset/197695" title='Methods for Gene Selection and Classification of Microarray Dataset'> Methods for Gene Selection and Classification of... </a><div style="color: #555;">© 2018, 12 pp.</div></div></div><div class="list-item-link" style="border-bottom: dotted 1px #dadada; padding: 4px 0px; font-size: 11px;"><div title='Mining Patterns Using Business Process Management'><a id="Link" href="/chapter/mining-patterns-using-business-process-management/197696" title='Mining Patterns Using Business Process Management'> Mining Patterns Using Business Process Management </a><div style="color: #555;">© 2018, 12 pp.</div></div></div><div class="list-item-link" style="border-bottom: dotted 1px #dadada; padding: 4px 0px; font-size: 11px;"><div title='New FastPFOR for Inverted File Compression'><a id="Link" href="/chapter/new-fastpfor-for-inverted-file-compression/197697" title='New FastPFOR for Inverted File Compression'> New FastPFOR for Inverted File Compression </a><div style="color: #555;">© 2018, 13 pp.</div></div></div><div class="list-item-link" style="border-bottom: dotted 1px #dadada; padding: 4px 0px; font-size: 11px;"><div title='Multi-Agents Machine Learning (MML) System for Plagiarism Detection'><a id="Link" href="/chapter/multi-agents-machine-learning-mml-system-for-plagiarism-detection/197698" title='Multi-Agents Machine Learning (MML) System for Plagiarism Detection'> Multi-Agents Machine Learning (MML) System for... </a><div style="color: #555;">© 2018, 17 pp.</div></div></div></div></div><a href="/search/?sid=5&stid=138"><div class="rightnavad featuredtitles"><span class="item" style="font-size:14px;">More Computer<br />Science & IT Titles</span><span class="details"><strong>Related Titles</strong>View all Computer<br />Science & IT search results</span></div></a></div><script type="text/javascript"> MenuAdjust(); $(window).on('resize orientationChange', function (event) { MenuAdjust(); }); </script><footer class="footer"><div class="container"><div class="row"><div class="top-margin"><div class="col-md-6"><div class="footer-header"> Learn More </div><div class="text"><a href="/about/" class="footer-link">About IGI Global</a> | <a href="/about/partnerships/" class="footer-link">Partnerships</a> | <a href="/contact/" class="footer-link">Contact</a> | <a href="/about/staff/job-opportunities/" class="footer-link">Careers</a> | <a href="/faq/" class="footer-link">FAQ</a> | <a href="/about/staff/" class="footer-link">Management Team</a></div><div class="footer-header header-margin-top"> Resources For </div><div class="text"><a href="/librarians/" class="footerlink">Librarians</a> | <a href="/publish/" class="footerlink">Authors/Editors</a> | <a href="/distributors/" class="footerlink">Distributors</a> | <a href="/course-adoption/" class="footerlink">Instructors</a> | <a href="/about/rights-permissions/translation-rights/" class="footerlink">Translators</a> | <a href="https://www.econtentpro.com/partners/referrer/2eeff007-a17a-e611-80c4-0cc47a0d221d?url=/copyediting" class="footerlink" target="_blank">Copy Editing Services</a></div><div class="footer-header header-margin-top"> Media Center </div><div class="text"><a href="/symposium/" class="footer-link">Online Symposium</a> | <a href="/newsroom/" class="footer-link">Blogs</a> | <a href="/catalogs/" class="footer-link">Catalogs</a> | <a href="/newsletters/" class="footer-link">Newsletters</a></div><div class="footer-header header-margin-top"> Policies </div><div class="text"><a href="/about/rights-permissions/privacy-policy/" class="footer-link">Privacy Policy</a> | <a href="/about/rights-permissions/content-reuse/" class="footer-link">Content Reuse Policy</a> | <a href="/about/rights-permissions/ethics-malpractice/" class="footer-link">Ethics and Malpractice</a></div></div><div class="col-md-6 td-r"><div class="td-r-t"><div class="td-r-t-r"><a id="ctl00_lnkConferenceBadge" href="https://www.electroniclibrarian.org/" target="_blank"><img src="/Images/ERL_18.jpg" alt="" style="height:124px;width:250px;" /></a></div><div class="td-r-t-l"><div class="t-space" style="margin-top:31px;"><a href="http://www.facebook.com/pages/IGI-Global/138206739534176?ref=sgm" target="_blank"><span class="fb"></span></a>  <a href="http://twitter.com/igiglobal" target="_blank"><span class="tw"></span></a></div><div class="b-space"><a href="http://www.world-forgotten-children.org" target="_blank"><img src="/images/proud-supporter-of-wfcf-07282015.png" alt="World Forgotten Children's Foundation" title="Proud Supporter of the World Forgotten Children's Foundation" width="157" height="52" /></a></div></div></div><div class="text"> Copyright © 1988-2018, IGI Global - All Rights Reserved </div><div class="td-r-ip"></div></div></div></div></div></footer><div class="aspNetHidden"><input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="679D6B48" /><input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="jZ8qdBm+sJCc3YJMaPUo1qN2kdYUPd4zKpS0hXLY8LqNENf6WsYCAhL0JAtFeEtUmSHx2R8wx4rB3EX/EyOR38Fzt/+yDvbyk0RDjQgRgLxDFVpkVvkFiQQ5G95cOgDeBM9DoucUGFbfVWpyJ60ZlW6hZViBiGBXH6XCPM6JvVzVREb940eWu1O3/wr5HthV/uxHtfqExS0LFraan5dj/btFROFfX2zb7BYHlseVJ3LMSf1n6ZYAhQLMerruKIm4lmdwxjW0ZCkPBygTjypiqeL9IrDWz64WeIWhX1OlTZMG+DgFs7vTM+ptumFvrhu+neFyDOP9cRonsa8wIjA6KKkApZSn9lq7ykrjftKa++zTAeF9ckBnzrd+6b9tnQf6AY7dyVvXyHBkotMdwBVkBtmJREMVjxLl6MN6+qm8cVYF7ZBf6wBMV4qDn6KAGUvqkhV/DutcyjPut0/N3w7iPTHAcKI=" /></div></form></body></html>