On Github code4libyeg / openrefine_workshop_2016
Prepare your data for visualization with Open Refine
Presented by Mariana Paredes-Olea and Weiwei Shi https://github.com/code4libyeg/openrefine_workshop_2016
OpenRefine is a free, open source tool for working with messy data, cleaning it up, transforming it from one format into another, and enhancing it with data from web services.
GREL is designed to resemble Javascript. So you can expect basic things to work, and know how they would work:
GREL is designed to resemble Javascript. So you can expect basic things to work, and know how they would work:
[Documentation for GREL Functions](https://github.com/OpenRefine/OpenRefine/wiki/GREL-Functions)
Rows vs Records
A row is a single line of your project.
A record is a combination of one or multiple rows identifying a unique object and sharing the same first column.
Fetching
Use "Add Column by Fetching URLs", and use the follow expression to fetch result from Google Geocoding API: "http://maps.google.com/maps/api/geocode/json?sensor=false&address=" + escape(value, "url")
Parsing
Now you need to parse the json response into useful data by using the following expression: with(value.parseJson().results[0].geometry.location, pair, pair.lat +", " + pair.lng)
With OpenRefine, we can perform reconciliation against any web service supporting the Reconciliation Service API.
Example: VIAF and OpenRefine