Amirreza Nasiri
Amirreza Nasiri

Reputation: 746

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

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?

Upvotes: 1

Views: 1411

Answers (2)

unor
unor

Reputation: 96697

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.

Upvotes: 4

daviddeering
daviddeering

Reputation: 819

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

Upvotes: 0

Related Questions