Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use CKAN API version 3 #90

Open
danielgavrilov opened this issue Aug 26, 2015 · 0 comments
Open

Use CKAN API version 3 #90

danielgavrilov opened this issue Aug 26, 2015 · 0 comments

Comments

@danielgavrilov
Copy link
Contributor

If a CKAN API version 3 URL is passed to DataKitten::Dataset, it makes the request, extracts the id and makes a second request to the version 2 endpoint, which it uses to extract metadata. Not only is this inefficient, but version 2 is also missing some fields available in 3. So far, I've noticed that schema and codelists are missing in data.gov.uk version 2 (which are useful in answering questions for ODC).

Example data.gov.uk dataset that has both a codelist & schema:

The differences I'm aware of between the two versions are:

  1. Metadata in v3 is in the result field, whereas in v2 metadata is the response itself
  2. extras field contains an array of key-value hashes in v3 ([{ key: "id", value: 1 }]), whereas in v2 it is a hash ({id: 1})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant