Sub topic 9
Marking up datasets, people, and articles with schema.org
This chapter assumes you can read basic HTML and JSON, and that you know what a median and a percentage are. It also assumes you have a page that already contains original data, expert quotes, or statistics, as covered in earlier chapters. Markup does not replace visible content. It describes content that is already on the page.
What schema.org markup does and does not do
schema.org is a shared vocabulary of types (such as Article, Person, Dataset) and properties (such as author, datePublished, license). You can write it as JSON-LD, which is a JSON block inside a <script type="application/ld+json"> tag. Search engines and other crawlers can read that block without parsing your visible layout.
For this tutorial's goal, markup helps in three ways:
- It states who made a dataset, when, under what license, and where to download it.
- It connects a quote or article to a named person and organisation.
- It gives machines unambiguous dates and names, so a number is less likely to be separated from its context.
Markup does not guarantee that any AI search system will cite you. Each system selects sources by its own undisclosed logic, and no vendor has promised that schema.org changes that. Treat markup as a way to remove ambiguity. Do not treat it as a ranking lever.
Choosing the right types
Start from what the page actually contains. Then pick the type that describes it.
| Page content | Type | Key properties |
|---|---|---|
| The page itself is a report or post | `Article` (or `NewsArticle`, `BlogPosting`) | `headline`, `author`, `datePublished`, `dateModified`, `publisher` |
| A survey or data table you publish | `Dataset` | `name`, `description`, `creator`, `datePublished`, `license`, `variableMeasured`, `distribution` |
| An author or an expert you quote | `Person` | `name`, `jobTitle`, `worksFor`, `sameAs` |
| The organisation behind the work | `Organization` | `name`, `url`, `logo`, `sameAs` |
| A quotation | `Quotation` (or `Quote`) | `text`, `creator`, `isBasedOn` |
A single page often needs several of these. The usual pattern is an Article that mentions a Dataset, with Person and Organization entries for the people involved.
Describing an original survey as a Dataset
The Dataset type is the most useful one for original research. This example describes a survey, with the creator, date, license, and download link in one place.
{
"@context": "https://schema.org",
"@type": "Dataset",
"name": "2026 Workflow Automation Survey",
"description": "Responses from 412 team leads about hours saved per week through workflow automation.",
"creator": { "@type": "Organization", "name": "Example Co" },
"datePublished": "2026-03-10",
"license": "https://creativecommons.org/licenses/by/4.0/",
"variableMeasured": "Hours saved per week",
"distribution": {
"@type": "DataDownload",
"encodingFormat": "text/csv",
"contentUrl": "https://example.com/data/survey-2026.csv"
}
}Each property answers a question a reader or crawler would otherwise have to guess:
descriptionstates the population (team leads) and the sample size (412). Write it so it still makes sense if copied alone.datePublishedgives the date asYYYY-MM-DD, the ISO 8601 format.licenseis a URL. It tells people whether they may reuse the data, and under what conditions.variableMeasurednames what was measured, including the unit.distributionpoints to the downloadable file and says what format it is.
The description must agree with the numbers you compute. The following script produces the sentence you should place in the visible text, and the sample size you should put in the markup. It reads a CSV with a column named hours_saved_per_week.
import csv
import statistics
with open("survey.csv", newline="", encoding="utf-8") as f:
rows = list(csv.DictReader(f))
hours = [float(r["hours_saved_per_week"]) for r in rows if r["hours_saved_per_week"]]
n = len(hours)
median = statistics.median(hours)
share = sum(h >= 5 for h in hours) / n
print(
f"In our survey of {n} respondents, the median time saved was "
f"{median:.1f} hours per week, and {share:.0%} saved 5 hours or more."
)Note that n counts only rows where the field is not empty. If 450 people answered the survey but 412 gave a value for this question, the correct sample size for this claim is 412. The markup, the visible sentence, and the methodology section should all use the same figure.
Keeping the markup and the data in sync
A common failure is editing the CSV, the page text, and the JSON-LD by hand at different times. Three habits reduce this:
- Generate the JSON-LD from the same script that computes the statistics, so
ncomes from one place. - Update
dateModifiedon theArticlewhenever the data file changes. - Review the three together before publishing: the visible sentence, the markup, and the downloadable file.
Marking up people and expert quotes
An expert quote is only as useful as its attribution. In the visible HTML, keep the quote and the attribution together, in the same element, as the earlier chapter on quotes showed.
<figure>
<blockquote cite="https://example.com/interviews/jane-doe">
<p>Most of the delay came from manual handoffs, not from the tools themselves.</p>
</blockquote>
<figcaption>
Jane Doe, Head of Data at Example Co, interviewed on 2026-02-12
</figcaption>
</figure>You can add a matching description in JSON-LD. The Quotation type is defined in schema.org, and it links the text to a creator.
{
"@context": "https://schema.org",
"@type": "Quotation",
"text": "Most of the delay came from manual handoffs, not from the tools themselves.",
"creator": {
"@type": "Person",
"name": "Jane Doe",
"jobTitle": "Head of Data",
"worksFor": { "@type": "Organization", "name": "Example Co" }
},
"isBasedOn": "https://example.com/interviews/jane-doe"
}Two points need care:
- Permission. Only mark up a quote you collected with the speaker's consent, and only with the title and employer they agreed to. Putting a person's name into structured data makes the association easier for machines to find and repeat.
- Currency. Job titles change. If Jane Doe moves to another company, your markup still says she works at Example Co. The visible caption carries the date of the interview, which keeps the statement true: she held that role when interviewed. Consider making the markup reflect this as well, for example by keeping the interview date in the page text next to the quote.
Using sameAs for identity
The sameAs property links a Person or Organization to other pages that identify the same entity, such as a professional profile or an official site. It helps disambiguate two people with the same name. Only include URLs you have confirmed belong to that person. A wrong sameAs link attaches your content to the wrong identity.
Marking up the article that holds it all
The Article entry ties the page together. It names the author, dates, and publisher, and can refer to the dataset with about or citation.
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "How much time does workflow automation save? Results from 412 team leads",
"author": {
"@type": "Person",
"name": "Alex Rivera",
"jobTitle": "Research Lead",
"worksFor": { "@type": "Organization", "name": "Example Co" }
},
"publisher": { "@type": "Organization", "name": "Example Co" },
"datePublished": "2026-03-10",
"dateModified": "2026-03-24",
"citation": "https://example.com/data/survey-2026.csv"
}datePublished and dateModified deserve attention. When dateModified is later than datePublished, the page should explain what changed, for example in a short note near the top. A modified date with no visible change history is a signal with no support.
Combining several entities on one page
You can put more than one entity on a page. Two clean options exist:
- Several separate
<script type="application/ld+json">blocks, one per entity. - One block with an
@grapharray that lists every entity.
The @graph form lets you refer to the same entity twice using @id, so you define the organisation once and reuse it.
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "Organization",
"@id": "https://example.com/#org",
"name": "Example Co",
"url": "https://example.com/"
},
{
"@type": "Dataset",
"@id": "https://example.com/research/survey-2026#dataset",
"name": "2026 Workflow Automation Survey",
"description": "Responses from 412 team leads about hours saved per week through workflow automation.",
"creator": { "@id": "https://example.com/#org" },
"datePublished": "2026-03-10",
"license": "https://creativecommons.org/licenses/by/4.0/"
},
{
"@type": "Article",
"headline": "How much time does workflow automation save? Results from 412 team leads",
"publisher": { "@id": "https://example.com/#org" },
"datePublished": "2026-03-10",
"about": { "@id": "https://example.com/research/survey-2026#dataset" }
}
]
}Here the @id values are identifiers, not necessarily pages that resolve. Using them consistently across your site makes it clear that "Example Co" on the article and "Example Co" on the dataset are the same organisation.
Common errors
- Markup without visible content. Describing a dataset that the page never shows, or quotes that appear only in JSON-LD. The page should present the facts to readers first.
- Invalid JSON. A trailing comma or an unescaped quotation mark inside a string breaks the whole block. Validate it before publishing.
- Wrong type. Using
Datasetfor a page that only mentions a number from someone else's study. Mark up what you made. For other people's work, cite them in visible text with a link. - Stale dates. A
dateModifiedthat changes on every site rebuild, even when the content did not. It makes the date meaningless. - Missing license. Without it, people cannot tell whether they may reuse the data. State one, even if it is restrictive.
- Invented properties. Using names that schema.org does not define. Check each property against the schema.org documentation for that type.
- Unverified sameAs links. See above. A wrong identity link is worse than none.
Testing your markup
Check three things before you publish:
- Syntax. Paste the JSON into a JSON validator, or load it in a script, to confirm it parses.
- Vocabulary. Use the Schema Markup Validator at validator.schema.org to check that types and properties exist and fit together.
- Consistency. Compare every value in the markup to the visible page. Dates, counts, names, and units should match.
Search engine tools such as Google's Rich Results Test check only the types that engine supports for special display. A page can pass the generic validator and show no rich result, because rich results are a separate feature from markup validity. A passing test also does not mean any AI system will use the markup.
Summary of decisions
- Use
Datasetfor data you produced,Articlefor the page,PersonandOrganizationfor who is responsible, andQuotationfor a quote with a named speaker. - Put the sample size, population, date, license, and unit where both people and machines can find them.
- Generate numbers once and reuse them everywhere.
- Treat markup as clarification. It does not guarantee citations.
Exercise
A page's visible text says "In our survey of 412 team leads, the median time saved was 3.5 hours per week." Its Dataset markup says the description is "Responses from 450 team leads" and has datePublished of 2026-03-10, while the article shows a publication date of 2026-03-12. Name the problems and say how you would fix them.
Show answer
There are two mismatches. The sample size differs (412 in the text, 450 in the markup), and the publication dates differ (2026-03-12 on the page, 2026-03-10 in the markup). Decide which values are correct by checking the data file, for example by counting the non-empty values for the question. If 450 people responded but only 412 answered this question, the dataset description may say 450 responses while the claim says 412 respondents to this question, and the text should say so explicitly. Then make the dates agree, using the real publication date. Ideally generate the number and the markup from one script so they cannot drift apart.
Exercise
You quoted Priya Nair, a data engineer, in an interview last year. Her current employer is different now. What should the visible caption and the markup say?
Show answer
The caption should state the title and employer she had at the time, together with the interview date, because that was true when she said it. The markup should not claim she currently works at the old employer without that context. Either keep the interview date next to the quote so the role is clearly dated, or confirm with her how she wants to be described now, and update the markup only with her agreement. Do not add a sameAs link or new title you have not verified.