HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
4068Update the RDF conversion to be unambiguous in all cases.2009-10-04 03:53
@@ -49349,21 +49349,21 @@ contradict people?
   <p><i>This section is non-normative.</i></p>
 
   <p>Using microdata means using a vocabulary. For some purposes, an
   ad-hoc vocabulary is adequate. For others, a vocabulary will need to
   be designed. Where possible, authors are encouraged to re-use
   existing vocabularies, as this makes content re-use easier.</p>
 
   <p>When designing new vocabularies, identifiers can be created
   either using <span title="URL">URLs</span>, <span title="valid
   reversed DNS identifier">reversed DNS labels</span>, or, for
-  properties, as plain words (with no dots or colons). For URLs
+  properties, as plain words (with no dots or colons). For URLs,
   conflicts with other vocabularies can be avoided by only using
   identifiers that correspond to pages that the author has control
   over. Similarly, for reversed DNS labels conflicts can be avoided by
   using a domain name that the author has control over, or by using
   suffixes that correspond to the path components of pages that the
   author has control over.</p>
 
   <div class="example">
 
    <p>For instance, if Jon and Adam both write content at <code
@@ -49639,21 +49639,21 @@ document.body.appendChild(outer);</pre>
   specified, to give the <span>item type</span> of the <span
   title="concept-item">item</span>.</p>
 
   <p>The <code title="attr-itemtype">itemtype</code> attribute, if
   specified, must have a value that is either:</p>
 
   <ul>
 
    <li>A <span>valid URL</span> that is an <span>absolute URL</span>
    for which the string "<code
-   title="">http://www.w3.org/1999/xhtml/custom#</code>" is not a
+   title="">http://www.w3.org/1999/xhtml/microdata#</code>" is not a
    <span>prefix match</span>, or</li>
 
    <li>A <span>valid reversed DNS identifier</span>.</li>
 
   </ul>
 
   <p>The <dfn>item type</dfn> of an <span
   title="concept-item">item</span> is the value of its element's <code
   title="attr-itemtype">itemtype</code> attribute, if it has one and
   its value is not the empty string. If the <code
@@ -49717,21 +49717,21 @@ document.body.appendChild(outer);</pre>
   unique space-separated tokens</span> representing the names of the
   name-value pairs that it adds. The attribute's value must have at
   least one token.</p>
 
   <p>Each token must be either:</p>
 
   <ul>
 
    <li>A <span>valid URL</span> that is an <span>absolute URL</span>
    for which the string "<code
-   title="">http://www.w3.org/1999/xhtml/custom#</code>" is not a
+   title="">http://www.w3.org/1999/xhtml/microdata#</code>" is not a
    <span>prefix match</span>, or</li>
 
    <li>A <span>valid reversed DNS identifier</span>, or</li>
 
    <li>If the item is a <span>typed item</span>: a string allowed in
    this situation according to the specification that defines the
    <span>relevant type</span> for the item, or</li>
 
    <li>If the item is not a <span>typed item</span>: a string that
    contains no U+002E FULL STOP (.) characters and no U+003A COLON (:)
@@ -52337,20 +52337,41 @@ END:VCARD</pre>
  &lt;p>&lt;a href="http://livebrum.co.uk/2009/05/05/bluesday-tuesday-money-road"
        itemprop="url">See this event on livebrum.co.uk&lt;/a>.&lt;/p>
  &lt;meta itemprop="description" content="via livebrum.co.uk">
 &lt;/div></pre>
 
   </div>
 
 
 
   <h4>Licensing works</h4>
+<!--
+       <li><p>Otherwise, if <var title="">type</var> is <code
+       title="md-work">work</code>, and <var title="">name</var> is
+       equal to the string "<code title="md-work-title">title</code>",
+       let <var title="">name</var> be the string "<code
+       title="">http://purl.org/dc/elements/1.1/title</code>".</p></li>
+
+       <li><p>Otherwise, if <var title="">type</var> is <code
+       title="md-work">work</code>, and <var title="">name</var> is
+       equal to the string "<code
+       title="md-work-author">author</code>", let <var
+       title="">name</var> be the string "<code
+       title="">http://creativecommons.org/ns#attributionName</code>".</p></li>
+
+       <li><p>Otherwise, if <var title="">type</var> is <code
+       title="md-work">work</code>, and <var title="">name</var> is
+       equal to the string "<code
+       title="md-work-license">license</code>", let <var
+       title="">name</var> be the string "<code
+       title="">http://www.w3.org/1999/xhtml/vocab#license</code>".</p></li>
+-->
 
   <p>An item with the <span>predefined type</span> <dfn
   title="md-work"><code>work</code></dfn> represents a work (e.g. an
   article, an image, a video, a song, etc). This type is primarily
   intended to allow authors to include licensing information for
   works.</p>
 
   <p>The following are the type's <span title="predefined property
   name">predefined property names</span>.</p>
 
@@ -52718,21 +52739,21 @@ END:VCARD</pre>
       subject returned.</p>
 
      </li>
 
      <li>
 
       <p>Generate the following triple:</p>
 
       <dl class="triple">
        <dt>subject   <dd> <span>the document's current address</span>
-       <dt>predicate <dd> <code title="">http://www.w3.org/1999/xhtml/vocab#item</code>
+       <dt>predicate <dd> <code title="">http://www.w3.org/1999/xhtml/microdata#item</code>
        <dt>object    <dd> <var title="">item</var>
       </dl>
 
      </li>
 
 <!--
      <li>
 
       <p>If the element is, or is a descendant of, an
       <code>address</code> element that has no <code>article</code>
@@ -52762,26 +52783,27 @@ END:VCARD</pre>
 
   <ol>
 
    <li><p>If <var title="">item</var> has a <span>global
    identifier</span> and that <span>global identifier</span> is an
    <span>absolute URL</span>, let <var title="">subject</var> be that
    <span>global identifier</span>. Otherwise, let <var
    title="">subject</var> be a new blank node.</p></li>
 
    <li><p>Let <var title="">type</var> be the <span>item type</span>
-   of <var title="">item</var>.</p></li>
+   of <var title="">item</var>, or the empty string, if <var
+   title="">item</var> has no <span>item type</span>.</p></li>
 
    <li><p>If <var title="">type</var> is neither the empty string nor
    an <span>absolute URL</span>, then let <var title="">type</var> be
    the result of concatenating the string "<code
-   title="">http://www.w3.org/1999/xhtml/custom#</code>" with the <var
+   title="">http://www.w3.org/1999/xhtml/microdata#</code>" with the <var
    title="">type</var>, with any characters in <var
    title="">type</var> that are not valid in the &lt;ifragment>
    production of the IRI syntax being %-escaped.</p></li>
 
    <li>
 
     <p>If <var title="">type</var> is not the empty string, generate
     the following triple:</p>
 
     <dl class="triple">
@@ -52820,66 +52842,92 @@ END:VCARD</pre>
      <li><p>Otherwise, if <var title="">element</var> is not one of
      the <span>URL property elements</span>, let <var
      title="">value</var> be a plain literal, with the language
      information set from the <span>language</span> of the element, if
      it is not unknown.</p></li>
 
      <li>
 
       <p>For each name <var title="">name</var> in <var
       title="">element</var>'s <span>property names</span>, run the
-      following substeps:</p>
-
-      <ol>
-<!--
-       <li><p>Otherwise, if <var title="">type</var> is <code
-       title="md-work">work</code>, and <var title="">name</var> is
-       equal to the string "<code title="md-work-title">title</code>",
-       let <var title="">name</var> be the string "<code
-       title="">http://purl.org/dc/elements/1.1/title</code>".</p></li>
+      appropriate substeps from the following list:</p>
 
-       <li><p>Otherwise, if <var title="">type</var> is <code
-       title="md-work">work</code>, and <var title="">name</var> is
-       equal to the string "<code
-       title="md-work-author">author</code>", let <var
-       title="">name</var> be the string "<code
-       title="">http://creativecommons.org/ns#attributionName</code>".</p></li>
+      <dl>
 
-       <li><p>Otherwise, if <var title="">type</var> is <code
-       title="md-work">work</code>, and <var title="">name</var> is
-       equal to the string "<code
-       title="md-work-license">license</code>", let <var
-       title="">name</var> be the string "<code
-       title="">http://www.w3.org/1999/xhtml/vocab#license</code>".</p></li>
--->
-       <li><p><!--Otherwise...--> If <var title="">name</var> is not
-       an <span>absolute URL</span>, then let <var title="">name</var>
-       be the result of concatenating the string "<code
-       title="">http://www.w3.org/1999/xhtml/custom#</code>" with <var
-       title="">name</var>, with any characters in <var
-       title="">name</var> that are not valid in the &lt;ifragment>
-       production of the IRI syntax being %-escaped. <a
-       href="#refsRFC3987">[RFC3987]</a></p></li>
+       <dt>If <var title="">name</var> is an <span>absolute
+       URL</span></dt>
 
-       <li>
+       <dd>
 
         <p>Generate the following triple:</p>
 
         <dl class="triple">
          <dt>subject   <dd> <var title="">subject</var>
          <dt>predicate <dd> <var title="">name</var>
          <dt>object    <dd> <var title="">value</var>
         </dl>
 
-       </li>
+       </dd>
 
-      </ol>
+       <dt>If <var title="">name</var> contains neither a U+003A COLON
+       character (:) nor a U+002E FULL STOP character (.)</dt>
+
+       <dd>
+
+        <ol>
+
+         <li><p>If <var title="">type</var> is the empty string, then
+         abort these substeps.</p></li>
+
+         <li><p>Let <var title="">predicate</var> have the same value
+         as <var title="">type</var>.</p></li>
+
+         <li><p>If <var title="">predicate</var> does not end in a
+         U+0023 NUMBER SIGN character (#), then append a U+0023 NUMBER
+         SIGN character (#) to <var title="">predicate</var>.</p></li>
+
+         <li><p>Append the value of <var title="">name</var> to <var
+         title="">predicate</var>, with any characters in <var
+         title="">name</var> that are not valid in the &lt;ifragment>
+         production of the IRI syntax being %-escaped.</p></li>
+
+         <li>
+
+          <p>Generate the following triple:</p>
+
+          <dl class="triple">
+           <dt>subject   <dd> <var title="">subject</var>
+           <dt>predicate <dd> the concatenation of the string "<code title="">http://www.w3.org/1999/xhtml/microdata#</code>" and <var title="">predicate</var>, with any characters in <var title="">predicate</var> that are not valid in the &lt;ifragment> production of the IRI syntax being %-escaped <a href="#refsRFC3987">[RFC3987]</a>
+           <dt>object    <dd> <var title="">value</var>
+          </dl>
+
+         </li>
+
+        </ol>
+
+       </dd>
+
+       <dt>Otherwise</dt>
+
+       <dd>
+
+        <p>Generate the following triple:</p>
+
+        <dl class="triple">
+         <dt>subject   <dd> <var title="">subject</var>
+         <dt>predicate <dd> the concatenation of the string "<code title="">http://www.w3.org/1999/xhtml/microdata#</code>" and <var title="">name</var>, with any characters in <var title="">name</var> that are not valid in the &lt;ifragment> production of the IRI syntax being %-escaped <a href="#refsRFC3987">[RFC3987]</a>
+         <dt>object    <dd> <var title="">value</var>
+        </dl>
+
+       </dd>
+
+      </dl>
 
      </li>
 
     </ol>
 
    </li>
 
    <li><p>Return <var title="">subject</var>.</p></li>
 
   </ol>

|