Seo “需要帮助形成有效的”;引证;schema.org结构中的数据

Seo “需要帮助形成有效的”;引证;schema.org结构中的数据,seo,schema.org,json-ld,structured-data,Seo,Schema.org,Json Ld,Structured Data,我正在努力理解如何正确格式化网站上文章的属性。文档仅表明它接受文本或CreativeWork类型,但如何添加多个?我能把它做成数组吗 现在我有这样的事情: [{ "@context": "http:\/\/schema.org", "@type": "Article", "mainEntityOfPage": { "@type": "WebPage", "@id": "https:\/\/bhamrick.com\/article-url\

我正在努力理解如何正确格式化网站上文章的属性。文档仅表明它接受文本或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\/"
    }
]
对于像谷歌这样的爬虫程序,还有哪些数据是有益的呢?

如果您在上测试您的代码(使用
引文
数组),它将作为有效的。制作
引文
数组在那里是可以接受的,所以我认为这是处理它的好方法

至于您还可以为每个
CreativeWork
添加哪些内容,这将取决于每个
CreativeWork
是什么。为此,您可以参考网站上提供的内容


我要指出的是,虽然谷歌在你的例子中验证了
引文
,但上面并没有太多内容。即使这是一个很好的结构化数据实践,您也可能不会从中获得太多SEO好处,但这是一个更好的问题。

顺便说一句,我使用的是“url”属性,我认为这更准确,尽管两者可能都是有效的

我的逻辑是:如果你还没有定义某个东西,它怎么可能是“相同的”其他东西呢

"citation: [
{
    "@type": "CreativeWork",
    "url": "https:\/\/www.ncbi.nlm.nih.gov\/pmc\/articles\/01234567\/"
}, {
    "@type": "CreativeWork",
    "url": "https:\/\/www.ncbi.nlm.nih.gov\/pmc\/articles\/567891011\/"
}

]

这个问题似乎离题了,因为它是关于SEO的,而SEO在堆栈溢出时是离题的。请阅读,以更好地理解什么时候可以在这里问SEO问题(大多数不是),以及在哪里可以得到帮助。他问的是这是否是有效的结构化数据(见标题)。我有同样的问题,即“引文”是否可以是一个数组(考虑到它是单数)。让他休息一下。