Skip to content

Commit

Permalink
Initial implementation of expanded types for social media.
Browse files Browse the repository at this point in the history
  • Loading branch information
vholland committed May 21, 2015
1 parent 3bdc464 commit 5e56cb3
Show file tree
Hide file tree
Showing 3 changed files with 170 additions and 2 deletions.
41 changes: 40 additions & 1 deletion data/schema.rdfa
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@
<div typeof="rdfs:Class" resource="http://schema.org/BlogPosting">
<span class="h" property="rdfs:label">BlogPosting</span>
<span property="rdfs:comment">A blog post.</span>
<span>Subclass of: <a property="rdfs:subClassOf" href="http://schema.org/Article">Article</a></span>
<span>Subclass of: <a property="rdfs:subClassOf" href="http://schema.org/SocialMediaPosting">SocialMediaPosting</a></span>
</div>

<div typeof="rdfs:Class" resource="http://schema.org/MedicalTest">
Expand Down Expand Up @@ -12220,6 +12220,45 @@ Typical unit code(s): C62 for persons </span>
</div>


<h1>Social Media</h1>

<div typeof="rdfs:Class" resource="http://schema.org/SocialMediaPosting">
<span class="h" property="rdfs:label">SocialMediaPosting</span>
<span property="rdfs:comment">A post to a social media platform, including blog posts, tweets, Facebook posts, etc.</span>
<span>Subclass of: <a property="rdfs:subClassOf" href="http://schema.org/Article">Article</a></span>
</div>

<div typeof="rdfs:Class" resource="http://schema.org/DiscussionForumPosting">
<span class="h" property="rdfs:label">DiscussionForumPosting</span>
<span property="rdfs:comment">A posting to a discussion forum.</span>
<span>Subclass of: <a property="rdfs:subClassOf" href="http://schema.org/SocialMediaPosting">SocialMediaPosting</a></span>
</div>

<div typeof="rdfs:Class" resource="http://schema.org/LiveBlogPosting">
<span class="h" property="rdfs:label">LiveBlog</span>
<span property="rdfs:comment">A blog post intended to provide a rolling textual coverage of an ongoing event through continuous updates.</span>
<span>Subclass of: <a property="rdfs:subClassOf" href="http://schema.org/BlogPosting">BlogPosting</a></span>
</div>

<div typeof="rdf:Property" resource="http://schema.org/coverageStartTime">
<span class="h" property="rdfs:label">coverageStartTime</span>
<span property="rdfs:comment">The time when the live blog will begin covering the Event. Note that coverage may begin before the Event's start time. The LiveBlogPosting may also be created before coverage begins.</span>
<span>Domain: <a property="http://schema.org/domainIncludes" href="http://schema.org/LiveBlogPosting">LiveBlogPosting</a></span>
<span>Range: <a property="http://schema.org/rangeIncludes" href="http://schema.org/DateTime">DateTime</a></span>
</div>
<div typeof="rdf:Property" resource="http://schema.org/coverageEndTime">
<span class="h" property="rdfs:label">coverageEndTime</span>
<span property="rdfs:comment">The time when the live blog will stop covering the Event. Note that coverage may continue after the Event concludes.</span>
<span>Domain: <a property="http://schema.org/domainIncludes" href="http://schema.org/LiveBlogPosting">LiveBlogPosting</a></span>
<span>Range: <a property="http://schema.org/rangeIncludes" href="http://schema.org/DateTime">DateTime</a></span>
</div>
<div typeof="rdf:Property" resource="http://schema.org/liveBlogUpdate">
<span class="h" property="rdfs:label">liveBlogUpdate</span>
<span property="rdfs:comment">An update to the LiveBlog.</span>
<span>Domain: <a property="http://schema.org/domainIncludes" href="http://schema.org/LiveBlogPosting">LiveBlogPosting</a></span>
<span>Range: <a property="http://schema.org/rangeIncludes" href="http://schema.org/BlogPosting">BlogPosting</a></span>
</div>



<!-- property name goes in schema:name -->
Expand Down
2 changes: 1 addition & 1 deletion docs/releases.html
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ <h1>Releases</h1>

<h3>Vocabulary</h3>
<ul>
<li>...</li>
<li><a href="https://github.com/schemaorg/schemaorg/issues/xxx">Fix to #xxx</a>: Added new types <a href="/LiveBlog">LiveBlog</a>, <a href="SocialMediaPosting">SocialMediaPosting>SocialMediaPosting</a>, and <a href="/DiscussionForumPosting">DiscussionForumPosting</a>.</li>
</ul>

<h3>Site improvements</h3>
Expand Down
129 changes: 129 additions & 0 deletions sdo-social-media-examples.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
TYPES: #social-media-1 SocialMediaPosting,WebPage

PRE-MARKUP:
TBD

MICRODATA:
TBD

RDFA:
TBD

JSON:

<script type="application/ld+json">
{
"@context":"http://schema.org",
"@type":"SocialMediaPosting",
"url":"https://www.pinterest.com/pin/201887995769400347/",
"datePublished":"2014-03-04",
"author":{
"@type":"Person",
"name":"Ryan Sammy",
"image":"https://s-media-cache-ak0.pinimg.com/avatars/ryansammy_1365793703_30.jpg",
"url":"https://www.pinterest.com/ryansammy/"
},
"articleBody":"Leaked new BMW 2 series (m235i)",
"image":{
"@list":[
"https://s-media-cache-ak0.pinimg.com/736x/58/9b/c3/673786jf8789826nr6683n.jpg",
"https://s-media-cache-ak0.pinimg.com/736x/58/9b/c3/529506a36344981ed22fbc.jpg"
]
},
"sharedContent":{
"@type":"WebPage",
"headline":"Leaked new BMW 2 series (m235i) ahead of oct 25 reveal",
"url":"http://www.reddit.com/r/BMW/comments/1oyh6j/leaked_new_bmw_2_series_m235i_ahead_of_oct_25/",
"author":{
"@type":"Person",
"name":"threal135i"
}
}
}
</script>


TYPES: #social-media-2 LiveBlog,BlogPosting

PRE-MARKUP:
TBD

MICRODATA:
TBD

RDFA:
TBD

JSON:
<script type="application/ld+json">
{
"@context":"http://schema.org",
"@type":"LiveBlogPosting",
"url":"http://techcrunch.com/2015/03/08/apple-watch-event-live-blog",
"about":{
"@type":"Event",
"startDate":"2015-03-09T13:00:00-07:00",
"name":"Apple Spring Forward Event",
}
},
"coverageStartTime":"2015-03-09T11:30:00-07:00",
"coverageEndTime":"2015-03-09T16:00:00-07:00",
"headline":"Apple Spring Forward Event Live Blog",
"description":"Welcome to live coverage of the Apple Spring Forward …",
"liveBlogUpdate":[
{
"@type":"BlogPosting",
"headline":"Coming this April, HBO NOW will be available exclusively in the U.S. on Apple TV and the App Store.",
"datePublished":"2015-03-09T13:08:00-07:00",
"articleBody": "It's $14.99 a month.<br> And for a limited time, …",
}
},
{
"@type":"BlogPosting",
"headline":"iPhone is growing at nearly twice the rate of the rest of the smartphone market.",
"datePublished":"2015-03-09T13:13:00-07:00",
"image":"http://images.apple.com/live/2015-mar-event/images/573cb_xlarge_2x.jpg"
},
{
"@type":"BlogPosting",
"headline":"See the new flagship Apple Retail Store in West Lake, China.",
"datePublished":"2015-03-09T13:17:00-07:00",
"video":{
"@type":"VideoObject",
"thumbnail":"http://images.apple.com/live/2015-mar-event/images/908d2e_large_2x.jpg"
}
}
]
}
</script>


TYPES: #social-media-3 DiscussionForumPosting

PRE-MARKUP:
TBD

MICRODATA:
TBD

RDFA:
TBD

JSON:
<script type="application/ld+json">
{
"@context":"http://schema.org",
"@type":"DiscussionForumPosting",
"url":"http://www.reddit.com/r/webdev/comments/2gypch/is_schemaorg_still_a_thing/"
"headline":"Is Schema.org still a thing?",
"author": {
"@type": "Person",
"name": "haecceity123"
},
"interactionStatistic": {
"@type": "InteractionCounter",
"interactionType": "http://schema.org/CommentAction",
"userInteractionCount": 25
},
}
</script>

0 comments on commit 5e56cb3

Please sign in to comment.