Skip to content

Instantly share code, notes, and snippets.

View antoinecourtin's full-sized avatar

Antoine Courtin antoinecourtin

View GitHub Profile
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 .
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@audreydg
@AuroreGallarino
@seeksanusername
@LaurePressac
@N_Paquet
@Baptiste_Bruzel
@sebdaniel
@MaiteLab
@LucileWozniak
@_omr
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 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")
#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.
Sélection de plugins OMEKA
- CollectionTree : permet d'avoir une hiérarchies à plusieurs niveaux pour les collections
- Commenting: zone de commentaires pour les notices, expos, collections, etc.
- Subject-browse: creation d'une page alphabétique à partir des dc:subject
- Universal Viewer: pour implementer IIIF dans les principaux visualiseurs
// ==UserScript==
// @name ParisMuséeDownload
// @namespace pm
// @include http://parismuseescollections.paris.fr/*
// @version 1
// @grant none
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// ==/UserScript==
$( document ).ready(function() {
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
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")