如何为我的组织指定 parentOrganization?
How to specify parentOrganization for my Organization?
这是我的架构:
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Organization",
"address": {
"@type": "PostalAddress",
"addressLocality": "California, USA",
"postalCode": "92867",
"streetAddress": "1636 W Collins Ave"
},
"telephone": "18008931107",
"name": "Mesa Garage Doors",
"parentOrganization": {
"name": "Overhead Garage Doors Store"
}
}
</script>
如果你在 Google 的模式检查器上测试这个模式,我得到这个错误:
The property parentOrganization
is not recognized by Google for an object of type Organization
.
我正在使用来自 Schema.org 的 parentOrganization
属性:http://schema.org/parentOrganization
有人知道怎么做吗?
更新: 以下答案适用于 Schema.org 的 2.0 版。自版本 2.1 (see commit) 起,parentOrganization
也可用于 Organization
。
parentOrganization
property (which was previously named branchOf
) is only defined for LocalBusiness
, not for the broader Organization
.
使用 Organization
时,与另一个 Organization
的关系的唯一可用属性是:
(截至 version 2.0。)
这是我的架构:
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Organization",
"address": {
"@type": "PostalAddress",
"addressLocality": "California, USA",
"postalCode": "92867",
"streetAddress": "1636 W Collins Ave"
},
"telephone": "18008931107",
"name": "Mesa Garage Doors",
"parentOrganization": {
"name": "Overhead Garage Doors Store"
}
}
</script>
如果你在 Google 的模式检查器上测试这个模式,我得到这个错误:
The property
parentOrganization
is not recognized by Google for an object of typeOrganization
.
我正在使用来自 Schema.org 的 parentOrganization
属性:http://schema.org/parentOrganization
有人知道怎么做吗?
更新: 以下答案适用于 Schema.org 的 2.0 版。自版本 2.1 (see commit) 起,parentOrganization
也可用于 Organization
。
parentOrganization
property (which was previously named branchOf
) is only defined for LocalBusiness
, not for the broader Organization
.
使用 Organization
时,与另一个 Organization
的关系的唯一可用属性是:
(截至 version 2.0。)