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

标签 seo schema.org json-ld structured-data

我正在努力理解如何正确格式化网站上文章的 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/

相关文章:

JSON-LD:值的名称是必需的吗?

html - 是否必须嵌入 JSON-LD?

asp.net - 本地化:如果在切换文化时 URL 没有改变,SE 是否认为它是重复内容?

schema.org - RDFa 与 schema.org 博客架构

wordpress - 强制 HTTP 除了 htaccess 中的特定页面(SEO)

用于列出文章的类别页面的 Schema.org

html - 'leadForm' 的 Schema.org 验证错误(在 HTML+微数据表中)

javascript - 在 Angular 组件模板中添加脚本标签

parameters - Google不会使用参数索引搜索结果

wordpress - 我在 Yoast SEO 插件中的所有页面都需要 WP 页面标题吗?