RSS 1.0 Enclosures - RSS
Really Simple Syndication
 
Copyright 2003-4 Randy Charles Morin
RSS
<< Previous Main Next >>
Fri, 05 Nov 2004 16:22:08 GMT
RSS 1.0 Enclosures

Danny Ayers: Suzan Foster has a schema (announcement) for media “enclosures” with RSS 1.0 feeds.

<rss:item>
   ...
   <enc:enclosure>
     <enc:Enclosure>
       <enc:type>foo/bar</enc:type>
       <enc:length>65536</enc:length>
       <enc:url>http://foo.bar/baz</enc:url>
     </enc:Enclosure>
   </enc:enclosure>
</rss:item>

Randy: Great idea! Note, I don't understand the uppercase E enc:Enclosure inside the lowercase e enc:enclosure.

Reader Comments Subscribe
Thanks for the ref.

enc:enclosure is a property, enc:Enclosure is (an instance of) a class, you could read this something like:

item hasEnclosure Enclosure

There's a structural interpretation going on, commonly known as striping when you have this style of RDF/XML : node -edge-> node -edge-> node etc.

rss:item is a node (actually a resource, it has an associated URI  though I missed that off the example, d'oh), enc:enclosure is an edge, enc:Enclosure corresponds to a  node (actually a blank node in Suzan's vocab as it doesn't have a directly  associated resource).

Hope that makes some kind of sense.




 



Is this common in other RDF vocabularies?

Randy

Type "339":
Top Articles
  1. Unblock MySpace
  2. MySpace
  3. FaceParty, the British MySpace
  4. del.icio.us and sex.com
  5. Blocking Facebook and MySpace
  1. Review of RSS Readers
  2. MySpace Layouts
  3. RSS Stock Ticker
  4. RSS Gets an Enema
  5. Google Reader rejects del.icio.us