[doap-interest] DOAP properties

Danny Ayers danny666 at virgilio.it
Tue Aug 17 08:32:29 BST 2004


Brian Skahan wrote:

>Is there a good way to include a pointer to a news feed (RSS/RDF/Atom)
>for a project?  Maybe another rdf schema that could be included.
>  
>
I'm not 100% sure about using it for RSS 2.0 & Atom (foaf:Document 
maybe?), but RSS 1.0's channel seems ideal for RDF/XML feeds:

<Project xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:foaf="http://xmlns.com/foaf/0.1/"
    xmlns="http://usefulinc.com/ns/doap#"
    xmlns:rss="http://purl.org/rss/1.0/">

  <name>DOAP</name>
  <rdfs:seeAlso>
     <channel rdf:about="http://usefulinc.com/doap/news/rss" />
  </rdfs:seeAlso>
...

The rdfs:seeAlso is needed because rss:channel is an rdfs:Class, despite 
it's lower-case naming.

The feed of a personal blog could be added to the info about the person 
(following the FOAF/Planet RDF blogroll style) :
...
  <maintainer>
  <foaf:Person>
    <foaf:name>Edd Dumbill</foaf:name>
    <foaf:homepage rdf:resource="http://usefulinc.com/edd" />
    <foaf:weblog>
      <foaf:Document rdf:about="http://usefulinc.com/edd/blog"> 
        <rdfs:seeAlso>
          <rss:channel rdf:about="http://usefulinc.com/edd/blog/rss" />
        </rdfs:seeAlso>
      </foaf:Document>
    </foaf:weblog>
  </foaf:Person>
  </maintainer>

...
</Project>

As always, check the validator (http://www.w3.org/RDF/Validator/) before 
publishing!

Cheers,
Danny.

-- 

Raw
http://dannyayers.com




More information about the doap-interest mailing list