结构化数据 (schema.org) - 教育组织的开放时间



我正要用 schema.org 属性扩展我的模板,并有以下问题。我可以使用哪个属性指定"教育组织"类型的开放时间?很遗憾,此处不提供开放时间属性。此外,没有类似于教育组织类型的类型。

这是我的代码的当前状态:

<div itemscope itemtype="http://schema.org/EducationalOrganization" class="ce_text address block">
    <div class="text_container">
        <p>
            <span>
                <strong itemprop="name"><?php echo $this->field('company')->value(); ?></strong><br>
            </span>
        <p itemscope itemtype="http://schema.org/PostalAddress" itemprop="address">
            <span itemprop="streetAddress">
                <?php echo $this->field('street')->value(); ?><br>
            </span>
            <span itemprop="postalCode">
                <?php echo $this->field('zipcode')->value(); ?>
            </span>
            <span itemprop="addressLocality">
                <?php echo $this->field('place')->value(); ?>
            </span>
        </p>
        <p>
            Aus dem Ausland: <span itemprop="telephone"><?php echo $this->field('phone_foreign')->value(); ?></span><br>
            Fax: <span itemprop="telephone"><?php echo $this->field('fax')->value(); ?></span>
        </p>
        <p itemscope itemtype="??????"> <!-- What type can I use here? -->
            <strong>Öffnungszeiten:</strong><br>
            Montag bis Donnerstag: <meta itemprop="openingHours" content="Mo-Th 08:00-18:00"><?php echo $this->field('mothu')->value(); ?><br>
            Freitag: <meta itemprop="openingHours" content="Fr 08:00-15:00"><?php echo $this->field('fri')->value(); ?>
        </p> <!-- Öffnungszeiten Ende -->
    </div>
</div>

在这种情况下,我可以使用什么类型来使用 itemprop="openHours"> 属性,或者如果不可能,是否有其他工作?


更新:

在此期间,我选择了此解决方案。谷歌清晰地读出了它,在我们公司的情况下更有意义。

    <div itemscope itemtype="http://schema.org/Service">
        <strong>Öffnungszeiten:</strong><br>
        Montag bis Donnerstag: <?php echo $this->field('mothu')->value(); ?><br>
        Freitag: <?php echo $this->field('fri')->value(); ?>
        <div itemprop="hoursAvailable" itemscope itemtype="http://schema.org/OpeningHoursSpecification">
            <link itemprop="dayOfWeek" href="http://schema.org/Monday" />
            <time itemprop="opens" content="08:00:00"></time>
            <time itemprop="closes" content="18:00:00"></time>
        </div>
        <div itemprop="hoursAvailable" itemscope itemtype="http://schema.org/OpeningHoursSpecification">
            <link itemprop="dayOfWeek" href="http://schema.org/Tuesday" />
            <time itemprop="opens" content="08:00:00"></time>
            <time itemprop="closes" content="18:00:00"></time>
        </div>
        <div itemprop="hoursAvailable" itemscope itemtype="http://schema.org/OpeningHoursSpecification">
            <link itemprop="dayOfWeek" href="http://schema.org/Wednesday" />
            <time itemprop="opens" content="08:00:00"></time>
            <time itemprop="closes" content="18:00:00"></time>
        </div>
        <div itemprop="hoursAvailable" itemscope itemtype="http://schema.org/OpeningHoursSpecification">
            <link itemprop="dayOfWeek" href="http://schema.org/Thursday" />
            <time itemprop="opens" content="08:00:00"></time>
            <time itemprop="closes" content="18:00:00"></time>
        </div>
        <div itemprop="hoursAvailable" itemscope itemtype="http://schema.org/OpeningHoursSpecification">
            <link itemprop="dayOfWeek" href="http://schema.org/Friday" />
            <time itemprop="opens" content="08:00:00"></time>
            <time itemprop="closes" content="15:00:00"></time>
        </div>
    </div>
  • 将元素联系点与扩展名应用于属性联系点
  • 接下来,选择并应用元素小时可用与属性的扩展 开放时间规范

创建类似的东西:

<main itemscope itemtype="http://schema.org/EducationalOrganization">
<h1 itemprop="name">Name of Organization</h1>
<section itemprop=contactPoint itemscope itemtype=http://schema.org/ContactPoint>  
  <h2>Opening hours</h2>
     <meta itemprop="hoursAvailable" content="Mo,Tu,We,Th,Fr,Sa,Su 09:00-14:00">
    <p>Normally open daily <time datetime="09:00">9am</time>-<time datetime="14:00">2pm</time></p>
</section>
</main>

检查此 Google 工具上的结构化数据并设置所需的数据。希望这有帮助。

试试 CivicStructure 或 GovernmentOffice。
对于学校、大学等教育机构,无需限定开放时间。也许您的组织不是教育类组织,您可以为您的组织使用其他范围。

更新/解决方案:

在此期间,我选择了此解决方案。谷歌清晰地读出了它,在我们公司的情况下更有意义。

    <div itemscope itemtype="http://schema.org/Service">
        <strong>Öffnungszeiten:</strong><br>
        Montag bis Donnerstag: <?php echo $this->field('mothu')->value(); ?><br>
        Freitag: <?php echo $this->field('fri')->value(); ?>
        <div itemprop="hoursAvailable" itemscope itemtype="http://schema.org/OpeningHoursSpecification">
            <link itemprop="dayOfWeek" href="http://schema.org/Monday" />
            <time itemprop="opens" content="08:00:00"></time>
            <time itemprop="closes" content="18:00:00"></time>
        </div>
        <div itemprop="hoursAvailable" itemscope itemtype="http://schema.org/OpeningHoursSpecification">
            <link itemprop="dayOfWeek" href="http://schema.org/Tuesday" />
            <time itemprop="opens" content="08:00:00"></time>
            <time itemprop="closes" content="18:00:00"></time>
        </div>
        <div itemprop="hoursAvailable" itemscope itemtype="http://schema.org/OpeningHoursSpecification">
            <link itemprop="dayOfWeek" href="http://schema.org/Wednesday" />
            <time itemprop="opens" content="08:00:00"></time>
            <time itemprop="closes" content="18:00:00"></time>
        </div>
        <div itemprop="hoursAvailable" itemscope itemtype="http://schema.org/OpeningHoursSpecification">
            <link itemprop="dayOfWeek" href="http://schema.org/Thursday" />
            <time itemprop="opens" content="08:00:00"></time>
            <time itemprop="closes" content="18:00:00"></time>
        </div>
        <div itemprop="hoursAvailable" itemscope itemtype="http://schema.org/OpeningHoursSpecification">
            <link itemprop="dayOfWeek" href="http://schema.org/Friday" />
            <time itemprop="opens" content="08:00:00"></time>
            <time itemprop="closes" content="15:00:00"></time>
        </div>
    </div>

最新更新