【问题标题】:Which microformat schema should I use for username?我应该为用户名使用哪种微格式架构?
【发布时间】:2019-08-20 07:10:51
【问题描述】:

我不知道,如果我可以使用 Person > 名称模式作为用户名。

我正在查看 schema.org 词汇,但没有找到更好的选择。

<div itemprop="author" itemscope itemtype="https://schema.org/Person">Username: <span itemprop="name">Selena</span></div>

【问题讨论】:

    标签: schema.org microformats


    【解决方案1】:

    “用户”没有特定的属性/项目类型(如:online account username 用于 person-X)。

    项目的名称。 https://schema.org/name

    项目是“用户 X”,项目名称是 riddick2004-newjohn-pro-1234(有效)。

    您可以添加 URL/sameAs 以提供有关用户的额外数据。

    示例

    medium.com - 每个作者(昵称)可点击到内页(完整个人资料页面)。可选添加:“sameAs”以提供有关用户的更多数据。

    <div itemprop="author" itemscope itemtype="https://schema.org/Person">
      <a title="Rihanna Profile" itemprop="url" href="mysite/Rihanna-user-profile">
        Author: <span itemprop="name">badgalriri</span>.
       <link itemprop="sameAs" href="https://www.instagram.com/badgalriri"/>
      </a>
    </div>
    

    如果你想添加额外的数据/属性打开问题她: https://github.com/schemaorg/schemaorg/issues

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-07-25
      • 2012-01-11
      • 2010-10-09
      • 1970-01-01
      • 1970-01-01
      • 2016-05-22
      • 1970-01-01
      • 2016-09-30
      相关资源
      最近更新 更多