Skip to content

Latest commit

 

History

History
43 lines (26 loc) · 1.57 KB

README.md

File metadata and controls

43 lines (26 loc) · 1.57 KB

National Data Catalog Importer for utah.gov/data

Only focuses on "State Data Files" listed here. There are many other "Data Sources" listed, but they amount to online databases only accessible via custom web interfaces, which is out of the scope of the National Data Catalog.

Installation

Install Needed RubyGems

# For development and production:
gem install datacatalog-importer

Set Up Config Files

  • Create config.yml using config.example.yml as a template.

Usage

First, rake pull. Then, rake push. It's easy.

1. rake pull

Download and parse pages from the source catalog. You will need to specify the environment using the IMPORTER_ENV environment variable. Some examples:

  • IMPORTER_ENV=local rake pull
  • IMPORTER_ENV=sandbox rake pull
  • IMPORTER_ENV=production rake pull

2. rake push

Upload pulled data to the National Data Catalog API. You will need to specify the environment using the IMPORTER_ENV environment variable. Some examples:

  • IMPORTER_ENV=local rake push
  • IMPORTER_ENV=sandbox rake push
  • IMPORTER_ENV=production rake push

Join The National Data Catalog Community