Nicolae;  On creating the Date time, why not just use SPARQL now() directly, i.e.:

BIND(now() AS ?date)
...or
SELECT (now() AS ?date)...

In terms of the error message, the leading and trailing apostrophe is probably to blame.  The syntax of ant RDF literal is a string with the xsd:type appended, e.g. "2014-05-27T14:06:11+0300"^^xsd:dateTime. 

In your case the result seems to be "'2014-05-27T14:06:11+0300'"^^xsd:dateTime - not the extra quote that makes it illegal syntax for xsd:dateTime.

-- Scott

On 5/27/2014, 6:10 AM, Nicolae Marasoiu wrote:
Hi,

I am trying to generate the currend xsd:dateTime to insert in a dynamic XML payload with:
spif:dateFormat(now(), "YYYY-MM-dd")) + "T" + spif:dateFormat(now(), "HH:mm:ssZ")

Sending out content yields XSD validation exception, probably from the remoint endpoint XSD validation:

Reason:
org.topbraid.spin.sparqlmotion.modules.SMException: 
The 'dateSent' element is invalid - The value '2014-05-27T14:06:11+0300' is invalid according to its datatype 'DateTime' - The string '2014-05-27T14:06:11+0300' is not a valid DateTime value.

However, according to http://www.schemacentral.com/sc/xsd/t-xsd_dateTime.html, 2014-05-27T14:06:11+0300 should be a valid xsd dateTime value!

Please advice,
Nicu
--
-- You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to
topbraid-users@googlegroups.com
To unsubscribe from this group, send email to
topbraid-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en
---
You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to topbraid-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
-- You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to
topbraid-users@googlegroups.com
To unsubscribe from this group, send email to
topbraid-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en
---
You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to topbraid-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to