[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Atom-FOAF




I have now fixed these two further bugs. Thanks for the feedback.


Still looking forward to more of the same medicine :-)

Henry

On 15 Aug 2004, at 22:27, Sam Ruby wrote:

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.

I would like at a later stage to rewrite my blog in xhtml. But for the moment it is
in html, so I'll use xsd:string.


I suppose that if one uses application/xhtml+xml and one wants to insert xml fragments,
these always have to be wrapped in a top level tag such as <div>...</div>


I need to fix the OWL file to make the data field be either xsd:string or rdf:XMLLiteral. Currently this is not possible to do in Protege, so I'll wait for a point when I am confident enough to write OWL files by hand to add that.


3) Why does :created have " GMT" in it?  I believe this makes it an
   invalid xsd:dateTime value.
That's because I must have copied and pasted my Java date creation time from a flawed source.
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