Difference between revisions of "WebSchemas/SocialAccountProperty"

From W3C Wiki
Jump to: navigation, search
(first cut socialAccount property)
 
(example)
Line 15: Line 15:
 
* Language of the socialAccount could be roughly inferred from http://schema.org/availableLanguage on ServiceChannel or ContactPoint.
 
* Language of the socialAccount could be roughly inferred from http://schema.org/availableLanguage on ServiceChannel or ContactPoint.
 
* The property does not mandate 'public profile' since account status settings can easily change. As with all personally identifying information, publishers should take care when describing other people.
 
* The property does not mandate 'public profile' since account status settings can easily change. As with all personally identifying information, publishers should take care when describing other people.
 +
 +
==Examples==
 +
 +
===A Person, their twitter account and a wikipedia page===
 +
 +
''Microdata'':
 +
<syntaxhighlight lang="html4strict">
 +
<div itemtype="http://schema.org/Person">
 +
<span itemprop="name">Stephen Fry</span> (<a itemprop="url" href="http://www.stephenfry.com/">stephenfry.com</a>,
 +
<a itemprop="socialAccount" href="http://twitter.com/stephenfry">twitter</a>,
 +
<a itemprop="sameAs" href="http://en.wikipedia.org/wiki/Stephen_Fry">wikipedia</a>)
 +
</div>
 +
</syntaxhighlight>
 +
 +
RDFa:
 +
<syntaxhighlight lang="html4strict">
 +
<div vocab="http://schema.org/" typeof="Person">
 +
<span property="name">Stephen Fry</span> (<a property="url" href="http://www.stephenfry.com/">stephenfry.com</a>,
 +
<a property="socialAccount" href="http://twitter.com/stephenfry">twitter</a>,
 +
<a property="sameAs" href="http://en.wikipedia.org/wiki/Stephen_Fry">wikipedia</a>)
 +
</div>
 +
</syntaxhighlight>

Revision as of 10:35, 2 April 2014


This is a WebSchemas proposal socialAccount Property for schema.org. See Proposals listing for more. Status: Proposal



This page tracks a proposal to extend schema.org's vocabulary for describing people, organizations and contact points by indicating a 'socialAccount'. This would typically from a multi-user social network site e.g. Twitter but the link could be from any site of any size.

Proposal

Add a new property, 'socialAccount':

  • Comment: "Indicates a corresponding profile page for an account on a socially-oriented Web site."
  • Used on types: ContactPoint, Person, MusicGroup, Organization, ServiceChannel
  • Expected types: URL, WebPage (i.e. a plain link or an inline description are both OK)

Notes:

  • Language of the socialAccount could be roughly inferred from http://schema.org/availableLanguage on ServiceChannel or ContactPoint.
  • The property does not mandate 'public profile' since account status settings can easily change. As with all personally identifying information, publishers should take care when describing other people.

Examples

A Person, their twitter account and a wikipedia page

Microdata:

<div itemtype="http://schema.org/Person">
 <span itemprop="name">Stephen Fry</span> (<a itemprop="url" href="http://www.stephenfry.com/">stephenfry.com</a>, 
 <a itemprop="socialAccount" href="http://twitter.com/stephenfry">twitter</a>, 
<a itemprop="sameAs" href="http://en.wikipedia.org/wiki/Stephen_Fry">wikipedia</a>)
</div>

RDFa:

<div vocab="http://schema.org/" typeof="Person">
 <span property="name">Stephen Fry</span> (<a property="url" href="http://www.stephenfry.com/">stephenfry.com</a>, 
 <a property="socialAccount" href="http://twitter.com/stephenfry">twitter</a>, 
<a property="sameAs" href="http://en.wikipedia.org/wiki/Stephen_Fry">wikipedia</a>)
</div>