query-713fca50cd957552012bf402e103b436

rq turtle/ttl

Décompte des éléments ayant un article Wikivoyage par pays

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?county ?countryLabel (COUNT(*) AS ?count) WHERE {
  ?sitelink schema:about ?item;
    schema:isPartOf <https://fr.wikivoyage.org/>;
    schema:name ?string.
  ?item wdt:P17 ?country.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
}
GROUP BY  ?county ?countryLabel 
ORDER BY DESC(?count)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v6("?count") v5("?country") v3("?item") v2("?sitelink") v4("?string") c7(["bd:serviceParam"]):::iri c3([https://fr.wikivoyage.org/]):::iri c9(["#91;AUTO_LANGUAGE#93;"]):::literal v2 --"schema:about"--> v3 v2 --"schema:isPartOf"--> c3 v2 --"schema:name"--> v4 v3 --"wdt:P17"--> v5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end bind1[/"count(*)"/] bind1 --as--o v6