asking questions of data

43
Asking questions of data: Tony Hirst Computing and Communications Dept, The Open University, UK blog.ouseful.info / @psychemedia from simple search to advanced queries

Upload: tony-hirst

Post on 27-Jan-2015

117 views

Category:

Education


1 download

DESCRIPTION

If the information I need is locked in a dataset, and requires some sort of database query to construct that information from the dataset, who do I turn to for help in accessing it? The library? And if not the library, who?

TRANSCRIPT

Page 1: Asking Questions of Data

Asking questions of data:

Tony HirstComputing and Communications Dept,

The Open University, UK

blog.ouseful.info / @psychemedia

from simple searchto advanced queries

Page 2: Asking Questions of Data

Time was when…

Page 3: Asking Questions of Data
Page 4: Asking Questions of Data
Page 5: Asking Questions of Data

Search and replace

Page 6: Asking Questions of Data

Advanced search and

replace

Page 7: Asking Questions of Data

regex

Page 8: Asking Questions of Data

Regular expressions

Page 9: Asking Questions of Data

How do we discover or recover information from

data?

Page 10: Asking Questions of Data

A medical librarian is probably not a expert on zoonotic H5H1 influenza

infections…

BUT…

Page 11: Asking Questions of Data

How do we cope with new discovery

regimes and environments?

Page 12: Asking Questions of Data

“DIY

Dre

amca

tche

r”, v

ia fl

ickr

use

r: b

arbr

oand

erse

n

Page 13: Asking Questions of Data

“DIY

Dre

amca

tche

r”, v

ia fl

ickr

use

r: b

arbr

oand

erse

n

Page 14: Asking Questions of Data

Friends of my friends who are librarians

Page 15: Asking Questions of Data

People who live in Bath and like the Future of Libraries

Page 16: Asking Questions of Data

When the databases really are databases..?

Page 17: Asking Questions of Data

USERS QUERY INFORMATION

Page 18: Asking Questions of Data

DATA

QUERIES

USERS INFORMATION

Page 19: Asking Questions of Data

An example – questions around

local elections

Page 20: Asking Questions of Data

Which wards in my local council area were not

contested by Conservative affiliated candidates?

Page 21: Asking Questions of Data
Page 22: Asking Questions of Data
Page 23: Asking Questions of Data

Can I get a list of all the candidates?

Page 24: Asking Questions of Data

SELECT * FROM candidates

Page 25: Asking Questions of Data

Can I get a list of people standing in wards in Newport

who live out of ward?

Page 26: Asking Questions of Data

SELECT * FROM candidates WHERE ward LIKE 'Newport%' AND address NOT LIKE '%Newport%'

Page 27: Asking Questions of Data

How many candidates did

each party field?

Page 28: Asking Questions of Data

SELECT desc AS Party, COUNT(desc) AS Number FROM candidates GROUP BY Party ORDER BY Number DESC

Page 29: Asking Questions of Data

Which wards were not contested by Conservative

affiliated candidates?

Page 30: Asking Questions of Data

SELECT DISTINCT ward from Candidates WHERE ward NOT IN (SELECT DISTINCT ward FROM Candidates WHERE desc LIKE '%Conservative%’)

Page 31: Asking Questions of Data
Page 32: Asking Questions of Data
Page 33: Asking Questions of Data
Page 34: Asking Questions of Data

Which candidates were signatories in to

other proposals?

Page 35: Asking Questions of Data
Page 36: Asking Questions of Data
Page 37: Asking Questions of Data
Page 38: Asking Questions of Data
Page 39: Asking Questions of Data
Page 40: Asking Questions of Data
Page 41: Asking Questions of Data
Page 42: Asking Questions of Data

Time is now…

Page 43: Asking Questions of Data

blog.ouseful.info @ps

yche

med

ia