Last active
March 12, 2017 11:47
-
-
Save edouardhue/c5792b9a687da6a46be82a6ebf8d7777 to your computer and use it in GitHub Desktop.
Nature des noms de voies à Rennes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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