228 lines
11 KiB
HTML
Executable File
228 lines
11 KiB
HTML
Executable File
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
|
|
<head>
|
|
<title>RDF Site Summary 1.0 Modules: Content</title>
|
|
<link rel="stylesheet" type="text/css" href="../../style.css" />
|
|
</head>
|
|
<body>
|
|
<h1>RDF Site Summary 1.0 Modules: Content</h1>
|
|
|
|
<h2><a name="authors">Authors</a></h2>
|
|
<dl>
|
|
<dt><a href="mailto:begeddov@jfinity.com">Gabe Beged-Dov</a>,
|
|
<a href="http://www.jfinity.com">JFinity Systems LLC</a></dt>
|
|
<dt><a href="mailto:me@aaronsw.com">Aaron Swartz</a>,
|
|
<a href="http://www.aaronsw.com/">AaronSw.com</a></dt>
|
|
<dt><a href="mailto:vdv@dyomedea.com">Eric van der Vlist</a>,
|
|
<a href="http://www.dyomedea.com">Dyomedea</a></dt>
|
|
</dl>
|
|
|
|
<!-- Version -->
|
|
|
|
<h2><a name="version">Version</a></h2>
|
|
|
|
<p><strong>Latest Version:</strong> <a href="http://purl.org/rss/1.0/modules/content/">http://purl.org/rss/1.0/modules/content/</a></p>
|
|
|
|
<div class="version">DRAFT 2.01 2002-10-04 (Renamed headings - thanks, Bijan!) - <a href="mailto:me@aaronsw.com">ASw</a></div>
|
|
<div class="version">DRAFT 2.0 2002-08-06 (Added content:encoded -- not yet approved; changed affiliation) - <a href="mailto:me@aaronsw.com">AS</a></div>
|
|
<div class="version">1.02 2001-04-05 (Tweaked the copyright) <a href="mailto:aaron@theinfo.org">as</a></div>
|
|
<div class="version">1.01 2001-3-8 (Made content:encoding more clear) <a href="mailto:aaron@theinfo.org">as</a></div>
|
|
<div class="version">1.0 2001-3-8 (Approved by the WG and moved to standard)</div>
|
|
<div class="version">DRAFT 0.4 2001-2-6 (Cleaned up syntax and added encoding) <a href="mailto:aaron@theinfo.org">as</a></div>
|
|
<div class="version">DRAFT 0.31 2000-12-26 (Updated stylesheet) <a href="mailto:aaron@theinfo.org">as</a></div>
|
|
<div class="version">DRAFT 0.3 2000-12-13 (Removed content:stylesheet attribute; changed content:format to an rdf:resource) <a href="mailto:aaron@theinfo.org">as</a></div>
|
|
<div class="version">DRAFT 0.2 2000-08-17 (Added content:stylesheet attribute) <a href="mailto:aaron@theinfo.org">as</a></div>
|
|
<div class="version">DRAFT 0.1 2000-08-16</div>
|
|
|
|
<!-- Status -->
|
|
|
|
<h2><a name="status">Status</a></h2>
|
|
|
|
<p>
|
|
Section one is official, <a href="http://logicerror.com/rss-votes-content">approved 2001-3-1</a>.<br />
|
|
Section two is a draft, please send feedback to <a href="mailto:me@aaronsw.com">Aaron</a> or <a href="mailto:rss-dev@yahoogroups.com">the list</a>.
|
|
</p>
|
|
|
|
<!-- Rights -->
|
|
|
|
<h2><a name="rights">Rights</a></h2>
|
|
|
|
<p>
|
|
Copyright © 2000-2002 by the Authors.
|
|
</p>
|
|
<p>
|
|
Permission to use, copy, modify and distribute the RDF Site Summary
|
|
1.0 Content Module Specification and its accompanying documentation for any purpose
|
|
and without fee is hereby granted in perpetuity, provided that the
|
|
above copyright notice and this paragraph appear in all copies.
|
|
The copyright holders make no representation about the suitability
|
|
of the specification for any purpose. It is provided "as is"
|
|
without expressed or implied warranty.
|
|
</p>
|
|
<p>
|
|
This copyright applies to the RDF Site Summary 1.0 Content Module Specification
|
|
and accompanying documentation and does not extend to the RSS Module's
|
|
format itself.
|
|
</p>
|
|
|
|
<h2><a name="description">Description</a></h2>
|
|
|
|
<p>
|
|
A module for the actual content of websites, in multiple formats.
|
|
</p>
|
|
|
|
<h2><a name="namespaces">Namespace Declarations</a></h2>
|
|
|
|
<ul>
|
|
<li><b>xmlns:content="http://purl.org/rss/1.0/modules/content/"</b></li>
|
|
</ul>
|
|
|
|
<h2 id="syntax2">Updated Syntax</h2>
|
|
<p><strong>This section is a draft and has not yet been approved by the WG.</strong></p>
|
|
|
|
<h3>content:encoded</h3>
|
|
<p>An element whose contents are the entity-encoded or CDATA-escaped version of the content of the item. Example:</p>
|
|
|
|
<pre><content:encoded><![CDATA[<p>What a <em>beautiful</em> day!</p>]]></content:encoded></pre>
|
|
|
|
<h3>Example</h3>
|
|
|
|
<pre><?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<rdf:RDF
|
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
<span class="example-other">xmlns:content="http://purl.org/rss/1.0/modules/content/"</span>
|
|
xmlns="http://purl.org/rss/1.0/"
|
|
>
|
|
|
|
<channel rdf:about="http://example.org/rss.rdf">
|
|
<title>Example Feed</title>
|
|
<link>http://www.example.org</link>
|
|
<description>Simply for the purpose of demonstration.</description>
|
|
|
|
<items>
|
|
<rdf:Seq>
|
|
<rdf:li resource="http://example.org/item/" />
|
|
</rdf:Seq>
|
|
</items>
|
|
|
|
</channel>
|
|
|
|
<item rdf:about="http://example.org/item/">
|
|
<title>The Example Item</title>
|
|
<link>http://example.org/item/</link>
|
|
<span class="example-other"><content:encoded></span><![CDATA[<p>What a <em>beautiful</em> day!</p>]]><span class="example-other"></content:encoded></span>
|
|
</item>
|
|
</rdf:RDF></pre>
|
|
|
|
<h2><a name="syntax">Original Syntax</a></h2>
|
|
|
|
<h3>content:items</h3>
|
|
<p><strong>content:items</strong> is a sub-element of an RSS item or channel. It is used as follows:</p>
|
|
<pre><content:items>
|
|
<rdf:Bag>
|
|
<rdf:li>
|
|
<content:item>
|
|
<span class="example-other"><!-- Use content:item as described below --></span>
|
|
</content:item>
|
|
</rdf:li>
|
|
<span class="example-other"><!-- Optionally, include as many more content:item elements as needed. --></span>
|
|
</rdf:Bag>
|
|
</content:items></pre>
|
|
|
|
<h3>content:item</h3>
|
|
<p>A content:item describes a single version of the content for its parent item. If the content is available on the Web at a specific address, content:item has an rdf:about attribute containg the URI of the content.</p>
|
|
|
|
<pre>
|
|
<span class="example-other"><!-- Without a URI: --></span>
|
|
<content:item>
|
|
<span class="example-other"><!-- information about the item goes here --></span>
|
|
</content:item>
|
|
|
|
<span class="example-other"><!-- With a URI: --></span>
|
|
<content:item <span class="example-rdf">rdf:about="http://example.org/item/content.png"</span>>
|
|
<span class="example-other"><!-- information about the item goes here --></span>
|
|
</content:item>
|
|
</pre>
|
|
|
|
<p>A content:item can include the following sub-elements:</p>
|
|
|
|
<h3>content:format</h3>
|
|
|
|
<p><strong>Required.</strong> An empty element with an rdf:resource attribute that points to a URI representing the format of the content:item. Suggested best practice is to use <a href="http://www.rddl.org/natures">the list of RDDL natures</a>.</p>
|
|
|
|
<pre><content:format rdf:resource="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict" /></pre>
|
|
|
|
<h3>rdf:value</h3>
|
|
<p><strong>Required if no URI is defined for the content:item.</strong> Includes the content of the content:item. This is encoded as specified by content:encoding. If the content is included as unencoded XML, then the attribute rdf:parseType="Literal" should be used as to not confuse RDF parsers.</p>
|
|
|
|
<h3>content:encoding</h3>
|
|
<p><strong>Optional.</strong> An empty element with an rdf:resource attribute that points to a URI representing the encoding of the content:item. An encoding is a reversable method of including content within the RSS file.</p>
|
|
|
|
<p>If no encoding is specified, it should be assumed that the content is included as character data, like so:</p>
|
|
|
|
<pre><span class="example-rdf"><rdf:value></span>This is &lt;em&gt;very&lt;/em&gt; cool.<span class="example-rdf"></rdf:value></span></pre>
|
|
|
|
<p>or</p>
|
|
|
|
<pre><span class="example-rdf"><rdf:value></span><![CDATA[This is <em>very</em> cool.]]!><span class="example-rdf"></rdf:value></span></pre>
|
|
|
|
<p>If the document is encoded as well-formed XML, the URI <a href="http://www.w3.org/TR/REC-xml#dt-wellformed">http://www.w3.org/TR/REC-xml#dt-wellformed</a> should be used. An example of well-formed XML is:</p>
|
|
|
|
<pre><span class="example-rdf"><rdf:value></span>This is <em>very</em> cool.<span class="example-rdf"></rdf:value></span></pre>
|
|
|
|
<p>An example of a content:encoding exlement is:</p>
|
|
|
|
<pre><content:encoding rdf:resource="http://www.w3.org/TR/REC-xml#dt-wellformed" /></pre>
|
|
|
|
<h3><a name="example">Example</a></h3>
|
|
|
|
<pre><?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<rdf:RDF
|
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
<span class="example-other">xmlns:content="http://purl.org/rss/1.0/modules/content/"</span>
|
|
xmlns="http://purl.org/rss/1.0/"
|
|
>
|
|
|
|
<channel rdf:about="http://example.org/rss.rdf">
|
|
<title>Example Feed</title>
|
|
<link>http://www.example.org</link>
|
|
<description>Simply for the purpose of demonstration.</description>
|
|
|
|
<items>
|
|
<rdf:Seq>
|
|
<rdf:li resource="http://example.org/item/" />
|
|
</rdf:Seq>
|
|
</items>
|
|
|
|
</channel>
|
|
|
|
<item rdf:about="http://example.org/item/">
|
|
<title>The Example Item</title>
|
|
<link>http://example.org/item/</link>
|
|
<span class="example-other"><content:items></span><span class="example-rdf"><rdf:Bag>
|
|
<rdf:li></span><span class="example-other"><content:item>
|
|
<content:format</span> <span class="example-rdf">rdf:resource="http://www.w3.org/1999/xhtml"</span><span class="example-other"> />
|
|
<content:encoding</span> <span class="example-rdf">rdf:resource="http://www.w3.org/TR/REC-xml#dt-wellformed"</span> <span class="example-other">/></span>
|
|
<span class="example-rdf"><rdf:value rdf:parseType="Literal" xmlns="http://www.w3.org/1999/xhtml"></span>
|
|
<em>This is <strong>very</strong></em> <strong>cool</strong>.
|
|
<span class="example-rdf"></rdf:value></span>
|
|
<span class="example-other"></content:item></span><span class="example-rdf"></rdf:li><rdf:li></span><span class="example-other"><content:item>
|
|
<content:format</span> <span class="example-rdf">rdf:resource="http://www.w3.org/TR/html4/"</span> <span class="example-other">/></span>
|
|
<span class="example-rdf"><rdf:value></span><![CDATA[<em>This is<strong>very</em> cool</strong>.]]><span class="example-rdf"></rdf:value></span>
|
|
<span class="example-other"></content:item></span><span class="example-rdf"></rdf:li><rdf:li></span><span class="example-other"><content:item rdf:about="http://example.org/item/content-here.txt">
|
|
<content:format rdf:resource="http://www.isi.edu/in-notes/iana/assignments/media-types/text/plain" /></span>
|
|
<span class="example-rdf"><rdf:value></span>This is &gt;very cool&lt;.<span class="example-rdf"></rdf:value></span>
|
|
<span class="example-other"></content:item></span><span class="example-rdf"></rdf:li><rdf:li></span><span class="example-other"><content:item rdf:about="http://example.org/item/content.svg">
|
|
<content:format rdf:resource="http://www.w3.org/2000/svg" />
|
|
</content:item></span><span class="example-rdf"></rdf:li>
|
|
</rdf:Bag></span><span class="example-other"></content:items></span>
|
|
|
|
</item>
|
|
|
|
</rdf:RDF></pre>
|
|
</body>
|
|
</html>
|