Hammond, Tony
2007-01-25 14:41:40 UTC
Hi:
Am looking for some feedback on an approach we are looking at to upgrade our
current RSS feeds (RSS 1.0) to a wider (and neutral) offering (RSS 1.0, RSS
2.0, Atom) which supports both machine and human readable views. Demo
versions (largely complete; filenames just temporary) are available at
RSS 1.0 - http://nurture.nature.com/tony/rss/nature_rdf.rss
RSS 2.0 - http://nurture.nature.com/tony/rss/nature_rss.rss
Atom - http://nurture.nature.com/tony/rss/nature_atom.rss
Some notes below.
Cheers,
Tony
RSS 1.0
Human - Seems to be simply a question of adding in XHTML markup as a CDATA
section within a <content:encoded> element.
Machine - RDF properties already provide for this.
RSS 2.0 - (I know, but still evaluating)
Human - We follow general practice and add XHTML markup as a CDATA section
within the <description> element.
Machine - We use XML namespaces and mimic the RDF properties of RSS 1.0.
Atom - (See skeleton below)
Human - We add in XHTML markup within a <content type="xhtml"> element.
Machine - We add in a complete RSS 1.0 item (sans <content:encoded> element)
within a <content type="application/rdf+xml"> element. This seems preferable
to defining arbitrary RDF/XML and provides best fit with the RSS 1.0 feed.
In essence the Atom entries contain standalone RDF islands along with an
XHTML view.
One question would be whether to explicitly namespace the RSS elements (e.g.
"rss") or just to use a default XML namespace.
###
Atom (Skeleton)
<feed xmlns="">
<title type="text"></title>
<updated/>
<id/>
<link rel="alternate" type="" href=""/>
<link rel="self" type="" href=""/>
<rights/>
<entry/>
</feed>
<entry>
<title/>
<link rel="alternate" type="" href=""/>
<id/>
<updated/>
<published/>
<author>
<name/>
<uri/>
<email/>
</author>
<contributor>
<name/>
</contributor>
<content type="xhtml" xml:lang="">
<div xmlns="http://www.w3.org/1999/xhtml">
</div>
</content>
<content type="application/rdf+xml">
<rdf:Description xmlns:rss="..." xmlns:rdf="..." xmlns:dc="..." ... >
<rss:item rdf:about="http://...">
<rss:title/>
<rss:ink/>
<rss:description/>
<dc:title/>
<dc:creator/>
<dc:identifier/>
<dc:source/>
...
</rss:item>
</rdf:Description>
</content>
</entry>
###
********************************************************************************
DISCLAIMER: This e-mail is confidential and should not be used by anyone who is
not the original intended recipient. If you have received this e-mail in error
please inform the sender and delete it from your mailbox or any other storage
mechanism. Neither Macmillan Publishers Limited nor any of its agents accept
liability for any statements made which are clearly the sender's own and not
expressly made on behalf of Macmillan Publishers Limited or one of its agents.
Please note that neither Macmillan Publishers Limited nor any of its agents
accept any responsibility for viruses that may be contained in this e-mail or
its attachments and it is your responsibility to scan the e-mail and
attachments (if any). No contracts may be concluded on behalf of Macmillan
Publishers Limited or its agents by means of e-mail communication. Macmillan
Publishers Limited Registered in England and Wales with registered number 785998
Registered Office Brunel Road, Houndmills, Basingstoke RG21 6XS
********************************************************************************
Am looking for some feedback on an approach we are looking at to upgrade our
current RSS feeds (RSS 1.0) to a wider (and neutral) offering (RSS 1.0, RSS
2.0, Atom) which supports both machine and human readable views. Demo
versions (largely complete; filenames just temporary) are available at
RSS 1.0 - http://nurture.nature.com/tony/rss/nature_rdf.rss
RSS 2.0 - http://nurture.nature.com/tony/rss/nature_rss.rss
Atom - http://nurture.nature.com/tony/rss/nature_atom.rss
Some notes below.
Cheers,
Tony
RSS 1.0
Human - Seems to be simply a question of adding in XHTML markup as a CDATA
section within a <content:encoded> element.
Machine - RDF properties already provide for this.
RSS 2.0 - (I know, but still evaluating)
Human - We follow general practice and add XHTML markup as a CDATA section
within the <description> element.
Machine - We use XML namespaces and mimic the RDF properties of RSS 1.0.
Atom - (See skeleton below)
Human - We add in XHTML markup within a <content type="xhtml"> element.
Machine - We add in a complete RSS 1.0 item (sans <content:encoded> element)
within a <content type="application/rdf+xml"> element. This seems preferable
to defining arbitrary RDF/XML and provides best fit with the RSS 1.0 feed.
In essence the Atom entries contain standalone RDF islands along with an
XHTML view.
One question would be whether to explicitly namespace the RSS elements (e.g.
"rss") or just to use a default XML namespace.
###
Atom (Skeleton)
<feed xmlns="">
<title type="text"></title>
<updated/>
<id/>
<link rel="alternate" type="" href=""/>
<link rel="self" type="" href=""/>
<rights/>
<entry/>
</feed>
<entry>
<title/>
<link rel="alternate" type="" href=""/>
<id/>
<updated/>
<published/>
<author>
<name/>
<uri/>
<email/>
</author>
<contributor>
<name/>
</contributor>
<content type="xhtml" xml:lang="">
<div xmlns="http://www.w3.org/1999/xhtml">
</div>
</content>
<content type="application/rdf+xml">
<rdf:Description xmlns:rss="..." xmlns:rdf="..." xmlns:dc="..." ... >
<rss:item rdf:about="http://...">
<rss:title/>
<rss:ink/>
<rss:description/>
<dc:title/>
<dc:creator/>
<dc:identifier/>
<dc:source/>
...
</rss:item>
</rdf:Description>
</content>
</entry>
###
********************************************************************************
DISCLAIMER: This e-mail is confidential and should not be used by anyone who is
not the original intended recipient. If you have received this e-mail in error
please inform the sender and delete it from your mailbox or any other storage
mechanism. Neither Macmillan Publishers Limited nor any of its agents accept
liability for any statements made which are clearly the sender's own and not
expressly made on behalf of Macmillan Publishers Limited or one of its agents.
Please note that neither Macmillan Publishers Limited nor any of its agents
accept any responsibility for viruses that may be contained in this e-mail or
its attachments and it is your responsibility to scan the e-mail and
attachments (if any). No contracts may be concluded on behalf of Macmillan
Publishers Limited or its agents by means of e-mail communication. Macmillan
Publishers Limited Registered in England and Wales with registered number 785998
Registered Office Brunel Road, Houndmills, Basingstoke RG21 6XS
********************************************************************************