HotMaps / datapackage-validation

Submodule that can be used to validate a datapackage.json file for datasets. To use it just include it in the root of your dataset repository as submodule. You can then execute it using python3 running the file 'validate-datapackage.py'. The script will automatically look for the datapackage.json in the root of the repository.
0 stars 1 forks source link

datapakage-profile and resource-profile are mixed #1

Open zarch opened 6 years ago

zarch commented 6 years ago

The current version required to put in the datapackage level a profile that it is of the resource and it is not compliant with the Frictionless specification.

The frictionless specification required to put as a valid profile for tabular data the following value: "profile": "tabular-data-package" for more info see: https://frictionlessdata.io/specs/tabular-data-package/ If I validate the datapackage with: https://pypi.org/project/datapackage/ the datapackage is valid using: tabular-data-datapackage:

{
  "profile": "tabular-data-datapackage",
  "...": "..."
}

If I validate the datapackage I have not errors

$ datapackage validate datapackage.json
Data package descriptor is invalid

Instead the HotMaps/datapackage-validation raise the following error:

$ python datapackage-validation/validate_datapackage.py
Validation of space_heating_cooling_dhw_demand
Simon Pezzutto
Stefano Zambotti
Silvia Croce
Pietro Zambelli
'profile' contains an unsupported value! Use only vector-data-resource, raster-data-resource or tabular-data-resource
29axe commented 6 years ago

Hello,

I agree with you on that matter but as discussed with Sara some time ago, we decided to keep it simple and close to the template available on LiveLink. And as all repositories are now compliant with this formatting, it would be counter productive to change this behavior now, knowing that we need all the data sets on the platform asap.

We could eventually discuss about improving this on a next sprint if we have time.