[
https://issues.apache.org/jira/browse/JENA-784?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rob Vesse updated JENA-784:
---------------------------
Attachment: JENA-784.patch
Proposed patch that adds the ability to compare variable nodes to
{{NodeUtils.compareRDFTerms()}} plus some additional tests to exercise this.
Since this may have knock on effects elsewhere I am not committing immediately
even though I think the patch is relatively trivial in order to give others a
chance to review
> 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)