You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Andy Seaborne (JIRA)" <ji...@apache.org> on 2019/01/04 17:33:00 UTC
[jira] [Updated] (JENA-1655) SPARQL time built-ins return
non-normalized integer RDF literals
[ 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)