Sr. Schneider
Sr. Schneider

Reputation: 757

schema.org: aggregateRating different notations

I found different notations for aggregateRating on the internet.

Can somebody please explain the difference between the following two?

Notation 1

<span itemprop="aggregateRating" itemscope itemtype="https://schema.org/AggregateRating">

Notation 2

<span property="aggregateRating" typeof="AggregateRating">

Upvotes: 0

Views: 48

Answers (1)

Tony McCreath
Tony McCreath

Reputation: 3384

Notation 1 is using the Microdata format, while Notation 2 is using RDFa Lite. You should pick one format for any entities you are marking up. JSON-LD is another format option.

What you mark up, like aggregateRating, is part of the vocabulary you are using. In this case from schema.org.

Upvotes: 1

Related Questions