Is it possible to use two names for a person in schema.org?

ε祈祈猫儿з 提交于 2019-12-29 09:39:06

问题


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?


回答1:


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.




回答2:


How about using either the "givenName" or "alternateName" property?



来源:https://stackoverflow.com/questions/21332650/is-it-possible-to-use-two-names-for-a-person-in-schema-org

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!