这是我的丰富网页摘要标记
<div vocab="http://schema.org" typeof="GovernmentOrganization">
<p>
<span property="logo"><img src="http://www.place.com/image.png" class="logo"/></span>
<span class="h2" property="name">Department Of Stuff And Things</span><br />
<span class="h4" property="department">State Agency</span><br />
<a href="http://www.place.com" class="h4 text-primary" property="url">http://www.place.com</a>
</p>
<strong>Locations:</strong><br /><br />
<div property="location" typeof="GovernmentOffice">
<p property="location" typeof="PostalAddress">
Main Office<br />
<span property="streetAddress">555 Something Street Apt 2</span><br />
<span property="addressLocality">Jacksonville</span>
<span property="addressRegion">FL</span>
<span property="postalCode">11111</span><br />
<span property="addressCountry">US</span>
</p>
</div>
<strong>Services:</strong><br /><br />
<div property="hasOfferCatalog" typeof="OfferCatalog">
<div property="itemListElement" typeof="GovernmentService">
<p>
<strong><span property="name">Service 1</span></strong><br />
<span property="category">Web Based</span><br />
<span property="description">Get Some stuff and things</span><br />
<a href="https://www.place.com/Service1" property="url">https://www.place.com/Service1</a><br />
</p>
</div>
<div property="itemListElement" typeof="GovernmentService">
<p>
<strong><span property="name">Apply For Benefits</span></strong><br />
<span property="category">Phone Based</span><br />
<span property="description">This service helps you apply for the benefits you deserve</span><br />
<a href="https://www.place.com/Service2" property="url">https://www.place.com/Service1</a><br />
</p>
</div>
</div>
结构化数据测试工具似乎可以适当地组织和验证所有内容,包括我的小型服务集合(OfferCatalog)。当向自定义搜索 API 发出请求并添加 :more:pagemap:GovernmentOrganization 时,事情似乎没问题,我得到了我期望的结果。但是 pagemap 的 JSON 对象只包括我的组织的第一级:
"pagemap": {
"GovernmentOrganization": [
{
"name": "Department Of Stuff And Things",
"department": "State Agency",
"url": "http://www.place.com"
},
关于为什么不包括我的相关对象(GovernmentOffice / locations / OfferCatalog / GovernmentServices)的任何想法?有没有更好的方法来为谷歌组织和构建这个?