ckan / ckan/ckanapi

ckanapi.dump.create_datapackage() does not produce spec-compliant data resources

Open
#114 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
212
Forks
81
PR merge metrics
No merged PRs in 30d

Description

From the [data-package spec](https://specs.frictionlessdata.io/data-package/):

> Resources in a Data Package are declared on the `resources` property, which is an array of Data Resource objects.

And the [data-resource spec](https://specs.frictionlessdata.io/data-resource/) says:

> At a minimum, a Data Resource requires a `name` property and a `data` property. `name` provides a human- and machine-readable identifier for the Data Package. `data` is an array of URIs to data.

I'm not sure what they mean by "an array of URIs to data", but it's clear that [what `ckanapi` calls `path`](https://github.com/ckan/ckanapi/blob/bbeab41/ckanapi/cli/dump.py#L215) should be called `data` to comply with the spec.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.