[Bug 12718] Handling datetimes in microdata-to-RDF conversion

http://www.w3.org/Bugs/Public/show_bug.cgi?id=12718

--- Comment #2 from Richard Cyganiak <richard@cyganiak.de> 2011-06-18 20:19:10 UTC ---
Instead of a "plain literal", you generate a "typed literal", which has a
"datatype URI".
http://www.w3.org/TR/rdf-concepts/#dfn-typed-literal
http://www.w3.org/TR/rdf-concepts/#dfn-datatype-URI

Something like this should work:

If element is a time element, and value is a valid date or time string, then:

- Let value be a typed literal
- If value is a valid date string, then the datatype URI is
http://www.w3.org/2001/XMLSchema#date
- If value is a valid time string, then the datatype URI is
http://www.w3.org/2001/XMLSchema#time
- If value is a valid global date and time string, then the datatype URI is
http://www.w3.org/2001/XMLSchema#dateTime

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Saturday, 18 June 2011 20:19:11 UTC