Skip to content

Commit b00f4a8

Browse files
committed
Added 7 instances for each day of the week schemaorg#921
1 parent 07ca213 commit b00f4a8

File tree

2 files changed

+58
-35
lines changed

2 files changed

+58
-35
lines changed

data/schema.rdfa

Lines changed: 33 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3518,19 +3518,7 @@
35183518

35193519
<div typeof="rdfs:Class" resource="http://schema.org/DayOfWeek">
35203520
<span class="h" property="rdfs:label">DayOfWeek</span>
3521-
<span property="rdfs:comment">The day of the week, e.g. used to specify to which day the opening hours of an OpeningHoursSpecification refer.
3522-
&lt;br /&gt;
3523-
Commonly used values:&lt;br /&gt;
3524-
&lt;br /&gt;
3525-
http://purl.org/goodrelations/v1#Monday &lt;br /&gt;
3526-
http://purl.org/goodrelations/v1#Tuesday &lt;br /&gt;
3527-
http://purl.org/goodrelations/v1#Wednesday &lt;br /&gt;
3528-
http://purl.org/goodrelations/v1#Thursday &lt;br /&gt;
3529-
http://purl.org/goodrelations/v1#Friday &lt;br /&gt;
3530-
http://purl.org/goodrelations/v1#Saturday &lt;br /&gt;
3531-
http://purl.org/goodrelations/v1#Sunday &lt;br /&gt;
3532-
http://purl.org/goodrelations/v1#PublicHolidays &lt;br /&gt;
3533-
</span>
3521+
<span property="rdfs:comment">The day of the week, e.g. used to specify to which day the opening hours of an &lt;a href=&quot;/OpeningHoursSpecification&quot;&gt;OpeningHoursSpecification&lt;/a&gt; refer.</span>
35343522
<span>Subclass of: <a property="rdfs:subClassOf" href="http://schema.org/Enumeration">Enumeration</a></span>
35353523
<span>Source: <a property="dc:source" href="http://www.w3.org/wiki/WebSchemas/SchemaDotOrgSources#source_GoodRelationsClass">GoodRelationsClass</a></span></div>
35363524

@@ -12600,6 +12588,38 @@ Typical unit code(s): C62 for persons </span>
1260012588
<span>Subclass of: <a property="rdfs:subClassOf" href="http://schema.org/Intangible">Intangible</a></span>
1260112589
</div>
1260212590

12591+
<h1>Day of Week</h1>
12592+
12593+
<div typeof="http://schema.org/DayOfWeek" resource="http://schema.org/Monday">
12594+
<span class="h" property="rdfs:label">Monday</span>
12595+
<span property="rdfs:comment">The first day of the week.</span>
12596+
</div>
12597+
<div typeof="http://schema.org/DayOfWeek" resource="http://schema.org/Tuesday">
12598+
<span class="h" property="rdfs:label">Tuesday</span>
12599+
<span property="rdfs:comment">The second day of the week.</span>
12600+
</div>
12601+
<div typeof="http://schema.org/DayOfWeek" resource="http://schema.org/Wednesday">
12602+
<span class="h" property="rdfs:label">Wednesday</span>
12603+
<span property="rdfs:comment">The third day of the week.</span>
12604+
</div>
12605+
<div typeof="http://schema.org/DayOfWeek" resource="http://schema.org/Thursday">
12606+
<span class="h" property="rdfs:label">Thursday</span>
12607+
<span property="rdfs:comment">The fourth day of the week.</span>
12608+
</div>
12609+
<div typeof="http://schema.org/DayOfWeek" resource="http://schema.org/Friday">
12610+
<span class="h" property="rdfs:label">Friday</span>
12611+
<span property="rdfs:comment">The fifth day of the week.</span>
12612+
</div>
12613+
<div typeof="http://schema.org/DayOfWeek" resource="http://schema.org/Saturday">
12614+
<span class="h" property="rdfs:label">Saturday</span>
12615+
<span property="rdfs:comment">The fifth day of the week.</span>
12616+
</div>
12617+
<div typeof="http://schema.org/DayOfWeek" resource="http://schema.org/Monday">
12618+
<span class="h" property="rdfs:label">Sunday</span>
12619+
<span property="rdfs:comment">The seventh day of the week.</span>
12620+
</div>
12621+
12622+
1260312623

1260412624
<!-- property name goes in schema:name -->
1260512625
<!-- unstructured textual properties or human-readable version should go in schema:description -->

data/sdo-library-examples.txt

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -48,37 +48,37 @@ MICRODATA:
4848
<h2>Opening hours</h2>
4949

5050
<div itemprop="openingHoursSpecification" itemtype="http://schema.org/OpeningHoursSpecification">
51-
<link property="itemprop" href="http://purl.org/goodrelations/v1#Monday" />Monday:
51+
<link property="itemprop" href="http://schema.org/Monday" />Monday:
5252
<time itemprop="opens" content="09:00:00"> 9:00 AM</time> -
5353
<time itemprop="closes" content="17:00:00"> 5:00 PM</time></div>
5454

5555
<div itemprop="openingHoursSpecification" itemtype="http://schema.org/OpeningHoursSpecification">
56-
<link itemprop="dayOfWeek" href="http://purl.org/goodrelations/v1#Tuesday" />Tuesday:
56+
<link itemprop="dayOfWeek" href="http://schema.org/Tuesday" />Tuesday:
5757
<time itemprop="opens" content="09:00:00"> 9:00 AM</time> -
5858
<time itemprop="closes" content="17:00:00"> 5:00 PM</time></div>
5959

6060
<div itemprop="openingHoursSpecification" itemtype="http://schema.org/OpeningHoursSpecification">
61-
<link itemprop="dayOfWeek" href="http://purl.org/goodrelations/v1#Wednesday" />Wednesday:
61+
<link itemprop="dayOfWeek" href="http://schema.org/Wednesday" />Wednesday:
6262
<time itemprop="opens" content="09:00:00"> 9:00 AM</time> -
6363
<time itemprop="closes" content="17:00:00"> 5:00 PM</time></div>
6464

6565
<div itemprop="openingHoursSpecification" itemtype="http://schema.org/OpeningHoursSpecification">
66-
<link itemprop="dayOfWeek" href="http://purl.org/goodrelations/v1#Thursday" />Thursday:
66+
<link itemprop="dayOfWeek" href="http://schema.org/Thursday" />Thursday:
6767
<time itemprop="opens" content="09:00:00"> 9:00 AM</time> -
6868
<time itemprop="closes" content="17:00:00"> 5:00 PM</time></div>
6969

7070
<div itemprop="openingHoursSpecification" itemtype="http://schema.org/OpeningHoursSpecification">
71-
<link itemprop="dayOfWeek" href="http://purl.org/goodrelations/v1#Friday" />Friday:
71+
<link itemprop="dayOfWeek" href="http://schema.org/Friday" />Friday:
7272
<time itemprop="opens" content="09:00:00"> 9:00 AM</time> -
7373
<time itemprop="closes" content="17:00:00"> 5:00 PM</time></div>
7474

7575
<div itemprop="openingHoursSpecification" itemtype="http://schema.org/OpeningHoursSpecification">
76-
<link itemprop="dayOfWeek" href="http://purl.org/goodrelations/v1#Saturday" />Saturday:
76+
<link itemprop="dayOfWeek" href="http://schema.org/Saturday" />Saturday:
7777
<time itemprop="opens" content="09:00:00"> 9:00 AM</time> -
7878
<time itemprop="closes" content="17:00:00"> 5:00 PM</time></div>
7979

8080
<div itemprop="openingHoursSpecification" itemtype="http://schema.org/OpeningHoursSpecification">
81-
<link itemprop="dayOfWeek" href="http://purl.org/goodrelations/v1#Sunday" />Sunday:
81+
<link itemprop="dayOfWeek" href="http://schema.org/Sunday" />Sunday:
8282
<time itemprop="opens" content="09:00:00"> 9:00 AM</time> -
8383
<time itemprop="closes" content="17:00:00"> 5:00 PM</time></div>
8484

@@ -112,37 +112,37 @@ RDFA:
112112
<h2>Opening hours</h2>
113113

114114
<div property="openingHoursSpecification" typeof="OpeningHoursSpecification">
115-
<link property="dayOfWeek" href="http://purl.org/goodrelations/v1#Monday" />Monday:
115+
<link property="dayOfWeek" href="http://schema.org/Monday" />Monday:
116116
<time property="opens" content="09:00:00"> 9:00 AM</time> -
117117
<time property="closes" content="17:00:00"> 5:00 PM</time></div>
118118

119119
<div property="openingHoursSpecification" typeof="OpeningHoursSpecification">
120-
<link property="dayOfWeek" href="http://purl.org/goodrelations/v1#Tuesday" />Tuesday:
120+
<link property="dayOfWeek" href="http://schema.org/Tuesday" />Tuesday:
121121
<time property="opens" content="09:00:00"> 9:00 AM</time> -
122122
<time property="closes" content="17:00:00"> 5:00 PM</time></div>
123123

124124
<div property="openingHoursSpecification" typeof="OpeningHoursSpecification">
125-
<link property="dayOfWeek" href="http://purl.org/goodrelations/v1#Wednesday" />Wednesday:
125+
<link property="dayOfWeek" href="http://schema.org/Wednesday" />Wednesday:
126126
<time property="opens" content="09:00:00"> 9:00 AM</time> -
127127
<time property="closes" content="17:00:00"> 5:00 PM</time></div>
128128

129129
<div property="openingHoursSpecification" typeof="OpeningHoursSpecification">
130-
<link property="dayOfWeek" href="http://purl.org/goodrelations/v1#Thursday" />Thursday:
130+
<link property="dayOfWeek" href="http://schema.org/Thursday" />Thursday:
131131
<time property="opens" content="09:00:00"> 9:00 AM</time> -
132132
<time property="closes" content="17:00:00"> 5:00 PM</time></div>
133133

134134
<div property="openingHoursSpecification" typeof="OpeningHoursSpecification">
135-
<link property="dayOfWeek" href="http://purl.org/goodrelations/v1#Friday" />Friday:
135+
<link property="dayOfWeek" href="http://schema.org/Friday" />Friday:
136136
<time property="opens" content="09:00:00"> 9:00 AM</time> -
137137
<time property="closes" content="17:00:00"> 5:00 PM</time></div>
138138

139139
<div property="openingHoursSpecification" typeof="OpeningHoursSpecification">
140-
<link property="dayOfWeek" href="http://purl.org/goodrelations/v1#Saturday" />Saturday:
140+
<link property="dayOfWeek" href="http://schema.org/Saturday" />Saturday:
141141
<time property="opens" content="09:00:00"> 9:00 AM</time> -
142142
<time property="closes" content="17:00:00"> 5:00 PM</time></div>
143143

144144
<div property="openingHoursSpecification" typeof="OpeningHoursSpecification">
145-
<link property="dayOfWeek" href="http://purl.org/goodrelations/v1#Sunday" />Sunday:
145+
<link property="dayOfWeek" href="http://schema.org/Sunday" />Sunday:
146146
<time property="opens" content="09:00:00"> 9:00 AM</time> -
147147
<time property="closes" content="17:00:00"> 5:00 PM</time></div>
148148

@@ -175,7 +175,10 @@ JSON:
175175
{
176176
"@context": [
177177
"http://schema.org",
178-
{ "@language": "en-ca" }
178+
{
179+
"@language": "en-ca",
180+
"dayOfWeek": { "@type": "@id" }
181+
}
179182
],
180183
"@type": "Library",
181184
"address": {
@@ -196,43 +199,43 @@ JSON:
196199
{
197200
"@type": "OpeningHoursSpecification",
198201
"closes": "17:00:00",
199-
"dayOfWeek": "http://purl.org/goodrelations/v1#Sunday",
202+
"dayOfWeek": "http://schema.org/Sunday",
200203
"opens": "09:00:00"
201204
},
202205
{
203206
"@type": "OpeningHoursSpecification",
204207
"closes": "17:00:00" ,
205-
"dayOfWeek": "http://purl.org/goodrelations/v1#Saturday",
208+
"dayOfWeek": "http://schema.org/Saturday",
206209
"opens": "09:00:00"
207210
},
208211
{
209212
"@type": "OpeningHoursSpecification",
210213
"closes": "17:00:00",
211-
"dayOfWeek": "http://purl.org/goodrelations/v1#Thursday",
214+
"dayOfWeek": "http://schema.org/Thursday",
212215
"opens": "09:00:00"
213216
},
214217
{
215218
"@type": "OpeningHoursSpecification",
216219
"closes": "17:00:00",
217-
"dayOfWeek": "http://purl.org/goodrelations/v1#Tuesday",
220+
"dayOfWeek": "http://schema.org/Tuesday",
218221
"opens": "09:00:00"
219222
},
220223
{
221224
"@type": "OpeningHoursSpecification",
222225
"closes": "17:00:00",
223-
"dayOfWeek": "http://purl.org/goodrelations/v1#Friday",
226+
"dayOfWeek": "http://schema.org/Friday",
224227
"opens": "09:00:00"
225228
},
226229
{
227230
"@type": "OpeningHoursSpecification",
228231
"closes": "17:00:00",
229-
"dayOfWeek": "http://purl.org/goodrelations/v1#Monday",
232+
"dayOfWeek": "http://schema.org/Monday",
230233
"opens": "09:00:00"
231234
},
232235
{
233236
"@type": "OpeningHoursSpecification",
234237
"closes": "17:00:00",
235-
"dayOfWeek": "http://purl.org/goodrelations/v1#Wednesday",
238+
"dayOfWeek": "http://schema.org/Wednesday",
236239
"opens": "09:00:00"
237240
}
238241
]

0 commit comments

Comments
 (0)