HTML Standard Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/4068

File a bug

SVNBugCommentTime (UTC)
4068Update the RDF conversion to be unambiguous in all cases.2009-10-04 03:53
Index: source
===================================================================
--- source	(revision 4067)
+++ source	(revision 4068)
@@ -49356,7 +49356,7 @@
   <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
@@ -49646,7 +49646,7 @@
 
    <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>
@@ -49724,7 +49724,7 @@
 
    <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>
@@ -52344,7 +52344,28 @@
 
 
   <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
@@ -52725,7 +52746,7 @@
 
       <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>
 
@@ -52769,12 +52790,13 @@
    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>
@@ -52827,41 +52849,15 @@
 
       <p>For each name <var title="">name</var> in <var
       title="">element</var>'s <span>property names</span>, run the
-      following substeps:</p>
+      appropriate substeps from the following list:</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>
+      <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-author">author</code>", let <var
-       title="">name</var> be the string "<code
-       title="">http://creativecommons.org/ns#attributionName</code>".</p></li>
+       <dt>If <var title="">name</var> is an <span>absolute
+       URL</span></dt>
 
-       <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>
+       <dd>
 
-       <li>
-
         <p>Generate the following triple:</p>
 
         <dl class="triple">
@@ -52870,10 +52866,62 @@
          <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>

|