Skip to content
AnswerWell geo Documentation

Research · 5 min read · Answerwell

Message and Comment Structured Data Properties

How Schema.org Message, EmailMessage, and Comment types and their properties model email, threads, and Q&A-style feedback in structured data.

This page summarises Schema.org vocabulary for describing individual messages (including email) and user-generated comments such as questions, answers, and corrections. The definitions below come from Schema.org type and property pages; they are the authoritative wording for markup, testing tools, and rich-result validators.

Message type: what counts as a message in structured data

Section titled “Message type: what counts as a message in structured data”

The Message type represents one communication from a sender to one or more people or organisations. Schema.org defines it as follows:

A single message from a sender to one or more organizations or people.

— Schema.org, Message

A more specific subtype is EmailMessage, described as “An email message.” Use EmailMessage when the payload is email; use Message when the format is unspecified or is not email (for example, a generic inbox item or a messaging-platform item you still model with the same property set).

Recipient-related properties all apply only to types that use Message, according to their property pages:

Property Role Property page
sender Originating party Listed on Message
recipient General recipient Listed on Message
toRecipient Primary (To) recipients toRecipient
ccRecipient Copy (Cc) recipients ccRecipient
bccRecipient Blind copy (Bcc) recipients bccRecipient

Each of toRecipient, ccRecipient, and bccRecipient is documented as “Used on these types: Message.” That scope is important: do not attach these properties to unrelated types (for example, a bare CreativeWork) unless your markup genuinely describes a Message instance.

When the message was sent, received, or read

Section titled “When the message was sent, received, or read”

Temporal properties are also scoped to Message:

Property Typical meaning
dateSent When the message was sent
dateReceived When it was received
dateRead When it was read

All three are listed as used on Message only. In practice, values are usually ISO 8601 date-times. Omit a date property when the fact is unknown; inventing timestamps breaks trust with consumers that compare metadata to visible content.

messageAttachment is used on Message and links to attached media or files. Keep attachments as separate entities (for example MediaObject or DigitalDocument) referenced from the message node rather than embedding large binary descriptions inside the message object.

Comment type: questions, answers, and corrections

Section titled “Comment type: questions, answers, and corrections”

Comment models threaded or standalone user text. Schema.org lists these more specific types:

Answer
CorrectionComment
Question

— Schema.org, Comment

Use the subtype that matches intent: Question for the post asking for help, Answer for a response, CorrectionComment when the text corrects another statement. The base Comment type remains valid when no subtype fits cleanly.

Two properties expect their value to be of type Comment:

Property Documentation
comment “Values expected to be one of these types: Comment”
resultComment “Values expected to be one of these types: Comment”

The generic comment property attaches commentary to many parent types across Schema.org. resultComment is for commentary tied to a result (for example, feedback on an outcome or output). Point both at a Comment node (or a subtype), not at a plain string, if you want the graph to stay valid against Schema.org’s expected types.

Engagement counters apply to Comment, not to Message:

Property Used on
upvoteCount Comment
downvoteCount Comment

Use integers that reflect real counts shown to users. If votes are not displayed, omit these properties instead of placeholder zeros.

How Message and Comment fit together in one graph

Section titled “How Message and Comment fit together in one graph”

A common pattern is separate nodes: a Message (or EmailMessage) for transport metadata—sender, toRecipient, dates, attachments—and Comment subtrees for discussion. A forum “topic” might be a Question comment; replies are Answer comments linked via parentItem or your site’s own linking conventions where Schema.org allows.

Message carries routing and timestamps; Comment carries discourse shape (Question / Answer / CorrectionComment) and optional vote counts. Avoid marking the same body text as both an email Message and a Comment unless both roles are real (for example, an email that is also published as a public Q&A post).

  • Putting toRecipient, ccRecipient, or bccRecipient on non-Message types even though each property is only documented on Message.
  • Using free-text strings for comment or resultComment where the property expects a Comment entity.
  • Setting upvoteCount or downvoteCount on a Message; both are documented only on Comment.
  • Declaring EmailMessage without any email-specific distinction when a generic Message would be more accurate.
  • Publishing dateSent, dateReceived, or dateRead that contradict the visible UI or headers.
  1. Open the Schema.org Message type and confirm each property you use appears under “Used on” / property definitions for Message or EmailMessage.
  2. For discussion markup, verify subtypes against Comment (Answer, CorrectionComment, Question) and ensure comment / resultComment values are typed as Comment.
  3. Run your pages through the Schema.org version reference to cross-check EmailMessage and Message property lists after you change templates.
  4. Validate JSON-LD or Microdata with Google’s Rich Results Test or the Schema Markup Validator (linked from Schema.org tooling pages) and fix type mismatches these property pages flag.
  5. You can check automatically in Answerwell (our tool): https://answerwell.org/workspace

If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact sentence you are asking about, and we will correct or clarify it.