RSS - Podcast
RSS, (Rich Site Summary o Really Simple Syndication), è un formato per esporre i contenuti per chi pubblica informazioni su Internet. È parte del progetto XML e aderisce alle specifiche del W3C. Un documento RSS detto anche RSS feed è un elenco di elementi caratterizzati da un titolo, un link e una breve descrizione, ed a volte eventuali altre informazioni.
Esistono più standanrd per creare documenti RSS, di seguito sono riportati degli esempi con ALCUNI dei campi possibili:
RSS 2.0
è formato da items che rappresentano le informazioni, raggruppati in più channels che rappresentano degli argomenti per categorizzare le informazioni.
INTESTAZIONE:
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
PER OGNI CHANNELS
<channel>
<title>TITOLO DEL CHANNEL</title>
<link>LINK DEL CHANNEL</link>
<description>DESCRIZIONE DEL CHANNEL</description>
<language>it-IT</language>
<item>...........
</channel>
PERO OGNI ELEMENTO:
<item>
<title>TITOLO DELL'ITEM</title>
<link>LINK DELL'ITEM</link>
<description>
DESCRIZIONE DELL'ITEM
</description>
<guid>IDENTIFICATIVO UNIVOCO DELL'ITEM AD ES: IDSERVER/IDITEM</guid>
<pubDate>DATA DI PUBBLICAZIONE DELL'ITEM</pubDate>
<lastUpdate>DATA DELL'ULTIMO AGGIORNAMENTO DELL'ITEM</lastUpdate>
</item>
ATOM (RFC 4287)
INTESTAZIONE
<?xml version="1.0" encoding="utf-8" ?>
<feed xmlns="http://www.w3.org/2005/Atom" >
<title>TITOLO DEL FEED</title>
<id>IDENTIFICATIVO DEL FEED ad es: la url</id>
<link rel="self" type="application/atom+xml" href="LINK AL FEED"/>
<link rel="first" type="application/atom+xml" href="LINK DEL PRIMO FEED"/>
<link rel="next" type="application/atom+xml" href="LINK AL SUCCESSIVO FEED"/>
<link rel="last" type="application/atom+xml" href="LINK ALL'ULTIMA ENTRY"/>
<link rel="alternate" type="text/html" href="LINK A RISORSA ALTERNATIVA"/>
<updated>2011-01-22T16:31:45Z</updated>
<entry>......................
</feed>
SINGOLE ENTRY
<entry>
<title>TITOLO</title>
<author>
<name>NOME AUTORE</name>
<uri>SITO DELL'AUTORE</uri>
</author>
<id>IDENTIFICATIVO DELL'ENTRY ad es: sito/ID</id>
<published>DATA PUBBLICAZIONE DELL'ENTRY</published>
<updated>DATA ULTIMO AGGIORNAMENTO DELL'ENTRY</updated>
<link rel="self" type="application/atom+xml" href="LINK DELL'ENTRY"/>
<link rel="up" type="application/atom+xml" href="LINK DEL FEED "/>
<link rel="alternate" type="text/html" href="LINK A RISORSA ALTERNATIVA"/>
<content type="xhtml">
DESCRIZIONE DELL'ENTRY
</content>
</entry>
Podcast
i podcast sono dei feed con allegato un file audio o video. i più semplici sono realizzati aggiungendo all'<item> di RSS 2.0 un tag di questa forma:
<enclosure url="UrlFile.mp3" length="grandezzaInByte" type="audio/mpeg"/>
oppure, nel caso si voglia rendere il podcast compstibile con iTunes, si utilizzano dei tag speciali del www.itunes.com/dtds/podcast-1.0.dtd :
<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
<channel>
<title>All About Everything</title>
<link>http://www.example.com/podcasts/everything/index.html</link>
<language>en-us</language>
<copyright>℗ & © 2005 John Doe & Family</copyright>
<itunes:subtitle>A show about everything</itunes:subtitle>
<itunes:author>John Doe</itunes:author>
<itunes:summary>All About Everything is a show about everything. Each week we dive into any subject known to man and talk about it as much as we can. Look for our Podcast in the iTunes Store</itunes:summary>
<description>All About Everything is a show about everything. Each week we dive into any subject known to man and talk about it as much as we can. Look for our Podcast in the iTunes Store</description>
<itunes:owner>
<itunes:name>John Doe</itunes:name>
<itunes:email>john.doe@example.com</itunes:email>
</itunes:owner>
<itunes:image href="http://example.com/podcasts/everything/AllAboutEverything.jpg" />
<itunes:category text="Technology">
<itunes:category text="Gadgets"/>
</itunes:category>
<itunes:category text="TV & Film"/>
<item>
<title>Shake Shake Shake Your Spices</title>
<itunes:author>John Doe</itunes:author>
<itunes:subtitle>A short primer on table spices</itunes:subtitle>
<itunes:summary>This week we talk about salt and pepper shakers, comparing and contrasting pour rates, construction materials, and overall aesthetics. Come and join the party!</itunes:summary>
<itunes:image href="http://example.com/podcasts/everything/AllAboutEverything/Episode1.jpg" />
<enclosure url="http://example.com/podcasts/everything/AllAboutEverythingEpisode3.m4a" length="8727310" type="audio/x-m4a" />
<guid>http://example.com/podcasts/archive/aae20050615.m4a</guid>
<pubDate>Wed, 15 Jun 2005 19:00:00 GMT</pubDate>
<itunes:duration>7:04</itunes:duration>
<itunes:keywords>salt, pepper, shaker, exciting</itunes:keywords>
</item>
</channel>
</rss>
- The atom syndicate format (Link)
- RSS 2.0 definition (Link)
- howto per fare un podcast per iTunes (Link)