使用 Schema.org 作为扩展插件信息

Using Schema.org for extension plugin info

我浏览网页已有一段时间了,对 Schema.org 的工作原理有了很好的了解。现在,我想到可以使用 Schema.org 让搜索引擎知道这个或那个网站正在使用网站上的特定软件,前提是它提供了一些功能。另一方面,我找不到任何主要参与者这样做的参考资料(WordPress、WooCommerce、Magento),所以我想知道:

  1. 如何在客户的网站上使用 Schema.org 标记我的软件?
  2. 我究竟可以添加什么作为信息(名称、作者、URL、描述)?
  3. 应该使用哪个types/properties?

补充一点问题 3,SoftwareApplication 似乎可以涵盖它。在 Schema.org 自己的示例中,如下所示:

{
  "@context": "http://schema.org",
  "@type": "Restaurant",
  "name": "Tartine Bakery",
  "potentialAction": {
    "@type": "ViewAction",
    "target": [
      "http://www.urbanspoon.com/r/6/92204",
      {
        "@type": "EntryPoint",
        "urlTemplate": "http://api.urbanspoon.com/r/6/92204",
        "contentType": "application/json+ld"
      },
      "android-app://com.urbanspoon/http/www.urbanspoon.com/r/6/92204",
      {
        "@type": "EntryPoint",
        "urlTemplate": "urbanspoon://r/6/92204",
        "actionApplication": {
          "@type": "SoftwareApplication",
          "@id": "284708449",
          "name": "Urbanspoon iPhone & iPad App",
          "operatingSystem": "iOS"
        }
      },
      {
        "@type": "EntryPoint",
        "urlTemplate": "urbanspoon://r/6/92204",
        "actionApplication": {
          "@type": "SoftwareApplication",
          "@id": "5b23b738-bb64-4829-9296-5bcb59bb0d2d",
          "name": "Windows Phone App",
          "operatingSystem": "Windows Phone 8"
        }
      }
    ]
  }
}

Schema.org 用于提供有关餐厅的信息(为什么不是软件?)。因此,如果有人知道如何做到这一点,我们将不胜感激。

Schema.org 不提供 属性 来指定 SoftwareApplication that was used for generating a WebSite/WebPage

可能会使用 isBasedOn 属性,因为它的定义很宽泛 ("A resource that was used in the creation of this resource."),但我想它不是为了这个目的而设计的。

与其指定用于生成页面的软件(消费者通常不感兴趣,尤其是因为它不一定遵循某些功能可用),不如 specify the potential actions 由 site/pages:

提供

并且从这样的 Action,您可以使用(如果适用)target property to specify an EntryPoint which can specify with actionApplication 软件用于 "complete the request"。

(顺便说一句,你可以指定用于生成HTML文档的软件作为元标记,不需要结构化数据:generator