You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@vxquery.apache.org by Riyafa Abdul Hameed <ri...@cse.mrt.ac.lk> on 2016/08/13 09:20:33 UTC
Missing features in current JSONiq implementation
Hi,
On comparison with the specification the following features are missing in
the current implementation of JSONiq.
- Implement jn:jsoniq-boolean-and-null-literals option ("yes" or "no"),
that activates or deactivates the interpretation of a standalone NameTest
"true", "false" or "null". Since it's by default, it is set to "yes"
implement boolean literal[1,2]
- In an object or an array, an error jerr:JNTY0018 should raised if
there is more than one parameter in the dynamic function call[3]
- In an atomic or an XML node, the dynamic function call if unary or
0-ary always returns the empty sequence. An error jerr:JNTY0018 is
raised if there is more than one parameter[3].
- Implement functions jn:decode-from-roundtrip[4] and
jn:encode-for-roundtrip[5].
- Update primitives against JSON items as well as updating expressions
which produce them[6].
- If an XQuery element content sequence, the value of the enclosed
expression of an attribute, or the value of the content expression of a
computed constructor contains an Object or Array, an error jerr:JNTY0011
is raised[7].
[1] http://mail-archives.apache.org/mod_mbox/vxquery-dev/201606.mbox/browser
[2]
http://jsoniq.org/docs/JSONiqExtensionToXQuery/html-single/index.html#idm139680712130320
[3]
http://jsoniq.org/docs/JSONiqExtensionToXQuery/html-single/index.html#section-json-navigation
[4]
http://jsoniq.org/docs/JSONiqExtensionToXQuery/html-single/index.html#idm139680637908816
[5]
http://jsoniq.org/docs/JSONiqExtensionToXQuery/html-single/index.html#idm139680641288960
[6]
http://jsoniq.org/docs/JSONiqExtensionToXQuery/html-single/index.html#section-json-updates
[7]
http://jsoniq.org/docs/JSONiqExtensionToXQuery/html-single/index.html#section-combining-xml-and-json
Thank you.
Yours sincerely,
Riyafa
--
Riyafa Abdul Hameed
Undergraduate, University of Moratuwa
Email: riyafa.12@cse.mrt.ac.lk
Website: https://riyafa.wordpress.com/ <http://riyafa.wordpress.com/>
<http://facebook.com/riyafa.ahf> <http://lk.linkedin.com/in/riyafa>
<http://twitter.com/Riyafa1>
Re: Missing features in current JSONiq implementation
Posted by Riyafa Abdul Hameed <ri...@cse.mrt.ac.lk>.
Hi,
I have found another missing feature as I have disussed in the mail[1] that
involves* Example 8.4. Query all pairs with a given name[2]*
[1]
https://lists.apache.org/thread.html/811f4900a30fd58247511e8b65ed904ecf056ed16c2ffc1d6c8537e4@%3Cdev.vxquery.apache.org%3E
[2]
http://jsoniq.org/docs/JSONiqExtensionToXQuery/html-single/index.html#idm139680657730592
Thank you.
Yours sincerely,
Riyafa
On 15 August 2016 at 23:56, Preston Carman <pr...@apache.org> wrote:
> Thanks for reviewing the spec and coming up with a list of unfinished
> tasks. Can you create issues for these?
>
> Do you think any of these could be easy last minute fixes before GSOC
> finishes?
>
> On Sat, Aug 13, 2016 at 2:20 AM, Riyafa Abdul Hameed
> <ri...@cse.mrt.ac.lk> wrote:
> > Hi,
> >
> > On comparison with the specification the following features are missing
> in
> > the current implementation of JSONiq.
> >
> > - Implement jn:jsoniq-boolean-and-null-literals option ("yes" or
> "no"),
> > that activates or deactivates the interpretation of a standalone
> NameTest
> > "true", "false" or "null". Since it's by default, it is set to "yes"
> > implement boolean literal[1,2]
> > - In an object or an array, an error jerr:JNTY0018 should raised if
> > there is more than one parameter in the dynamic function call[3]
> > - In an atomic or an XML node, the dynamic function call if unary or
> > 0-ary always returns the empty sequence. An error jerr:JNTY0018 is
> > raised if there is more than one parameter[3].
> > - Implement functions jn:decode-from-roundtrip[4] and
> > jn:encode-for-roundtrip[5].
> > - Update primitives against JSON items as well as updating expressions
> > which produce them[6].
> > - If an XQuery element content sequence, the value of the enclosed
> > expression of an attribute, or the value of the content expression of
> a
> > computed constructor contains an Object or Array, an error
> jerr:JNTY0011
> > is raised[7].
> >
> >
> > [1] http://mail-archives.apache.org/mod_mbox/vxquery-dev/
> 201606.mbox/browser
> > [2]
> > http://jsoniq.org/docs/JSONiqExtensionToXQuery/html-single/index.html#
> idm139680712130320
> > [3]
> > http://jsoniq.org/docs/JSONiqExtensionToXQuery/html-
> single/index.html#section-json-navigation
> > [4]
> > http://jsoniq.org/docs/JSONiqExtensionToXQuery/html-single/index.html#
> idm139680637908816
> > [5]
> > http://jsoniq.org/docs/JSONiqExtensionToXQuery/html-single/index.html#
> idm139680641288960
> > [6]
> > http://jsoniq.org/docs/JSONiqExtensionToXQuery/html-
> single/index.html#section-json-updates
> > [7]
> > http://jsoniq.org/docs/JSONiqExtensionToXQuery/html-
> single/index.html#section-combining-xml-and-json
> >
> > Thank you.
> >
> > Yours sincerely,
> > Riyafa
> > --
> > Riyafa Abdul Hameed
> > Undergraduate, University of Moratuwa
> >
> > Email: riyafa.12@cse.mrt.ac.lk
> > Website: https://riyafa.wordpress.com/ <http://riyafa.wordpress.com/>
> > <http://facebook.com/riyafa.ahf> <http://lk.linkedin.com/in/riyafa>
> > <http://twitter.com/Riyafa1>
>
--
Riyafa Abdul Hameed
Undergraduate, University of Moratuwa
Email: riyafa.12@cse.mrt.ac.lk
Website: https://riyafa.wordpress.com/ <http://riyafa.wordpress.com/>
<http://facebook.com/riyafa.ahf> <http://lk.linkedin.com/in/riyafa>
<http://twitter.com/Riyafa1>
Re: Missing features in current JSONiq implementation
Posted by Preston Carman <pr...@apache.org>.
Thanks for reviewing the spec and coming up with a list of unfinished
tasks. Can you create issues for these?
Do you think any of these could be easy last minute fixes before GSOC finishes?
On Sat, Aug 13, 2016 at 2:20 AM, Riyafa Abdul Hameed
<ri...@cse.mrt.ac.lk> wrote:
> Hi,
>
> On comparison with the specification the following features are missing in
> the current implementation of JSONiq.
>
> - Implement jn:jsoniq-boolean-and-null-literals option ("yes" or "no"),
> that activates or deactivates the interpretation of a standalone NameTest
> "true", "false" or "null". Since it's by default, it is set to "yes"
> implement boolean literal[1,2]
> - In an object or an array, an error jerr:JNTY0018 should raised if
> there is more than one parameter in the dynamic function call[3]
> - In an atomic or an XML node, the dynamic function call if unary or
> 0-ary always returns the empty sequence. An error jerr:JNTY0018 is
> raised if there is more than one parameter[3].
> - Implement functions jn:decode-from-roundtrip[4] and
> jn:encode-for-roundtrip[5].
> - Update primitives against JSON items as well as updating expressions
> which produce them[6].
> - If an XQuery element content sequence, the value of the enclosed
> expression of an attribute, or the value of the content expression of a
> computed constructor contains an Object or Array, an error jerr:JNTY0011
> is raised[7].
>
>
> [1] http://mail-archives.apache.org/mod_mbox/vxquery-dev/201606.mbox/browser
> [2]
> http://jsoniq.org/docs/JSONiqExtensionToXQuery/html-single/index.html#idm139680712130320
> [3]
> http://jsoniq.org/docs/JSONiqExtensionToXQuery/html-single/index.html#section-json-navigation
> [4]
> http://jsoniq.org/docs/JSONiqExtensionToXQuery/html-single/index.html#idm139680637908816
> [5]
> http://jsoniq.org/docs/JSONiqExtensionToXQuery/html-single/index.html#idm139680641288960
> [6]
> http://jsoniq.org/docs/JSONiqExtensionToXQuery/html-single/index.html#section-json-updates
> [7]
> http://jsoniq.org/docs/JSONiqExtensionToXQuery/html-single/index.html#section-combining-xml-and-json
>
> Thank you.
>
> Yours sincerely,
> Riyafa
> --
> Riyafa Abdul Hameed
> Undergraduate, University of Moratuwa
>
> Email: riyafa.12@cse.mrt.ac.lk
> Website: https://riyafa.wordpress.com/ <http://riyafa.wordpress.com/>
> <http://facebook.com/riyafa.ahf> <http://lk.linkedin.com/in/riyafa>
> <http://twitter.com/Riyafa1>