To see how easy the syntax would be to pull apart, and how well the
Media RSS vocabulary racked up in a entity/relation kind of model,
I've done some quick XSLT to transform the examples into RDF/XML, then
got visualizations from that. Morten Frederikson's (very handy)
anyfeed-RSS 1.0 stylesheet covers all the basic RSS 2.0 bits so I just
appended the media terms to that. The W3C's RDF Validator provides
node & arc visuals.
Rather than trying to reuse any existing RDF vocabularies/OWL
ontologies I've just flung the whole lot into a new namespace (with
the exception of foaf:Person, that was irresistable). I'm sure many of
the terms are already defined somewhere (I'll check SchemaWeb if I
The source output isn't very pretty, lots of redundant namespace
declarations and the rss: prefix used, but I can't remember how to get
rid of them...
I'd very have liked to have broken up this:
into something like:
but XSLT 1.0 is lousy for microparsing (could be done, but would take
much time and swearing).
Note there was a space character in the media namespace declaration in
the examples (had me puzzled for a while ;-)
Here are the examples - swap the number at the end for examples 1-5,
RSS 2.0 Examples:
RDF Graph (scroll down):
I've slung all the files in a zip too:
Generally the vocabulary looks like it works pretty nicely in
entity-relation modelling terms, as you can see from graphs. The
syntax for use with RSS 2.0 seems fairly reasonable (assuming you're
stuck with RSS 2.0).
Nits: I don't think the use of "url" is a good idea; the dc:valid
above is a pain in the parse; the following construct seems
inconsistent with the rest of the format (and also rather inflexible):
- isn't PICS alive again?