Skip to content
This repository was archived by the owner on Aug 27, 2019. It is now read-only.

18F/goodtables-gov

Repository files navigation

CircleCI Code Climate Test Coverage Dependency Status

goodtables-gov

A RESTful web service for validating files of tabular data.

Given a data file, applies a Goodtables table schema and returns the validation results in JSON form.

Using no validator (applies the GoodTables default validator only)

curl -F 'file=@files/budget.csv' https://goodtables-gov-dev.app.cloud.gov

Using validator defined in a local file

curl -F 'schema=@files/table_schema.json' -F 'file=@files/budget.csv'   https://goodtables-gov-dev.app.cloud.gov

Using validator defined at a URL

curl -F 'file=@files/budget.csv' -F 'schema_url=https://raw.githubusercontent.com/18F/goodtables-gov/master/files//table_schema.json' https://goodtables-gov-dev.app.cloud.gov

For readability, you may want to pipe the output through a formatter, like

curl -F 'file=@files/budget.csv' https://goodtables-gov-dev.app.cloud.gov | python -m json.tool

curl -F 'file=@files/budget.csv' https://goodtables-gov-dev.app.cloud.gov | jq

Contributing

See CONTRIBUTING for additional information.

Public domain

This project is in the worldwide public domain. As stated in CONTRIBUTING:

This project is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication.

All contributions to this project will be released under the CC0 dedication. By submitting a pull request, you are agreeing to comply with this waiver of copyright interest.

About

Webservice to apply GoodTables validator

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages