Dave (cerealnumber) wrote,
Dave
cerealnumber

Tag Metadata in Feeds

As noted previously, my page consists of the aggregation of my various feeds and in working on that code recently it was again brought to my attention that everyone has different ways of representing tag metadata in feeds. I made up a list of how my various feed sources represent tags and list that data here so that it might help others in the future.

Tag markup from various sources
SourceFeed TypeTag Markup SchemeOne Tag Per ElementTag Scheme URIHuman / Machine NamesExample Markup
LiveJournalAtomatom:categoryyesnono<category term="technical"/>, (source)
LiveJournalRSS 2.0rss2:categoryyesnono<category>technical</category>
(soure)
WordPressRSS 2.0rss2:categoryyesnono<category><![CDATA[Burning Man]]></category>, (source)
DeliciousRSS 1.0dc:subjectnonono<dc:subject>photosynth photos 3d tool</dc:subject>
(source)
DeliciousRSS 2.0rss2:categoryyesyesno<category
domain="http://delicious.com/SequelGuy/">
hulu
</category>

(source)
FlickrAtomatom:categoryyesyesno<category
term="seattle"
scheme="http://www.flickr.com/photos/tags/" />

(source)
FlickrRSS 2.0media:categorynoyesno<media:category
scheme="urn:flickr:tags">
seattle washington baseball mariners
</media:category>

(source)
YouTubeRSS 2.0media:categorynonono<media:category
label="Tags">
bunny rabbit yawn cadbury
</media:category>

(source)
LibraryThingRSS 2.0No explicit tag metadata.nononon/a, (source)
Tag markup scheme
Tag Markup SchemeNotesExample
Atom Category
atom:category
xmlns:atom="http://www.w3.org/2005/Atom"
category/@term
Required category name.
category/@scheme
Optional IRI id'ing the categorization scheme.
category/@label
Optional human readable category name.
<atom:category
term="catName"
scheme="tag:deletethis.net,2008:tagscheme"
label="category name in human readable format"/>
RSS 2.0 category
rss2:category
empty namespace
category/@domain
Optional string id'ing the categorization scheme.
category/text()
Required category name. The value of the element is a forward-slash-separated string that identifies a hierarchic location in the indicated taxonomy. Processors may establish conventions for the interpretation of categories.
<category
domain="tag:deletethis.net,2008:tagscheme">
MSFT</category>
Yahoo Media RSS Module category
media:category
xmlns:media="http://search.yahoo.com/mrss/"
category/text()
Required category name.
category/@domain
Optional string id'ing the categorization scheme.
<media:category
scheme="http://dmoz.org"
label="Ace Ventura - Pet Detective">
Arts/Movies/Titles/A/Ace_Ventura_Series/Ace_Ventura_-_Pet_Detective</media:category>
Dublin Core subject
dc:subject
xmlns:dc="http://purl.org/dc/elements/1.1/"
subject/text()
Required category name. Typically, the subject will be represented using keywords, key phrases, or classification codes. Recommended best practice is to use a controlled vocabulary.
<dc:subject>humor</dc:subject>

Update 2009-9-14: Added WordPress to the Tag Markup table and namespaces to the Tag Markup Scheme table.

Tags: atom, delicious, feed, media, rss, tag, technical, yahoo, youtube
Subscribe
  • Post a new comment

    Error

    Comments allowed for friends only

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments