Différences entre versions de « Liste des papes avec SPARQL »
Sauter à la navigation
Sauter à la recherche
(5 versions intermédiaires par 2 utilisateurs non affichées) | |||
Ligne 1 : | Ligne 1 : | ||
− | {{#sparql:PREFIX bd: <http://www.bigdata.com/rdf#> | + | {{#sparql: |
+ | PREFIX pq: <http://www.wikidata.org/prop/qualifier/> | ||
+ | PREFIX ps: <http://www.wikidata.org/prop/statement/> | ||
+ | PREFIX p: <http://www.wikidata.org/prop/> | ||
+ | PREFIX bd: <http://www.bigdata.com/rdf#> | ||
PREFIX wikibase: <http://wikiba.se/ontology#> | PREFIX wikibase: <http://wikiba.se/ontology#> | ||
PREFIX wd: <http://www.wikidata.org/entity/> | PREFIX wd: <http://www.wikidata.org/entity/> | ||
PREFIX wdt: <http://www.wikidata.org/prop/direct/> | PREFIX wdt: <http://www.wikidata.org/prop/direct/> | ||
− | select ?link ?linkLabel ?picture | + | select ?link ?linkLabel ?picture ?age |
where { | where { | ||
?link wdt:P31 wd:Q5 ; | ?link wdt:P31 wd:Q5 ; | ||
− | + | wdt:P39 wd:Q19546 ; | |
− | + | wdt:P18 ?picture ; | |
+ | wdt:P569 ?dateOfBirth ; | ||
+ | wdt:P570 ?dateOfDeath ; | ||
+ | p:P39 ?guidPositionHeldPope . | ||
+ | ?guidPositionHeldPope ps:P39 wd:Q19546 ; | ||
+ | pq:P580 ?startTime . | ||
+ | bind( year(?dateOfDeath)-year(?dateOfBirth) as ?age ) | ||
SERVICE wikibase:label { | SERVICE wikibase:label { | ||
bd:serviceParam wikibase:language "fr,en" . | bd:serviceParam wikibase:language "fr,en" . | ||
} | } | ||
} | } | ||
− | ORDER BY ? | + | ORDER BY DESC(?startTime) |
− | | templates = link, image | + | LIMIT 10 |
− | | | + | | headers = Nom du pape, Image, Age à sa mort |
+ | | templates = link, image, Liste_des_papes_avec_SPARQL/age | ||
+ | | config = http://www.wikidata.org | ||
+ | }} |
Version actuelle datée du 16 mai 2016 à 16:04
Nom du pape | Image | Age à sa mort |
---|---|---|
Benoît XVI | <img src="" style="max-width:500px;"/> | 95 |
Jean-Paul II | <img src="" style="max-width:500px;"/> | 85 |
Jean-Paul Ier | <img src="" style="max-width:500px;"/> | 66 |
Jean-Paul Ier | <img src="" style="max-width:500px;"/> | 66 |
Paul VI | <img src="" style="max-width:500px;"/> | 81 |
Jean XXIII | <img src="" style="max-width:500px;"/> | 82 |
Pie XII | <img src="" style="max-width:500px;"/> | 82 |
Pie XI | <img src="" style="max-width:500px;"/> | 82 |
Benoît XV | <img src="" style="max-width:500px;"/> | 68 |
Pie X | <img src="" style="max-width:500px;"/> | 79 |
14:24:42 14/06/2024 -- Actualiser -- Durée de la requête :1.023s |