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).
Who sent it and who receives it
Section titled “Who sent it and who receives it”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.
Attachments on a Message
Section titled “Attachments on a Message”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.
Properties that expect a Comment value
Section titled “Properties that expect a Comment value”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.
Upvotes and downvotes on comments
Section titled “Upvotes and downvotes on comments”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).
Common mistakes
Section titled “Common mistakes”- Putting
toRecipient,ccRecipient, orbccRecipienton non-Messagetypes even though each property is only documented onMessage. - Using free-text strings for
commentorresultCommentwhere the property expects aCommententity. - Setting
upvoteCountordownvoteCounton aMessage; both are documented only onComment. - Declaring
EmailMessagewithout any email-specific distinction when a genericMessagewould be more accurate. - Publishing
dateSent,dateReceived, ordateReadthat contradict the visible UI or headers.
How to check this on your site
Section titled “How to check this on your site”- Open the Schema.org
Messagetype and confirm each property you use appears under “Used on” / property definitions forMessageorEmailMessage. - For discussion markup, verify subtypes against Comment (
Answer,CorrectionComment,Question) and ensurecomment/resultCommentvalues are typed asComment. - Run your pages through the Schema.org version reference to cross-check
EmailMessageandMessageproperty lists after you change templates. - 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.
- You can check automatically in Answerwell (our tool): https://answerwell.org/workspace
Report an error or ask a question
Section titled “Report an error or ask a question”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.