<?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>12713</bug_id>
          
          <creation_ts>2011-05-20 09:44:15 +0000</creation_ts>
          <short_desc>Mapping microdata in RDF (section 5.2)</short_desc>
          <delta_ts>2011-08-26 19:16:40 +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>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>TrackerIssue</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Raphael Troncy">raphael.troncy</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>a.kuckartz</cc>
    
    <cc>ayg</cc>
    
    <cc>eoconnor</cc>
    
    <cc>giovanni.tummarello</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>philipj</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>rubys</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>48658</commentid>
    <comment_count>0</comment_count>
    <who name="Raphael Troncy">raphael.troncy</who>
    <bug_when>2011-05-20 09:44:15 +0000</bug_when>
    <thetext>The microdata document includes a separate section (section 5.2) on how the microdata information should mapped on RDF. The specification itself seems to be technically correct and implementable. However, the specification also includes design choices for which I would request a change.

The issue is the URI-s generated for microdata attribute values in case those values are not absolute URI-s. The current specifications lead to URIs of the form (using the example in the document)

http://www.w3.org/1999/xhtml/microdata#http://microformats.org/profile/hcard%23:adr%20street-address

Using such URI-s for data originating, in this example from a microformat is unnecessary complicated, and puts an extra strain on any RDF representation of the microdata vocabulary. It would also cast the http://www.w3.org/1999/xhtml/microdata# string as part of that RDF representation for no good technical reason and would make the resulting URI-s either not dereferencable (which is contrary to the requirements set up, for example, in the Linked Open Data community) or would put an extra and unnecessary strain on the w3c server to set up and maintain such dereferencing service.

The proposal is to drop the reference to microdata from the URI scheme altogether, yielding, in the case of this specific example, the URI

http://microformats.org/profile/hcard#:adr%20street-address

The necessary change in the specification is simple. In section 5.2, in the second processing step block, replace 6.5.4 by:

4. Let &lt;em&gt;predicate&lt;/em&gt; be &lt;em&gt;s&lt;/em&gt;

As a further possible simplification, it is also a question why the &apos;#:&apos; scheme is used in the generated URI. While in some cases it may be necessary, the expected majority of cases are of the form, say

&lt;span itemscope itemtype=&quot;http://microformats.org/profile/hcard&quot;&gt;
  &lt;span itemprop=&quot;street-address&quot;&gt;Street name&lt;/span&gt;
&lt;/span&gt;

in which case a predicate URI of the form

http://microformats.org/profile/hcard#street-address

would be much more natural (note the missing &apos;:&apos;) character. To achieve that, the following modifications on the specification should be made:

Both 4.3 and 5.3 should say:

&quot;If the last character of &lt;em&gt;type&lt;/em&gt; is not either the U+003A COLON character (:) or the U+0023 NUMBER SIGN character (#), append a U+003A COLON character (:) to type&quot;

5.4 should say:

If the last character of &lt;em&gt;type&lt;/em&gt; is not either the U+003A COLON character (:) or the U+0023 NUMBER SIGN character (#), append a U+0025 PERCENT SIGN character (%), a U+0032 DIGIT TWO character (2), and a U+0030 DIGIT ZERO character (0) to &lt;em&gt;type&lt;/em&gt;.

6.1.5.2 should say:

If the last character of &lt;em&gt;s&lt;/em&gt; is not either the U+003A COLON character (:) or the U+0023 NUMBER SIGN character (#), append a U+0025 PERCENT SIGN character (%), a U+0032 DIGIT TWO character (2), and a U+0030 DIGIT ZERO character (0) to &lt;em&gt;s&lt;/em&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48659</commentid>
    <comment_count>1</comment_count>
    <who name="Philip Jägenstedt">philipj</who>
    <bug_when>2011-05-20 10:58:59 +0000</bug_when>
    <thetext>It seems to me that the suggested scheme would easily conflict with other URIs...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48985</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-05-31 23:20:11 +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: It&apos;s not &quot;for no good technical reason&quot;. It&apos;s for a very good technical reason. The reason is that we must ensure that the URLs generated by the algorithm cannot clash with URLs that authors might use, otherwise we end up in a situation where there are multiple redundant ways to express the same RDF and this kind of thing has historically frequently been incorrectly handled by implementations.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49333</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2011-06-08 19:57:54 +0000</bug_when>
    <thetext>*** Bug 12891 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52921</commentid>
    <comment_count>4</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:05:22 +0000</bug_when>
    <thetext>mass-move component to LC1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54380</commentid>
    <comment_count>5</comment_count>
    <who name="Raphael Troncy">raphael.troncy</who>
    <bug_when>2011-08-08 14:26:51 +0000</bug_when>
    <thetext>Suggested title: URI-s generated for microdata attribute values

Suggested text:
The microdata document includes a separate section (section 5.2) on how the
microdata information should mapped on RDF. It includes design choices regarding the URI-s generated for microdata attribute values in case those
values are not absolute URI-s. The current specifications lead to URIs of the
form (using the example in the document)

http://www.w3.org/1999/xhtml/microdata#http://microformats.org/profile/hcard%23:adr%20street-address

Using such URI-s for data originating, in this example from a microformat is
unnecessary complicated, and puts an extra strain on any RDF representation of
the microdata vocabulary. It would also cast the
http://www.w3.org/1999/xhtml/microdata# string as part of that RDF
representation for no good technical reason and would make the resulting URI-s
either not dereferencable (which is contrary to the requirements set up, for
example, in the Linked Open Data community) or would put an extra and
unnecessary strain on the w3c server to set up and maintain such dereferencing
service.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55896</commentid>
    <comment_count>6</comment_count>
    <who name="Sam Ruby">rubys</who>
    <bug_when>2011-08-26 19:16:40 +0000</bug_when>
    <thetext>Tracker issue opened: http://www.w3.org/html/wg/tracker/issues/171</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>