I have the following, which retrieves the lat/long when given a postcode. How can I do the reverse (give lat/long, retrieve postcode) in SPARQL?
PREFIX pc: <http://data.ordnancesurvey.co.uk/ontology/postcode/>
PREFIX pos: <http://www.w3.org/2003/01/geo/wgs84_pos#>
SELECT ?lat ?long
WHERE {
<http://data.ordnancesurvey.co.uk/id/postcodeunit/S24SU> pos:lat ?lat .
<http://data.ordnancesurvey.co.uk/id/postcodeunit/S24SU> pos:long ?long .
}
enter code here