Posts

Showing posts with the label Marklogic xquery tutorials

Marklogic Fundamentals

Image
 What is the MarkLogic server? Marklogic is an enterprise NoSQL multi-model database management system. It is a document-centric, transactional, search-centric, structure-aware, schema-agnostic, XQuery- and JavaScript-driven, high-performance, clustered, database server. NoSQL:           Flexibility and scalability Multi-Model:    We believe it stores all types of data in any format or shape. Enterprise : Marklogic provides ACID transactions, government-grade security.  Atomicity : Either all the data modifications in a transaction are performed or not being performed. Consistency :  When a transaction is completed, a transaction leaves all data in a consistent state.  Isolation :  Transactions run in isolation from one another.  Durability : After a transaction is completed, its effects remain even in cases of unexpected interruptions.      The Only Enterprise NoSQL Database Search & Query ACID Transact...

Xquery

Image
XQuery XQuery is a functional programming query language that is used to transform or querying XML or JSON, binary. etc., data. The language is developed by the XML Query a working group of the W3C. XQuery 1.0 [2003] became a W3C Recommendation on January 23, 2007.[4] All XQuery functions and types are written in lower-case. Case-sensitive language The string value can be in single or double code. Variable name defined with $ and cannot start with number Comment (::) A Complete query always follows the FLOWR expressions, without FLOWR expressions query will never be complete. F: for – Behave like Loop as for loop in java L: let – Uses for creating a variable O: order by – sort the result    W: where – filter the nodes/result R: return – return evaluated query result   👉 for / let and return are must keywords for creating any query. Example:               let $a := "abc" return $a              or...