Skip to content

Incorrect properties in datapackage.json download  #59

@Stephen-Gates

Description

@Stephen-Gates

We are testing v1.0.0 of this extension on CKAN version 2.4.

I have:

CKAN Maintainer is returned as Data Package Author

Returned:

  "author": {
    "name": "Stephen.Z.Gates@tmr.qld.gov.au", 
    "email": "Stephen.Z.Gates@tmr.qld.gov.au"
   }

This doesn't follow the specification. I suspect this should follow data package contributors, e.g.

"contributors": [{
    "title": "ckan_maintainer",
    "email": "ckan_maintainer_email",
    "path": "ckan_organization_url",
    "role": "maintainer"
  }]
}]

Note: title is a mandatory property.

Not 100% sure on setting the the contributors path value. Should this be:

image

CKAN Author is returned as Data Package Sources

Returned:

 "sources": [
    {
      "name": "Stephen.Z.Gates@tmr.qld.gov.au", 
      "email": "Stephen.Z.Gates@tmr.qld.gov.au"
    }
  ]

I suspect this should follow data package sources, e.g.

"sources": [{
  "title": "ckan_author",
  "email": "ckan_author_email",
  "path": "ckan_dataset_url?"
}]

Note: title is a mandatory property.

The spec states that sources is an an array of the raw sources for this data package, so I'm not sure if this property is being used correctly (see note on forum and #30 in datahub.io ). Perhaps it would make more sense to create another contributor role for "author" and not output sources.

Code to fix is in another repo https://github.com/frictionlessdata/ckan-datapackage-tools/blob/master/ckan_datapackage_tools/converter.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions