Henry Story wrote:
2) Why is :data an declared as "^^rdf:XMLLiteral"?I thought that since the value of the data field of a content object would most likely be xml, this would probably be the best type to give it. But I am fully open to criticism here.
In general, text/html is a xsd:string. application/xhtml+xml is xml.
That's because I must have copied and pasted my Java date creation time from a flawed source.3) Why does :created have " GMT" in it? I believe this makes it an invalid xsd:dateTime value.
I have now changed it to:
df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss"); //ISO 8601 format
Other than four extra characters being present in your original source (" GMT"), the previous version was preferred as it included a timezone offset.
- Sam Ruby