帖子结构化数据:设置显式“标识符”和规范 URL 为“URL”

在结构化数据模型中:
帖子是主题页面上的对象,目前通过其 id 标签进行标识。然后,页面的规范 URL(canonical URL)以某种方式用于创建 identifier ——另请参阅:

通过 Google 富媒体搜索测试

identifier
https://meta.discourse.org/t/feedback-on-new-hamburger-and-user-menus/post_123

identifier 可能是 URL 类型(对于 JSON-LDIRI),就像本例中一样。这个(自动创建的)URL 不需要与帖子本身的规范 URL 匹配,它只需要是唯一的。
identifier 设置为 canonical url 的特定值可确保其唯一性,并且不应造成任何损害。
更进一步:将规范 URL 作为 url 属性添加到帖子中。

爬虫视图:带帖子的主题页面

当前状态:

<div id="post_123"
     itemscope="" itemtype="http://schema.org/DiscussionForumPosting"
     class="topic-body crawler-post">
  <div class="crawler-post-meta">
    [...]

通过属性 itemid 使用规范 URL 作为 identifier,并设置属性 url

<div id="post_123"
     itemid="https://meta.discourse.org/t/feedback-on-new-hamburger-and-user-menus/32519?page=6#post_123"
     itemscope="" itemtype="http://schema.org/DiscussionForumPosting"
     class="topic-body crawler-post">
  <div class="crawler-post-meta">
    <link itemprop="url" href="https://meta.discourse.org/t/feedback-on-new-hamburger-and-user-menus/32519?page=6#post_121">
    [...]

…结果是:https://search.google.com/test/rich-results/result?id=_k2xr2Uf2tCLTReR69-SLg\u0026hl=en