Dataset, DataCatalog, and DataFeed Structured Data
How Schema.org and Google define dataset catalogs, download distribution, and DataFeed files for books and library systems.
This page brings together Schema.org vocabulary for datasets and feeds (aligned with W3C DCAT) and Google’s structured data guidance for Dataset, catalogs, downloads, and book or library DataFeed files. The types work together: a DataCatalog lists Dataset entries; each dataset can expose one or more DataDownload distributions; a DataFeed wraps feed items such as books or library systems for bulk delivery to Google.
Dataset structured data: what it describes
Section titled “Dataset structured data: what it describes”A Dataset is structured metadata for a body of information about topics you care to publish. In Schema.org it is also a more specific type under the general feed model, and it can carry catalog membership, time coverage, measured variables, and download locations.
A body of structured information describing some topic(s) of interest.
— Schema.org, Dataset
Google’s dataset documentation expects you to mark up the dataset itself, the repository or catalog it lives in, and—when files are offered—each downloadable distribution with its URL and format.
distribution and DataDownload: how to link downloadable files
Section titled “distribution and DataDownload: how to link downloadable files”People often point url at a landing page. For actual files, use the distribution property on Dataset, whose values are DataDownload objects.
A downloadable form of this dataset, at a specific location, in a specific format. This property can be repeated if different variations are available.
— Schema.org, distribution
Google treats distribution as the place to describe where to get data and in what format, and allows several values (for example separate CSV and Excel URLs).
| Property | Requirement (Google) | Purpose |
|---|---|---|
distribution.contentUrl |
Required when documenting downloads | Direct download link |
distribution |
Recommended | DataDownload wrapper |
distribution.encodingFormat |
Recommended | File format (text or URL) |
The distribution property describes how to get the dataset itself because the URL often points to the landing page describing the dataset. The distribution property describes where to get the data and in what format.
— Google, Dataset structured data
DataDownload is defined as all or part of a dataset in downloadable form; both DataCatalog and DataDownload note DCAT, ADMS, and VoID as sources (DataCatalog acknowledgements, DataDownload acknowledgements).
DataCatalog and includedInDataCatalog: repository membership
Section titled “DataCatalog and includedInDataCatalog: repository membership”Datasets are often published inside repositories that hold many datasets, and the same dataset can appear in more than one catalog. On the dataset, Google recommends includedInDataCatalog with a DataCatalog value:
The catalog to which the dataset belongs.
— Google, Dataset structured data — DataCatalog
On Schema.org, a DataCatalog is a collection of datasets; the inverse property dataset on the catalog points to contained datasets. The older property name catalog on Dataset is superseded; prefer includedInDataCatalog (includedInDataCatalog, includedDataCatalog).
Source, provenance, and identifiers for republished datasets
Section titled “Source, provenance, and identifiers for republished datasets”Open datasets are often copied, aggregated, or derived from other sources. Google’s source and provenance best practices sketch how to represent that without confusing identities.
| Situation | Property | Guidance |
|---|---|---|
| Simple republication elsewhere | sameAs |
Canonical URL for the original; must uniquely identify one dataset |
| Substantial changes to metadata or content | isBasedOn |
Republished dataset changed significantly |
| Aggregates several originals | isBasedOn |
Several source datasets |
| DOIs or compact IDs | identifier |
Repeat property for multiple IDs; use JSON list in JSON-LD |
Use the sameAs property to indicate the most canonical URLs for the original in cases when the dataset or description is a simple republication of materials published elsewhere. The value of sameAs needs to unambiguously indicate the dataset’s identity - in other words, don’t use the same sameAs value for two different datasets.
DataFeed structured data: feeds versus on-page markup
Section titled “DataFeed structured data: feeds versus on-page markup”A DataFeed is a single feed of structured information about one or more entities. Its items sit in dataFeedElement, which may be DataFeedItem, plain text, or general Thing values (dataFeedElement).
A single feed providing structured information about one or more entities or topics.
— Schema.org, DataFeed
An item within a data feed. Data feeds may have many elements.
— Schema.org, dataFeedElement
Each DataFeedItem is one entry in a larger feed and can carry dateCreated, dateModified, dateDeleted, and an item referencing the described entity—useful when entries are added, updated, or removed over time (dateDeleted applies on DataFeedItem).
Google Book and Library feeds: DataFeed root rules
Section titled “Google Book and Library feeds: DataFeed root rules”For Book actions structured data, Google requires feed files (not only HTML on a page) with exactly one DataFeed at the root.
Every schema.org data feed file delivered to Google must contain one single entity of DataFeed at the root level. All Book and Library entities must be listed under the dataFeedElement field of the DataFeed entity.
— Google, Book structured data — DataFeed entity
Required and supported properties for that root entity:
| Property | Value | Notes |
|---|---|---|
@context |
https://schema.org |
Required |
@type |
DataFeed |
Required |
dataFeedElement |
Book, LibrarySystem, or homogeneous arrays |
Do not mix Book and LibrarySystem in one array |
dateModified |
ISO 8601 date-time | Last feed update |
Warning: As described in Create your feed, if you have both a Book feed and a Library feed, they must be two separate feeds files.
— Google, Book structured data — DataFeed entity
So: one file is either all books or all library systems under dataFeedElement, never both in the same feed file.
CompleteDataFeed: when old entries can be dropped
Section titled “CompleteDataFeed: when old entries can be dropped”CompleteDataFeed is a more specific DataFeed type whose snapshot is meant to include every current item—similar in spirit to Atom feed paging (RFC 5005).
A CompleteDataFeed is a DataFeed whose standard representation includes content for every item currently in the feed.
— Schema.org, CompleteDataFeed
By marking this feed as a CompleteDataFeed, old entries can be safely discarded when the feed is refreshed, since we can assume the feed has provided descriptions for all current items.
— Schema.org, CompleteDataFeed
Use this when the feed represents a changing collection (for example a “top twenty” list) and consumers should not retain stale dataFeedElement entries after a full refresh.
How Dataset markup differs from bulk DataFeed files
Section titled “How Dataset markup differs from bulk DataFeed files”| Aspect | On-page Dataset JSON-LD |
Google Book/Library DataFeed file |
|---|---|---|
| Primary goal | Describe one dataset (and downloads, catalog) | Bulk list of Book or LibrarySystem entities |
| Root type | Dataset (typical) |
Single root DataFeed |
| Items | distribution, includedInDataCatalog |
dataFeedElement array |
| Separate files | One dataset per page is common | Book feed and library feed must be separate files |
supportingData elsewhere in Schema.org can point at a DataFeed when another type needs to reference feed-shaped supporting material.
Common mistakes when modeling catalogs and feeds
Section titled “Common mistakes when modeling catalogs and feeds”- Using superseded
catalogonDatasetinstead ofincludedInDataCatalog. - Putting only the dataset landing page URL in
urland omittingdistributionwithcontentUrlfor each file format Google should understand (Dataset structured data). - Mixing
BookandLibrarySystementities in onedataFeedElementarray or one feed file when delivering to Google (Book structured data). - Reusing the same
sameAsfor different datasets when documenting republications (provenance guidance). - Treating every Schema.org property named
data(for example on events, data) as dataset markup—that property belongs to a different, newer part of the vocabulary.
Optional depth on datasets includes datasetTimeInterval (related to temporal coverage), variablesMeasured, and measurementMethod / measurementTechnique on catalog, download, and dataset types.
How to check this on your site
Section titled “How to check this on your site”- Validate JSON-LD with Google’s Rich Results Test or Schema Markup Validator against your
Datasetor feed URL, using the properties from Dataset structured data and Book structured data. - For datasets, confirm each download has
distribution.contentUrland, where possible,distribution.encodingFormat; confirmincludedInDataCatalogpoints at a validDataCatalogwhen the data lives in a repository. - For book or library feeds, open the feed file and verify a single root
@type": "DataFeed", homogeneousdataFeedElementtypes, and a currentdateModifiedin ISO 8601 form. - Cross-check property names on Schema.org Dataset and DataFeed so superseded names like
catalogare not used in new markup. - 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.