【问题标题】:What is the proper schema.org markup for a webpage about another website?关于另一个网站的网页的正确 schema.org 标记是什么?
【发布时间】:2020-08-13 15:52:51
【问题描述】:

关于 schema.org:Website 的大多数 cmets 和用法是指使用它来引用您自己的网站。甚至有人说只能用来引用自己的网站。

但是,如果您有一个谈论另一个网站的网页怎么办?例如,如果您对该网站有评论怎么办?或者,如果您的页面是对该网站代码的分析,该怎么办?

您可以使用 schema.org:Website 让机器人知道此页面是关于该网站的吗?

有示例代码吗?以下示例是正确的方法吗?

<script type="application/ld+json">
{
  "@context": "http://schema.org/",
  "@type": "Webpage",
  "name": "Website Analysis for example.com",
  "description": "An SEO analysis of the code on example.com.",
  "about": {
    "@type": "Website",
    "name": "example.com",
    "url": "http://example.com"
  }
}
</script>

注意:他们的网站是 example.com。我的网站有不同的域。

【问题讨论】:

  • 这个例子没有问题。架构数据模型中没有任何限制 @Webpage 链接到 @Website。此外,@Website 可以是 subjectOf @Webpage

标签: schema.org


【解决方案1】:

您在此处列出的内容的描述是:

example.com 上代码的 SEO 分析。

对我来说,我认为在这种情况下使用Article 会更有意义,因为它可以被视为调查报告。甚至可能是Report(但我不确定搜索引擎是如何处理的,如果这是你的意图)

使用文章的唯一缺点是您必须填写更多信息,例如publisherdatePublished。如果您想引用您正在查看的网站,我认为使用About 最有意义。例如:

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "Article",
  "author": "John Doe",
  "headline": "SEO overview for example.com",
  "datePublished":"05/07/2020",
  "image":"articleimage.jpg",
  "publisher": { 
    "@type": "Organization",
    "name": "My Company Name",
    "logo": {
      "@type": "ImageObject",
      "url": "mycompanylogo.jpg"
    }
  },
  "about": {
    "@type": "Webpage",
    "name": "Example.com",
    "url": "http://example.com"
  }
}
</script>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-08-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-03-07
    • 1970-01-01
    • 1970-01-01
    • 2014-07-22
    相关资源
    最近更新 更多