Skip to content

Instantly share code, notes, and snippets.

@justin
Created March 13, 2011 16:17
Show Gist options
  • Save justin/868209 to your computer and use it in GitHub Desktop.
Save justin/868209 to your computer and use it in GitHub Desktop.
Sample Characters RSS output that includes both updates and follow recommendations.
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns="http://backend.userland.com/rss2" xmlns:rss-foaf="http://rss-extensions.org/wiki/RSS-FOAF">
<channel>
<title>Justin Williams's Characters</title>
<link>http://carpeaqua.com/characters/justin.rss</link>
<description>An example of a simple RSS feed. This is the description of the feed itself, not an item.</description>
<!--
There are a set of RSS extensions on rss-extensions.org for FOAF.
http://rss-extensions.org/wiki/RSS-FOAF
In general I tend to defer to Brent on all things RSS, but it seems like a good place to
start.
The general premise is that you create an <item> with the FOAF data and the feed should
parse it as a relationship rather than a Characters post.
My feeling is that the readability of the RSS-FOAF stuff kind of sucks, and it seems to be
abandoned by its creator. We could improve it.
In our case, I'm using them to recommend 5 people to follow.
-->
<!-- //begin:recommendations -->
<item>
<title>Brent Simmons</title>
<link>http://inessential.com</link>
<description>Godfather of Mac RSS.</description>
<rss-foaf:type name="Person"/>
<rss-foaf:rel to="http://carpeaqua.com/characters/#Group_Characters"/>
</item>
<item>
<title>Guy English</title>
<link>http://kickingbear.com/</link>
<description>Mountain Man.</description>
<rss-foaf:type name="Person"/>
<rss-foaf:rel to="http://carpeaqua.com/characters/#Group_Characters"/>
</item>
<item>
<title>Ash Ponders</title>
<link>http://aptfolk.com/</link>
<description>Second Gear's Support Guru.</description>
<rss-foaf:type name="Person"/>
<rss-foaf:rel to="http://carpeaqua.com/characters/#Group_Employees"/>
</item>
<item>
<title>Eddie Wilson</title>
<link>http://eddit.com/</link>
<description>Pretty pixelator.</description>
<rss-foaf:type name="Person"/>
<rss-foaf:rel to="http://carpeaqua.com/characters/#Group_Employees"/>
</item>
<!-- Each person you follow above should be attached to one of the groups below -->
<item>
<title>Group: Characters</title>
<description>People contributing to Characters.</description>
<guid>http://carpeaqua.com/characters/#Group_Characters</guid>
<rss-foaf:group name="Chracters"/>
</item>
<item>
<title>Group: Second Gear Employees</title>
<description>These are the people that make cool stuff for Second Gear.</description>
<guid>http://carpeaqua.com/characters/#Group_Employees</guid>
<rss-foaf:group name="Employees"/>
</item>
<!-- //end:recommendations -->
<!-- //begin:updates -->
<!-- A Sample set of items for a Characters dataset -->
<item>
<title></title> <!-- Do we need a title? Feel's Pownce-y, which is a bad thing to me. -->
<!-- We need to to ensure Google friendliness so being able to reference a post is essential -->
<link>http://carepaqua.com/characters/5.html</link>
<description>It's not official until there are t-shirts.</description>
<guid>http://carepaqua.com/characters/5.html</guid>
</item>
<item>
<title></title>
<link>http://carepaqua.com/characters/4.html</link>
<description>What we really need is another technology blog written written by a young, white guy who sells sponsorships of his RSS feed.</description>
<guid>http://carepaqua.com/characters/4.html</guid>
</item>
<item>
<title></title>
<link>http://carepaqua.com/characters/3.html</link>
<description>@nick_harris Tussin fixes everything. Thanks for the tip! http://bit.ly/eS3AuH</description>
<guid>http://carepaqua.com/characters/3.html</guid>
</item>
<item>
<title></title>
<link>http://carepaqua.com/characters/2.html</link>
<description>How can Flash perform "exceedingly well" on the Motorola Xoom, but have "pretty choppy" HD video playback? http://shrbl.in/fA0hpc</description>
<guid>http://carepaqua.com/characters/2.html</guid>
</item>
<item>
<title></title>
<link>http://carepaqua.com/characters/1.html</link>
<description>It can't be a post-PC device until it doesn't require a PC to get started. http://skit.ch/be14</description>
<guid>http://carepaqua.com/characters/1.html</guid>
</item>
<!-- //end:updates -->
</channel>
</rss>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment