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

Clarify help text #48

Open
florianm opened this issue Jul 25, 2018 · 0 comments
Open

Clarify help text #48

florianm opened this issue Jul 25, 2018 · 0 comments

Comments

@florianm
Copy link

florianm commented Jul 25, 2018

Adding a dataset as "species observation" with a field "name_id", the field apparently is not recognised as Name ID field. Saving the dataset fails with error message:

Schema errors for resource "threatened_fauna_occurrence": The schema doesn't include a 'Species Name' field or a 'Name Id' field. In order to be a valid Species Observation one of these fields must be specified. Alternatively you can 'tag' a field by adding a biosys type: 'speciesName' or 'speciesNameId'

This message leaves unclear where exactly to insert what data into the datapackage config.

The config as inferred from a CSV:

{
            "type": "integer",
            "name": "name_id",
            "format": "default"
          },

This ended up working:

          {
            "type": "integer",
            "name": "name_id",
            "format": "default",
            "constraints": {"required": true},
            "biosys": {"type": "speciesNameId"}
          },

Could the help text include an example on how to "add a biosys type"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant