id.ot
id.ot

Reputation: 3141

HTML5 Microdata/Schema.org "Thing>Person" implementation

The old way of using Microdata to semantically declare an itemprop="image" for itemtype=".../Person" was as follows:

<section itemscope itemtype="http://data-vocabulary.org/Person">
    <h1 itemprop="name">Andy Runie</h1>
    <p>
        <img itemprop="photo" src="http://www.example.com/photo.jpg">
    </p>
</section>

Easy enough.


Evidently (per the documentation) the previous approach is being deprecated and the "new" schema to use in HTML5 Microdata is Schema.org.

This was taken from the documentation enter image description here

The Schema.org documentation shows that "Thing" is the parent for "Person"

and

itemprop="image" is now under "Thing." Whereas before itemprop="photo" was under "Person."

According to the documentation (2a. schema.org types and properties) we find that Person inherits from Thing...

Question: Using this new standard, can I simply use the following to appropriately show in my HTML that an 'isitemtype="http://schema.org/Person"`?

<section itemscope itemtype="http://schema.org/Person">
    <h1 itemprop="name">Andy Runie</h1>
    <p>
        <img itemprop="image" src="http://www.example.com/photo.jpg">
    </p>
</section>

Upvotes: 2

Views: 3187

Answers (3)

Daniel
Daniel

Reputation: 379

and here you can find another example with Schema.org this time using itemprop="jobtitle" and itemprop="url" : example

Upvotes: 0

ajax
ajax

Reputation: 1906

Absolutely. Well, actually there is an example below the schema.org/Person page that answers your question.

<div itemscope itemtype="http://schema.org/Person">
  <span itemprop="name">Jane Doe</span>
  <img src="janedoe.jpg" itemprop="image" />
...
</div>

Upvotes: 2

Micha&#235;l Hompus
Micha&#235;l Hompus

Reputation: 3479

Yes you are correct.

If you navigate to http://schema.org/Person you can use all mentioned properties to describe a person, that includes all properties from Thing like image, name, description and url.

Upvotes: 3

Related Questions