sirixdb / brackit

Query processor with proven optimizations, ready to use for your JSON store to query semi-structured data with JSONiq. Can also be used as an ad-hoc in-memory query processor.
http://brackit.io
Other
46 stars 10 forks source link

Add switch to enable/disable XQuery syntax parsing #48

Closed JohannesLichtenberger closed 7 months ago

JohannesLichtenberger commented 2 years ago

We have to add a switch to enable/disable XQuery syntax parsing and to improve the syntax of JSON queries per default. For instance I'd like to get rid of [[ ]] for array indexes and replace it with the common [ ] syntax. Therefore XPath predicates must have another syntax.

Furthermore, we might think about switching the object field deref expression -> to . and to switch the current context item from . to $$ as in the JSONiq specification stated. Furthermore, literals as true and false should then be parsed as the boolean literal types instead of as XPath axis steps. Furthermore it would be handy if object fields doesn't have to be quoted in this case {"foo":"bar"} and {foo:"bar"} should both be possible.

JohannesLichtenberger commented 1 year ago

Some stuff has been added