<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>12718</bug_id>
          
          <creation_ts>2011-05-22 16:21:18 +0000</creation_ts>
          <short_desc>&lt;time&gt; Handling datetimes in microdata-to-RDF conversion</short_desc>
          <delta_ts>2011-08-12 20:20:48 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>LC1 HTML Microdata (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>13240</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Richard Cyganiak">richard</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>philipj</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>48678</commentid>
    <comment_count>0</comment_count>
    <who name="Richard Cyganiak">richard</who>
    <bug_when>2011-05-22 16:21:18 +0000</bug_when>
    <thetext>This is a comment on the RDF mapping in the subsection Converting HTML to other formats » RDF of the HTML Microdata document.

This comment concerns the RDF conversion of datetime values.

Since literals in RDF are datatyped, it would be appropriate to map any values that were obtained from a datetime attribute to the respective datatype. In other words, if the datetime attribute contains a time, then the RDF conversion should generate an xsd:time typed literal; xsd:date for a date, and xsd:dateTime for a date and time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48986</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-05-31 23:22:48 +0000</bug_when>
    <thetext>That seems reasonable... do I just change the spec to say that when it comes from a &lt;time&gt; element, the generated triple is in fact a quad and the fourth field is a &quot;type&quot; with the URL corresponding to the appropriate xsd:* type name?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49844</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Cyganiak">richard</who>
    <bug_when>2011-06-18 20:19:10 +0000</bug_when>
    <thetext>Instead of a &quot;plain literal&quot;, you generate a &quot;typed literal&quot;, which has a &quot;datatype URI&quot;.
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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49980</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-06-21 06:52:43 +0000</bug_when>
    <thetext>Thanks, will do.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50822</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-07-07 23:33:21 +0000</bug_when>
    <thetext>Turns out there&apos;s actually a comment in the source saying I should do this. :-)

I&apos;m delaying fixing this a little longer, however, because there&apos;s a chance we&apos;re going to drop &lt;time&gt; altogether in favour of a more generic mechanism for machine-readable data.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52995</commentid>
    <comment_count>5</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:05:52 +0000</bug_when>
    <thetext>mass-move component to LC1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54791</commentid>
    <comment_count>6</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-08-12 20:20:48 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: no spec change
Rationale: no longer relevant since the RDF section was removed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>