openingHours(営業時間)|schema.orgのプロパティ・使える型と値の書き方
openingHours(営業時間) とは?
この記事と同じものを、あなたの会社のサイトに毎日2本。ことば選びから公開まで代行します。1日667円(税抜)から。
ほったらかし集客の料金はこちら →openingHours は、schema.org で決められているプロパティのひとつです。CivicStructure、LocalBusiness などの型の中に書きます。入る値は Text です。
schema.org の定義(原文)
The general opening hours for a business. Opening hours can be specified as a weekly time range, starting with days, then times per day. Multiple days can be listed with commas ',' separating each day. Day or time ranges are specified using a hyphen '-'. * Days are specified using the following two-letter combinations: Mo, Tu, We, Th, Fr, Sa, Su. * Times are specified using 24:00 format. For example, 3pm is specified as 15:00, 10am as 10:00. * Here is an example: <time itemprop="openingHours" datetime="Tu,Th 16:00-20:00">Tuesdays and Thursdays 4-8pm</time>. * If a business is open 7 days a week, then it can be specified as <time itemprop="openingHours" datetime="Mo-Su">Monday through Sunday, all day</time>.
出典: https://schema.org/openingHours(英語。訳すと意味が変わることがあるため、原文のまま載せています)
入る値の型(1個)
このうちのどれかを書きます。複数の型が並んでいるときは、書きやすいものを1つ選べばかまいません。
Text
このプロパティが使える型(2個)
下の型の中でだけ、このプロパティが定義されています(その型を親に持つ型でも使えます)。
同じ型の中で使える、ほかのプロパティ
書き方の例
{
"@context": "https://schema.org",
"@type": "CivicStructure",
"openingHours": "(ここに値)"
}値の中身は、そのページに実際に表示されている内容にしてください。表示されていないことを構造化データに書くのは、Googleのポリシー違反です。
ほかの語を調べる
出典
このページの内容は、schema.org が配布している語彙ファイルから機械的に取り出したものです。人の手で足した説明はありません。仕様は変わります。実装の前に原文をご確認ください。
検索とAIに見つけてもらう記事づくりを、ほったらかし集客が毎日2本、代わりに公開します。1日667円(税抜)から。