Social Media

From OpenOrg
Revision as of 15:45, 11 January 2011 by WikiSysop (talk | contribs) (Blogs and news feeds)
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?

WikiSysop 14:45, 11 January 2011 (UTC): Not quite. I'm not 100% convinced a news feed and weblog equate, but also foaf:weblog should link to a document (if we care about domains/ranges). We also only talk here about how to /relate/ social media to orgs/people/groups. I think later we might want to explore SIOC, but not today!

<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>