[html5] r3093 - [t] (0) Add language information to the RDF output. (credit: id)

whatwg at whatwg.org whatwg at whatwg.org
Mon May 11 18:17:02 PDT 2009


Author: ianh
Date: 2009-05-11 18:17:01 -0700 (Mon, 11 May 2009)
New Revision: 3093

Modified:
   index
   source
Log:
[t] (0) Add language information to the RDF output. (credit: id)

Modified: index
===================================================================
--- index	2009-05-12 00:25:42 UTC (rev 3092)
+++ index	2009-05-12 01:17:01 UTC (rev 3093)
@@ -41388,7 +41388,7 @@
 
     <dl class=triple><dt>subject   <dd> <a href="#the-document's-current-address">the document's current address</a>
      <dt>predicate <dd> <code title="">http://purl.org/dc/terms/title</code>
-     <dt>object    <dd> the <code><a href=#textcontent>textContent</a></code> of <a href=#the-title-element-0>the <code>title</code> element</a>
+     <dt>object    <dd> the <code><a href=#textcontent>textContent</a></code> of <a href=#the-title-element-0>the <code>title</code> element</a>, as a plain literal, with the language information set from the <a href=#language>language</a> of <a href=#the-title-element-0>the <code>title</code> element</a>, if it is not unknown.
     </dl></li>
 
    <li>
@@ -41449,7 +41449,7 @@
 
     <dl class=triple><dt>subject   <dd> <a href="#the-document's-current-address">the document's current address</a>
      <dt>predicate <dd> the concatenation of the string "<code title="">http://www.w3.org/1999/xhtml/vocab#</code>" and value of the element's <code title=attr-meta-name><a href=#attr-meta-name>name</a></code> attribute, <a href=#converted-to-lowercase>converted to lowercase</a>
-     <dt>object    <dd> the value of the element's <code title=attr-meta-content><a href=#attr-meta-content>content</a></code> attribute
+     <dt>object    <dd> the value of the element's <code title=attr-meta-content><a href=#attr-meta-content>content</a></code> attribute, as a plain literal, with the language information set from the <a href=#language>language</a> of the element, if it is not unknown.
     </dl></li>
 
    <li>
@@ -41533,6 +41533,19 @@
      triples for an item">generate the triples</a> for <var title="">value</var>, and then replace <var title="">value</var>
      with the subject returned from those steps.</li>
 
+     <!-- could support <time> here somehow, though we'd have to
+     reserialise it, check if the <time> was valid, check if it had a
+     .date, a .time, a .timezone, etc. -->
+
+     <li><p>Otherwise, if <var title="">element</var> is not an
+     <code><a href=#the-a-element>a</a></code>, <code><a href=#the-area-element>area</a></code>, <code><a href=#audio>audio</a></code>,
+     <code><a href=#the-embed-element>embed</a></code>, <code><a href=#the-iframe-element>iframe</a></code>, <code><a href=#the-img-element>img</a></code>,
+     <code><a href=#the-link-element>link</a></code>, <code><a href=#the-object-element>object</a></code>, <code><a href=#the-source-element>source</a></code>, or
+     <code><a href=#video>video</a></code> element, let <var title="">value</var> be a
+     plain literal, with the language information set from the
+     <a href=#language>language</a> of the element, if it is not
+     unknown.</li>
+
      <li>
 
       <p>For each name <var title="">name</var> in <var title="">element</var>'s <a href=#property-names>property names</a>, run the
@@ -66265,6 +66278,7 @@
   Henry Mason,
   Hugh Winkler,
   Ian Bicking,
+  Ian Davis,
   Ignacio Javier,
   Ivan Enderlin,
   Ivo Emanuel Gonçalves,

Modified: source
===================================================================
--- source	2009-05-12 00:25:42 UTC (rev 3092)
+++ source	2009-05-12 01:17:01 UTC (rev 3093)
@@ -46739,7 +46739,7 @@
     <dl class="triple">
      <dt>subject   <dd> <span>the document's current address</span>
      <dt>predicate <dd> <code title="">http://purl.org/dc/terms/title</code>
-     <dt>object    <dd> the <code>textContent</code> of <span>the <code>title</code> element</span>
+     <dt>object    <dd> the <code>textContent</code> of <span>the <code>title</code> element</span>, as a plain literal, with the language information set from the <span>language</span> of <span>the <code>title</code> element</span>, if it is not unknown.
     </dl>
 
    </li>
@@ -46813,7 +46813,7 @@
     <dl class="triple">
      <dt>subject   <dd> <span>the document's current address</span>
      <dt>predicate <dd> the concatenation of the string "<code title="">http://www.w3.org/1999/xhtml/vocab#</code>" and value of the element's <code title="attr-meta-name">name</code> attribute, <span>converted to lowercase</span>
-     <dt>object    <dd> the value of the element's <code title="attr-meta-content">content</code> attribute
+     <dt>object    <dd> the value of the element's <code title="attr-meta-content">content</code> attribute, as a plain literal, with the language information set from the <span>language</span> of the element, if it is not unknown.
     </dl>
 
    </li>
@@ -46934,6 +46934,19 @@
      title="">value</var>, and then replace <var title="">value</var>
      with the subject returned from those steps.</p></li>
 
+     <!-- could support <time> here somehow, though we'd have to
+     reserialise it, check if the <time> was valid, check if it had a
+     .date, a .time, a .timezone, etc. -->
+
+     <li><p>Otherwise, if <var title="">element</var> is not an
+     <code>a</code>, <code>area</code>, <code>audio</code>,
+     <code>embed</code>, <code>iframe</code>, <code>img</code>,
+     <code>link</code>, <code>object</code>, <code>source</code>, or
+     <code>video</code> element, 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
@@ -77738,6 +77751,7 @@
   Henry Mason,
   Hugh Winkler,
   Ian Bicking,
+  Ian Davis,
   Ignacio Javier,
   Ivan Enderlin,
   Ivo Emanuel Gonçalves,




More information about the Commit-Watchers mailing list