HESTIA provides command-line tools to validate your data before uploading. These tools check that your file uses the correct terms, follows the schema, and contains consistent data.
To validate a CSV file, you will first need to convert it to JSON.
This can be done using the HESTIA utils package:
NodeJS version 12 minimumnpm install --global @hestia-earth/schema-convertfolder then run:hestia-convert-to-json folder
You will find in the folder the list of CSV files converted to JSON with the .json extension.
These files can be then used for validation described below.
When uploading data on the HESTIA platform, you will need to use our Glossary of Terms.
You can follow these steps to install a package to validate the terms:
NodeJS version 12 minimumnpm install --global @hestia-earth/utilsfolder then run:hestia-validate-terms folder
Errors will appear in the console if any have been found.
When uploading data on the HESTIA platform, you will need to follow our Schema.
You can follow these steps to install a package to validate the schema:
NodeJS version 12 minimumnpm install --global @hestia-earth/schema-validationfolder then run:hestia-validate-jsonld folder
Errors will appear in the console if any have been found.
One important step when uploading data on the HESTIA platform is making sure the data are consistent using the Data Validation package.
You can follow these steps to install a package to validate the data:
Python version 3 minimumpip install hestia_earth.validationfolder then run:VALIDATE_SPATIAL=false VALIDATE_EXISTING_NODES=true hestia-validate-data folder
Errors will appear in the console if any have been found.