eg-0205
From
v29.4
JSON-LD
{
"@context": "https://schema.org",
"@type": "Movie",
"name": "Ghostbusters",
"sameAs": "http://en.wikipedia.org/wiki/Ghostbusters",
"actor": {
"@type": "PerformanceRole",
"actor": {
"@type": "Person",
"name": "Bill Murray"
},
"characterName": "Dr. Peter Venkman"
}
}RDFa
<div vocab="https://schema.org/" typeof="Movie">
<span property="name">Ghostbusters</span>
<link property="sameAs" href="http://en.wikipedia.org/wiki/Ghostbusters"/>
<div property="actor" typeof="PerformanceRole">
<div property="actor" typeof="Person">
<span property="name">Bill Murray</span>
</div>
<span property="characterName">Dr. Peter Venkman</span>
</div>
</div>Microdata
<div itemscope itemtype="https://schema.org/Movie">
<span itemprop="name">Ghostbusters</span>
<link itemprop="sameAs" href="http://en.wikipedia.org/wiki/Ghostbusters"/>
<div itemprop="actor" itemscope
itemtype="https://schema.org/PerformanceRole">
<div itemprop="actor" itemscope
itemtype="https://schema.org/Person">
<span itemprop="name">Bill Murray</span>
</div>
<span itemprop="characterName">Dr. Peter Venkman</span>
</div>
</div>Pre-Markup
A JSON example of a PerformanceRole, in which the Role represents the acting contribution made by Bill Murray in the film Ghostbusters. The Role entity allows us to additional information, such as the character's name that he played in the film.