Skip to content

Optional DKAN module to harvest from Socrata catalogs.

Notifications You must be signed in to change notification settings

GetDKAN/socrata_harvest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Socrata Harvest

This module will fill in required POD values if they are missing when harvesting from a Socrata data catalog. Ideally these values should be replaced with useful information from the data provider.

Install

composer require 'getdkan/socrata_harvest'
drush en socrata_harvest

Harvest

Register the harvest, replace the uri value with the data.json url of your source:

drush dkan:harvest:register '{"identifier":"socrata","extract":{"type":"\\Harvest\\ETL\\Extract\\DataJson","uri":"https://YOUR-SOURCE/data.json"},"transforms":["\\Drupal\\socrata_harvest\\Harvest\\Transform\\Socrata", "\\Drupal\\harvest\\Transform\\ResourceImporter"],"load":{"type":"\\Drupal\\harvest\\Load\\Dataset"}}'

Run the harvest:

drush dkan:harvest:run socrata

About

Optional DKAN module to harvest from Socrata catalogs.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages