: How to markup ExerciseAction with SportsEvent in Schema.org? For example "John ran the NYC Marathon in 3 hours 4 minutes 5 seconds" (note that the action is in the past). Does the following
For example "John ran the NYC Marathon in 3 hours 4 minutes 5 seconds" (note that the action is in the past).
Does the following make semantic sense?
<div itemscope itemtype="https://schema.org/ExerciseAction">
<div itemprop="agent" itemscope itemtype="https://schema.org/Person">
<span itemprop="name">John</span>
</div>
<meta itemprop="distance" content="26 miles" />
<meta itemprop="exerciseType content="Running" />
<div itemprop="event" itemscope itemtype="https://schema.org/SportsEvent">
<span itemprop="name">NYC Marathon</span>
</div>
<time itemprop="result" datetime="PT3H4M5S">3 hours 4 minutes 5 seconds</time>
</div>
Should ExerciseAction be the parent or child of SportsEvent?
i.e.
<div itemscope itemtype="https://schema.org/ExerciseAction">
<div itemprop="event" itemscope itemtype="https://schema.org/SportsEvent"></div>
</div>
OR
<div itemscope itemtype="https://schema.org/SportsEvent">
<div itemprop="potentialAction" itemscope itemtype="https://schema.org/ExerciseAction"></div>
</div>
More posts by @Cugini213
2 Comments
Sorted by latest first Latest Oldest Best
Real-life example: Wilson Kipsang of Kenya finished the New York Marathon in 2 hours 12 minutes 45 seconds. He was 4th male of 28914 males.
schema.org/ExerciseAction
additionalType "http://www.productontology.org/id/Long-distance_running"
distance "26 miles"
event > schema.org/SportsEvent
additionalType "http://www.productontology.org/id/Marathon"
name "New York Marathon"
location "New York"
startDate "2015-11-01T09:00-05:00"
duration "PT12H" (event is complete)
agent > schema.org/Person
name "Wilson Kipsang"
gender "Male"
nationality "Kenya"
result > schema.org/Duration
value "PT2H12M45S" (running score)
result > schema.org/Rating
ratingValue "4" (running rank)
bestRating "1"
worstRating "28914"
I think the first variant (ExerciseAction → event → SportsEvent) makes more sense, but only because the definition of potentialAction seems to suggest that it’s for, well, potential actions, i.e., actions that could possibly happen at this event (e.g., things you can do), and not for actions that actually happened.
For explicitly denoting that this action already happened, you could add the actionStatus property:
<link itemprop="actionStatus" href="http://schema.org/CompletedActionStatus" />
Instead of the event property, you could use the sportsEvent property. But you could also use both properties together:
<div itemprop="event sportsEvent" itemscope itemtype="http://schema.org/SportsEvent">
<span itemprop="name">NYC Marathon</span>
</div>
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.