Submitted by Leigh Dodds on 25th July 2011
This query finds the URI, code, and name for all General Practices associated with a specific post code. The post code is specified using an Ordnance Survey URI.
Query:
PREFIX nhs: <http://data.kasabi.com/dataset/nhs-organization/def/>
PREFIX org: <http://www.w3.org/ns/org#>
PREFIX os: <http://data.ordnancesurvey.co.uk/ontology/postcode/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?org ?code ?name WHERE {
?org a nhs:GeneralPractice;
org:identifier ?code;
rdfs:label ?name;
org:hasSite ?site.
?site os:postcode <http://data.ordnancesurvey.co.uk/id/postcodeunit/TS181HU>.
}
| Dataset | NHS Organization |
|---|---|
| Created By | Leigh Dodds |
| Published | 2011-07-25 13:42 |