Skip to content

davidplumb/census-data-explorer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Census Data Explorer

The Census Data Helper provides a chatbot, as well as a written guide on how to access and make sense of the Census Data. This guide will also help you learn some basic SQL too.

The database and data have been forked from the UK Data Service Infuse2011 table.

If you have any questions feel free contact me via twitter @mountaincows.

Downloading the data

I have provided a SQL dump of the simplified table which can be downloaded. I would recommend reading the documentation to fully understand what is going on. If you find something on the database that isn't documented, please get in touch.

Due to the size of the SQL Table, we have also released a minifed version of the table. This table only includes metadata, meaning you can play around with the different tables and learn how to get the data. Once you're comfortable with this, I'd recommend proceeding to the larger download

Download the minified SQL Dump, census-data-explorer-simplified.sql.zip

Connecting to the Database

At Jisc we have created a guest account for user's to access the data free of charge. Guest's will only be able to perform SELECT queries. We currently have the data stored in a MySQL database with the following credentials:

host: localhost:3306
user: root
password: password

You will be able to connect to the database using the MySQL CLI or you can download MySQL Workbench.

Using SQL

If you have never used SQL before, this is fine. All the queries in this documentation are relatively straight forward. SQL has the benefit of being human readable.

If you're interested in learning SQL, W3 Shools has a great SQL Tutorial.

If you just want a quick overview, you can view our Understaind SQL Page.

Using the SDKs

We provide a JavaScript and Python SDK. They can be found here:

APIs

We provide a REST API as well as a GraphQL API, documentation for these can be found here:

Extra Information

In this section you will find information regarding the following:

It is good to know what these actually are before querying the data.

Locations

Every piece of census data you will find has some location/location type attached to it, these different types can be found in the GL_EXTENTS field. If you want to learn more about each field, check out the links below.

Understanding the Tables

The following section will describe the main meta data tables.

Field Definitions

In this section you will find information regarding the most important individual fields.

Example Questions

Going through the tables and column definitions individually can be a bit daunting and abstract. It's often easier to learn these things by going through a few examples. Let's start with a few simple ones:

Hopefully after doing the examples above you should have good understanding of how to interact with the 2011 Census Data. If you're still struggling, that's fine, these things can often take a while to get to grips with. Feel free to ask the Census Data Helper any questions you have or alternatively drop me a message on twitter @mountaincows.

About

Information regarding the Census Data Explore which includes documentation on the Chatbot, APIs, SDK and SQL Tables 📈

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors