Skip to content
AnswerWell geo Documentation

Research · 7 min read · Answerwell

Structured Data Markup, JSON-LD Syntax, and Work Edition Models

How Schema.org examples use JSON-LD, Microdata, and RDFa, plus Google rules for books, courses, events, and site markup.

This page summarizes how Schema.org documents structured data in its official examples, and where Google Search Central adds retrieval rules for books, courses, events, organizations, and site names. The vocabulary is shared; serialization format and a few entity models differ by use case.

JSON-LD, Microdata, and RDFa: which markup format to use

Section titled “JSON-LD, Microdata, and RDFa: which markup format to use”

Schema.org types can be expressed in three embeddings. JSON-LD goes in a application/ld+json script and is the default in the most complex graphs (music releases, shipping, jobs). Microdata uses itemscope, itemtype, and itemprop on visible HTML. RDFa uses vocab, typeof, and property (sometimes rel) on markup.

Format Typical embedding Identity markers
JSON-LD <script type="application/ld+json"> @context, @type, nested objects
Microdata HTML attributes https://schema.org/Type in itemtype
RDFa vocab on elements Same type URLs as typeof

Many property pages show all three; others are labeled JSON-LD only (for example Apartment occupancy, PoliceStation, speakable). The W3C JSON-LD 1.1 specification notes that JSON-LD representations of Microdata can use full IRIs instead of a compact @context:

Note that the JSON-LD representation of the Microdata information stays true to the desires of the Microdata community to avoid contexts and instead refer to items by their full IRI.

— W3C, JSON-LD 1.1

Practical choice: JSON-LD is easiest to maintain separately from templates; Microdata and RDFa help when properties must sit on existing page elements (NewsArticle, Museum).

@context, @type, and linking multiple entities

Section titled “@context, @type, and linking multiple entities”

Set @context to https://schema.org or https://schema.org/ — both appear in examples. Some graphs use a prefixed context, as on Thesis and Newspaper, with "schema": "https://schema.org/" and properties like schema:name.

Multiple primary types on one thing: JSON-LD "@type": ["TouristAttraction", "AmusementPark"]; Microdata space-separated itemtype; RDFa typeof="TouristAttraction AmusementPark" (AmusementPark). Secondary typing without changing @type uses additionalType (for example a Cemetery as tourist attraction).

Stable URIs tie graphs together: @id in JSON-LD, itemid in Microdata, and @graph for related nodes (workTranslation, MusicRelease). Dates and durations use ISO 8601 (2017-01-04T12:30:00-05:00, PT1H, P4Y). Many enumerated values are full URLs such as https://schema.org/InStock (SoldOut) or https://schema.org/OnlineEventAttendanceMode (VirtualLocation).

Google Book structured data: Work, Edition, and workExample feeds

Section titled “Google Book structured data: Work, Edition, and workExample feeds”

Google distinguishes abstract works from concrete editions when parsing book markup:

Work: The abstract concept of a book. Specifically, metadata such as the title, author, and original language are attributes for a work.

Edition: A concrete copy of the book. Specifically, metadata such as the year of publication, name of the edition, and International Standard Book Number (ISBN) are attributes for the edition.

— Google, Book actions structured data

Book (Work) is the “top level” Book entity: workExample is a property of Work and specifies one and only one instance of a Book (Edition). There must be at least one workExample for each Work.

— Google, Book actions structured data

Feeds use @type DataFeed with dataFeedElement and dateModified (DataFeed). Each work needs name, author, @id, url, and at least one edition under workExample with isbn, bookFormat, datePublished, and optional identifier (PropertyValue with propertyID such as OCLC_NUMBER). ReadAction and BorrowAction attach EntryPoint urlTemplate values and Offer categories (purchase, Subscription, nologinrequired).

Schema.org uses the same property for editions on creative works: workExample lists ISBN-bearing Book nodes, while film adaptations link as separate Movie nodes with exampleOfWork pointing at the canonical work @id. Translations pair workTranslation with translationOfWork in a @graph (workTranslation).

Google Course list markup: detail pages and summary ItemList

Section titled “Google Course list markup: detail pages and summary ItemList”

A single course page is not enough for Google’s course list feature. Google’s Course list structured data states that a course details page must be paired with a summary page that contains ItemList markup.

On the detail page, examples use @type Course, name, description, and provider → Organization with sameAs. Schema.org models delivery through hasCourseInstance → CourseInstance: courseMode (for example MOOC and online), startDate/endDate, location, instructor, and offers for priced distance learning (Course).

When validating, Google advises:

You may see errors for other rich result types in the Rich Results Test. To be eligible for the course list feature, pay attention to any warnings or errors that are in the Course list item section; you can ignore the other errors.

— Google, Course list structured data

Event structured data: physical, cancelled, online, and recurring schedules

Section titled “Event structured data: physical, cancelled, online, and recurring schedules”

Google’s event structured data defines a standard event as in-person and on schedule:

A standard event means that the event is happening at a physical location only and the event is happened as scheduled.

— Google, event structured data

That pattern uses eventStatus https://schema.org/EventScheduled, location as Place with PostalAddress, startDate/endDate, offers, performer, and organizer. Cancelled events switch eventStatus to EventCancelled; rescheduled events use EventRescheduled with previousStartDate (EventRescheduled).

Online and hybrid attendance use VirtualLocation with matching eventAttendanceMode:

Example of an online event.

— Schema.org, VirtualLocation

Hybrid events set MixedEventAttendanceMode and location as an array of VirtualLocation (url) plus Place (VirtualLocation). Live TV sports add BroadcastEvent with videoFormat (for example "HD") and isLiveBroadcast on a FIFA final example (videoFormat).

Recurring events nest eventSchedule → Schedule with repeatFrequency (P1W, P1M), byDay, byMonthDay, or repeatCount. Advanced iCal rules use byDay: "2MO":

Because this kind of recurrence goes beyond that expressible using DayOfWeek, it is specified instead using iCal’s syntax for byDay recurrence rules.

— Schema.org, Schedule

Ticket inventory can use AggregateOffer with lowPrice and offerCount; sold-out listings set availability to https://schema.org/SoldOut (SoldOut).

Organization, WebSite, and site-wide discovery patterns

Section titled “Organization, WebSite, and site-wide discovery patterns”

Google’s organization structured data example includes Organization with url, logo, sameAs, contact fields, PostalAddress, vatID, and iso6523Code. For how the site name may appear in results, Google documents site names via WebSite with name and optional alternateName.

Schema.org’s WebSite example adds a sitelinks search box: potentialAction → SearchAction with target URL template containing {query} and query set to "required" in JSON-LD. NGOs and stores extend the same contact patterns: NGO, ContactPoint arrays with TollFree and HearingImpairedSupported, and OnlineStore payment methods.

WebAPI examples document APIs themselves:

The Knowledge Graph Search API lets you find entities in the Google Knowledge Graph. The API uses standard schema.org types and is compliant with the JSON-LD specification.

— Schema.org, WebAPI (example description; see Knowledge Graph Search API)

Courses, jobs, products, and creative works: recurring property patterns

Section titled “Courses, jobs, products, and creative works: recurring property patterns”

Education: Lesson plans as WebPage use learningResourceType, EducationalAudience, timeRequired, typicalAgeRange, educationalLevel as DefinedTerm in a DefinedTermSet, and educationalAlignment → AlignmentObject with alignmentType educationalSubject. WorkBasedProgram covers paid apprenticeships with trainingSalary and salaryUponCompletion as MonetaryAmountDistribution.

Jobs: JobPosting examples combine jobLocation, industry as NAICS DefinedTerm, relevantOccupation with O*NET CategoryCode, applicantLocationRequirements, applicationContact, educationRequirements, and experienceInPlaceOfEducation.

Commerce: ProductModel is for specification pages, not shelf SKU pages:

A ProductModel gives a datasheet or vendor specification of a product (in the sense of a prototypical description). Use this type when you are describing a product datasheet rather than an actual product…

— Schema.org, ProductModel

Rich retail examples (under WebContent) group specs with valueGroup on PropertyValue, consumerNotice → TextObject, and shipping via ShippingService (“V2 Shipping format”). Apparel uses SizeSpecification with WearableMeasurementTypeEnumeration IRIs, hasMeasurement on the garment, and suggestedMeasurement for body ranges (WearableMeasurementTypeEnumeration).

Roles and media: Date-bounded relationships use OrganizationRole (alumniOf note: startDate is when the alumni relationship began — leaving date) and PerformanceRole for actor plus characterName. Music graphs separate MusicComposition (the work) from recordings and MusicRelease albums.

Accessibility on creative works: accessMode, accessModeSufficient as ItemList sets, and accessibilitySummary prose on Book and video examples.

Common structured data mistakes seen in official examples

Section titled “Common structured data mistakes seen in official examples”
Mistake What to do instead
Course detail without summary ItemList Add list page markup per Course list structured data
VirtualLocation without eventAttendanceMode Pair OnlineEventAttendanceMode or MixedEventAttendanceMode with VirtualLocation
Movie adaptation inside workExample Use separate Movie + exampleOfWork (workExample)
Translation linked one way only Set both workTranslation and translationOfWork
Missing @type on nested instances Every CourseInstance node should declare @type (some HNC table copies omit it)
Generic BioChemEntity Prefer Protein or Gene when possible: “Whenever possible, this should actually be marked up as either a Protein or a Gene.” — Schema.org, BioChemEntity
  1. Copy each application/ld+json block (or extract Microdata/RDFa) and confirm valid JSON and that @context/@type match the visible page content (Course, NewsArticle).

  2. For books, trace each Work @id to at least one Edition with isbn under workExample, matching Book actions structured data.

  3. For courses, confirm a separate summary page with ItemList pairs with each Course detail URL described in Course list structured data.

  4. For events, verify eventStatus, location or VirtualLocation, and previousStartDate on rescheduled pages against event structured data.

  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 statement you are asking about, and we will correct or clarify it.