You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Richard Cyganiak (JIRA)" <ji...@apache.org> on 2017/06/23 10:44:00 UTC

[jira] [Created] (JENA-1367) Property function apf:strSplit is not well-behaved

Richard Cyganiak created JENA-1367:
--------------------------------------

             Summary: Property function apf:strSplit is not well-behaved
                 Key: JENA-1367
                 URL: https://issues.apache.org/jira/browse/JENA-1367
             Project: Apache Jena
          Issue Type: Bug
    Affects Versions: Jena 3.3.0
            Reporter: Richard Cyganiak
            Priority: Minor


The property function apf:strSplit is not well-behaved in cases where it's invoked on node types other than the obvious case (subject is variable, object is list of two literals). For example:

{code}
?x apf:strSplit (?unbound "some regex")
{code}

Assuming {{?unbound}} is an unbound variable, this should simply not match, but throws a {{NotLiteralException}}.

{code}
"foo" apf:strSplit ("foo;bar" ";")
{code}

This should presumably evaluate to true, but evaluates to false (the property function itself throws  ExprEvalException).



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