This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Depuis le 11 juillet, Mapquest ne fonctionne plus ce qui pose soucis pour ceux utilisent Bootleaf. | |
##Pour ça, il faut changer l'appel à un autre maplayers. | |
### Procédure | |
* Se rendre dans le répertoire suivant : /assets/js et ouvrir le fichier app.js | |
* Modifier 3 parties du code | |
* Ligne 122 | |
var cartoLight = L.tileLayer("https://cartodb-basemaps-{s}.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png", { | |
maxZoom: 19, | |
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, © <a href="https://cartodb.com/attributions">CartoDB</a>' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT ?a ?lat ?long WHERE { | |
?a wdt:P31/wdt:P279* wd:Q811979 . | |
?a wdt:P131 wd:Q193826 . | |
?a p:P625 ?lieu . # | |
?lieu psv:P625 ?coordinate_node. | |
?coordinate_node wikibase:geoLatitude ?lat . | |
?coordinate_node wikibase:geoLongitude ?long . | |
} | |
#avoir lat + long dans une seule variable (séparé par une virgule) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PREFIX wd: <http://www.wikidata.org/entity/> | |
PREFIX wdt: <http://www.wikidata.org/prop/direct/> | |
PREFIX wikibase: <http://wikiba.se/ontology#> | |
PREFIX p: <http://www.wikidata.org/prop/> | |
PREFIX v: <http://www.wikidata.org/prop/statement/> | |
PREFIX q: <http://www.wikidata.org/prop/qualifier/> | |
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | |
SELECT ?villeLabel (COUNT(distinct ?villeLabel) AS ?nombre) |