This is a repost of Using WordPress for research data collection and visualization which first appeared on the OER Research Hub blog on 27th November 2013
At the beginning of my contribution to the OU’s OER Research Hub project it was interesting to see a post by Martha Burtis (University of Mary Washington) on WordPress as a Data Collection Tool. There are a number of parallels between the work Martha has been doing and the OER Research Hub alpha and it was nice to see someone take a similar approach, essentially using the existing WordPress architecture to create a custom interface for data entry and display. In my last post I primarily focused on the data architecture and entry for the OER Evidence Hub and as this phase of the project comes to an end I thought it would be useful to highlight some of the solutions developed to allow people to navigate and explore the growing data set.
Summary map
It seems to my that parts of the OER community are obsessed with geography. It’s a topic that has been tackled multiple times, the recent UNESCO/COL OER World Map discussion and subsequent request for proposals being an indication that people still want to make a mark. When asked to include a map in OER Research Hub I wanted it to convey more than just geography. Below is a screenshot of what I came up with (but you are better playing with the interactive version):
All the nodes and paths in the Sankey are active links providing a way for the user to navigate the data. The Sankey is also redrawn when the map is zoomed to filter evidence for that country. The data for the map is initially extracted from the WordPress database, reshaped server-side before being embedded on the page as JSON. The main reasons for doing it this way is because the plugin has it’s own built-in cache so rather than multiple queries and processing only one query to return the rendered data is required.
Detailed evidence map
A more ‘traditional’ evidence map has also been created. Fully embracing the open philosophy whilst this map on cursory inspection looks like an embedded Google Map it is in fact the community built OpenStreetMap rendered using the open source LeafletJS library. LeafletJS comes with a long list of extra plugins and for now the only one used is the Overlapping Marker Spiderfier, but if the map is developed further there is an opportunity to grow functionality by including additional plugins.
[LeafletJS appears to be on the ascendancy andI also spotted it was being used for the ascendancy ascendancy Open Access Button World Map]
This map was also an opportunity to think about APIs for other people to mashup the evidence hub data. Currently in use is
get_geojson – markers in geoJSON format
Parameters
- type (required) – string which can be a comma separated list of post types. Current options are evidence and project
- count (optional) – number of points to return. Default is 10, to get all use –1
- paged (optional) – for paging results
get_all_type – post data
Parameters
- type (required) – string which can be a comma separated list of post types. Current options are evidence and project
- count (optional) – number of points to return. Default is 10, to get all use –1
- paged (optional) – for paging results
[Like a lot of projects these haven’t been documented properly yet and something being saved for the next phase. This functionality has been achieved by extending the JSON API plugin. This also has endpoints for create_post
, update_post
and delete_post
, which haven’t been enabled but will probably be a useful way to get evidence into the hub.
The next phase of this part of the project is still to be decided, but in the meantime your feedback is very welcome and the code is available here.