[
https://issues.apache.org/jira/browse/JENA-784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14131466#comment-14131466
]
ASF subversion and git services commented on JENA-784:
------------------------------------------------------
Commit 1624515 from [~rvesse] in branch 'jena/trunk'
[ https://svn.apache.org/r1624515 ]
Improve NodeUtils.compareRDFTerms() to cope with variable nodes (JENA-784)
> NodeUtils.compareRDFTerms() does not handle variable nodes
> ----------------------------------------------------------
>
> Key: JENA-784
> URL: https://issues.apache.org/jira/browse/JENA-784
> Project: Apache Jena
> Issue Type: Bug
> Components: ARQ
> Affects Versions: Jena 2.12.0
> Reporter: Rob Vesse
> Assignee: Rob Vesse
> Fix For: Jena 2.12.1
>
> Attachments: JENA-784.patch
>
>
> {{NodeUtils.compareRDFTerms()}} does not cope with variable nodes e.g.
> {noformat}
> Node x = NodeFactory.createVariable("x");
> Node y = NodeFactory.createVariable("y");
> // This produces an ARQ internal error
> int compare = NodeUtils.compareRDFTerms(x, y);
> {noformat}
> I would propose that we add support for comparing variable nodes making them
> less than blank nodes in the overall ordering
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)