Notes

A few days ago I wanted to find a dataset with a list of winners of the Palme d’Or. The table on Wikipedia wasn’t formatted in a way that would be easy to copy, and I figured this was as good a time as any to figure out how Wikidata works.

Wikidata is a Wikimedia Foundation project that aggregates structured information about the world. It stores and retrieves facts based on an item/property/value system. Items are nouns, like Parasite. Properties define a relation, such as “award received” or “director”; they also specify another item as the value associated with that property, like Palme d’Or or Bong Joon-ho.

Wikidata provides a public query interface that uses a query language called SPARQL. No relation with Spark: it’s actually running on a graph database called Blazegraph. The query language works on a sort of fill-in-the-blanks basis with the item/property/value triples.

For example, to see which awards Parasite won, you can write a query like this:

April 20, 2020

My partner was working on a legal research project that required him to look at the search result pages for a long list of product names. Because copying and pasting each name from Excel into the browser was the most tedious part of his workflow, I made a little web app so he could paste a list of search terms and open the search results in new tabs. Also features some nice-looking widgets courtesy of my batch-mate Miles’s spiffy little component library.

Should this have been a React app? Should it have been a single command (IFS="\n"; for i in $(pbpaste); do open "https://google.com/search?q=$i"; done)? Tell us in the comments.

Page 2 of 2