Skip to content

Commit

Permalink
[t] (0) Add language information to the RDF output. (credit: id)
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@3093 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed May 12, 2009
1 parent 325e5fc commit 797c426
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 4 deletions.
18 changes: 16 additions & 2 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -41388,7 +41388,7 @@ document.body.appendChild(outer);</pre>

<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>
Expand Down Expand Up @@ -41449,7 +41449,7 @@ document.body.appendChild(outer);</pre>

<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>
Expand Down Expand Up @@ -41533,6 +41533,19 @@ document.body.appendChild(outer);</pre>
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
Expand Down Expand Up @@ -66265,6 +66278,7 @@ S SPACER STRIKE TT U -->
Henry Mason,
Hugh Winkler,
Ian Bicking,
Ian Davis,
Ignacio Javier,
Ivan Enderlin,
Ivo Emanuel Gon&ccedil;alves,
Expand Down
18 changes: 16 additions & 2 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -46739,7 +46739,7 @@ document.body.appendChild(outer);</pre>
<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>
Expand Down Expand Up @@ -46813,7 +46813,7 @@ document.body.appendChild(outer);</pre>
<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>
Expand Down Expand Up @@ -46934,6 +46934,19 @@ document.body.appendChild(outer);</pre>
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
Expand Down Expand Up @@ -77738,6 +77751,7 @@ S SPACER STRIKE TT U -->
Henry Mason,
Hugh Winkler,
Ian Bicking,
Ian Davis,
Ignacio Javier,
Ivan Enderlin,
Ivo Emanuel Gon&ccedil;alves,
Expand Down

0 comments on commit 797c426

Please sign in to comment.