Drew,

Yes,
<literal 
datatype="http://www.w3.org/2001/XMLSchema#dateTime";>2008-01-30 
23:36:28.720000</literal>
is the explicit bug I should fix now. Re. timezones I need additional
testing before providing informative answer.

Best Regards,
Ivan Mikahilov,
OpenLink Software.

On Wed, 2008-02-13 at 19:08 -0800, Drew Perttula wrote:
> In VOS 5.0.5, I used ttlp to read from an .nt file with a line like this:
> 
> <http://example.com/s> <http://example.com/p> 
> "2008-05-30T23:36:28.72-07:00"^^<http://www.w3.org/2001/XMLSchema#dateTime>.
> 
> Then I ran this query over http:
>    SELECT ?o WHERE { <http://example.com/s> <http://example.com/p> ?o . }
> 
> % curl "http://localhost:8889/sparql?default-graph-uri=&query=...";
> <?xml version="1.0" ?>
> <sparql xmlns="http://www.w3.org/2005/sparql-results#"; 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xsi:schemaLocation="http://www.w3.org/2001/sw/DataAccess/rf1/result2.xsd";>
>   <head>
>    <variable name="o"/>
>   </head>
>   <results distinct="false" ordered="true">
>    <result>
>     <binding name="o"><literal 
> datatype="http://www.w3.org/2001/XMLSchema#dateTime";>2008-01-30 
> 23:36:28.720000</literal></binding>
>    </result>
>   </results>
> </sparql>
> 
> 
> I was expecting the literal in my result to have the same string form as 
> the input (with perhaps some trailing zeros). In particular, the 'T' is 
> missing and the timezone is gone.
> 
> Curiously, when I do this test with the conductor interface 
> (http://localhost:8889/conductor/sparql_input.vspx), I get this string 
> in the result table:
> 
>     2008-01-30T23:36:28.720000
> 
> (uses 'T', still no timezone)
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Virtuoso-users mailing list
> Virtuoso-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Reply via email to