You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Andy Seaborne (JIRA)" <ji...@apache.org> on 2016/07/16 11:36:20 UTC

[jira] [Comment Edited] (JENA-508) Add support for XPath 3 Functions

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

Andy Seaborne edited comment on JENA-508 at 7/16/16 11:35 AM:
--------------------------------------------------------------

The full list of the XPath Functions and operators in {{StandardFunctions}} and we have a nearly complete set.

Summary notes for tracking purposes: I think we have only these missing (sequence operations do not make sense in SPARQL):

{noformat}
fn:format-number
fn:format-dateTime
fn:format-date
fn:format-time
{noformat}

It would be nice to have {{op:}} mapping (but there are a lot of them) and adapters to SPARQL operations that have keywords:
{noformat}
fn:replace
fn:matches
{noformat}

{{fn:format-number} : Java {{NumberFormat}} picture strings.

{{fn:format-dateTime}}/{{fn:format-time}}/{{fn:format-date}} : These have their own picture string syntax not provided in the JDK.



was (Author: andy.seaborne):
The full list of the XPath Functions and operators in {{StandardFunctions}} and we have a nearly complete set.

Summary notes for tracking purposes: I think we have only these missing (sequence operations do not make sense in SPARQL):

{noformat}
fn:format-number
fn:format-dateTime
fn:format-date
fn:format-time
fn:normalize-space
fn:normalize-unicode
{noformat}

It would be nice to have {{op:}} mapping (but there are a lot of them) and adapters to SPARQL operations that have keywords:
{noformat}
fn:replace
fn:matches
{noformat}


{{fn:normalize-space}} : leading and trailing whitespace removed, and sequences of internal whitespace reduced to a single space character. (regex \v and \h)

{{fn:normalize-unicode}} : the Java {{Normalizer.normalize}} applies the rules.

{{fn:format-number} : Java {{NumberFormat}} picture strings.

{{fn:format-dateTime}}/{{fn:format-time}}/{{fn:format-date}} : Java {{SimpleDateFormat}}


> 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)