How CKAN publishes datasets in Croissant format for machine learning
A data team often runs a CKAN portal that holds useful datasets, yet machine learning engineers cannot find them easily, and when they do find one, they often cannot load it without asking someone for help. The ckanext-dcat extension can expose CKAN datasets in the Croissant ML metadata format alongside its DCAT and schema.org serializations, and it supports CKAN 2.10 and 2.11. This section explains what that Croissant output describes, why its usefulness depends on the metadata behind it, and what a self-hosted portal needs to set up, map, secure and test before ML teams and their tools rely on it. Read it before you decide which datasets to expose, because the output reflects whatever your portal already records about each dataset and its resources.
Croissant is a metadata format built on schema.org vocabulary that describes a dataset as a machine-readable record: what the dataset is, who published it, how its license and version are stated, and how its files are organized into record sets and fields that a loader can interpret. For a CKAN portal, the output is generated from the dataset record, its extras and its resources, so the ML description is only as complete as the metadata publishers enter. A dataset with a clear title, a stated license, a description that explains what each column means and resources with accurate formats gives a consumer enough to load it. A dataset with a vague title and no field descriptions produces a valid-looking record that a model team still cannot use. Confirm which Croissant properties your installed ckanext-dcat version fills from core CKAN fields and which need custom mapping.
Prerequisites for publishing CKAN datasets in Croissant format
These checks establish a CKAN portal that ckanext-dcat supports and that serves usable dataset metadata. Work through the versions first, then the services, then the metadata, because each step depends on the one before it. Confirm them before you enable Croissant output, so any failure can be traced to a single layer.
Confirm a supported CKAN minor
ckanext-dcat supports CKAN 2.10 and 2.11, so the portal should run one of those minor versions. Check the running version in the environment itself, because a portal can drift to an older patch. CKAN's release policy covers the latest patch of the current minor and the previous minor, so an outdated patch is a risk even on a supported minor. Confirm the exact patch level with your platform team before you start.
CKAN release policyMatch ckanext-dcat to CKAN
Install the matching ckanext-dcat release that declares support for your CKAN minor version. Read the compatibility notes in the extension repository before you choose a tag, and pin that tag in your requirements so a rebuild does not pull a newer release. A mismatched pair can break plugin loading or leave Croissant output unavailable, so test the pair in staging first.
ckanext-dcat repositoryWorking base install and services
Build the base CKAN instance from the install-from-source guide before adding any DCAT code. The guide calls for PostgreSQL 12 or newer, Solr and Redis, and each service should respond on its own before you debug CKAN. Confirm that the web app loads, the database migrations completed, the Solr core answers a query and Redis accepts connections. Solr 9 is recommended, with Solr 8 also supported. A broken search index or missing Redis can look like a Croissant bug later, so verify the base first.
Install from source guidePython 3.10 or newer
CKAN installs from source require Python 3.10 or newer. Check the interpreter inside the virtual environment that serves CKAN, since host Python versions often differ from it. Install CKAN and ckanext-dcat into that same environment, then confirm the plugin imports from that interpreter. Record the Python patch level with your deployment notes, because it affects which dependencies resolve on a rebuild.
Confirm CKAN 2.12.0 before upgrading
CKAN 2.12.0 was released on August 26, 2026, alongside maintenance releases 2.11.6 and 2.10.11. Before you move a portal to 2.12.0, confirm that ckanext-dcat supports it, since the documented support list at the time of writing covers 2.10 and 2.11. Minor releases may include backwards-incompatible changes, so schedule the move as a separate upgrade with its own test cycle. Check the extension repository or ask its maintainers before you set a date.
CKAN releasesDCAT fields the portal already collects
Croissant output is only as useful as the metadata behind it, so audit what the portal already collects before you enable anything. Check that each dataset has a clear title, description, publisher, license, keywords and resources with formats and download URLs. Then compare those fields against the fields ckanext-dcat maps into its serializations. Gaps tend to appear as thin or empty records in the output, and custom schema fields may need explicit mapping, so confirm that with the extension documentation.
ckanext-dcat docsHow a CKAN dataset flows to an ML tool in Croissant format
The flow starts inside the CKAN portal, where datasets and resources live and the portal's permission checks apply. The ckanext-dcat serializer turns public dataset metadata into Croissant, alongside its DCAT and schema.org output. Private datasets are excluded from that output. An ML team or tool then retrieves the published record from the public internet and follows the resource URLs listed in it. The boundary to check is the one between the portal and the public internet: once metadata is published, anyone can read it, so confirm that only intended datasets reach the serializer and that restricted resources are not exposed through public URLs.
Public dataset metadata leaves the portal as Croissant, while private datasets stay inside.
Configuration sequence for Croissant output in ckanext-dcat
This sequence turns on Croissant output in a CKAN portal that already runs ckanext-dcat, and confirms that only public datasets are served to anonymous requests. Each step ends with a check, so the team knows one change works before the next one starts. Run the sequence first on a staging copy of the portal.
Match the ckanext-dcat release to CKAN
The portal lead confirms the CKAN version in production and selects a ckanext-dcat release that supports it. The extension's documentation lists support for CKAN 2.10 and 2.11, so a portal on any other minor version must check the release notes for that exact version before making changes. Record the chosen release and the CKAN version together in the change ticket. This step is done when the release notes name your CKAN version and the match is written down.
Install the pinned release in the CKAN environment
The engineer who maintains the CKAN environment installs the selected ckanext-dcat release into the same Python environment that CKAN runs from. Then the pin goes into the deployment's requirements file so rebuilds produce the same result. Installing into a different environment is a common reason the plugin later fails to load. Check: the package manager reports the pinned version inside the CKAN environment, and the install did not change the CKAN version.
Enable the plugin in the plugins setting
The portal administrator adds the ckanext-dcat plugin to the plugins list in the CKAN configuration file and keeps every plugin already listed. Confirm the exact plugin name in the release documentation before saving, because a misspelled name stops CKAN from starting cleanly. Check: a diff of the configuration file shows only the plugin line added, and no other settings changed.
Turn on Croissant serialization
The portal administrator enables Croissant output using the configuration option named in the ckanext-dcat documentation for the chosen release. Option names can differ between releases, so copy the key from that release's docs and ignore older posts or blog examples. Check: the configuration file contains the key with the value the documentation specifies, and the value is written exactly as the docs show it.
Restart the web and background workers
The operator restarts the CKAN web processes and any background workers that read the same configuration. In a typical production setup these are uWSGI workers behind Nginx, but the exact process names depend on the deployment. Running workers keep the old plugin list until they restart. Check: the startup log shows the plugin loading without import or configuration errors, and the portal home page loads normally.
Check Croissant output for a public dataset
The QA engineer requests the Croissant output for one public dataset with complete metadata, using the endpoint or format named in the release documentation. Compare the returned fields with the dataset page, including title, description, license and resource information. Gaps in the output often trace back to thin source metadata, so note them for the portal team instead of assuming the plugin failed. Check: the response parses as JSON and the core fields match what a visitor sees on the dataset page.
Confirm private datasets stay hidden anonymously
The security or QA engineer requests the Croissant output for a private dataset with no API token and no login session. The same request is then repeated with a member of the owning organization as a control. The anonymous request should not return the dataset record, and the authorized request should succeed. Check: both results are saved in the test notes before the endpoint is shared with any machine learning team.
Mapping CKAN metadata to Croissant ML fields
This table compares the CKAN fields a portal fills in with the Croissant properties that ckanext-dcat is expected to emit for each dataset and resource. Read each row left to right: the middle column names the target property, and the right column lists what the portal must fill in for a machine learning team to find, license and load the data. Confirm every mapping against the output from your ckanext-dcat version before relying on it.
| CKAN field | Croissant output (confirm) | Portal must fill in |
|---|---|---|
| Dataset title | name (expected) | A clear, unique title. It becomes the dataset name in the output, so avoid generic labels such as "Data". |
| Dataset description | description | A plain-language summary of contents, collection method, time coverage and intended machine learning use. |
| License | license | A recognized license identifier or license URL. Free-text license wording may not map to a Croissant license value. |
| Organization | creator or publisher (expected) | The legal name of the publishing body, used consistently across datasets so teams can trace provenance. |
| Resource URL | distribution contentUrl | A stable, reachable download link. Private or permission-checked resources need an access route the loader can use. |
| Resource format | distribution encodingFormat | A standard media type or recognized format label such as CSV or JSON. Inconsistent labels reduce loader matches. |
| Tags | keywords | Consistent, searchable tags drawn from a shared vocabulary so ML teams can filter and compare datasets. |
| Custom and extra fields | Only emitted if your ckanext-dcat configuration maps them | Map needed values to standard fields or add a mapping for each extra. Unmapped extras are likely omitted from the output. |
What a portal's metadata needs for Croissant output to be useful
Croissant output is only as informative as the metadata behind it. The ckanext-dcat extension builds the Croissant description from what the portal already records, so a dataset with an empty description, no license, or an unclear resource format gives a machine learning tool little to work with. Missing license statements are the most consequential gap, because a loader or training team cannot tell whether reuse is permitted without going back to the source page. Treat this as a portal-wide review before the first export, not a one-off fix for a single dataset. Start by listing which CKAN fields your ckanext-dcat version carries into the output, since that list decides which gaps matter most.
Run four checks on every dataset that will be exported. First, make resource formats consistent: the format value should use one spelling per file type across the portal, because mixed labels such as "csv", "CSV" and "text/csv" make files harder to group and load. Second, state the license explicitly in license_id using an identifier your portal recognizes, and check that it agrees with the terms described in the dataset notes. Third, give tabular resources readable column names or a data dictionary, since a column called col_7 tells a reader nothing about its contents. Fourth, confirm that each resource url is stable and reachable from outside your network, because a link that moves or requires a login breaks any consumer that follows it.
Confirm the field mapping before you rely on the output. Export one dataset from a staging copy of the portal, open the Croissant file, and compare each field against the CKAN record it came from. Ask your platform team and dataset owners which custom dataset fields, schema extensions and DataStore resources your version includes, and record that list in your runbook. Expect that some fields your portal stores may not appear in the output, and that datasets published before a schema change may show empty values for fields added later. Because your DCAT profile and any custom schema work shape much of this, rerun the check after every change to either.
Security checks before CKAN Croissant output goes public
Machine-readable metadata is served to any client that can reach the endpoint, so a mistake in the catalog becomes a public export. The four risks below connect to one question: what does an anonymous request receive? Run each check before enabling public access, and repeat the endpoint tests with anonymous and member accounts.
Private and embargoed datasets
Private datasets, draft datasets and datasets under an embargo can reach a Croissant export if the export path skips CKAN's visibility and state checks. Request the endpoint anonymously and confirm that no private, draft or deleted dataset appears in the output, including datasets whose visibility changed recently. Compare the result with the count of public datasets in the portal. Repeat the check after each extension or schema change, since custom fields can alter what the export includes.
Resource URLs bypassing permissions
Each Croissant distribution points to a file location. If that location is a storage bucket or direct file URL that does not check CKAN permissions, the export publishes a download path that the dataset page would have blocked. Check every distribution URL against the resource's visibility: private resources should resolve to an authenticated CKAN download, and public storage should hold only files intended for anonymous readers. Fetch each URL without a session and record the status code. Include a member of a different organization in the test.
Descriptions that reveal details
Titles, notes, author fields, extras and resource descriptions are copied into the export as written. Free text often contains contact emails, internal project codes, unpublished counts or sample records that nobody reviewed for publication. Read the serialized output as well as the dataset form, and search it for email addresses, internal hostnames, identifiers and personal names. Review the custom fields the portal added, because they may reach the export as well. Agree on a scrubbing step before the endpoint is enabled.
ckanext-dcat docsLicenses blocking redistribution
A Croissant export declares a license for each dataset, and downstream machine learning tools may copy or train on the data on that basis. Datasets with no license, a custom license, or a license that restricts reuse should not be exposed as open. Confirm the license of every exported dataset against the terms the publisher can grant, and ask the data owner in writing where the terms are unclear. Export only datasets whose license permits redistribution, and record who approved each decision.
Who does what between the portal team and the ML team
The portal team owns what CKAN publishes and whether it is served correctly. Its work starts with the dataset metadata, because the Croissant output can only describe fields that exist and are filled in on the portal. It also owns the ckanext-dcat configuration, the permission model that decides which datasets are visible to anonymous and API callers, and the upgrade path for CKAN and the extension.
- Metadata quality: Review required fields, descriptions, licenses, resource formats and URLs on every dataset that should appear in the Croissant output.
- Plugin configuration: Keep the ckanext-dcat plugin settings in version control so every change is traceable to a person and a date.
- Permission testing: Request public and private datasets with and without API tokens, and confirm that only datasets meant for outside use appear in the output.
- Upgrades: Check the ckanext-dcat release against the CKAN version before each CKAN upgrade, and retest the Croissant endpoint after each change.
Before handing the endpoint to the ML team, check that a sample of public datasets returns the fields you expect when requested without credentials.
The ML team owns the code that turns published metadata into training and evaluation data, and the checks that show a loaded dataset matches its description. It sees problems the portal team cannot see from the catalog, such as a resource that downloads but has unexpected columns or types, so its feedback is the main input for metadata fixes.
- Loader code: Write and maintain the loader that reads the Croissant document, resolves resource URLs and applies the declared field types.
- Format validation: Run a Croissant validator in each pipeline and tool that consumes the output, and record the validator version used for each run.
- Missing field reports: Send the portal team a list of datasets with missing or ambiguous fields, including the dataset identifier and the exact property that failed.
- Access handling: Tell the portal team which resources the loader reads with credentials, so the permission tests cover that same path.
Before relying on a loader in production, confirm that it fails loudly when a declared resource is missing and does not load partial data silently.
The handoff works best when each request names a dataset, a field and an expected value. Vague requests such as the metadata is wrong cost time on both sides. The points below show what each team should ask the other for and what a useful request contains.
- ML team asks the portal team for: Dataset identifiers, the field to change, the expected value and the date a fix is needed for a planned training run.
- Portal team asks the ML team for: The validator output, the loader version and a sample of the failing record, so the fix can be checked against the same input.
- Both teams keep: A shared list of datasets in scope, kept in a table both teams can edit and review together.
- Both teams agree on: Which side makes each type of change, and how the fix is retested on the live endpoint.
Agree on this request format before the first dataset goes live, so the first mismatch does not start a new process.
When the Croissant output does not match the structure the team expects, decide first whether the cause is portal data, configuration or the extension. Only after those checks should the issue go to the maintainers, with enough detail to reproduce it. The ckanext-dcat repository is where to confirm supported behavior and open issues.
- Version support: Confirm that the ckanext-dcat release supports your CKAN version. The project lists support for CKAN 2.10 and 2.11, so confirm the position for any other version, including CKAN 2.12.
- Reproduction: Capture the dataset identifier, the request URL, the CKAN and extension versions, and the output you received next to the output you expected.
- Expected structure: State which part of the Croissant document differs, and name the field and the ML tool that depends on it.
- Existing reports: Search open and closed issues before filing, and add your reproduction to an existing report where it matches.
Ask the maintainers to confirm whether the behavior is a defect or an expected limitation before you change your loader to work around it.
Common failures when publishing CKAN Croissant output
This table lists the failures most often seen when a CKAN portal starts serving Croissant metadata through ckanext-dcat, with the likely cause and the first check for each. Work down the rows in order, because the plugin version and the CKAN version are the first things to confirm before editing datasets. Several of these gaps trace back to the plugin not being loaded, to metadata fields left empty, or to a version pairing outside the documented support range.
| Failure | Likely cause | First fix |
|---|---|---|
| Croissant output missing after enabling the plugin | The dcat plugin is installed but not listed in the CKAN plugins setting, or web workers kept running the old configuration. | Confirm the dcat plugin is listed in the ckan.plugins setting, restart the web workers, then request the Croissant output again. |
| Endpoint returns DCAT output without Croissant fields | The request uses the default DCAT serialization, or the Croissant serializer is not enabled for the endpoint being called. | Check the endpoint path and format in the ckanext-dcat documentation, then compare one dataset's output against the expected Croissant fields. |
| Empty descriptions or licenses in the output | Dataset descriptions or license fields are blank in CKAN, or the license value is not an ID that CKAN recognizes. | Fill in the description and license on each published dataset, then check that the license uses a standard ID from CKAN's license list. |
| Private datasets appearing publicly | An export or cached file was generated for private datasets and is served without CKAN's access checks. | Request a known private dataset anonymously, delete any exported or cached files, and retest before the endpoint is shared. |
| Output breaks after a CKAN upgrade | The installed ckanext-dcat version does not support the new CKAN minor version, or a minor release changed behavior the plugin depends on. | Before upgrading, confirm the plugin's documented support covers the target CKAN version, then upgrade both in the same change window. |
| Plugin and CKAN versions drift apart | Patch upgrades of CKAN keep compatibility, but minor upgrades can include breaking changes that the plugin must follow. | Record the CKAN and ckanext-dcat versions together, and check both against the plugin's documentation before each upgrade. |
Questions buyers ask before publishing CKAN datasets in Croissant
How long does a CKAN Croissant publishing project take?
No duration can be stated responsibly before the portal is inspected, so ask for one in the written scope. The main drivers are the number of datasets to expose, how complete and consistent their metadata already is, the CKAN version and extension set in use, and the permission model that decides which datasets and resources an anonymous or ML client can reach. A portal with a few well-described datasets on a supported version is a much smaller job than a portal with hundreds of datasets, missing licenses and private resources mixed into public catalogs. Each driver adds review time, because someone has to decide what the output should say and confirm it. Ask for the phases, the dataset count the estimate assumes, and the points where the work depends on your team, such as admin access and metadata owner review.
What drives the cost of publishing CKAN datasets in Croissant?
Cost follows the written scope, and most of it is one-time setup and verification work, with a smaller recurring part for upgrades and retests. The one-time part covers an inventory of the datasets, confirming the ckanext-dcat version and its Croissant output, configuring the serialization, fixing metadata gaps that the ML team identifies, and verifying the output with the people who will load it. The recurring part appears when CKAN is upgraded, when extensions change, or when new datasets join the scope. Costs go up with more datasets, weaker metadata, custom schema work, and a requirement to test private datasets across several permission roles. Costs go down when metadata owners already keep clean records and the portal runs a supported version. DeployOpen does not publish a price list, so ask for a quote that separates one-time items from recurring ones.
What should a quote for CKAN Croissant publishing include?
A quote follows from the written scope, so it should state the inputs it depends on before it states a total. Ask for the following:
- The organizations, datasets and resources in scope, with the dataset count assumed
- The CKAN version, the ckanext-dcat version and any other extensions covered
- The permission cases tested, such as anonymous, member and private dataset access
- The deliverables: configuration changes, sample outputs, verification notes and handover documentation
- What your team provides, including admin access, a test environment, metadata owners and ML contacts, and when each is needed
- Which items are one-time and which recur, including upgrade and retest support
- Acceptance criteria, and the change process if the scope moves
What access and people does our team need to provide?
Your team needs a portal administrator who can grant the access the work requires, a test environment that matches production closely enough to show the same behavior, and named people who own the metadata and the ML use. Typical items include:
- Sysadmin or equivalent access to the CKAN instance under test, plus read access to the configuration that controls ckanext-dcat
- A test environment with the same CKAN version and extensions as production, so output can be checked before any change goes live
- Metadata owners for each organization who can confirm titles, descriptions, licenses and resource formats
- ML contacts who will load the datasets, can name the fields their tools need, and can confirm that the output loads correctly
- A change window for enabling the serialization in production
Confirm early who signs off on the output, because this decision often sits between the data team and the security team.
Can our own team publish CKAN datasets in Croissant alone?
Yes, if your team has CKAN operations skills and can verify the output itself. The work is configuration and verification on a platform you already run, so the skills that matter are installing and configuring CKAN extensions, reading Python and configuration files, maintaining the search index and background jobs, and testing HTTP responses for anonymous and logged-in users. Verification is where teams most often need help. Someone must confirm that each Croissant record describes its dataset correctly, that private datasets do not leak, and that an ML tool can actually load the resources. If nobody on the team has done this before, a fixed-scope engagement can cover the setup and handover, or a review before go-live. DeployOpen plans, implements and documents these projects inside your own infrastructure, so your team keeps the knowledge after the work ends.
Which CKAN versions does Croissant output support through ckanext-dcat?
The ckanext-dcat extension supports CKAN 2.10 and 2.11, so confirm the CKAN version you run before planning the work. Croissant output is one of the serializations ckanext-dcat can produce alongside its DCAT and schema.org output, so the question is whether your installed extension version, on your CKAN version, produces it. CKAN 2.12.0 was released on August 26, 2026, together with maintenance releases 2.11.6 and 2.10.11. A portal on 2.12 should not assume Croissant output works until the extension documentation or a test on a staging copy confirms it. If you run an older version, plan the upgrade path first, because upgrades can change extension compatibility. Check the ckanext-dcat documentation for the current support list and the settings that enable Croissant output.
Does publishing Croissant metadata expose private CKAN datasets?
It can, if the serialization or endpoint skips the permission checks that the dataset page applies, so test it with anonymous and logged-in users before publishing. Check three things. First, whether a private dataset appears in the catalog or in the Croissant output for an anonymous request. Second, whether a member of another organization can see metadata that the owning organization kept internal. Third, whether the resource URLs in the output point to files that require login, and what a downstream ML tool receives when it follows them. Check DataStore-backed resources separately, because database access does not follow the same permission model as the CKAN interface. Record the results with the CKAN and extension versions tested, so your security and compliance teams can review them.
What breaks after publishing, and how do you verify Croissant output?
The usual failures are stale output after metadata edits, missing or inconsistent fields, and output that changes after a CKAN or extension update, so verification must repeat after each change. Start by checking that each published dataset returns a Croissant record through the endpoint your consumers use, that the record matches the dataset page, and that resource URLs resolve for the users who should have access. Then validate the structure with a Croissant validator and load a sample dataset with the ML tool that will consume it. Common faults include empty descriptions, license values that the consumer does not recognize, resource formats the consumer cannot read, and cached responses that hide recent edits. Keep a small set of expected outputs as regression checks, and rerun them after any CKAN, Python or extension change.
How DeployOpen scopes and delivers CKAN Croissant publishing
DeployOpen plans and deploys the CKAN side of Croissant publishing inside your own infrastructure, so the portal, its metadata and its access rules stay under your control. We start by confirming which datasets and resources should appear in Croissant output and how they are described. The work is delivered on CKAN versions that ckanext-dcat currently supports, which means CKAN 2.10 and 2.11.
How we scope
- Written scope listing the portal, datasets and resources that will be published as Croissant records.
- Confirmation of which CKAN version, ckanext-dcat version and Python environment the portal runs.
- Fixed-scope agreement in writing before work starts, with deliverables and timelines stated.
How we build
- Install and configure ckanext-dcat on the agreed CKAN version so Croissant output is available for published datasets.
- Map dataset fields, resource formats and descriptions so the Croissant records describe the data accurately.
- Test output on public and private datasets and confirm private content does not leak into public Croissant records.
How we hand over
- Written documentation of CKAN settings, extension versions and how Croissant output is produced.
- A walkthrough with your platform and data team covering configuration, metadata conventions and the test results.
- Notes for ML teams on what the Croissant output contains and which fields depend on your metadata quality.
How we support
- Optional retainer for ongoing support, CKAN upgrades and continuous testing after handover.
- Retesting Croissant output after CKAN or ckanext-dcat upgrades, since extension compatibility changes by version.
- Confirm the extension's supported CKAN versions before planning any upgrade.

