forked from schemaorg/schemaorg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsdo-mainEntity-examples.txt
89 lines (71 loc) · 2.68 KB
/
sdo-mainEntity-examples.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
TYPES: #mainEntity-1 mainEntity
PRE-MARKUP:
<div>
<h1>Cath's Cafe</h1>
<p>Open: Daily from 11:00am till 8pm</p>
<p>Phone: 555-0100-3344</p>
<p>View <a href="/menu">our menu</a>.</p>
</div>
MICRODATA:
<div itemid="http://cathscafe.example.com/" itemscope itemtype="http://schema.org/WebPage">
<div itemprop="mainEntity" itemscope itemtype="http://schema.org/Restaurant" itemid="#thecafe">
<h1 itemprop="name">Cath's Cafe</h1>
<p>Open: <span itemprop="openingHours" content="Mo,Tu,We,Th,Fr,Sa,Su 11:00-20:00">Daily from 11:00am till 8pm</span></p>
<p>Phone: <span itemprop="telephone" content="+155501003344">555-0100-3344</span></p>
<p>View <a itemprop="hasMenu" href="/menu">our menu</a>.</p>
</div>
</div>
RDFA:
TODO.
JSON:
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "WebPage",
"@id": "http://cathscafe.example.com/",
"mainEntity": {
"@type": "Restaurant",
"name": "Cath's Cafe",
"openingHours": "Mo,Tu,We,Th,Fr,Sa,Su 11:00-20:00",
"telephone": "+155501003344",
"hasMenu": "/menu"
}
}
</script>
TYPES: #mainEntity-2 mainEntityOfPage
PRE-MARKUP:
<div>
<h1>Cath's Cafe</h1>
<p>Open: Daily from 11:00am till 8pm</p>
<p>Phone: 555-0100-3344</p>
<p>View <a href="/menu">our menu</a>.</p>
</div>
MICRODATA:
<div itemscope itemtype="http://schema.org/Restaurant" itemid="#thecafe">
<a itemprop="mainEntityOfPage" href="http://cathscafe.example.com/"><h1 itemprop="name">Cath's Cafe</h1></a>
<p>Open: <span itemprop="openingHours" content="Mo,Tu,We,Th,Fr,Sa,Su 11:00-20:00">Daily from 11:00am till 8pm</span></p>
<p>Phone: <span itemprop="telephone" content="+155501003344">555-0100-3344</span></p>
<p>View <a itemprop="hasMenu" href="/menu">our menu</a>.</p>
</div>
RDFA:
<div vocab="http://schema.org/" typeof="Restaurant" resource="#thecafe">
<a property="mainEntityOfPage" href="http://cathscafe.example.com/"><h1 property="name">Cath's Cafe</h1></a>
<p>Open: <span property="openingHours" content="Mo,Tu,We,Th,Fr,Sa,Su 11:00-20:00">Daily from 11:00am till 8pm</span></p>
<p>Phone: <span property="telephone" content="+155501003344">555-0100-3344</span></p>
<p>View <a property="hasMenu" href="/menu">our menu</a>.</p>
</div>
JSON:
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Restaurant",
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "http://cathscafe.example.com/"
},
"name": "Cath's Cafe",
"openingHours": "Mo,Tu,We,Th,Fr,Sa,Su 11:00-20:00",
"telephone": "+155501003344",
"hasMenu": "/menu"
}
</script>