Skip to content

Commit 5e56cb3

Browse files
committed
Initial implementation of expanded types for social media.
1 parent 3bdc464 commit 5e56cb3

File tree

3 files changed

+170
-2
lines changed

3 files changed

+170
-2
lines changed

data/schema.rdfa

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@
399399
<div typeof="rdfs:Class" resource="http://schema.org/BlogPosting">
400400
<span class="h" property="rdfs:label">BlogPosting</span>
401401
<span property="rdfs:comment">A blog post.</span>
402-
<span>Subclass of: <a property="rdfs:subClassOf" href="http://schema.org/Article">Article</a></span>
402+
<span>Subclass of: <a property="rdfs:subClassOf" href="http://schema.org/SocialMediaPosting">SocialMediaPosting</a></span>
403403
</div>
404404

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

1222212222

12223+
<h1>Social Media</h1>
12224+
12225+
<div typeof="rdfs:Class" resource="http://schema.org/SocialMediaPosting">
12226+
<span class="h" property="rdfs:label">SocialMediaPosting</span>
12227+
<span property="rdfs:comment">A post to a social media platform, including blog posts, tweets, Facebook posts, etc.</span>
12228+
<span>Subclass of: <a property="rdfs:subClassOf" href="http://schema.org/Article">Article</a></span>
12229+
</div>
12230+
12231+
<div typeof="rdfs:Class" resource="http://schema.org/DiscussionForumPosting">
12232+
<span class="h" property="rdfs:label">DiscussionForumPosting</span>
12233+
<span property="rdfs:comment">A posting to a discussion forum.</span>
12234+
<span>Subclass of: <a property="rdfs:subClassOf" href="http://schema.org/SocialMediaPosting">SocialMediaPosting</a></span>
12235+
</div>
12236+
12237+
<div typeof="rdfs:Class" resource="http://schema.org/LiveBlogPosting">
12238+
<span class="h" property="rdfs:label">LiveBlog</span>
12239+
<span property="rdfs:comment">A blog post intended to provide a rolling textual coverage of an ongoing event through continuous updates.</span>
12240+
<span>Subclass of: <a property="rdfs:subClassOf" href="http://schema.org/BlogPosting">BlogPosting</a></span>
12241+
</div>
12242+
12243+
<div typeof="rdf:Property" resource="http://schema.org/coverageStartTime">
12244+
<span class="h" property="rdfs:label">coverageStartTime</span>
12245+
<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>
12246+
<span>Domain: <a property="http://schema.org/domainIncludes" href="http://schema.org/LiveBlogPosting">LiveBlogPosting</a></span>
12247+
<span>Range: <a property="http://schema.org/rangeIncludes" href="http://schema.org/DateTime">DateTime</a></span>
12248+
</div>
12249+
<div typeof="rdf:Property" resource="http://schema.org/coverageEndTime">
12250+
<span class="h" property="rdfs:label">coverageEndTime</span>
12251+
<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>
12252+
<span>Domain: <a property="http://schema.org/domainIncludes" href="http://schema.org/LiveBlogPosting">LiveBlogPosting</a></span>
12253+
<span>Range: <a property="http://schema.org/rangeIncludes" href="http://schema.org/DateTime">DateTime</a></span>
12254+
</div>
12255+
<div typeof="rdf:Property" resource="http://schema.org/liveBlogUpdate">
12256+
<span class="h" property="rdfs:label">liveBlogUpdate</span>
12257+
<span property="rdfs:comment">An update to the LiveBlog.</span>
12258+
<span>Domain: <a property="http://schema.org/domainIncludes" href="http://schema.org/LiveBlogPosting">LiveBlogPosting</a></span>
12259+
<span>Range: <a property="http://schema.org/rangeIncludes" href="http://schema.org/BlogPosting">BlogPosting</a></span>
12260+
</div>
12261+
1222312262

1222412263

1222512264
<!-- property name goes in schema:name -->

docs/releases.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ <h1>Releases</h1>
140140

141141
<h3>Vocabulary</h3>
142142
<ul>
143-
<li>...</li>
143+
<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>
144144
</ul>
145145

146146
<h3>Site improvements</h3>

sdo-social-media-examples.txt

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
TYPES: #social-media-1 SocialMediaPosting,WebPage
2+
3+
PRE-MARKUP:
4+
TBD
5+
6+
MICRODATA:
7+
TBD
8+
9+
RDFA:
10+
TBD
11+
12+
JSON:
13+
14+
<script type="application/ld+json">
15+
{
16+
"@context":"http://schema.org",
17+
"@type":"SocialMediaPosting",
18+
"url":"https://www.pinterest.com/pin/201887995769400347/",
19+
"datePublished":"2014-03-04",
20+
"author":{
21+
"@type":"Person",
22+
"name":"Ryan Sammy",
23+
"image":"https://s-media-cache-ak0.pinimg.com/avatars/ryansammy_1365793703_30.jpg",
24+
"url":"https://www.pinterest.com/ryansammy/"
25+
},
26+
"articleBody":"Leaked new BMW 2 series (m235i)",
27+
"image":{
28+
"@list":[
29+
"https://s-media-cache-ak0.pinimg.com/736x/58/9b/c3/673786jf8789826nr6683n.jpg",
30+
"https://s-media-cache-ak0.pinimg.com/736x/58/9b/c3/529506a36344981ed22fbc.jpg"
31+
]
32+
},
33+
"sharedContent":{
34+
"@type":"WebPage",
35+
"headline":"Leaked new BMW 2 series (m235i) ahead of oct 25 reveal",
36+
"url":"http://www.reddit.com/r/BMW/comments/1oyh6j/leaked_new_bmw_2_series_m235i_ahead_of_oct_25/",
37+
"author":{
38+
"@type":"Person",
39+
"name":"threal135i"
40+
}
41+
}
42+
}
43+
</script>
44+
45+
46+
TYPES: #social-media-2 LiveBlog,BlogPosting
47+
48+
PRE-MARKUP:
49+
TBD
50+
51+
MICRODATA:
52+
TBD
53+
54+
RDFA:
55+
TBD
56+
57+
JSON:
58+
<script type="application/ld+json">
59+
{
60+
"@context":"http://schema.org",
61+
"@type":"LiveBlogPosting",
62+
"url":"http://techcrunch.com/2015/03/08/apple-watch-event-live-blog",
63+
"about":{
64+
"@type":"Event",
65+
"startDate":"2015-03-09T13:00:00-07:00",
66+
"name":"Apple Spring Forward Event",
67+
}
68+
},
69+
"coverageStartTime":"2015-03-09T11:30:00-07:00",
70+
"coverageEndTime":"2015-03-09T16:00:00-07:00",
71+
"headline":"Apple Spring Forward Event Live Blog",
72+
"description":"Welcome to live coverage of the Apple Spring Forward …",
73+
"liveBlogUpdate":[
74+
{
75+
"@type":"BlogPosting",
76+
"headline":"Coming this April, HBO NOW will be available exclusively in the U.S. on Apple TV and the App Store.",
77+
"datePublished":"2015-03-09T13:08:00-07:00",
78+
"articleBody": "It's $14.99 a month.<br> And for a limited time, …",
79+
}
80+
},
81+
{
82+
"@type":"BlogPosting",
83+
"headline":"iPhone is growing at nearly twice the rate of the rest of the smartphone market.",
84+
"datePublished":"2015-03-09T13:13:00-07:00",
85+
"image":"http://images.apple.com/live/2015-mar-event/images/573cb_xlarge_2x.jpg"
86+
},
87+
{
88+
"@type":"BlogPosting",
89+
"headline":"See the new flagship Apple Retail Store in West Lake, China.",
90+
"datePublished":"2015-03-09T13:17:00-07:00",
91+
"video":{
92+
"@type":"VideoObject",
93+
"thumbnail":"http://images.apple.com/live/2015-mar-event/images/908d2e_large_2x.jpg"
94+
}
95+
}
96+
]
97+
}
98+
</script>
99+
100+
101+
TYPES: #social-media-3 DiscussionForumPosting
102+
103+
PRE-MARKUP:
104+
TBD
105+
106+
MICRODATA:
107+
TBD
108+
109+
RDFA:
110+
TBD
111+
112+
JSON:
113+
<script type="application/ld+json">
114+
{
115+
"@context":"http://schema.org",
116+
"@type":"DiscussionForumPosting",
117+
"url":"http://www.reddit.com/r/webdev/comments/2gypch/is_schemaorg_still_a_thing/"
118+
"headline":"Is Schema.org still a thing?",
119+
"author": {
120+
"@type": "Person",
121+
"name": "haecceity123"
122+
},
123+
"interactionStatistic": {
124+
"@type": "InteractionCounter",
125+
"interactionType": "http://schema.org/CommentAction",
126+
"userInteractionCount": 25
127+
},
128+
}
129+
</script>

0 commit comments

Comments
 (0)