Skip to content

Instantly share code, notes, and snippets.

@wragge
wragge / gist:5755845
Created June 11, 2013 10:18
Automatic captions from my ADA talk: http://www.youtube.com/watch?v=TA8sVZOwCiE
0:05inside confession spies
0:08impact on
0:09week every copyright
0:14if
0:18i don't want to have to kya
0:25uh... think specific rules while applying
0:29in my technique
0:32disdain system site
0:38he'd
0:41dot con
@wragge
wragge / trove-random-article.js
Last active December 29, 2015 21:18
Get a random newspaper article from the Trove API.
$(function(){
var trove_api_key = "Your API key"; // Add your API key
var trove_api_url = "http://api.trove.nla.gov.au/result?zone=newspaper";
var start_year = 1803;
var end_year = 1954;
var current_year = 0;
function get_random_article() {
current_year = get_random_year(); // Get a random year first to limit the query size
var query = trove_api_url + "&q=date:[" + current_year + " TO " + current_year + "]&n=0&l-category=Article&encoding=json&key=" + trove_api_key;
@wragge
wragge / trove-format-facets-d3.js
Created December 8, 2013 11:19
Get format facets from the Trove API and construct a JSON object structured like the sample data used in most of the d3.js examples. It should be possible to plug this in to many of the d3 demos, though I've only tried it so far with the treeview and sunburst. As used in Trove Zone Explorer -- http://dhistory.org/trove/zone-explorer/
$(function(){
var api_key = 'your api key';
function get_data() {
$.jsonp({
"callbackParameter": 'callback',
"url": "http://api.trove.nla.gov.au/result?q= &zone=book,article,collection,picture,map,music&facet=format&n=0&encoding=json&key=" + api_key,
"timeout": 20000,
"success": function(results) {
process_results(results);
@wragge
wragge / diy-trove-exhibitions.md
Last active February 11, 2016 01:12
Details of #vala16 pop-up workshop on DIY Trove exhibitions

#VALA16 Pop-up workshop -- DIY Trove Exhibitions

When: 1.00-1.30pm, Thursday 11 February

Where: Recollect booth (no. 97) in the VALA Exhibition Hall

What:

We'll be working through the instructions provided on the DIY-Trove-Exhibitions repository. Bring a laptop and you can build your own exhibition on the spot!

#Linked Open Data!

How many of you were at the VALA conference?

Lots and lots of discussion about LOD

  • Vocabularies
  • RDF
  • Triples
  • SPARQL
@wragge
wragge / digitalglam.md
Last active June 26, 2016 07:56
Abstract for digitalGLAM symposium

#Hacking heritage: power and participation in digital cultural collections

As cultural heritage collections become available in digital form they can be used and transformed by publics outside of existing institutions. But what are the limits of these new forms of engagement? Even as we hack around structures of professional and institutional authority and create new pathways into collections, barriers remain. Lack of technical confidence, legal uncertainties, and the inherent politics of access can all inhibit broader participation. Drawing on examples from Trove and the National Archives of Australia, this presentation will explore the meaning of 'access' within the frame of open data. What do we need to see cultural heritage collections differently?

To be presented at DigitalGLAM Symposium, 15 July, University of Melbourne.

@wragge
wragge / pha-2016-abstract.md
Last active July 10, 2016 06:55
Abstract for my keynote at the Professional Historians' Association 'Working History' conference

Telling stories with data

Access to digital resources like Trove has changed the way we do history, but what about the way we communicate history? Sure, we now use blogs and social media to tell our stories, but there remains a divide between the data embedded within digital resources, and the narratives we construct on top of them. I want to explore ways in which we can maintain and enrich connections between data and narrative -- to tell stories that not only connect us to the past, but connect us to the wealth of historical material that exists within online collections.

See: Working History conference

@wragge
wragge / asa2016-abstract.md
Last active October 3, 2016 04:51
Abstract for my keynote at the Australian Society of Archivists Annual Conference.

Turning the inside out

In 1957 the Commonwealth Migration Officer sought ASIO's advice on an application from Leong Sam, a Chinese fruit dealer who had been living in Australia since 1901. Leong Sam had applied for a Certificate Exempting from the Dictation Test (CEDT) to allow him to travel to Hong Kong. ASIO noted that he had attended a Chinese film night organised by a member of the Communist Party of Australia, but raised no objection.

This brief bureaucratic exchange reminds us of three things. First the White Australia Policy was still in operation in the late 1950s, regulating the movements of non-white residents. Secondly, that long before the digital age and concerns of record linkage, the lives of Australians were monitored through multiple, intersecting systems of surveillance. And third, that recordkeeping is central to the practices of state surveillance.

Despite the secrecy surrounding our intelligence agencies I know about Leong Sam because someone asked if ASIO had a file on an associate,

@wragge
wragge / trove_show_people.user.js
Last active October 20, 2016 08:22
Userscript to insert pictures of people extracted from Trove newspaper articles in the search results.
// ==UserScript==
// @name Trove -- People Inside
// @namespace http://wraggelabs.com/trove_show_people
// @description Newspapers are about people. This userscript enriches Troves's newspaper results by inserting images of some of those people.
// @version 0.1
// @date 2015-06-9
// @creator Tim Sherratt
// @include http://trove.nla.gov.au/newspaper/result?*&l-illustrated=true*&l-illtype=Photo*
// @grant GM_xmlhttpRequest
// @connect faceapi.herokuapp.com
@wragge
wragge / digital-directions.md
Last active November 10, 2016 01:38
Talk for Digital Directions symposium, session on 'Access and innovation' in digital cultural collections

Caring about access

You might have seen that the Department of Prime Minister and Cabinet has opened discussion on an Open Government National Action Plan. Last week I was watching the Twitter stream from a briefing event in Melbourne, when I saw this tweet from Asher Wolf quoting the PM&C spokesperson:

. @pmc_gov_au: we don't want ppl to search for flaws or try to crack gvt datasets. #OGPAU

Now I'm not sure of the context of this statement, but it is a reminder that we can't take the meaning of words like 'open' or 'access' for granted.

They are what we make of them.