You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Dave Griffith (JIRA)" <ji...@apache.org> on 2019/01/04 15:39:00 UTC
[jira] [Created] (JENA-1655) SPARQL time built-ins return
non-normalized integer RDF literals
Dave Griffith created JENA-1655:
-----------------------------------
Summary: SPARQL time built-ins return non-normalized integer RDF literals
Key: JENA-1655
URL: https://issues.apache.org/jira/browse/JENA-1655
Project: Apache Jena
Issue Type: Bug
Reporter: Dave Griffith
The SPARQL time built-ins (YEAR, MONTH,DAY, HOURS, MINUTES, SECONDS) can return integer RDF literals with leading zeros, e.g "00"^^xsd:integer . This is largely benign, but can be detected with queries like this:
SELECT (<http://www.w3.org/2001/XMLSchema#string>(minutes("2011-01-10T14:00:13.815-05:00"^^xsd:dateTime)) as ?minutes){}
which returns "00"
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)