Skip to content

Commit 0c467a9

Browse files
vickitardifdanbri
authored andcommitted
Issue #2421: Added Person and Organization to the domain for interactionStatistic (#2423)
* Issue #2341: Added SportsTeam to the domain for gender. * Remove file added to wrong branch. * Issue #2421: Added Person and Organization to the domain for interactionStatistic.
1 parent f113519 commit 0c467a9

File tree

2 files changed

+82
-0
lines changed

2 files changed

+82
-0
lines changed
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
TYPES: #interactionstat-1 Person, InteractionCounter
2+
3+
PRE-MARKUP:
4+
5+
A media creator with a number of likes and follows.
6+
7+
MICRODATA:
8+
9+
<!-- JSON-LD example only -->
10+
11+
RDFA:
12+
13+
<!-- JSON-LD example only -->
14+
15+
JSON:
16+
17+
18+
<script type="application/ld+json">
19+
{
20+
"@context": "http://schema.org/",
21+
"@type": "Person",
22+
"name": "Jane Doe",
23+
"interactionStatistic": [
24+
{
25+
"@type": "InteractionCounter",
26+
"interactionType": "http://schema.org/LikeAction",
27+
"userInteractionCount": 1170
28+
},
29+
{
30+
"@type": "InteractionCounter",
31+
"interactionType": "http://schema.org/FollowAction",
32+
"userInteractionCount": 145098
33+
}
34+
]
35+
}
36+
</script>
37+
38+
TYPES: #interactionstat-2 Organization, InteractionCounter
39+
40+
PRE-MARKUP:
41+
42+
An organization with a number of likes and follows.
43+
44+
MICRODATA:
45+
46+
<!-- JSON-LD example only -->
47+
48+
RDFA:
49+
50+
<!-- JSON-LD example only -->
51+
52+
JSON:
53+
54+
55+
<script type="application/ld+json">
56+
{
57+
"@context": "http://schema.org/",
58+
"@type": "Organization",
59+
"name": "ACME",
60+
"interactionStatistic": [
61+
{
62+
"@type": "InteractionCounter",
63+
"interactionType": "http://schema.org/LikeAction",
64+
"userInteractionCount": 1170
65+
},
66+
{
67+
"@type": "InteractionCounter",
68+
"interactionType": "http://schema.org/FollowAction",
69+
"userInteractionCount": 145098
70+
}
71+
]
72+
}
73+
</script>
74+

data/ext/pending/issue-2421.rdfa

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<div>
2+
<div typeof="rdf:Property" resource="http://schema.org/interactionStatistic">
3+
<span class="h" property="rdfs:label">interactionStatistic</span>
4+
<span>Domain: <a property="http://schema.org/domainIncludes" href="http://schema.org/Person">Person</a></span>
5+
<span>Domain: <a property="http://schema.org/domainIncludes" href="http://schema.org/Organization">Organization</a></span>
6+
<span property="schema:category">issue-2421</span><a property="dc:source" href="https://github.com/schemaorg/schemaorg/issues/2421">#2421</a>
7+
</div>
8+
</div>

0 commit comments

Comments
 (0)