gpt4 book ai didi

seo - 需要帮助在 schema.org 结构中形成有效的 "citation"数据

转载 作者:行者123 更新时间:2023-12-04 16:33:35 28 4
gpt4 key购买 nike

我正在努力理解如何正确格式化网站上文章的 citation 属性。该文档仅表明它接受 Text 或 CreativeWork 类型,但我如何添加多个?我可以把它变成一个数组吗?

现在我有这样的事情:

[{
"@context": "http:\/\/schema.org",
"@type": "Article",
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "https:\/\/bhamrick.com\/article-url\/"
},
"url": "https:\/\/bhamrick.com\/article-url\//",
"headline": "Article Title",
"description": "This is an excerpt from the article",
"image": {
"@type": "ImageObject",
"url": "https:\/\/cdn.bhamrick.com\/article-image.jpg",
"width": 1200,
"height": 628
},
"datePublished": "2019-12-10T18:10:23-08:00",
"dateModified": "2020-02-26T18:24:00+00:00",
"author": {
"@type": "Person",
"name": "Bryce Hamrick",
"url": "",
"description": "This is my bio.",
"sameAs": ["https:\/\/bhamrick.com\/", "https:\/\/twitter.com\/https:\/\/twitter.com\/bhamrick"]
},
"publisher": {
"@type": "Organization",
"@id": "https:\/\/bhamrick.com\/#organization",
"name": "Bryce Hamrick",
"logo": {
"@type": "ImageObject",
"@id": "https:\/\/bhamrick.com\/#logo",
"url": "https:\/\/cdn.bhamrick.com\/logo.png",
"width": 600,
"height": 60
},
"image": {
"@type": "ImageObject",
"@id": "https:\/\/bhamrick.com\/#logo",
"url": "https:\/\/cdn.bhamrick.com\/logo.png",
"width": 600,
"height": 60
}
},
"articleSection": "Article Category",
"keywords": "",
"wordCount": 5151,
"citation": []
}]

对于“引用”属性,我应该将其更改为这样吗?
"citation: [
{
"@type": "CreativeWork",
"sameAs": "https:\/\/www.ncbi.nlm.nih.gov\/pmc\/articles\/01234567\/"
}, {
"@type": "CreativeWork",
"sameAs": "https:\/\/www.ncbi.nlm.nih.gov\/pmc\/articles\/567891011\/"
}
]

包含哪些其他数据对 Google 等抓取工具有益?

最佳答案

如果您在 Structured Data Testing Tool 上测试您的代码(使用 citation 数组) - 它将通过有效。制作 citation数组在那里是可以接受的,所以我会说这是处理它的好方法。

至于您还可以添加到每个 CreativeWork ,这将取决于每个 CreativeWork是。为此,您可以引用 schema.org specification for CreativeWork 中提供的内容。 .

我会注意到,虽然谷歌验证了 citation在您的示例中,Google Structured Data Documentation 上的内容并不多。 .即使这是一个很好的结构化数据实践,您可能不会从中获得太多的 SEO 好处 - 但这是一个更好的问题 Webmasters Stack Exchange .

关于seo - 需要帮助在 schema.org 结构中形成有效的 "citation"数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60425513/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com