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

Re: Re: [xquery-talk] using FLWOR expressions (aka SQL..)direc

  • From: Ihe Onwuka <ihe.onwuka@gmail.com>
  • To: daniela florescu <dflorescu@me.com>
  • Date: Fri, 21 Oct 2016 14:15:29 -0400

Re:  Re: [xquery-talk] using FLWOR expressions (aka SQL..)direc
It answers my question.

I would like to see how this goes down in the Python community so do you have links to blogs and stuff where the announcement has been made.

My 2 cents would have been to release and not mention anything about XQuery or JSONiq

On Fri, Oct 21, 2016 at 1:59 PM, daniela florescu <dflorescu@me.com> wrote:
Ihe,

Based on my experience, lots of data processing people use Python those days, yet they are not helped
much by the available tools in their ecosystem.

PythonQL is to Python what LinQ was to C#, that’s all.

A simple and more natural way to run queries directly integrated in your normal programming and
a replacement to the horrible scripts that most people need to write today for data manipulation.

Now, is this “XQuery" !? Nope. 

The FLWOR expressions of XQuery have nothing to do with XML, neither syntactically, nor semantically.

They are just a generalized, cleaner and more powerful form of data comprehension , out of which SQL’s SELECT-FROM-WHERE
is an example, but not the only one. (Python has it’s now form of comprehension for example). 

In fact in PhytonQL we tried to avoid what we perceived as serious problems with the adoption of XQuery.

For example we made the following syntactic choices (good or bad, we’ll see…):

1. FOR and FROM are synonyms. Choose whatever you like the best…..
2. IF and WHERE are synonyms. Again, choose whatever you like the best…..
3. We avoided the (over)loaded RETURN keyword of XQuery and called it SELECT like in SQL.
4. We put the SELECT clause first, like in SQL.

But other then this, it’s just 100% FLWOr expression, with windowing, grouping, etc.

Does this make sense ?

Best regards
Dana







On Oct 21, 2016, at 10:46 AM, Ihe Onwuka <ihe.onwuka@g...> wrote:

Is the big thing here integration with the Python ecosystem? 
Otherwise what is this offering to people who are not XQueryphobic.

On Fri, Oct 21, 2016 at 1:13 PM, daniela florescu <dflorescu@me.com> wrote:
For all exasperated data scientists writing mind bending, complicated Python scrips to process their data: the power of complex, 
yet familiar, compact and optimizable SQL queries directly in Python, running on structured as well as unstructured data (XML, JSON).


Well, actually it’s not SQL per se. It’s the better, cleaner and more powerful version of SELECT-FROM-WHERE,…. its the
power of XQuery’s FLWOR expressions, directly usable as an expression in Python — together with any other expected goodies,
complex path expressions, etc.

Enjoy.

Best regards
Dana



_______________________________________________
talk@x-query.com
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.