On Thursday 20 November 2008 12:47:45 Kjetil Kjernsmo wrote: > The problem has a pretty clear symptom: When running against an endpoint > based on a Jena Model, I get the following date: > > <j.0:dateAccepted > rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2003-07-11 > 09:25:31.0</j.0:dateAccepted> > > It lacks the 'T' which is needed in the xsd:dateTime.
I think I found it: In VirtGraph, there is else if (o instanceof java.sql.Timestamp) { RDFDatatype dt = null; dt = TypeMapper.getInstance().getSafeTypeByName("http://www.w3.org/2001/XMLSchema#dateTime"); return Node.createLiteral(o.toString(), null, dt); but o.toString() will return the JDBC timestamp format, which is what we see. Kinda weird there is no exception there... Anyway, it seems pretty clear that o.toString can't be used, but I haven't found any simple way to get this right. Any takers? Kind regards Kjetil Kjernsmo -- Senior Knowledge Engineer Mobile: +47 986 48 234 Email: kjetil.kjern...@computas.com Web: http://www.computas.com/ | SHARE YOUR KNOWLEDGE | Computas AS PO Box 482, N-1327 Lysaker | Phone:+47 6783 1000 | Fax:+47 6783 1001