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

Andy Seaborne edited comment on JENA-508 at 7/16/16 12:42 PM:
--------------------------------------------------------------

With PR #155 and #156 we have the complete set except the 3 date/time 
formatters : fn:format-dateTime etc.

Unless I'm missing something, Java8 does not include code to implement the 
picture format defined in Xpath/Xquery Functions and Operators. So, even for 
just the ISO 8601 calendar, it's a significant piece of implementation.

See https://www.w3.org/TR/xpath-functions-3/#rules-for-datetime-formatting

Examples (from F&O 3.1):
{noformat}
2002-12-31      format-date($d, "[Y0001]-[M01]-[D01]")
12-31-2002      format-date($d, "[M]-[D]-[Y]")
31-12-2002      format-date($d, "[D]-[M]-[Y]")
31 XII 2002     format-date($d, "[D1] [MI] [Y]")
{noformat}

(Saxon-HE may have the code : it is Mozilla Public License which is category B 
/ weak copyleft)

Jena provides {{afn:sprintf}} and that has some date/time formatting 
capabilities and a picture format that users wil probably expect.

Therefore, I propose we close this JIRA with many thanks to ales004 for his 
contributions.


was (Author: andy.seaborne):
With PR #155, we have the complete set except the 3 date/time formatters : 
fn:format-dateTime etc.

Unless I'm missing something, Java8 does not include code to implement the 
picture format defined in Xpath/Xquery Functions and Operators. So, even for 
just the ISO 8601 calendar, it's a significant piece of implementation.

See https://www.w3.org/TR/xpath-functions-3/#rules-for-datetime-formatting

Examples (from F&O 3.1):
{noformat}
2002-12-31      format-date($d, "[Y0001]-[M01]-[D01]")
12-31-2002      format-date($d, "[M]-[D]-[Y]")
31-12-2002      format-date($d, "[D]-[M]-[Y]")
31 XII 2002     format-date($d, "[D1] [MI] [Y]")
{noformat}

(Saxon-HE may have the code : it is Mozilla Public License which is category B 
/ weak copyleft)

Jena provides {{afn:sprintf}} and that has some date/time formatting 
capabilities and a picture format that users wil probably expect.

Therefore, I propose we close this JIRA with many thanks to ales004 for his 
contributions.

> Add support for XPath 3 Functions
> ---------------------------------
>
>                 Key: JENA-508
>                 URL: https://issues.apache.org/jira/browse/JENA-508
>             Project: Apache Jena
>          Issue Type: Improvement
>          Components: ARQ
>            Reporter: Rob Vesse
>
> XPath 3 is now a Candidate Recommendation - 
> http://www.w3.org/TR/xpath-functions-30/
> It contains many new functions and operators (particularly in the 
> mathematical space) which we should consider adding into future versions of 
> ARQ.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to