Schema.org 'specialty' 属性 失败,问答类型:"The property specialty is not recognised by Google for an object of type Question."
Schema.org 'specialty' property failing with Q&A type: "The property specialty is not recognised by Google for an object of type Question."
我正在尝试使用 JSON-LD 在 Schema.org 文档之后添加 specialty
属性。根据 QAPage
文档,specialty
确实是该模式类型的有效值。
问题是当我用 Google 的 Structured Data Testing Tool 验证时,它吐出这个错误:
(The property specialty
is not recognised by Google for an object of type Question
.)
现在,Schema.org 部分 运行 由 Google,所以我不认为这是他们的错误。很确定它可能是 JSON-LD 语法,但我整个早上都在尝试不同的东西。任何人都可以阐明这个问题吗?
{
"@context": "https://schema.org",
"@type": "QAPage",
"mainEntity": {
"@type": "Question",
"name": "How many ounces are there in a pound?",
"text": "I have taken up a new interest in baking and keep running across directions in ounces and pounds. I have to translate between them and was wondering how many ounces are in a pound?",
"specialty": "SEO", //ISSUE LINE
"answerCount": 3,
"upvoteCount": 26,
"dateCreated": "2016-07-23T21:11Z",
"author": {
"@type": "Person",
"name": "New Baking User"
},
"acceptedAnswer": {
"@type": "Answer",
"text": "1 pound (lb) is equal to 16 ounces (oz).",
"dateCreated": "2016-11-02T21:11Z",
"upvoteCount": 1337,
"url": "https://example.com/question1#acceptedAnswer",
"author": {
"@type": "Person",
"name": "SomeUser"
}
},
"suggestedAnswer": [
{
"@type": "Answer",
"text": "Are you looking for ounces or fluid ounces? If you are looking for fluid ounces there are 15.34 fluid ounces in a pound of water.",
"dateCreated": "2016-11-02T21:11Z",
"upvoteCount": 42,
"url": "https://example.com/question1#suggestedAnswer1",
"author": {
"@type": "Person",
"name": "AnotherUser"
}
}, {
"@type": "Answer",
"text": " I can't remember exactly, but I think 18 ounces in a lb. You might want to double check that.",
"dateCreated": "2016-11-06T21:11Z",
"upvoteCount": 0,
"url": "https://example.com/question1#suggestedAnswer2",
"author": {
"@type": "Person",
"name": "ConfusedUser"
}
}
]
}
}
需要将 specialty
属性 添加到 WebPage
(或其 sub-types 之一,例如 QAPage
)。
您已将其添加到 Question
(where it’s not listed)。
我正在尝试使用 JSON-LD 在 Schema.org 文档之后添加 specialty
属性。根据 QAPage
文档,specialty
确实是该模式类型的有效值。
问题是当我用 Google 的 Structured Data Testing Tool 验证时,它吐出这个错误:
(The property
specialty
is not recognised by Google for an object of typeQuestion
.)
现在,Schema.org 部分 运行 由 Google,所以我不认为这是他们的错误。很确定它可能是 JSON-LD 语法,但我整个早上都在尝试不同的东西。任何人都可以阐明这个问题吗?
{
"@context": "https://schema.org",
"@type": "QAPage",
"mainEntity": {
"@type": "Question",
"name": "How many ounces are there in a pound?",
"text": "I have taken up a new interest in baking and keep running across directions in ounces and pounds. I have to translate between them and was wondering how many ounces are in a pound?",
"specialty": "SEO", //ISSUE LINE
"answerCount": 3,
"upvoteCount": 26,
"dateCreated": "2016-07-23T21:11Z",
"author": {
"@type": "Person",
"name": "New Baking User"
},
"acceptedAnswer": {
"@type": "Answer",
"text": "1 pound (lb) is equal to 16 ounces (oz).",
"dateCreated": "2016-11-02T21:11Z",
"upvoteCount": 1337,
"url": "https://example.com/question1#acceptedAnswer",
"author": {
"@type": "Person",
"name": "SomeUser"
}
},
"suggestedAnswer": [
{
"@type": "Answer",
"text": "Are you looking for ounces or fluid ounces? If you are looking for fluid ounces there are 15.34 fluid ounces in a pound of water.",
"dateCreated": "2016-11-02T21:11Z",
"upvoteCount": 42,
"url": "https://example.com/question1#suggestedAnswer1",
"author": {
"@type": "Person",
"name": "AnotherUser"
}
}, {
"@type": "Answer",
"text": " I can't remember exactly, but I think 18 ounces in a lb. You might want to double check that.",
"dateCreated": "2016-11-06T21:11Z",
"upvoteCount": 0,
"url": "https://example.com/question1#suggestedAnswer2",
"author": {
"@type": "Person",
"name": "ConfusedUser"
}
}
]
}
}
需要将 specialty
属性 添加到 WebPage
(或其 sub-types 之一,例如 QAPage
)。
您已将其添加到 Question
(where it’s not listed)。