SEO + AEO on AutopilotFrom the team at Stackmatix
The Growth Library

Preserve a Discussion Thread’s Reply Graph in Structured Data

Preserve a non-QA discussion’s exact post/comment/reply graph with a complete populated JSON-LD example and node,parentage and attribution regression cases.

Represent a discussion thread’s actual posts and replies before adding structured-data fields. A flat list can preserve every sentence while assigning a reply to the wrong parent. An invented accepted-answer label can also turn a conversation into a claim the community never made.

This guide implements a non-QA discussion graph. It does not repeat a general FAQ or QAPage tutorial. The entity identity guide explains stable identifiers;the additional work here is preserving the visible conversation’s parent relationships and authorship.

The complete thread below is fictional teaching data. Its people, opinions, dates and URLs are invented. Do not publish those examples as actual users or engagement. A real release needs the authorized community records and the current page’s exact visible content.

Choose the supported content model first

Google’s current discussion forum documentation describes DiscussionForumPosting and Comment markup for user-generated discussion content. It distinguishes Q&A use cases and documents nesting comments in the order they appear. Apply the relevant model to the actual page rather than selecting a type to obtain a hoped-for search result.

For this fictional page, Nia starts a conversation about checklist design, Ivo replies to Nia, Nia replies to Ivo, and Remi separately replies to the original post. There is no accepted answer, verified vote count or assertion that one opinion is definitive.

Optional counters require actual defined populations. A visible page may show only part of a thread, and the documentation notes that commentCount can be useful when not every comment appears in markup. Do not infer a global engagement total from the three example comments below. This fixture omits that optional field and reconciles its local node membership separately.

Keep the populated source graph beside the markup

The approved local graph contains four content nodes and three parent edges. The distinction between direct and nested comments is part of the expected result, not a layout preference.

NodeAuthorParentVisible order within parent
postNiaThread rootRoot
c1IvopostFirst direct comment
c3Niac1Reply within first comment
c2RemipostSecond direct comment

Chronological order and display traversal are not identical here. The nested reply at 10:20 can appear under its 10:10 parent before the separately displayed 10:15 comment. Preserve the actual thread layout and parentage rather than globally sorting all comments by timestamp and flattening them.

Use the complete fictional object

This object describes the same four nodes. Each content permalink has its own identity;repeated authors retain their actual profile relationship. Dates belong to the fictional posts, not to the publication date of this implementation guide.

{
  "@context": "https://schema.org",
  "@type": "DiscussionForumPosting",
  "@id": "https://forum.example/t/recovery#post",
  "url": "https://forum.example/t/recovery",
  "mainEntityOfPage": "https://forum.example/t/recovery",
  "headline": "What makes a recovery checklist useful?",
  "text": "I prefer a checklist that records the expected state before an action.",
  "datePublished": "2026-11-01T10:00:00Z",
  "author": {
    "@type": "Person",
    "name": "Nia",
    "url": "https://forum.example/u/nia"
  },
  "comment": [
    {
      "@type": "Comment",
      "@id": "https://forum.example/t/recovery#c1",
      "url": "https://forum.example/t/recovery#c1",
      "text": "I would also identify who can approve the recovery action.",
      "datePublished": "2026-11-01T10:10:00Z",
      "author": {
        "@type": "Person",
        "name": "Ivo",
        "url": "https://forum.example/u/ivo"
      },
      "comment": [
        {
          "@type": "Comment",
          "@id": "https://forum.example/t/recovery#c3",
          "url": "https://forum.example/t/recovery#c3",
          "text": "That approval should name the exact proposed change.",
          "datePublished": "2026-11-01T10:20:00Z",
          "author": {
            "@type": "Person",
            "name": "Nia",
            "url": "https://forum.example/u/nia"
          }
        }
      ]
    },
    {
      "@type": "Comment",
      "@id": "https://forum.example/t/recovery#c2",
      "url": "https://forum.example/t/recovery#c2",
      "text": "A separate result check would make the final state inspectable.",
      "datePublished": "2026-11-01T10:15:00Z",
      "author": {
        "@type": "Person",
        "name": "Remi",
        "url": "https://forum.example/u/remi"
      }
    }
  ]
}

The nested comment property is the parent edge in this example. Moving c3 directly under the root would change the graph even though its text, author and timestamp remained correct. A syntax-only JSON check would not identify that meaning change.

Run membership and parentage as separate checks

Collect the emitted content-node IDs and compare them with the expected set:post, c1, c2, c3. Require each exactly once within the scoped thread representation. Then collect parent-child edges and compare them with post→c1, c1→c3 and post→c2. Four nodes with three wrong edges is not a passing thread.

Keep author and text checks attached to each node. Swapping the text of c1 and c2 can leave all IDs and counts intact while attributing the opinions incorrectly. The expected source map must therefore be independently retained rather than regenerated from the emitted JSON.

Use a controlled negative that moves c3 to the root, a second that duplicates c2, and a third that adds an accepted-answer assertion absent from the actual model. Each should fail its relevant assertion. Restore the baseline between cases so one mutation does not obscure another.

Release the graph with its evidence

The receipt should contain source thread revision, visible node records, expected parent edges, emitted object, permalink checks and negative fixture results. Preserve corrections to author attribution and edit timestamps under the community’s actual records rather than rewriting history to make the data look fresh.

Approve when the structured representation preserves the conversation readers can inspect and every optional assertion has real support. If the platform cannot expose the required source relationships, leave the affected field unresolved instead of manufacturing a plausible tree.

The finished artifact is a reproducible discussion model. It makes the actual conversation legible without claiming a ranking advantage, an AI citation priority or community agreement that the underlying users never expressed.

Sources

Matt Pru

Co-founder and CEO of Stackmatix. Writing about growth, customer acquisition, and the decisions behind useful marketing. Connect on LinkedIn.

Developed with AI assistance under Matt's editorial direction. Our Editorial Approach