备注:JSONiq是个构建在XQuery之上的新型查询语言。类似于SQL或是LINQ,它提供了诸如let、for、where、group by与select等语法支持概念。JSONiq不仅仅支持JSON到JSON的转换。你可以通过它生成或是解析XML,甚至还可以创建合并这两者的查询。类似于XQuery,JSONiq也支持重叠与非重叠窗口。该特性可用于将数据平均划分为若干块,或是用于统计计算,如计算“last 3”的平均值。
JSONiq is a query and processing language specifically designed for the popular JSON data model. The main ideas behind JSONiq are based on lessons learned in more than 30 years of relational query systems and more than 15 years of experience with designing and implementing query languages for semi-structured data. As a result, JSONiq is an expressive and highly optimizable language to query and update any kind of JSONiq store or resource. It enables developers to leverage the same productive high-level language across a variety of NoSQL products. This book gives a complete introduction to the JSONiq language. It does so by giving examples for all types of expressions and functions. Those examples can be immediately used because they work standalone, which allows the interested reader to start diving into the language.