query-42b522de6f250cb5e229f6c4540a2a51

rq turtle/ttl

afficher le nombre d'éléments disposant de la propriété "archivé par" (P485) par institution

Le pays de rattachement de l'institution doit être la France.

Les éléments doivent être de genre ou de sexe féminin.

classer les institution par ordre de nombre d'éléments décroissant.

SELECT ?institution ?institutionLabel ?LieuLabel (COUNT(?item) AS ?total) WHERE { ?item wdt:P485 ?institution; wdt:P21 wd:Q6581072. ?institution wdt:P17 wd:Q142. OPTIONAL {?institution wdt:P131 ?Lieu.} SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],fr,en". } } GROUP BY ?institution ?institutionLabel ?LieuLabel ORDER BY DESC (?total)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#afficher le nombre d'éléments disposant de la propriété "archivé par" (P485) par institution
#Le pays de rattachement de l'institution doit être la France.
#Les éléments doivent être de genre ou de sexe féminin.
#classer les institution par ordre de nombre d'éléments décroissant.
SELECT ?institution ?institutionLabel ?LieuLabel (COUNT(?item) AS ?total) 
WHERE 
{
  ?item wdt:P485 ?institution;
        wdt:P21 wd:Q6581072.
  ?institution wdt:P17 wd:Q142.
  OPTIONAL {?institution wdt:P131 ?Lieu.}
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],fr,en". }
}
GROUP BY ?institution ?institutionLabel ?LieuLabel
ORDER BY DESC (?total)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?Lieu") v3("?institution"):::projected v2("?item"):::projected v5("?total") c8(["bd:serviceParam"]):::iri c10(["#91;AUTO_LANGUAGE#93;,fr,en"]):::literal c3(["wd:Q6581072"]):::iri c5(["wd:Q142"]):::iri v2 --"wdt:P485"--> v3 v2 --"wdt:P21"--> c3 v3 --"wdt:P17"--> c5 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P131".-> v4 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end bind1[/"count(?item)"/] v2 --o bind1 bind1 --as--o v5