User:PAC2/Wikivoyage

From Wikidata
Jump to navigation Jump to search

Liste des éléments ayant un article Wikivoyage en français avec le pays[edit]

SELECT DISTINCT ?string ?item ?itemLabel ?country ?countryLabel 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]". }
}
ORDER BY (?itemLabel)
Try it!

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

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)
Try it!

Décompte des éléments ayant un article Wikivoyage étoilé par pays[edit]

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)
Try it!

Carte des éléments ayant un article Wikivoyage étoilé[edit]

#defaultView:Map
SELECT ?item ?itemLabel ?county ?countryLabel ?coord WHERE {
  ?sitelink schema:about ?item;
    schema:isPartOf <https://fr.wikivoyage.org/>;
    schema:name ?string;
    wikibase:badge wd:Q17437796.
  ?item wdt:P17 ?country;
        wdt:P625 ?coord. 
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
}
Try it!