通过@id 的架构链接导致 "Unnamed item" 错误
Schema linking via @id results in "Unnamed item" error
我正在尝试将 Schema 结构化数据添加到我的网站。
我的应用有一个页面:
{
"@context": "https://schema.org",
"@type": "MobileApplication",
"@id": "https://example.com/app",
"name": "APP",
"applicationCategory": "HealthApplication",
"operatingSystem": ["iOS", "Android"],
"offers": {
"@type": "Offer",
"price": "0",
"priceCurrency": "USD"
},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "5",
"ratingCount": "100"
}
}
...我公司的另一个:
{
"@context": "https://schema.org",
"@type": "Corporation",
"@id": "https://example.com/about",
"name": "COMPANY",
"owns": {
"@type": "MobileApplication",
"@id": "https://example.com/app"
}
}
当我用https://search.google.com/test/rich-results测试上面的内容时,应用页面没问题,但是公司页面出现以下错误:
我是不是误解了 @id
的工作原理?我以为 Google 然后会查找链接的资源并获取所有缺少的属性。
仅使用 @id
关键字引用它们,省略 @type
关键字:
{
"@context": "https://schema.org",
"@type": "Corporation",
"@id": "https://example.com/about",
"name": "COMPANY",
"owns": {
"@id": "https://example.com/app"
}
}
但是,Google 似乎并没有以链接互联网上片段的方式使用 @id
关键字,尤其是那些位于不同页面或网站上的片段,或至少在 SERP
中没有任何好处
此外,公司标记可以改进:属性 owns expects a Product type, and MobileApplication is a subtype of CreativeWork, so it's probably not appropriate, however, there seems to be no straightforward property that connects Organization and CreativeWork,虽然 Google 似乎没有抱怨它
我正在尝试将 Schema 结构化数据添加到我的网站。
我的应用有一个页面:
{
"@context": "https://schema.org",
"@type": "MobileApplication",
"@id": "https://example.com/app",
"name": "APP",
"applicationCategory": "HealthApplication",
"operatingSystem": ["iOS", "Android"],
"offers": {
"@type": "Offer",
"price": "0",
"priceCurrency": "USD"
},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "5",
"ratingCount": "100"
}
}
...我公司的另一个:
{
"@context": "https://schema.org",
"@type": "Corporation",
"@id": "https://example.com/about",
"name": "COMPANY",
"owns": {
"@type": "MobileApplication",
"@id": "https://example.com/app"
}
}
当我用https://search.google.com/test/rich-results测试上面的内容时,应用页面没问题,但是公司页面出现以下错误:
我是不是误解了 @id
的工作原理?我以为 Google 然后会查找链接的资源并获取所有缺少的属性。
仅使用 @id
关键字引用它们,省略 @type
关键字:
{
"@context": "https://schema.org",
"@type": "Corporation",
"@id": "https://example.com/about",
"name": "COMPANY",
"owns": {
"@id": "https://example.com/app"
}
}
但是,Google 似乎并没有以链接互联网上片段的方式使用 @id
关键字,尤其是那些位于不同页面或网站上的片段,或至少在 SERP
此外,公司标记可以改进:属性 owns expects a Product type, and MobileApplication is a subtype of CreativeWork, so it's probably not appropriate, however, there seems to be no straightforward property that connects Organization and CreativeWork,虽然 Google 似乎没有抱怨它