Skip to content

Instantly share code, notes, and snippets.

@edouardhue
Last active March 12, 2017 11:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edouardhue/c5792b9a687da6a46be82a6ebf8d7777 to your computer and use it in GitHub Desktop.
Save edouardhue/c5792b9a687da6a46be82a6ebf8d7777 to your computer and use it in GitHub Desktop.
Nature des noms de voies à Rennes
#defaultView:TreeMap
# Voies de Rennes
SELECT ?natureNomLabel ?natureLabel (COUNT(?voie) AS ?c)
WHERE {
?voie wdt:P31 ?nature ;
wdt:P31/wdt:P279* wd:Q83620 ; # Voie de communication
wdt:P131 wd:Q647 . # à Rennes
OPTIONAL {
?voie wdt:P138 ?nom ; # nommée en référence à une entité
wdt:P138/wdt:P31 ?natureNom . # nature de l’entité référencée
}
SERVICE wikibase:label {
bd:serviceParam wikibase:language "fr"
}
}
GROUP BY ?natureNomLabel ?natureLabel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment