[ 
https://issues.apache.org/jira/browse/JENA-1655?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andy Seaborne updated JENA-1655:
--------------------------------
    Description: 
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: 

{noformat}
SELECT (xsd:string(minutes("2011-01-10T14:00:13.815-05:00"^^xsd:dateTime)) as 
?minutes){}
{noformat}

which returns "00".


  was:
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"
 


> 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
>            Priority: Minor
>
> 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: 
> {noformat}
> SELECT (xsd:string(minutes("2011-01-10T14:00:13.815-05:00"^^xsd:dateTime)) as 
> ?minutes){}
> {noformat}
> which returns "00".



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to