﻿# CKAN: distinguish dataset packages from resource files

CKAN catalogs separate dataset packages, resources and optional table services. Inspect the actual instance before treating metadata as observations.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/data-guide-ckan-package-resource-api/
Language: en

CKAN is software used to operate data catalogs, not one centrally defined dataset collection. The [user guide](https://docs.ckan.org/en/2.12/user-guide.html) distinguishes datasets and their resources. It is useful for structured discovery across an instance, provided the project identifies that instance and follows its resource descriptions to the actual observations.

## Resolve package and resource identifiers together

A package can contain several resources with different formats, periods or access mechanisms. Keep the package identifier, resource identifier and selected URL. An HTML landing page is not a CSV merely because both appear in a resource list. Determine which representation supplies the row unit the model needs before creating a downloader or parser.

## Separate Action API metadata from table access

The [API guide](https://docs.ckan.org/en/2.12/api/) documents package and resource metadata and distinguishes other storage interfaces. A package-search response describes catalog entries, not necessarily their complete underlying tables. Some instances expose a DataStore representation; others only link files. Preserve the selected route and inspect whether conversion changed types, nulls or row ordering.

## Check the running instance's contract

The [CKAN implementation](https://github.com/ckan/ckan) supports extension-based catalogs. Custom schemas and installed components can differ across deployments. Current software documentation is not proof that every portal exposes identical fields or search behavior. Record instance and known version, then validate required metadata against an actual read-only response rather than assuming all CKAN-powered sites are interchangeable.

## Interpret updates at the right layer

A package timestamp may reflect metadata maintenance, while the resource's data period or bytes remain unchanged. Conversely, a remote file can change behind a stable resource URL. Save extraction state, file identity and data coverage. An editorial freshness audit should compare catalog changes with observations inside the resource, keeping unavailable distributions visible rather than silently removing them.

## Preserve resource-level provenance

CKAN is useful for an inspectable inventory when resource selection stays explicit. [Document provenance](/journal/document-markdown-json-provenance/) links derived text to retrieved files. [Document-level split design](/journal/document-level-data-split-leakage/) helps group duplicate formats and releases. Report package/resource mappings and local transformations so that a shared catalog interface does not hide different data definitions, update processes or evaluation populations.
