Skip to content

Instantly share code, notes, and snippets.

@postspectacular
Created November 16, 2015 01:34
Show Gist options
  • Save postspectacular/bbfe62da536111e7c158 to your computer and use it in GitHub Desktop.
Save postspectacular/bbfe62da536111e7c158 to your computer and use it in GitHub Desktop.
boundary polygons of all London boroughs
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX sdef: <http://statistics.data.gov.uk/def/>
PREFIX sg: <http://statistics.data.gov.uk/def/statistical-geography#>
PREFIX sid: <http://statistics.data.gov.uk/id/statistical-geography/>
CONSTRUCT {
?item rdfs:label ?id ;
sg:officialName ?name ;
sg:hasExteriorLatLongPolygon ?poly .
}
WHERE {
?item a sdef:statistical-geography ;
rdfs:label ?id ;
sg:officialname ?name;
sg:parentcode sid:E12000007 ;
sg:hasExteriorLatLongPolygon ?poly .
}
ORDER BY ASC(?id)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment