You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@vxquery.apache.org by Preston Carman <pr...@apache.org> on 2016/08/07 21:57:16 UTC

Re: Implementing JSONiq Function library

Riyafa,

Could you create an issue for this? (include a label for gsoc)

Thanks
Preston

On Mon, Jul 25, 2016 at 10:01 PM, Till Westmann <ti...@apache.org> wrote:
> Hi Riyafa,
>
> unfortunately, we currently don’t support function declarations. As you’ve
> experienced, we can parse them, but most other pieces are still missing.
> And I think that it’s a little too much effort to get them in during this
> GSoC. But they would be a good "next thing" after GSoC!
>
> Cheers,
> Till
>
> On 25 Jul 2016, at 20:01, Riyafa Abdul Hameed wrote:
>
>> Hi,
>>
>> When attempting to implement the JSONiq function library, I have been
>> wondering rather than writing new classes for each function whether it is
>> not possible to reuse the existing code in VXQuery. For example the
>> specification[1] suggests that we could use *declare function *to create
>> the function *libjn:accumulate. *When I try to run *declare function
>> *semantic
>> in current implementation of VXQuery it throws an error[Attached]. I would
>> like to know if *declare function *is currently supported in VXQuery and
>> if
>> it is can we use it for implementing the JSONiq Function library as
>> suggested in the specification rather than writing a new class for each
>> function.
>>
>>
>> [1]
>>
>> http://jsoniq.org/docs/JSONiqExtensionToXQuery/html-single/index.html#idm139680684849856
>>
>> 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>