Difference between revisions of "Social Media"

From OpenOrg
Jump to: navigation, search
(Twitter)
(Twitter)
Line 26: Line 26:
  
 
   <rdf:Description rdf:about='....something...'>
 
   <rdf:Description rdf:about='....something...'>
     <oo:twitter_hashtag>#foo</oo:twitter_hashtag>
+
     <oo:twitterHashtag>#foo</oo:twitterHashtag>
 
   </rdf:Description>
 
   </rdf:Description>
  
Line 32: Line 32:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
We've created the twitter_hashtag in the open org namespace. A hashtag can be related to a concept, location, event, or anything. A combination of hashtags may be used in one literal to indicate that it is that combination of hashtags which is associated with that resource.
+
We've created the twitterHashtag in the open org namespace. A hashtag can be related to a concept, location, event, or anything. A combination of hashtags may be used in one literal to indicate that it is that combination of hashtags which is associated with that resource.
  
Having two oo:twitter_hashtag properties, however, would indicate that ''either'' is used to refer to the same thing (not recommended)
+
Having two oo:twitterHashtag properties, however, would indicate that ''either'' is used to refer to the same thing (not recommended)
  
 
== Flickr ==
 
== Flickr ==

Revision as of 16:59, 23 January 2011

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.

Namespaces

dct foaf oo

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:Description rdf:about='....something...'>
    <oo:twitterHashtag>#foo</oo:twitterHashtag>
 </rdf:Description>

</rdf:RDF> </syntaxhighlight>

We've created the twitterHashtag in the open org namespace. A hashtag can be related to a concept, location, event, or anything. A combination of hashtags may be used in one literal to indicate that it is that combination of hashtags which is associated with that resource.

Having two oo:twitterHashtag properties, however, would indicate that either is used to refer to the same thing (not recommended)

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?

WikiSysop 14:46, 11 January 2011 (UTC): Do Facebook define their own predicates for this?

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>