是否可以在 schema.org 中为一个人使用两个名字? [英] Is it possible to use two names for a person in schema.org?

查看:27
本文介绍了是否可以在 schema.org 中为一个人使用两个名字?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的网站中使用 schema.org.

当我想给一个人起名字没有问题,但我必须给出两个名字(一个用英语全球语言,另一个用本地语言).

有可能吗?如果是这样,如何?

解决方案

只需多次使用对应的属性相同的项目.

微数据示例:

<div itemprop="name">John</div><div itemprop="name">Johannes</div>

(请注意,还有 alternateName 属性.)

您可能需要使用 lang 属性来指定语言.

I'm using schema.org in my website.

When I want to name a person there is no problem, but I have to give that two names (one in English global language and another in local language).

Is it possible? If so, how?

解决方案

Simply use the corresponding property several times for the same item.

Example in Microdata:

<div itemscope itemtype="http://schema.org/Person">
  <div itemprop="name">John</div>
  <div itemprop="name">Johannes</div>
</div>

(Note that there is also the alternateName property.)

You may want to use the lang attribute to specify the language.

这篇关于是否可以在 schema.org 中为一个人使用两个名字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆