XooCode(){

VoteAction

VoteAction is a ChooseAction subtype for casting a vote. Property: candidate (Person).

Full example of schema.org/VoteAction json-ld markup

The markup is verified as valid with Rich Results Test from Google.

schema.org/VoteAction
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "VoteAction",
  "agent": { "@type": "Person", "name": "Voter" },
  "candidate": { "@type": "Person", "name": "Dr Henrik Lund" },
  "actionStatus": "https://schema.org/CompletedActionStatus"
}
</script>

Minimal valid version

The smallest markup that still produces a valid VoteAction entity. Use it as the floor. Reach for the advanced example above when you want search engines and AI agents to understand more about your content.

schema.org/VoteAction (minimal)
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "VoteAction",
  "agent": { "@type": "Person", "name": "Voter" },
  "candidate": { "@type": "Person", "name": "Candidate" }
}
</script>

Google rich results this unlocks

VoteAction is a structural type. It does not produce a rich result on its own.

Its value comes from combining it with a primary type whose markup earns a rich result (Article, Product, Event, and so on). VoteAction becomes the trunk that the primary type branches off viamainEntityorbreadcrumb. Include it on every page as the backbone of your markup.

Common VoteAction mistakes

Mistakes that pass validation but silently fail to earn rich results or mislead consumers walking the graph. Avoid these and your markup will be ahead of most sites in the wild.

  1. 01

    candidate as a string

    Wrong
    "candidate": "Dr Lund"
    Right
    Person node

    Typed candidate lets consumers link to the person entity.

About the example data

Casting a ballot in the Dunmore Foundation board election.

Comments

Loading comments...

Leave a comment