根据CreativeWork Schema ,“license ”是一个有效的属性,但使用 Google Structured Data Testing Tool 测试以下代码出现错误:
Error: Page contains property "license" which is not part of the schema
<span itemscope itemtype="http://schema.org/CreativeWork">
<meta itemprop="genre" content="Travel">
<meta itemprop="isFamilyFriendly" content="true">
<link itemprop="license" content="http://creativecommons.org/licenses/by-nd-nc/1.0/">
</span
我是否可以假设这是测试工具中的一个故障,或者 Google 忽略了该属性并被其他 SE 在其他地方使用?
最佳答案
license
property是added in version 1.6 (2014-06-16) 。
Google 结构化数据测试工具无法识别此版本之后甚至之前的许多其他属性,因此它们很可能还没有跟上。
无法回答 Google 是否使用(或将使用)此属性。 Google 和其他 schema.org 使用者都不一定使用所有属性和类,并且特定用途可能没有记录或保密。
(旁注:由于您有一个 URL 作为 license
属性的值,因此 must use the link
element instead of meta
。)
关于schema.org - Google 能否识别所有架构属性?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26366183/