JSON-LD 示例对 'Person' 使用 'name' 属性,但 属性 不在 Schema.org 中
JSON-LD example uses 'name' property for 'Person', but the property is not in Schema.org
我是 JSON-LD 的新手。我从 http://json-ld.org/playground/
中看到了以下示例 JSON-LD
{
"@context": "http://schema.org/",
"@type": "Person",
"name": "Jane Doe",
"jobTitle": "Professor",
"telephone": "(425) 123-4567",
"url": "http://www.janedoe.com"
}
当我查看 Person
schema 时, 属性 name
不存在。有 givenName
和 familyName
.
这是一个有效的结构吗?
Person
类型是 Thing
的子类型。更具体的类型继承父类型的属性。
参见 Schema.org Person
type page。您将看到 Person
类型的可识别属性列表,但在页面的更下方,您还会看到 Thing
类型的可识别属性列表。可以将识别的 Thing
类型属性标记为 Person
类型。 name
属性 列在 Thing
类型中。
尝试添加更多字段。示例:
"jobTitle": "SEO Freelance Consultant",
"knows":"John Doe",
"children": {
"@type": "Person",
"name": "your child's name",
"disambiguatingDescription": "Provide a description that fits their professional job."
}
在多个网站上进行了几个月的测试后,我们发现这种格式效果很好。
我是 JSON-LD 的新手。我从 http://json-ld.org/playground/
中看到了以下示例 JSON-LD {
"@context": "http://schema.org/",
"@type": "Person",
"name": "Jane Doe",
"jobTitle": "Professor",
"telephone": "(425) 123-4567",
"url": "http://www.janedoe.com"
}
当我查看 Person
schema 时, 属性 name
不存在。有 givenName
和 familyName
.
这是一个有效的结构吗?
Person
类型是 Thing
的子类型。更具体的类型继承父类型的属性。
参见 Schema.org Person
type page。您将看到 Person
类型的可识别属性列表,但在页面的更下方,您还会看到 Thing
类型的可识别属性列表。可以将识别的 Thing
类型属性标记为 Person
类型。 name
属性 列在 Thing
类型中。
尝试添加更多字段。示例:
"jobTitle": "SEO Freelance Consultant",
"knows":"John Doe",
"children": {
"@type": "Person",
"name": "your child's name",
"disambiguatingDescription": "Provide a description that fits their professional job."
}
在多个网站上进行了几个月的测试后,我们发现这种格式效果很好。