You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/01/11 10:29:39 UTC
[jira] [Commented] (JENA-149) Nodes of type XSD duration don't
equate-by-value forms with different lexical forms for the same duration.
[ https://issues.apache.org/jira/browse/JENA-149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15091668#comment-15091668 ]
ASF GitHub Bot commented on JENA-149:
-------------------------------------
GitHub user afs opened a pull request:
https://github.com/apache/jena/pull/121
JENA-149: Duration equality by value.
This PR provides canonicalization of the date/time duration in comparison, equality and hashcode operations based on year-month and day-time parts. (e.g. if it is 110seconds, it become 1minute 50seconds).
Only year-month and day-time durations are fully comparable but applications may, indeed probably do, use the xsd:duration datatype, not the appropriate subtype.
This does not affect SPARQL.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/afs/jena jena149-duration-value
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/jena/pull/121.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #121
----
commit 1694e7fb34ac325a0f1b5308a4772624e8100cb2
Author: Andy Seaborne <an...@apache.org>
Date: 2016-01-11T09:03:59Z
JENA-149: Duration equality by value.
Canonicalise the date/time duration based on year-month and day-time.
----
> Nodes of type XSD duration don't equate-by-value forms with different lexical forms for the same duration.
> ----------------------------------------------------------------------------------------------------------
>
> Key: JENA-149
> URL: https://issues.apache.org/jira/browse/JENA-149
> Project: Apache Jena
> Issue Type: Bug
> Components: Jena
> Reporter: Andy Seaborne
> Assignee: Dave Reynolds
> Priority: Minor
> Labels: datatypes
> Attachments: ReportParsingDurations.java
>
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)