How CKAN datasets reach Google Dataset Search through ckanext-dcat
The ckanext-dcat structured_data plugin embeds a schema.org JSON-LD snippet on each CKAN dataset page so that Google Dataset Search can read the dataset's metadata. Google decides what it indexes, so the snippet is a prerequisite for discovery, but it does not guarantee a listing. Without structured data, search engines have to infer what a dataset is from page text. The plugin uses the schemaorg profile by default, and it does not require the dcat plugin, so a team can start with structured data without adopting DCAT-AP serialization first. Before installing, confirm the version position. The extension's repository lists support for CKAN 2.10 and 2.11, and CKAN 2.12.0 was released on August 26, 2026, so the team must confirm the extension's status on 2.12.0 before it installs anything in production.
The first decision is which JSON-LD the portal emits. The default schemaorg profile is the starting point for most portals, and the team should keep it unless a specific reason requires another profile. Next, check that dataset records fill the fields the snippet is built from, because a schema.org record with empty fields gives the index little to match. Add the plugin to ckan.plugins in the CKAN configuration file, restart the web processes, and inspect the rendered page source of a few representative datasets: one with several resources, one with sparse metadata, and one private dataset, to confirm that its page and snippet are not visible to anonymous visitors. Run these checks on a staging copy running the same CKAN version as production, so the results describe the release the portal will actually run.
This page explains how the snippet is produced, what the schemaorg profile contains, and how to override the structured_data block in templates/package/read_base.html so it calls h.structured_data with the profile names the portal chooses. It also covers the checks to run after the change, including how to judge whether a dataset page is ready for indexing before expecting a result in Google. The ckanext-dcat Google Dataset Search documentation defines the block and profile names this page relies on, so read it alongside this section and confirm each name against the release the portal runs.
What your CKAN portal needs before structured data ships
The structured data is generated from your live dataset pages and stored metadata, so the portal must be stable, complete and changeable before anything ships. These six items cover the versions, the running site, the data, the code path, the testing environment and the people who own the decision.
Matching CKAN and ckanext-dcat versions
The structured_data plugin ships inside ckanext-dcat, so the extension must be a release that supports your CKAN minor version. The repository currently states support for CKAN 2.10 and 2.11, and CKAN 2.12.0 was released on August 26, 2026. Under the CKAN release policy, only the latest patch of the current minor and the previous minor receive security and bug fixes, so confirm a ckanext-dcat release for your line before you pin it.
Working install with rendering pages
Structured data only helps if dataset pages load for anonymous visitors, because that is the HTML Google's crawler reads. Confirm that a source install runs end to end with Python 3.10 or newer, PostgreSQL 12 or newer, Solr and Redis in place. Then open several public dataset pages in a private browser window and check that the title, description and resource list render without errors. A page that errors or redirects to a login screen produces no usable markup.
Install from source guideComplete dataset metadata in CKAN
The JSON-LD reflects what is stored, so a dataset with a blank description, license or publisher produces weaker markup. Before launch, review a sample of datasets from each organization and compare the rendered page with the stored record. Custom scheming fields need particular attention, because the default profile may not map fields it does not know about. Confirm the mapping in your installed version and decide which fields every published dataset must carry.
Access to the custom theme
Changing the output means overriding the structured_data Jinja block in templates/package/read_base.html. That override must live in a custom theme or extension that your deployment loads, so an upgrade of CKAN core leaves it intact. Confirm that your team can commit to that repository, build the image or package, and deploy it through your normal pipeline. If the override cannot ship that way, the profile choice stays at the default.
A staging portal for testing
Staging lets you inspect the rendered JSON-LD for a profile change before it reaches the public portal. It should run the same CKAN version, the same ckanext-dcat release and the same extensions, loaded with datasets that resemble production, including private and draft records. Check the page source for several dataset types, and confirm that private datasets do not expose their metadata to anonymous visitors.
A named guidance owner
Assign one named owner who follows Google's dataset guidance and decides which profile and fields the markup must carry. That person reviews the guidance when it changes, checks proposed metadata and template changes against it, and signs off the override before release. Without an owner, the markup drifts as datasets and extensions change, and nobody notices when it stops matching what the guidance asks for. Name a deputy for periods when the owner is unavailable.
How a CKAN dataset page reaches Google Dataset Search
The diagram starts in the CKAN portal, where the package template renders each dataset page. The structured_data block in that template emits a schema.org JSON-LD snippet into the HTML, using the schemaorg profile by default. Only pages the portal serves to anonymous visitors reach Google's crawler, so private datasets stay on the portal side of the boundary. Google's crawler fetches the public page, and Google Dataset Search then makes the indexing decision. The dashed path is the override: a theme that overrides templates/package/read_base.html can call h.structured_data with chosen profile names. Check the embedded JSON-LD on a public page, and confirm that private datasets are not visible to anonymous visitors.
Dataset pages reach Google only when the portal serves them publicly.
Enabling structured data so Google Dataset Search can index datasets
This sequence turns on the ckanext-dcat structured_data plugin so each public CKAN dataset page carries a schema.org JSON-LD snippet that Google Dataset Search can read. The work runs in the portal's own environment and ends with validated, monitored markup for public datasets. Each step closes with a check the portal team can record.
Confirm and record the CKAN and ckanext-dcat versions
The platform team checks the running CKAN version and selects the ckanext-dcat release that matches it. The extension's documentation lists support for CKAN 2.10 and 2.11, so a CKAN 2.12 portal needs explicit confirmation from the extension's release notes before anything else is installed. Record the version pair, the source of each version, and the target environment in the change record. The step closes when the team can point to a written pair that the extension's documentation supports.
Install the extension and enable structured_data
A platform engineer installs ckanext-dcat into the same Python environment that runs CKAN, then adds structured_data to the
ckan.pluginssetting in the CKAN configuration file. Restart CKAN so the plugin loads, and read the startup logs from that restart onward for import errors, missing dependencies or plugin load failures. The ckanext-dcat Google Dataset Search guide describes the plugin's expected behavior. The step closes whenckan.pluginslists structured_data, the site loads in a browser, and the startup logs show no plugin errors.Test the plugin without the dcat plugin
With the dcat plugin removed from
ckan.pluginsfor this check, restart CKAN and load a public dataset page. The schema.org snippet should still render, because structured_data does not depend on the dcat plugin. Separately, decide whether the portal needs DCAT RDF endpoints or the RDF harvester, since those features belong to the dcat plugin and need their own design, testing and ownership. The step closes when a public dataset page renders the snippet with only structured_data enabled, and the RDF decision is recorded as its own item.Find the JSON-LD snippet in page source
Open a public dataset page in a private browser window without logging in, so the view matches what an anonymous visitor and Google's crawler receive. Use the browser's view-source function, which shows the raw HTML the server returns. Search for a script tag with the type application/ld+json, and check that it describes a schema.org Dataset with fields that point to the dataset and its resources. Save a copy of the snippet for each sample dataset, including one with several resources and one with sparse metadata. The step closes when each sample dataset shows a JSON-LD block in its raw source.
Compare emitted values with CKAN metadata
Place the JSON-LD values beside the source dataset record in CKAN and check them field by field. Focus on the name, description, keywords, license, publishing organization, dates and resource entries, because these values feed the snippet. Confirm how each CKAN license appears as a license reference in the snippet. Where a value is missing, empty or incorrect, fix it in the CKAN metadata or the schema definition the portal uses, then reload the page and compare again. The step closes when every sample dataset matches its CKAN record and no required field is blank.
Validate markup and clear reported errors
Run each sample dataset URL through the structured data testing tools that Google currently documents. Confirm the tool and its address in Google's own documentation before testing, because these tools change over time. Treat errors as blocking: fix the CKAN metadata or template, rerun the test, and log the result. Review each warning and record whether it matters for that dataset. The step closes when every sample dataset shows no errors in the current tool and each warning has a recorded decision.
Set a monitoring routine in Google tools
Verify the portal's site in Google Search Console, which reports on indexing and structured data for the domain. Assign one named owner to review the structured data and indexing reports on a schedule the team agrees in writing. Each review checks for new errors after CKAN upgrades, template changes or new datasets, and compares the count of valid items with the number of public datasets. Google decides what it indexes, so the routine tracks what Google reports. The step closes when the property is verified, the owner and schedule are recorded, and the first review is logged.
Which profile to embed: the schemaorg default or a custom block
The ckanext-dcat structured_data plugin embeds a schema.org JSON-LD snippet on each CKAN dataset page, and it uses the schemaorg profile by default. For a portal whose only goal is Google Dataset Search indexing, that default is the right starting point, and no template change is needed. The plugin does not require the dcat plugin to be enabled, so you can confirm indexing readiness before you take on any DCAT-AP work. Before you rely on the default, open several dataset pages, check that the snippet is present, and confirm that the core descriptive fields on your datasets are filled in, because the embedded output can only be as complete as the metadata behind it. The ckanext-dcat Google Dataset Search documentation is the reference for current behavior.
Override the default only when another profile must be serialized for another consumer, such as a national catalog or a harvester that expects a different schema. The method is to copy templates/package/read_base.html into your custom theme or extension, keep the structured_data Jinja block intact, and call h.structured_data(pkg, [...]) with profile names you have confirmed in the ckanext-dcat documentation. Do not take profile names from memory or from another portal's template. A misspelled name can leave a page without the output you intended, so check the rendered page source after each change. If Google Dataset Search indexing must continue, keep the schemaorg profile in the list alongside the new one.
The trade-offs are practical. Each extra profile adds markup to every dataset page, which increases page weight, and profiles can repeat the same metadata in different shapes, so one value may appear twice. Each profile also needs its own review: someone must confirm that the output matches what the receiving consumer expects, and that review must be repeated when the underlying metadata schema changes. The template override carries an ongoing cost too. A copied read_base.html no longer picks up upstream changes automatically, so it must be merged again at each CKAN upgrade. Plan that merge into every upgrade cycle and test the structured_data output after each merge.
Keep the default profile or override the block for your setup
Keep the default when the portal needs only Google Dataset Search markup. The structured_data plugin in ckanext-dcat adds a schema.org JSON-LD snippet to each dataset page and uses the schemaorg profile unless you change it. It does not require the dcat plugin, so no RDF endpoints have to be configured. This is the lowest-effort path when search visibility is the goal and no other consumer needs a different serialization. Read the ckanext-dcat Google Dataset Search guide for the plugin's behavior.
- Fit check: Confirm that dataset records hold complete titles, descriptions and organization names, because the markup is only as complete as the metadata behind it.
- Effort: Enable the
structured_dataplugin in the CKAN configuration, restart the web processes and load a sample of dataset pages. The work is mostly configuration and review, with little development involved. - Output check: View the page source of several dataset types, and confirm each page carries one JSON-LD block. Confirm that private records are not exposed on public pages, and check that behavior in the documentation.
- No template changes: The default path leaves
templates/package/read_base.htmluntouched, so theme updates do not carry a custom block forward. - Upgrade re-check: After each CKAN or ckanext-dcat upgrade, rerun the sample check and confirm the extension supports your CKAN minor version. The extension documentation lists CKAN 2.10 and 2.11, so confirm newer pairings before moving.
Before sign-off, check that the JSON-LD validates on every sampled page, that the plugin is listed in your deployment configuration so a rebuild keeps it, and that the next upgrade has a re-check planned.
Override the block when another profile is required. The structured_data Jinja block in templates/package/read_base.html can be overridden to call h.structured_data(pkg, [...]) with the profile names you choose, so each dataset page emits the outputs your agreed list requires. This is the path for a portal that must feed a consumer expecting a profile other than the default, or that has agreed a list longer than one entry.
- Theme ownership: The override lives in your theme's templates, so the team that owns the theme owns the block. Agree that owner before work starts, because one change to the block affects every dataset page.
- Testing every profile: Each profile produces its own output, so test every profile on each dataset type, including records with missing fields. A profile that validates on a complete dataset can fail on a sparse one.
- Upgrade merges: CKAN and theme upgrades can change the parent template the override sits on. Plan a merge review at each upgrade, comparing your overridden file with the upstream version before deploying.
- Profile list control: Keep the agreed list in version control, in one place, so each change goes through review and auditors can see which profiles the portal emits.
- Rendering risk: A template error in the block can stop dataset pages from rendering, so test page rendering as well as the structured output.
Check that the override passes exactly the agreed profile list, that each profile validates on sample datasets, and that dataset pages still render for anonymous and logged-in users after every change.
Which CKAN metadata feeds the structured data output
This table maps each CKAN input that feeds the structured data snippet to where it appears on the dataset page, what to check in the emitted JSON-LD, and what to fix when it is empty. Confirm the exact schema.org property names against the output of the CKAN and ckanext-dcat versions you run before you rely on any row. Treat each empty value as a metadata gap to close in CKAN, then reload the page and check the output again.
| CKAN input | Where it appears on the dataset page | What to verify in the emitted JSON-LD | What to fix if the value is empty |
|---|---|---|---|
| Dataset title | Page heading and browser title | Title string matches the visible heading and reads as a full dataset name | Enter a descriptive title in the dataset form; slugs and IDs make weak titles |
| Description (notes) | Description block under the title | Description text is present and summarizes the dataset in full sentences | Add a summary to the notes field; empty notes leave the snippet without a description |
| Organization | Organization name in the sidebar | Publisher or provider entry names the organization using its display title | Assign the dataset to an organization and confirm the organization title is set |
| License | License label in the sidebar | License entry carries a license URL or identifier matching the selected license | Select a license from the CKAN license list, then save and recheck the output |
| Resources (URLs and formats) | Resources list with download links and format labels | One distribution entry per resource, each with a download URL and format value | Add a file or link to each resource and set its format; check the URL resolves publicly |
| Tags | Tag list under the description | Each tag appears as its own keyword value in the output | Add tags in the dataset form; datasets without tags produce no keyword values |
| Last modified date | Additional information table, last updated row | Modification date is present in a standard date format | Save the dataset again; if the date stays empty, check the ckanext-dcat version and its field mapping |
| Public dataset address | Address bar and dataset link on the page | Address is the public page URL, reachable without logging in for public datasets | Set the site URL to the public hostname; a wrong site URL puts wrong addresses in the output |
Keeping private and sensitive metadata out of public structured data
The structured data for Google Dataset Search is built from the same dataset and resource fields that CKAN shows on its pages, so what a public visitor can see determines what a search crawler can read. The four cards cover who can see the markup, what text it carries, how the templates that generate it are changed, and how mistakes are withdrawn.
Test private datasets anonymously
Private datasets should never produce schema.org markup for a public visitor. Open each one in an anonymous browser session that is not logged in to CKAN, then view the page source and search for the JSON-LD snippet. Repeat the test for draft, deleted and organization-only datasets, and confirm the result on the CKAN version you run instead of assuming it from the documentation. Keep a dated record of each test so a reviewer can repeat it after every upgrade or theme change.
Review free-text fields
The markup carries the descriptive text that publishers enter in dataset notes and resource descriptions, so published text can be indexed. Read those fields as an outside reader would. Look for internal hostnames, file paths, contact details not meant for publication, credentials pasted into examples, and wording about data that has not been released. Make this review a required step in the publishing workflow, not a one-time cleanup.
Version control theme overrides
Teams that select profiles other than the default override the structured_data block in templates/package/read_base.html. Treat that override and the rest of the theme as application code: keep it in version control, review every change, and test it in staging before production. After each CKAN or theme upgrade, confirm that the block still renders and that the dataset page markup matches what you tested.
Google Dataset Search docsPlan removal and correction
Some metadata will need to be withdrawn or corrected after it has been published. Decide in advance who can change or unpublish a dataset, how a private or withdrawn dataset stops producing markup, and who confirms that the public page changed. Google sets indexing timing, and no one can promise when a removal or correction will appear in search results. Tell stakeholders that the CKAN change is the part you control, and keep a record of what was published and when.
Why the JSON-LD is missing or wrong on dataset pages
This table matches each symptom you may see on a CKAN dataset page with its likely cause, the fix and a check that confirms the fix worked. Work through the rows in order, starting with whether the snippet appears in the page source at all. The main takeaway is that a missing snippet and a present but unindexed snippet have different causes, so check the page source before you change metadata or contact Google.
| Symptom | Likely cause | Fix | Check |
|---|---|---|---|
| No JSON-LD in the dataset page source | structured_data missing from ckan.plugins, the service not restarted, or a theme override that drops the block | Add structured_data to ckan.plugins, restart CKAN, and restore the block in your template override | View the source of a public dataset page and search for application/ld+json |
| Snippet present but fields are empty | Incomplete dataset metadata in CKAN, such as missing title, description or license values | Complete the core dataset fields, then confirm each field the schema.org profile reads | Compare each JSON-LD value with the matching field on the dataset page |
| Page errors after a template override | Block syntax error in templates/package/read_base.html, or a profile name the h.structured_data call does not recognize | Correct the Jinja block syntax and use a valid profile name in the call | Reload a dataset page and check the CKAN log for template errors |
| Version mismatch after a CKAN upgrade | Running CKAN minor version is outside the extension's stated support, such as 2.12 with ckanext-dcat listed for 2.10 and 2.11 | Check the extension's compatibility statement and install a version that supports your CKAN minor, if one exists | Confirm the installed extension version and the CKAN version both match the support statement |
| Markup valid but dataset not shown in Google | Validation errors, dataset pages not publicly accessible, or Google's own indexing decision | Fix reported errors, confirm dataset pages are public and crawlable, and allow Google time to process them | Run the page through a structured data test and review the coverage report in Search Console |
| Conflicting or duplicate metadata | Another extension or template emits its own schema.org Dataset markup beside the structured_data block | Remove or disable the duplicate output so only one Dataset JSON-LD block remains | Count the application/ld+json blocks on a dataset page and confirm there is one Dataset block |
Questions buyers ask before outsourcing CKAN structured data
How much does it cost to outsource CKAN structured data setup?
DeployOpen does not publish a price list. A quote follows from the written scope, and most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. The main cost drivers are the number of portals, the number of metadata profiles each portal needs, how much metadata cleanup the datasets require, how much testing the setup needs across dataset pages, and whether upgrades are part of the work. Setup is mostly one-time effort. Upgrades, retesting after a CKAN or extension change, and ongoing support recur if you retain them. Ask each quote to show these items separately so you can see what is one-time and what recurs.
How long does a CKAN structured data project take?
Duration depends on three things: the CKAN version and the extension pairing you run, the quality of the metadata already in your datasets, and whether you need a custom profile or only the default schemaorg profile. A portal on a supported pairing with clean metadata and the default profile is a much smaller job than one that needs cleanup and a custom profile, but no timeline is given here without the written scope. Ask for a written timeline that lists each phase, the dependencies on your staging environment and on metadata owners, and the points where your team must sign off. Also ask what happens if the CKAN upgrade lands mid-project.
What do we need to provide for a CKAN structured data engagement?
The work needs four things from your side: access, sample data, named owners and one profile decision.
- Staging access to a CKAN instance that runs the same version and extensions as production, so changes are tested before they reach the public portal.
- Sample datasets that cover each organization, license type, resource format and any private or restricted records.
- Named metadata owners who can answer questions about titles, descriptions, publishers and licenses.
- A profile decision: whether the default schemaorg profile is enough, or whether a named profile must be wired into the template override.
Agree on one approver for scope and timeline changes before work starts.
Can our team set up the default structured data plugin ourselves?
Yes, on a supported version, the default setup is within reach of an experienced CKAN team. The structured_data plugin embeds schema.org JSON-LD on each dataset page and uses the schemaorg profile unless you change that. Outside help usually matters in three places: overriding the structured_data block in templates/package/read_base.html to use another profile, testing that the JSON-LD is valid and matches what each dataset actually contains, and planning upgrades so the override survives a CKAN or extension change. Read the ckanext-dcat Google Dataset Search documentation before you start, and confirm the version pairing first.
Will Google Dataset Search index every dataset on our CKAN portal?
No. Google decides what it indexes, and the plugin only makes each dataset page carry schema.org metadata that Google can read. Embedding the JSON-LD does not guarantee that every dataset appears in Google Dataset Search, and it does not guarantee a timeline for crawling. Quality matters: missing titles, descriptions, licenses, publishers or resource details can leave a dataset looking thin or incomplete to Google. Check the pages Google can reach, the metadata each dataset carries, and any crawl or indexing reports you have access to. Ask how private datasets are handled and confirm the behavior in the extension's documentation before go-live.
Does the structured_data plugin require the dcat plugin or DCAT harvesting?
No. The structured_data plugin does not require the dcat plugin, and it does not depend on DCAT harvesting. It adds a schema.org JSON-LD snippet to each dataset page and uses the schemaorg profile by default, so a portal can run it without publishing DCAT RDF endpoints or importing from other catalogs. Whether you still need the dcat plugin is a separate decision, driven by whether you publish DCAT-AP metadata or harvest from other catalogs. If you enable the dcat plugin for those reasons, test the two outputs side by side so the metadata they describe stays consistent. Confirm the plugin list in your own configuration file before you assume either setup.
Does the structured_data plugin work on CKAN 2.12?
Confirm it against the extension's stated support before you commit. The ckanext-dcat repository lists support for CKAN 2.10 and 2.11, and CKAN 2.12.0 was released on August 26, 2026, so the stated support may not yet cover it. Check the README, release notes and compatibility notes for the exact extension version you plan to run, then test the structured_data output on a staging copy of your portal. If 2.12 is not listed, treat the version choice as a decision: stay on a listed CKAN line, or accept the risk of an unlisted pairing with a documented test plan. Start with the ckanext-dcat repository.
What breaks after a CKAN upgrade in a structured data setup?
The template override is a likely point of breakage, because it depends on a Jinja block and template path that your portal's theme inherits from CKAN. Patch releases do not break backwards compatibility and exclude schema changes and new features, so a patch upgrade on the same minor version is the lower-risk move. Minor releases may include backwards-incompatible changes, so treat each minor version move as a planned upgrade with a staging test of the JSON-LD output on representative dataset pages. Pin the extension version, record the expected output, and rerun the same checks after each upgrade of CKAN or ckanext-dcat. Confirm the extension's compatibility for the target version before you schedule the move.
How DeployOpen scopes and delivers CKAN structured data work
DeployOpen approaches Getting CKAN datasets into Google Dataset Search as a bounded configuration task on your own portal. We review the dataset metadata your CKAN portal publishes, enable the ckanext-dcat structured_data plugin, and set the profile your metadata needs, all in infrastructure you control. Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
How we scope
- Written scope that names the CKAN version, the portal's dataset types and the metadata fields in use.
- Confirmation of which schema.org profile the portal needs, with the default schemaorg profile as the starting point.
- Fixed-scope terms, with ongoing support and continuous testing available as a retainer after handover.
How we build
- Enable the ckanext-dcat structured_data plugin in the portal's configuration, without requiring the dcat plugin.
- Override the structured_data block in
templates/package/read_base.htmlonly where a non-default profile is chosen. - Check the JSON-LD embedded on sample dataset pages in a staging copy before the change reaches production.
How we hand over
- Written record of the plugin settings, template override and the profile names the portal uses.
- Runbook steps for checking dataset pages after upgrades, template changes or metadata schema changes.
- Notes separating what your portal controls from how Google Dataset Search chooses to index pages.
How we support
- Retainer options for keeping the plugin, templates and CKAN version aligned through upgrades.
- Scheduled checks of dataset page markup after upgrades, available as part of a retainer if your team wants them.
- Documentation of changes and support for the portal, under the retainer or the support terms in your written scope.

