1

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?

unor
  • 92,415
  • 26
  • 211
  • 360
Amirreza Nasiri
  • 536
  • 5
  • 14

2 Answers2

4

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.

Community
  • 1
  • 1
unor
  • 92,415
  • 26
  • 211
  • 360
  • Great. I'll use it. But could you write an example with language attribute? – Amirreza Nasiri Jan 26 '14 at 16:40
  • 1
    @AmirrezaNasiri: Simply add the `lang` attribute to the element containing the name, e.g.: `
    John
    ` (if "John" would be in English). Note that this has nothing to do with Microdata or schema.org, that’s plain HTML.
    – unor Jan 26 '14 at 16:41
0

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

daviddeering
  • 819
  • 1
  • 7
  • 9
  • I use givenName. could I use both of them into an item? it wont make any problems? which one is better for local and global language? – Amirreza Nasiri Jan 24 '14 at 20:06