Skip to content

Instantly share code, notes, and snippets.

View emchateau's full-sized avatar

Emmanuel Château-Dutier emchateau

View GitHub Profile
@ewg118
ewg118 / RIC6-10.sparql
Last active July 19, 2017 17:38
SPARQL query of British Museum endpoint to get RIC 6, 7, 8, 10 coins for normalization
PREFIX bmo: <http://collection.britishmuseum.org/id/ontology/>
PREFIX crm: <http://erlangen-crm.org/current/>
PREFIX ecrm: <http://erlangen-crm.org/current/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX bibo: <http://purl.org/ontology/bibo/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?s ?regno ?mint ?auth ?ref WHERE {
{?s ecrm:P70i_is_documented_in <http://collection.britishmuseum.org/id/bibliography/3189>}
SELECT ?commune ?label ?coords {
?commune wdt:P31 wd:Q484170 ; rdfs:label ?label . FILTER(LANG(?label) = "fr") .
FILTER REGEX(?label, ".Seine($|[ -])") .
?commune wdt:P625 ?coords .
} ORDER BY ?label
@drjwbaker
drjwbaker / 2016-07_DH2016.md
Last active July 14, 2016 10:55
Digital Humanities 2016, Krakow, 11-15 July 2016

Digital Humanities 2016, Krakow, 11-15 July 2016

Live notes, so an incomplete, partial record of what actually happened.

Tags: dh2016

My asides in {}


Music Information Retrieval Algorithms for Oral History Collections (workshop)

A Pedagogy of Minimal Computing

Instructors of digital humanities routinely face a palpable problem: when to teach tools, and when to teach techniques. This talk argues for the latter, with an emphasis on designing humanities courses that foreground process and mediation without fetishizing tools or programming. One issue with tools is that, even if they are accessible to beginners, they rarely afford a scholarly understanding of how input becomes output, or they bypass important subtleties in content and method. Unfortunately, a common reaction to this limitation is programming purism: “learn to code,” or “code is source.” But, like any language, programming takes years to learn and practice. Many humanities students also find it frustrating or exclusionary, and code is but one layer in the "stack" of digital culture. As such, I propose a third approach: minimal computing, which asks when and why computing and computing infrastructure are actually necessary for humanities research. Drawing on sample prom

SELECT ?label ?coord ?subj ?img WHERE {
?subj wdt:P31/wdt:P279* wd:Q4989906.
?subj rdfs:label ?label.
OPTIONAL { ?subj wdt:P625 ?coord.}
OPTIONAL { ?subj wdt:P18 ?img.}
?subj wdt:P571 ?date
FILTER (?date < "1900-00-0T00:00:00Z"^^xsd:dateTime)
FILTER((LANG(?label)) = "fr")
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?itemLabel ?image ?creatorLabel ?datecreation ?placebirthLabel where {
?item wdt:P31/wdt:P279* wd:Q838948 . # œuvre d’art et ss-classe
?item wdt:P608 wd:Q20980830. # du projet Europeana 280
OPTIONAL {
?item wdt:P571 ?datecreation. # date de création, utile pour l'affichage timeline
?item wdt:P170 ?creator. # créateur
#Connaitre le nombre d'architecte né après 1800 dans data.bnf.fr
PREFIX bio: <http://vocab.org/bio/0.1/>
PREFIX rdagroup2elements: <http://rdvocab.info/ElementsGr2/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
SELECT (count(distinct ?auteur) as ?nombre)
WHERE {
?auteur foaf:gender ?nom.
?auteur bio:birth ?date1.
FILTER (xsd:integer (?date1) > "1800"^^xsd:integer)
?auteur bio:death ?date2.
PREFIX bio: <http://vocab.org/bio/0.1/>
PREFIX rdagroup2elements: <http://rdvocab.info/ElementsGr2/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
SELECT ?auteur ?date1 ?date2 ?nom ?genre ?metier
WHERE {
?auteur foaf:gender ?genre.
?auteur bio:birth ?date1.
?auteur bio:death ?date2.
?auteur rdagroup2elements:biographicalInformation ?metier.
FILTER regex(?metier, "architecte", "i")
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
select distinct ?personne ?pRU ?pFR ?pJA ?pFA ?idAgorha ?idBnF ?ulan ?ISNI ?SUDOC ?VIAF
where {
?personne wdt:P31 wd:Q5 . #pour chercher des personnes humaines
?personne wdt:P106 wd:Q42973 . #qui occupe la fonction d'architecte
?personne wdt:P27 wd:Q142 . #qui sont français
?personne wdt:P2342 ?idAgorha . #on veut l'id d'AGORHA de l'INHA
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
select distinct ?personne ?pRU ?pFR ?pJA ?pFA ?idAgorha ?idBnF ?ulan ?ISNI ?SUDOC ?VIAF
where {
?personne wdt:P31 wd:Q5 . #pour chercher des personnes humaines
?personne wdt:P106 wd:Q1028181 . #des peintres
?personne wdt:P27 wd:Q142 . #qui sont français
?personne wdt:P2342 ?idAgorha .