Search code examples
schema.orgstructured-data

"isPartOf" or "articleSection" for sections of a "TechArticle"


I'm preparing structured data (using Schema.org and JSON-LD) for a product documentation. Documentation pages are divided into 4 sections (CSS, Components, JavaScript, and Sections).

I use TechArticle to markup those pages.

Should I use articleSection or isPartOf to define where they belong to?


Solution

  • The articleSection property would be suitable.

    The isPartOf property would convey that the TechArticle is part of another creative work, but a category (like "CSS") isn’t a creative work. The page about such a category would be a creative work (CollectionPage), which could be used as value for isPartOf / where hasPart could be used, but on that page I’d prefer to use an ItemList (as mainEntity) instead.