Social Media

From OpenOrg
Revision as of 15:38, 11 January 2011 by WikiSysop (talk | contribs) (Social media)
Jump to: navigation, search

Social media

Lots of institutions have a social media presence on such platforms as Twitter and Facebook. Most of these can be expressed using foaf:OnlineAccount and friends.

A social media account can be associated with a person, an organisation, or a project.

Twitter

<syntaxhighlight lang="xml"> <rdf:RDF …>

 <rdf:Description rdf:about="http://id.example.ac.uk/">
   …
   <foaf:account>
     <foaf:OnlineAccount>
       <foaf:accountServiceHomepage rdf:resource="http://www.twitter.com/"/>
       <foaf:accountName>UniOfExample</foaf:accountName>
       <foaf:accountProfilePage rdf:resource="http://www.twitter.com/UniOfExample"/>
     </foaf:OnlineAccount>
   </foaf:account>
 </rdf:Description>

</rdf:RDF> </syntaxhighlight>

Flickr

<syntaxhighlight lang="xml"> <rdf:RDF …>

 <rdf:Description rdf:about="http://id.example.ac.uk/">
   …
   <foaf:account>
     <foaf:OnlineAccount>
       <foaf:accountServiceHomepage rdf:resource="http://www.flickr.com/"/>
       <foaf:accountName>UniOfExample</foaf:accountName>
       <foaf:accountProfilePage rdf:resource="http://www.flickr.com/photos/UniOfExample"/>
     </foaf:OnlineAccount>
   </foaf:account>
 </rdf:Description>

</rdf:RDF> </syntaxhighlight>

Facebook

TODO: Needs thinking.

Facebook pages and groups aren't online accounts, so don't fit in the foaf:OnlineAccount concept. foaf:page is probably too general. Thoughts?

Blogs and news feeds

TODO: Needs thinking, too. Does the following look okay?

<syntaxhighlight lang="xml"> <rdf:RDF …>

 <rdf:Description rdf:about="http://id.example.ac.uk/">
   …
   <foaf:weblog>
     <rdf:Description>
       <rdfs:label>Example University News</rdfs:label>
       <dcterms:title>Example University News</dcterms:title>
       <dcterms:hasFormat>
         <dcterms:Document rdf:about="http://www.example.com/news.html">
           <dcterms:format>text/html</dcterms:format>
         </dcterms:Document>
       </dcterms:hasFormat>
       <dcterms:hasFormat>
         <dcterms:Document rdf:about="http://www.example.com/news.rss">
           <dcterms:format>application/rss+xml</dcterms:format>
         </dcterms:Document>
       </dcterms:hasFormat>
       <dcterms:hasFormat>
         <dcterms:Document rdf:about="http://www.example.com/news.rdf">
           <dcterms:format>application/rdf+xml</dcterms:format>
         </dcterms:Document>
       </dcterms:hasFormat>
     </rdf:Description>
   </foaf:weblog>
 </rdf:Description>

</rdf:RDF>