Re: Re: mod_enclosures proposal

Suzan Foster <su-ZjWWLV22F01mR6Xm/[email protected]>
Newsgroups gmane.network.syndication.rss.devel
Message-ID <[email protected]>
On Nov 17, 2004, at 7:25 AM, [email protected] wrote:

> --- In [email protected], "Bill Kearney" <ml_yahoo@i...> wrote:
>
>> If it were made a bit more RDF-like it'd be nice.
>
> We worked little bit on the proposal and now it
> includes RDF schema and more RSS 1.0 examples. New
> version could be downloaded here:
>
> http://www.crocodile.org/lord/RSSenclosures/RSSenclosures.pdf

I saw in your RDF schema that you have enc:enclosures as subclass of 
rdf:Seq:

<rdfs:Class rdf:about="#enclosures" rdfs:label="Enclosures">
   <rdfs:subClassOf rdf:resource="&rdf;Seq"/>
</rdfs:Class>

Whilst in your example you don't use it as such:

<enc1:enclosures 
rdf:about="http://crocodile.org/ns/rss/1.0/enc/ex/#enclosures_music">
   <enc1:kind>alternative</enc1:kind>
   <enc1:children>
     <rdf:Seq>
       <rdf:li 
rdf:resource="http://crocodile.org/ns/rss/1.0/enc/ex/#matrosi.mp3" />
       <rdf:li 
rdf:resource="http://crocodile.org/ns/rss/1.0/enc/ex/#matrosi.ra" />
     </rdf:Seq>
   </enc1:children>
</enc1:enclosures>

Using it as subclass of rdf:Seq would look more like:

<enc1:children>
   <enc1:enclosures>
     <rdf:li 
rdf:resource="http://crocodile.org/ns/rss/1.0/enc/ex/#matrosi.mp3" />
     <rdf:li 
rdf:resource="http://crocodile.org/ns/rss/1.0/enc/ex/#matrosi.ra" />
   </enc1:enclosures>
</enc1:children>

Looking at your <enc1:kind/> i think you can implement this with 
standard RDF collections:

<!-- Ordered list -->
<enc1:children>
   <rdf:Seq>
     <rdf:li 
rdf:resource="http://crocodile.org/ns/rss/1.0/enc/ex/#matrosi.mp3" />
     <rdf:li 
rdf:resource="http://crocodile.org/ns/rss/1.0/enc/ex/#matrosi.ra" />
   </rdf:Seq>
</enc1:children>

<!-- Unordered list -->
<enc1:children>
   <rdf:Bag>
     <rdf:li 
rdf:resource="http://crocodile.org/ns/rss/1.0/enc/ex/#matrosi.mp3" />
     <rdf:li 
rdf:resource="http://crocodile.org/ns/rss/1.0/enc/ex/#matrosi.ra" />
   </rdf:Bag>
</enc1:children>

<!-- Alternatives -->
<enc1:children>
   <rdf:Alt>
     <rdf:li 
rdf:resource="http://crocodile.org/ns/rss/1.0/enc/ex/#matrosi.mp3" />
     <rdf:li 
rdf:resource="http://crocodile.org/ns/rss/1.0/enc/ex/#matrosi.ra" />
   </rdf:Alt>
</enc1:children>

Using my own schema i would most likely take the following approach:

<rss:item>
   ...
   <enc:enclosures>
     <rdf:Seq>
       <rdf:li>
         <enc:Enclosure>
           <enc:url>http://foo.bar/baz.mp3</enc:url>
           <enc:type>audio/mpeg</enc:type>
         </enc:Enclosure>
       </rdf:li>
       <rdf:li>
         <enc:Enclosure>
           <enc:url>http://foo.bar/bat.mp3</enc:url>
           <enc:type>audio/mpeg</enc:type>
         </enc:Enclosure>
       </rdf:li>
       <rdf:li>
         <enc:Enclosure>
           <enc:url>http://foo.bar/cat.mp3</enc:url>
           <enc:type>audio/mpeg</enc:type>
         </enc:Enclosure>
       </rdf:li>
     </rdf:Seq>
   </enc:enclosures>
</rss:item>

This would only need the addition of an <enc:enclosures/> property in 
my schema.

Regards,
Suzan Foster.


[Non-text portions of this message have been removed]



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/rss-dev/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.