query-e731ae0b351756193cb8bf27f35c8737
Décompte des éléments ayant un article Wikivoyage étoilé par pays
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
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;
wikibase:badge wd:Q17437796.
?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")
c9(["bd:serviceParam"]):::iri
c3([https://fr.wikivoyage.org/]):::iri
c11(["#91;AUTO_LANGUAGE#93;"]):::literal
c6(["wd:Q17437796"]):::iri
v2 --"schema:about"--> v3
v2 --"schema:isPartOf"--> c3
v2 --"schema:name"--> v4
v2 --"wikibase:badge"--> c6
v3 --"wdt:P17"--> v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end
bind1[/"count(*)"/]
bind1 --as--o v6