[ 
https://issues.apache.org/jira/browse/JENA-1372?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16132018#comment-16132018
 ] 

ASF GitHub Bot commented on JENA-1372:
--------------------------------------

Github user afs commented on the issue:

    https://github.com/apache/jena/pull/273
  
    This is just completing the coverage for F&O 3.1.
    
    I don't think `fn:apply` replaces any custom function. There is a syntax 
extension `CALL` (little know, undocumented; a toy from a long time ago) which 
is very similar.
    
    "FN_Collation" is related `fn:collation-key` has a specific, different 
result type specified by the standard.  (there isn't a `fn:collation` in 
Functions and Operators 3.1 (F&O) so it is oddly named - it's wired to an ARQ 
URI which is correct)  Can I rename FN_Collation as "collation" to make the 
naming systematic? (FN_* are F&O functions).
    
    With `fn:apply` it would be nice is to be able to call `op:` things e.g. 
`op:numeric-add` which aren't callable functions in F&O so by my reading, 
aren't covered.
    
    As all the operation code (`E_*`) are not inheriting from "Function", a bit 
of adapter code is needed to register them.   Some messing around with arities.
    



> New functions in F&O 3.1
> ------------------------
>
>                 Key: JENA-1372
>                 URL: https://issues.apache.org/jira/browse/JENA-1372
>             Project: Apache Jena
>          Issue Type: Improvement
>          Components: ARQ
>    Affects Versions: Jena 3.4.0
>            Reporter: Andy Seaborne
>            Priority: Minor
>
> F&O 3.1 adds some new functions : see 
> https://www.w3.org/TR/xpath-functions-3/#substantive-changes. 
> The ones of note are:
> * [fn:apply|https://www.w3.org/TR/xpath-functions-3/#func-apply] (dynamically 
> applies a function to arguments supplied as an array) which is close to the 
> extension {{CALL}}, so the code there could be extracted and morphed to be 
> {{fn:apply}}.
> * 
> [fn:collation-key|https://www.w3.org/TR/xpath-functions-3/#func-collation-key]
>  (generates a key that can be used for collation-based matching). It is quite 
> similar to role played by {{NodeValueSortKey}}.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to