[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: [xquery-talk] MarkLogic using JSONiq for processing JSON ?

  • From: Michael Kay <mike@saxonica.com>
  • To: daniela florescu <dflorescu@me.com>
  • Date: Thu, 7 May 2015 10:36:17 +0100

Re: [xquery-talk] MarkLogic using JSONiq for processing JSON ?
I don’t know anything about the MarkLogic implementation, but some of the key differences between XQuery 3.1 and the JSONiq proposal are:

At the data model level:

* Maps can use any atomic value as the key, it does not have to be a string
* The members of an array are sequences, not necessarily items
* JSON’s null is represented as an empty sequence, not as a new atomic data type

At the syntax level:

* In XQ3.1, Map constructors use the syntax map{ a:b, c:d } rather than bare curlies
* XQ 3.1 introduces a lookup operator for maps and arrays: employee?name, or book?author?1

There are many differences of detail, for example XQ3.1 allows an array to be atomized, so that sum() over an array does "the right thing”.

Of course these differences were all very hotly debated over a long period of time, and I wouldn’t even attempt to summarize the arguments.

Michael Kay
Saxonica
+44 (0) 118 946 5893




On 28 Apr 2015, at 18:15, daniela florescu <dflorescu@me.com> wrote:

Dear Kurt (Cagle) 

on linkedin to the same answer bellow you answered me:

"As I said, first glance says it's close, but I'm not completely up to date on the JSONIQ spec. I know when I talked to a key developer of mutual acquaintance, he indicated that he followed JSONIQ, but that was still while it was under development."


Kurt, do you have now a better idea about the technical differences between the two JSOn query languages: JSONiq designed and supported by Zorba
and the one supported by MarkLogic ? 

Or does someone else ?

What is the technical rationale for making the two languages different ? Any strong technical reasons ?

If there are no strong technical reasons, and the two are different just for the sake of being different, that's very sad. 

Relational databases survived for 30 years because those guys were brilliant business people and 
 understood the power of a standard/common language and common APIs for all vendors.

It strengthens the (entire) community to the point that, even 30 years later, it is almost impossible to get SQL out of their hands....

It's very unfortunate that the NoSQL community, and especially MarkLogic who considers themselves the "leaders" in this market,
don't get that simple fact....and they had to twist JSONiq here and there in order to avoid admitting they use the language designed by the
Zorba community and avoid calling it JSONiq....

Such a lack of vision is sad.

 But I digress.

I am still curious if someone compiled a list of technical differences.

Thanks, best regards
Dana



On Apr 23, 2015, at 5:24 PM, daniela florescu <dflorescu@me.com> wrote:

I heard that MarkLogic will be using JSONiq for processing JSON.
http://www.jsoniq.org

Sounds like wonderful news to me.

Hope it’s true.

Best
Dana



_______________________________________________
talk@x...
http://x-query.com/mailman/listinfo/talk



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.