"birthPlace" 预计 "Place",但我没有完整地址

"birthPlace" expects "Place", but I don’t have a full address

我有一个提供移动公证服务人员的数据库。我决定使用 Service 而不是 Person,因为这个人提供了服务。

<div itemscope itemtype="http://schema.org/Service">
    <meta itemprop="serviceType" content="Notary" />
    <span itemprop="provider" itemscope itemtype="http://schema.org/person">
        <span itemprop="name">Derrick Calhoun</span>
        <img itemprop="image" src="/headshots/hs-3246356.jpg" alt="" />
        <span itemprop="birthPlace">Omaha, NE</span>
    </span>
    <span itemprop="telephone">555-555-5555</span>
    <meta itemprop="ratingValue" content="4" />
    Last time available:<time datetime="2015-05-08T19:30">May 8, 7:30pm</time>
    Current Location: <span itemprop="place">Lincoln, NE</span>
</div>

birthPlace 的格式是否应该不同?

http://schema.org/birthPlace says that the value expected is a Place. However, Place 仅显示具有完整地址的地点示例。我只有一个城市。

我考虑过使用 addressLocality,但是,它应该用在 PostalAddress 上,而我没有。

我应该像这样在 provider 下嵌入 Place 吗?

<span itemprop="provider" itemscope itemtype="http://schema.org/person">
    <span itemprop="name">Derrick Calhoun</span>
    <img itemprop="image" src="/headshots/hs-3246356.jpg" alt="" />
    <span itemprop="place" itemscope itemtype="http://schema.org/place">
        <span itemprop="addressLocality">Seattle</span>
        <span itemprop="addressRegion">WA</span>
    </span>
</span>

我想我对基本结构感到困惑,父子。任何人都可以阐明这一点吗?

birthPlace property does expect a Place value, but Place doesn’t need to have a full address. You can provide as much properties of Place as you have/want, and the same goes for the PostalAddress value of its address property (where you could provide a addressLocality 属性 等)。

如果你只有一个城市,你可以使用 City 值,它是 Place 的子类型(在 "More specific Types" 下列出):

<span itemprop="birthPlace" itemscope itemtype="http://schema.org/City">
  <span itemprop="name">Omaha</span>
</span>

请注意,您在 Schema.org 使用中犯了一些错误:

Schema.org 术语区分大小写,因此 personPerson 不同。 (Schema.org follows the convention 个以小写字母开头的属性,以及以大写字母键入的属性。)

  • 没有place属性,所以itemprop="place"不可能是对的
  • itemtype="http://schema.org/place" 必须是
    itemtype="http://schema.org/Place"
  • itemtype="http://schema.org/person" 必须是
    itemtype="http://schema.org/Person"