• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » XQuery 3.0 : The Query and Functional Programming Language

By Abhishek Ghosh May 6, 2014 10:20 pm Updated on May 6, 2014

XQuery 3.0 : The Query and Functional Programming Language

Advertisement

XQuery 3.0 is the latest version of XQuery. XQuery is the XML query language and refers to W3C specified query language for XML databases. XQuery 1.0 became a W3C Recommendation on January 23, 2007 and XQuery 3.0 became a W3C Recommendation on April 8, 2014. XQuery uses XSLT, SQL and C ajar syntax; uses XPath and XML schema for its data model and its function library. XQuery is derived from the languages ??XQL, XML-QL and Quilt.

 

Basics on XQuery 3.0 and XQuery

 

XQuery is a query language designed for data collections in XML. Is semantically similar to SQL , but includes some programming capabilities. XQuery provides the means to extract and manipulate information from XML documents or any data source that can be represented using XML, for example, relational databases or office documents. XQuery expressions uses XPath to access certain parts of the XML document. It adds, similar to those used in SQL, known as FLWOR expressions. The FLWOR expressions are named after the 5 types of sentences that can be composed: FOR, LET, WHERE, ORDER BY, and RETURN.

It also includes the ability to build new XML documents from the query results. It may use an XML-if the structure (elements and attributes) is known in advance or can be used dynamically to construct expressions. All these constructs are defined as expressions in the language, and can be arbitrarily nested. The language is based on the model tree information in the XML document, which consists of seven different types of nodes: elements, attributes, text nodes, comments, processing instructions, namespaces and document nodes.

Advertisement

---

The type system used by the language considers all values ??as strings, assuming a single value as a sequence of a single element. The elements of a sequence can be atomic values ??or nodes. Atomic values ??may be integers, strings, booleans, numbers etc. The complete list of available types is based on the primitives defined in XML Schema.

XQuery 3-0

XQuery 1.0 does not include the ability to update XML documents. Nor can perform text searches. Higher-order functions first appeared in the drafts for XQuery 3.0

 

Applications and Implementations of XQuery 3.0

 

  1. Extracting information from a database for use in a web service.
  2. Generating summary reports on data stored in a XML database.
  3. Searching textual documents on the Web for relevant information and compiling the results.
  4. Selecting and transforming XML data to XHTML to be published on the Web.
  5. Pulling data from databases to be used for the application integration.
  6. Splitting up a XML document that represents multiple transactions into multiple XML documents.

 

Although XQuery was initially conceived as a query language for large collections of XML documents, it is also capable of transforming individual documents. As such, its capabilities overlap with XSLT, which was designed expressly to allow input XML documents to be transformed into HTML or other formats. BaseX, eXist, Saxon, Sirix, XQilla, Zorba are example projects, live demo can be found here :

 

Vim
1
http://www.zorba.io/html/demo

 

This xml file :

 

Vim
1
http://www.ibiblio.org/xml/examples/shakespeare/hamlet.xml

 

can be converted to HTML with XQuery 3.0 :

 

Tagged With XQuery Extracting information from a database for use in a web service example

This Article Has Been Shared 550 Times!

Facebook Twitter Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to XQuery 3.0 : The Query and Functional Programming Language

  • WiFi versus Ethernet

    To know a little basic about WiFi and Ethernet technology might has interested many of you. Here is summary about WiFi and Ethernet.

  • Geolocation Basics

    Geolocation is the geographical origin identification of a person or object. IP addresses are frequently used in Analytics on web as a metric for Geolocation.

  • SVN or Apache Subversion : What is SVN and How it Works

    SVN or Apache Subversion is a free software for version control of files and directories for Open Source Software distribution and used by hosts like WordPress.

  • HTTP 2.0 : What Changes Are Expected With the New Standard

    What Changes Can Be Expected With the New Standard HTTP 2.0? This HTTP 2.0 is the next major release of HTTP Protocol used by WWW.

  • HTML5 accessKey Property : Keyboard Shortcut Guide

    HTML5 accessKey property is an accessibility attribute. The access key is an element which enables the user to press a key to jump or perform action.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (22.1K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Why Data Management is so Important in a Business July 6, 2022
  • Application Modernization : Cloud Can Take Your Applications to the Next Level July 5, 2022
  • Ways To Make Sure Your Online Course Outshine Others July 3, 2022
  • Will Smart Factories Become the New Assembly Line? July 2, 2022
  • The Cost of Doing Business as a Handyman July 1, 2022

About This Article

Cite this article as: Abhishek Ghosh, "XQuery 3.0 : The Query and Functional Programming Language," in The Customize Windows, May 6, 2014, July 7, 2022, https://thecustomizewindows.com/2014/05/xquery-3-0-query-functional-programming-language/.

Source:The Customize Windows, JiMA.in

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Privacy Policy.

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2022 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy