|
From: Alexander S. <ale...@gm...> - 2010-04-14 20:55:05
|
Hi rob,
Thank you for the answer :)
dateTime.ToLiteral works for me. But according to my current API it would be
easier for me to just create LitralNode from string. So I tried something
like this:
string literal = String.Format("{0}^^{1}",
dateTimeOffset.ToString(XmlSpecsHelper.XmlSchemaDateTimeFormat),
XmlSpecsHelper.XmlSchemaDataTypeDateTime);
graph.createLiteralNode(literal);
But this code doesn't work. Here is a screenshot of entity properties'
values: http://img690.imageshack.us/img690/5617/beawaredatetimes.png.
CreationDateTime is created using dateTime.ToLiteral call and it's okay but
startDateTime (that is created using the code above) is not parsed correctly
and Virtuoso doesn't understand it is a dateTime value.
I look at dotNetRDF sources and do not understand in what way my literal
variable value differs from the string generated by dateTime.ToLiteral
method.
Regards,
Alexander
|