Migrating from Socrata to CKAN: what moves cleanly and what gets rebuilt
Most of a Socrata to CKAN migration is metadata mapping, typed table loads and link planning, and the effort depends on dataset count, row volume and access rules. Start with an inventory that records each dataset identifier, its columns and types, its row count, its visibility and every external link that points at it. Export runs through the SODA API. Socrata's current query endpoint is /api/v3/views/IDENTIFIER/query.json, which replaces the older /resource/IDENTIFIER.json, and SODA 2.1 returns JSON, CSV and GeoJSON. Confirm which output format each dataset needs and whether your largest tables can be pulled in full within your change window.
On the CKAN side, each Socrata dataset becomes a CKAN dataset whose descriptive fields follow your metadata schema, and each tabular resource is loaded into the DataStore. The DataStore keeps structured rows in a separate PostgreSQL database, with a write user for loading and a read-only user for serving, and the Data API then offers filtering, full-text search, pagination and SQL queries over those tables. Use XLoader for file-based resources, since it is the officially supported loader and DataPusher is legacy. Map column types deliberately before loading, because a numeric or date column that lands as text will break the filters your users depend on. The CKAN DataStore documentation covers loader and permission details.
What moves cleanly is the row data and the descriptive fields that map one to one into CKAN. What gets rebuilt is whatever depends on the Socrata platform itself, such as view-level sharing, embedded charts and the links other sites use to reach your data. List those features in the inventory now, then decide for each one whether CKAN needs an equivalent, a new page or a redirect. DeployOpen does not give a price or duration until the scope is agreed in writing and the inventory is complete, because dataset count, row volume and access rules set most of the work. Ask any provider to show the inventory method and the assumptions behind their quote.
Which Socrata features map to CKAN and which need rebuilding
This table compares the Socrata features most portals rely on with their CKAN equivalents and flags where no one-to-one match exists. Read the migration notes as the work to plan: rows marked as a rebuild or decision need a named owner before cut-over. Confirm each feature against your own Socrata configuration before you assume parity, because settings and custom integrations vary by portal.
| Socrata capability | CKAN equivalent | Migration notes |
|---|---|---|
| Datasets, rows and column types | Packages with resources; rows loaded into the DataStore through XLoader | Export rows through the Socrata query endpoints. Confirm XLoader types each column the way Socrata did. Rebuild: type fixes. |
| Metadata, descriptions and tags | Dataset fields, tags and organization assignment in a CKAN schema | Decision: map custom Socrata metadata fields to a CKAN schema before the bulk load. |
| Private datasets, organization roles and collaborators | Private datasets with CKAN organization roles and collaborators | Decision: map each Socrata grant to a CKAN role. Confirm access for every private dataset after migration. |
| API access tokens | Per-user API tokens issued in CKAN | Rebuild: Socrata app tokens do not move. Reissue tokens and update every client that calls the API. |
| SAML2 sign-in | ckanext-saml2auth for SAML2 single sign-on on CKAN 2.10 and later | Confirm IdP attribute names and role mapping. Rebuild: recreate the Socrata sign-in configuration in CKAN. |
| DCAT metadata | ckanext-dcat with DCAT-AP v1, v2 and v3 schemas and RDF endpoints | Confirm which DCAT profile your Socrata catalog publishes, then compare fields one by one before cut-over. |
| Saved views, charts and computed views | Resource views and DataStore SQL queries; no one-to-one match for saved charts | Rebuild: recreate charts and filtered or computed views as queries, resources or a separate BI tool. |
| Geospatial layers | Spatial fields and map previews through CKAN geospatial extensions | Decision: confirm each layer's format and projection, then choose the extension and map preview approach. |
| Old dataset URLs | New CKAN dataset and resource URLs | Decision: build a redirect map from old Socrata identifiers to CKAN paths and test links before cut-over. |
Documented export and import paths for a Socrata to CKAN migration
Socrata and CKAN expose data through different interfaces, so each path below covers one part of the move: reading the source, creating target records, loading tables and carrying over sign-in. The tools cover the mechanical steps. Redirects, visual rebuilds and permission decisions remain manual work for your team. Confirm which endpoints and access requirements your Socrata portal exposes before you choose a path.
SODA query endpoints
Socrata's SODA API is the read path for dataset rows and metadata. The current query endpoint is /api/v3/views/IDENTIFIER/query.json, which replaces the older /resource/IDENTIFIER.json, so older scripts need checking. SODA 2.1 returns JSON, CSV and GeoJSON, and the version 3.0 export endpoint covers more formats. The API returns rows and metadata, so redirects, dataset pages and permission rules remain manual work in CKAN. Confirm which endpoints and access requirements your portal exposes.
ckanapi for scripted records
ckanapi is the command-line and Python client for the CKAN action API, so you can create organizations, packages and resources from a script without using the web form. Use it once the Socrata metadata is already mapped to a CKAN schema. The script creates records and uploads files, but it does not decide group mapping, dataset ownership or visibility. Plan those decisions before the first run, and test the script against a staging portal.
DataStore and Data API
The DataStore keeps structured resource data in a separate PostgreSQL database, with a write user for loading and a read-only user for queries. The Data API on top of it provides filtering, full-text search, pagination and SQL queries. Review column types, null handling and identifier columns in each export before loading. Decide which tables become queryable and which stay as downloads, then check read-only access before publishing.
DataStore docsXLoader for uploaded files
XLoader is the officially supported tool for loading uploaded or linked files into the DataStore, and it fits the CSV files exported from Socrata datasets. DataPusher is now legacy, so new migration scripts should avoid it. XLoader loads the file but leaves encoding problems, column renames and type corrections to your team. Test large files early and confirm the formats and size limits your CKAN site accepts.
XLoader in DataStore docsckanext-dcat for DCAT metadata
Use ckanext-dcat only if the source publishes DCAT metadata worth keeping, since it adds DCAT-AP v1, v2 and v3 schemas, DCAT RDF endpoints and an RDF harvester. The extension is supported on CKAN 2.10 and 2.11, so confirm compatibility with your target version first. The harvester can import records from another catalog, but visual rebuilds and old-link redirects remain manual work.
ckanext-dcat repositoryckanext-saml2auth for sign-in
This extension adds SAML2 single sign-on to CKAN 2.10 and later, so your identity provider can handle sign-in to CKAN. It can assign users to organizations and roles from SAML2 attributes and manage sysadmins from an email list. Attribute mapping, the role model and sysadmin rights are permission decisions for your security and data owners, so settle them before cut-over.
ckanext-saml2auth repositoryHow rows, metadata and links flow from Socrata into CKAN
The flow starts at the Socrata source, where SODA exports write rows and metadata to staging files inside the client's network. Those files feed a metadata mapping that the client reviews and signs off before anything loads. Approved records go to CKAN through ckanapi, which creates packages and resources, while XLoader moves tables into the DataStore. A CKAN staging portal runs beside Socrata during a parallel run, and an access review and a redirect map come before cutover approval. Confirm row counts, field mappings and redirect targets at each hand-off.
Socrata rows and links moving into CKAN, with three human sign-offs.
How a Socrata to CKAN migration runs, from inventory to decommission
This sequence moves a Socrata portal's datasets, metadata and consumer links into a self-hosted CKAN portal in six stages, with each stage closed by a written check. DeployOpen leads the technical work, and the client's data owners and API consumers confirm decisions at each gate. The result is a CKAN portal in the client's infrastructure, a tested redirect map and a Socrata instance retired only after the agreed window.
Inventory every dataset and its consumers
DeployOpen works with the client's Socrata administrators and data owners to record every dataset in one inventory: owner, access level, row count, file size, column types, the API consumers that read it and the links in use. Consumer discovery needs the most care, because consumers may still call the older /resource/IDENTIFIER.json path alongside the current /api/v3/views/IDENTIFIER/query.json endpoint, and those calls are easy to miss. The client provides admin access to the Socrata site, the list of data owners and named contacts for known consumers. The step is done when owners have reviewed and signed the inventory and every dataset has an owner and a migration decision.
Pilot a representative set of datasets
The team selects a small set of datasets that covers the hard cases: large row counts, unusual column types, private records, geospatial fields and heavy consumer use. For each one, DeployOpen exports rows through the SODA API, maps Socrata metadata to the agreed CKAN schema, loads the table into the DataStore and checks row counts and column types against the source. SODA 2.1 supports JSON, CSV and GeoJSON output, and the pilot tests which format keeps types intact for your data. The client reviews mismatches, such as dates or nested fields that change type, and confirms the mapping rules. The step closes with a pilot report listing each check, its result and the rule changes made before the full load.
Build the CKAN target on a supported version
DeployOpen installs CKAN on a minor version that still receives fixes. CKAN 2.12 and 2.11 both fall within the project's support window under its release policy, so the client should confirm the exact patch release when the build starts. The stack includes Python 3.10 or newer, PostgreSQL 12 or newer, Solr 9 (recommended) or Solr 8, and Redis. The DataStore runs in its own PostgreSQL database with separate write and read-only users. Extensions are chosen here, such as XLoader for loading files into the DataStore and ckanext-dcat if the portal must publish DCAT metadata. Every extension and package version is pinned. The step closes when staging runs, the search index rebuilds and a test resource loads through XLoader.
Run the full load and a parallel run
DeployOpen runs the full export and load into staging, covering metadata, resources and DataStore tables, and reconciles the results against the inventory: row counts, column types, dataset counts per organization and resource counts. During a parallel run, Socrata stays live while the client's consumers point their test queries at CKAN and compare Data API results with what their integrations expect. Each consumer group tests its own integration, and any gap goes into a defect list with a named owner. Load errors from XLoader are logged per resource. The step closes with a reconciliation report and written sign-off from each consumer group that the CKAN endpoints meet its needs.
Cut over with the redirect map and announcement
Before cut-over, DeployOpen builds a redirect map from each old Socrata dataset page and each /resource/ or /api/v3/views endpoint to its CKAN dataset, resource or Data API address, and tests every entry against staging. The team runs a final delta load of datasets changed since the full load, freezes Socrata edits for the cut-over window and switches DNS or routing to CKAN. The client sends the announcement to data users and consumers with the new addresses and the date after which old links stop working. The step closes when a sample of old links and API calls returns the expected CKAN result and the announcement has gone out.
Decommission Socrata after the agreed window
Socrata stays in read-only mode until the link and retention window agreed in the inventory ends and consumers confirm their integrations no longer call the old endpoints. DeployOpen reviews the request logs kept by the web tier and reports any remaining old-endpoint traffic to the owners before anything is removed. The client sets the retention period for archived exports and any legal hold, and DeployOpen stores the final export in the location the client names. Decommissioning then follows the written plan: the Socrata instance or subscription is closed, and the team records the date and the archive location. The step closes with a decommission record signed by the client's data owner.
What drives the cost and duration of the move
This table compares the drivers that change effort and timing for a Socrata to CKAN move, and what each one asks you to decide or provide. Read each row against your own Socrata inventory, since the same driver can be small in one portal and large in another. The main takeaway is that decisions on views, access and redirects usually shape the effort as much as raw row counts do.
| Driver | What raises effort | What reduces it | What to ask for in a quote |
|---|---|---|---|
| Datasets, resources and file volume | High counts of datasets and resources, large CSV or GeoJSON exports, shapefiles and attachments that need manual handling | Retire stale datasets before export, drop unused resources, split very large files into loadable tables | Dataset and resource counts from the inventory, total row and file size figures, and export and load assumptions |
| Column typing and cleanliness | Mixed data types in one column, inconsistent headers, nested or multi-value fields, and blank or placeholder values | Profile each table before load, set explicit DataStore field types, and agree on header naming rules | Who owns type mapping, how load errors are reported, and whether cleanup of source values is in scope |
| Metadata quality and ownership | Missing descriptions, unnamed owners, Socrata fields with no CKAN equivalent, and datasets nobody will sign off | Build a field mapping table, assign a named owner per dataset, and approve records before they publish | Who writes or edits metadata, the field mapping deliverable, and the sign-off step each dataset needs |
| Filtered views, computed columns and saved charts | Socrata views built on filters, computed columns or saved charts that users or embedded pages depend on | Check view usage, retire views nobody uses, and rebuild the rest as DataStore queries or CKAN resource views | Which views are rebuilt, which are retired, and how each rebuilt view will be tested |
| Private datasets, access rules and sign-in | Private datasets, per-dataset collaborators, and a required single sign-on method that the CKAN build has to support | Map each private dataset to an organization and role before load, and confirm the identity provider early | Whether single sign-on through ckanext-saml2auth or another method is in scope, and how roles are assigned |
| API consumers, links and parallel run | Many apps calling the SODA endpoints, embedded links, bookmarks, and a long period where both portals must stay live | Build a consumer list from access logs, publish a redirect map, and agree on a parallel run window with dataset owners | Redirect map scope, consumer testing support, and how long the old portal stays live and who signs off the cut-over |
| CKAN version and extensions | Choosing the newest minor release before its extensions are confirmed, such as ckanext-dcat, which lists support for 2.10 and 2.11 | Confirm each extension supports the chosen version, and choose the latest patch of a supported minor release | Target version and reasons, extension list with tested versions, and the upgrade path after go-live |
| Hosting, encryption and compliance scope | Criminal justice data in the portal, which brings CJIS Security Policy encryption requirements, plus other regulated data classes | Confirm data classes before design, and check whether criminal justice data is present before choosing encryption and hosting | Hosting location, encryption standards in use (including FIPS 140-3 modules if CJI is present), and any CJIS controls in scope |
| Public theme accessibility | Public theme must meet WCAG 2.1 Level A and AA, due 26 April 2027 or 26 April 2028 under ADA Title II | Test templates against WCAG 2.1 early, and confirm which date applies: 2027 for 50,000 or more people, 2028 for smaller entities and special districts | Whether WCAG 2.1 testing and template fixes are in the written scope, and whether a retest is included |
Keeping old Socrata dataset links working after cutover
Old Socrata links stop working in CKAN unless you plan for them, because CKAN assigns its own dataset URLs and does not recognize Socrata view identifiers. That covers dataset pages, the older /resource/IDENTIFIER.json endpoint and the current /api/v3/views/IDENTIFIER/query.json endpoint. Start with a redirect map that pairs each Socrata identifier with its CKAN dataset name and, for tabular files, its resource ID and DataStore table. Generate the map from the migration manifest so every entry comes from the same script, then spot-check old and new pages for a sample. Also store the original identifier in a custom CKAN dataset field, such as socrata_id, so each record stays traceable after cutover and the redirect rules can be rebuilt if the map is lost. Confirm the field exists in your metadata schema before the first load.
Set the redirects in the web server in front of CKAN, which is Nginx in the usual production layout, and only after the map has been verified. Two kinds of redirect need owner approval before they go live. The first is public dataset page redirects, which the portal owner and each publishing organization should approve, because external links, citations and bookmarks depend on them. The second is any redirect that changes what an API client receives, which the team running each consuming system must approve. Keep a window where both old and new paths respond, and end it only after server logs show the old paths are no longer requested and the owners have signed off. Agree the window's length and end date in writing before cutover.
API consumers must change their calls. Any script, dashboard or partner system that calls the Socrata resource or views query endpoints has to move to the CKAN Action API for metadata and to the DataStore Data API for rows. The query languages differ, so each filter, sort and aggregation needs rewriting and testing against the same rows, and the response shape will differ. Treat a redirect on an API path as a bridge for the window only, since a client that follows it may receive a response it cannot parse. Ask each consumer owner now for a list of endpoints and query parameters, and confirm the exact DataStore parameters for your CKAN version in the DataStore documentation.
What goes wrong in a Socrata to CKAN migration and how to prevent it
Six problems recur in Socrata to CKAN moves, and most of them can be found before any row is loaded. Each card names one risk and the check that catches it, so the team can record the result in the cutover plan. Work through them in order, because the metadata map and the consumer inventory feed the link plan and the version choice.
Restricted rows published from staging
A staging CKAN site often holds copies of Socrata datasets, including rows or resources the source restricted. If staging is reachable from the internet or its datasets are marked public, restricted rows become public at the first crawl. Before any load, list the visibility of each source view and confirm the staging site requires sign-in. Before cutover, sign out and check that every restricted dataset returns a login prompt or a not-found response. Keep a written record of that check.
Column type drift in the DataStore
When column types are left for the loader to detect, a Socrata number column with blanks or a date stored as text can come back with a different type. Consumers filtering or sorting on that column then get different results, and the change can go unnoticed. Export the column types from the source metadata, set types explicitly where the loader allows, and compare row counts and sample values per column after each load. Record every column whose type changed and why.
Unknown API consumers and broken links
Dashboards, notebooks and scripts often call Socrata endpoints such as the older /resource/IDENTIFIER.json path or the newer query endpoint, and the portal team may not know they exist. When old identifiers stop resolving, those unknown API consumers fail without warning. Ask request-log owners for a list of callers if you have access, ask known integration owners to register, and map each old identifier to its new CKAN dataset and resource URL. Test every mapped link before the old portal goes read-only.
Socrata endpoints docsMetadata with no CKAN home
Some Socrata metadata has no matching field in the default CKAN dataset schema, so it is easy to drop during the rebuild. Examples include custom attributes and display settings, which need a place in a CKAN extra, a custom schema field, or a retained export. Write a field-by-field map before loading and mark each field as mapped, stored as an extra, or archived. Then compare a sample of source exports with their CKAN records to confirm that nothing was silently lost.
Extension and CKAN version mismatch
The ckanext-dcat extension is supported on CKAN 2.10 and 2.11, and CKAN 2.12.0 was released on August 26, 2026. Before choosing a version, confirm that every extension in your plan supports it, including confirm compatibility before choosing a version for ckanext-dcat. Check the Python, PostgreSQL and Solr requirements of that release, and pin extension versions in your build. If an extension lags the newest release, plan around the previous minor version instead of running an untested combination.
ckanext-dcat repositorySearch index and resource sizing
CKAN indexes every dataset in Solr, so a catalog with many datasets and large resource descriptions needs its index sized and built on purpose. CKAN recommends Solr 9 for installs, with Solr 8 also supported, and Redis runs alongside. Estimate dataset and resource counts and total file size from the Socrata export, confirm disk and memory for Solr, PostgreSQL and file storage, and time a full reindex on a copy. Plan the index and storage before cutover so the build fits the window.
CKAN install docsQuestions buyers ask before a Socrata to CKAN migration
What does moving from Socrata to CKAN cost and what drives the quote?
The price follows the written scope, and most of it is skilled labor spread across six steps:
- Inventory of datasets, attached files, tables, owners and access rules
- Mapping Socrata metadata into a CKAN schema
- Export and load scripting for metadata, files and DataStore tables
- CKAN build and hardening, including the database, search and web tiers
- Testing of records, links, permissions and loads
- Parallel run and cutover, with a rollback path
These steps are one-time work. Hosting, CKAN upgrades and support recur after launch, whether your team or a retainer carries them. The biggest cost drivers are dataset count, table size, custom metadata, compliance scope and the number of private datasets. Ask for a quote that prices each step separately, marks one-time and recurring lines, and states which steps depend on your staff's time.
How long does moving from Socrata to CKAN take?
Duration depends mostly on what the inventory finds, so no fixed timeline should be accepted before it is complete. The number of datasets, attached files, large tables, private records and custom metadata fields decides how much mapping and scripting is needed. A clean catalog with few exceptions moves faster than one with inconsistent fields, large tables or unclear ownership. Dataset owner review is often the slowest step, because people must confirm their own records before cutover. Testing and the parallel run also take time that cannot be shortened without raising the risk of broken records or links at launch. Ask for the timeline to be set in the written scope after the inventory, and ask which findings would change it.
Can our own team move from Socrata to CKAN without a partner?
Yes, a team with the right skills can do it with the documented tools, but the work spans several roles. The export runs through Socrata's query endpoint, currently /api/v3/views/IDENTIFIER/query.json, as described in the Socrata API endpoints documentation. On the CKAN side, the officially supported loader for DataStore tables is XLoader, because DataPusher is now legacy. Your team also needs Python, PostgreSQL, Solr, Redis and web server administration, plus someone who can make metadata decisions with dataset owners. The hardest parts are usually the mapping decisions, access rules for private datasets and a cutover plan that keeps the portal running. Estimate the staff time for the parallel run and for operating CKAN after launch before deciding.
Do old Socrata dataset links keep working after moving to CKAN?
No, old links do not keep working on their own. Socrata dataset pages, resource endpoints and API calls do not redirect to CKAN automatically, and CKAN uses its own dataset and resource paths. Once the old portal is retired, every link that people, scripts and dashboards depend on will break unless you plan redirects. Start by pulling access logs or referral data from the Socrata portal to find the URLs people and systems actually use. Then decide where redirects live, such as the web server, a DNS rule or a mapping table, and who maintains them. Test each mapped redirect before cutover, and keep the old portal read-only until the redirects are verified.
Does compliance scope change the work of moving from Socrata to CKAN?
Yes. The applicable regime decides which controls the new CKAN instance must meet, where it can be hosted and what evidence you need. For example, the FBI CJIS Security Policy version 6.1 requires FIPS 140-3 certified modules, or FIPS 197 AES with keys of at least 256 bits, for criminal justice information in transit and at rest outside physically secure locations, along with at least monthly vulnerability scanning. For controlled unclassified information on non-federal systems, 32 CFR 2002.14(h)(2) points agencies to NIST SP 800-171. FedRAMP applies to cloud services offered to agencies, so a FedRAMP scope check is needed before choosing a host. DeployOpen prepares controls and evidence, but independent auditors and certification bodies make the determination. Confirm the regime with your compliance lead before the inventory starts.
What must our team provide before a Socrata to CKAN move starts?
Four inputs decide whether the work can start on schedule:
- Source access: credentials with read permission for every dataset in scope, including private and hidden ones, plus any access the export needs
- Dataset owners: named people who confirm metadata, field meanings and the mapped records before cutover
- Access decisions: a written list of which private, restricted or retired datasets move and who may see them in CKAN
- Hosting and DNS control: accounts or data center access to build the CKAN environment, and authority to change DNS and set redirects at cutover
Ask each owner to confirm their part in writing. Missing owners or unclear access rules are a common reason the inventory and mapping take longer than planned.
Which CKAN version should we target when leaving Socrata?
Target CKAN 2.12 on its latest patch release, unless an extension you need does not yet support it. CKAN 2.12.0 was released on August 26, 2026, with maintenance releases 2.11.6 and 2.10.11 the same day, according to the CKAN releases page. CKAN's release policy supports the latest patch of the current minor version and the previous minor version, and older patches lose support once a newer one ships. Patch releases avoid breaking changes, while minor releases may include incompatible changes, so pin the patch level and plan each upgrade. Check extension compatibility before choosing. The ckanext-dcat extension lists support for CKAN 2.10 and 2.11, so confirm 2.12 support first. CKAN's install guide lists Python 3.10 or newer, PostgreSQL 12 or newer and Solr 9, so verify those on your servers.
How DeployOpen scopes and delivers a Socrata to CKAN migration
DeployOpen plans and implements Migrate from Socrata to CKAN as a self-hosted build inside your own cloud accounts, data centers or air-gapped network. The work is agreed as a fixed scope with written deliverables before it starts. Documentation and handover cover the finished portal, and ongoing support is available as a retainer.
How we scope
- The written scope names which Socrata views, datasets and attachments move into CKAN, and which stay behind.
- We map each Socrata metadata field to a CKAN schema and agree the mapping with data owners.
- Scope also records who can see each dataset today and the CKAN roles that replace it.
How we build
- Exports run against the Socrata query endpoint, currently
/api/v3/views/IDENTIFIER/query.json, with row counts checked against the source. - Tables load into the CKAN DataStore with XLoader, and the Data API is tested with filters, search and pagination.
- Metadata is written as DCAT-compatible records where the scope requires them, using the ckanext-dcat extension.
How we hand over
- Handover includes the migration scripts, the field mapping, and a record of every dataset moved and any exceptions.
- Redirect rules for old Socrata dataset links are documented and tested before the cut-over.
- Operating documentation covers the CKAN deployment, DataStore loads, backups and the upgrade path, in your infrastructure.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer after handover.
- Security testing of the finished portal can be scoped separately, covering applications, APIs and infrastructure.
- Compliance evidence, such as configuration records and access settings, is prepared for independent auditors, who issue any attestation.

