Improving the map of my neighbourhood
My hood
This is Way: Richmond (1489761671) and you will notice that I mapped this neighbourhood. Richmond is small, historic and central with a mixed architectural heritage. You’ll find points of interest in the suburb of Q61359147. There are a number of offices and public (and private) education facilities. There’s no shortage of nearby recreation facilities either.
Mapping the hood with SPARQL.
In this post (which is in draft) I’m going to show how I go about creating a map of the hood
Take a specific place (Q61359147) as the center point Finds all nearby places within 10 km radius Filters them according to specific category (tourist attractions, bookshops ) Calculates how far each one is from the centre point and returns results from nearest to farthest.
Tourist Attractions (Q570116)
Let’s begin with a list. Are there tourist attractions (Q570116) near Richmond (Q61359147)? ~~~ SELECT DISTINCT ?place ?placeLabel ?location ?distance WHERE { hint:Query hint:optimizer “None” . wd:Q61359147 wdt:P625 ?arcLoc . #Change the location SERVICE wikibase:around { ?place wdt:P625 ?location . bd:serviceParam wikibase:center ?arcLoc . bd:serviceParam wikibase:radius “50” . } ?place wdt:P31/wdt:P279* wd:Q570116 . SERVICE wikibase:label { bd:serviceParam wikibase:language “en” . } BIND(geof:distance(?arcLoc, ?location) AS ?distance) } ORDER BY ASC(?distance) ~~~
Richmond Points of Interest
https://commons.wikimedia.org/wiki/Data:South_Africa/Gauteng/Richmond_POI.map
Melville Koppies
https://en.wikipedia.org/wiki/Wikipedia:Map_data/Melville_Koppies
Melville Koppies East
Credit to Stanislav Kralin for the SPARQL query.
Discussion in the ATmosphere