Dataset Southampton
Published 29th July 2011
Updated 14th March 2012
Resources 35099

Southampton

This is an overview of Southampton. This dataset (so far) includes data about schools, NHS organisations, transport, crime, the council and renewable energy generators in Southampton. More will be added over time.

This is an experimental dataset.

Explore the dataset
Default APIs

SPARQL Endpoint

Use the SPARQL 1.1 query language to perform structured queries against a dataset. Useful for performing precise queries against a dataset whose structure you understand.

Sample queries

Find me GPs, their names and postcodes in the SO17 postcode district.

Query: 
select ?GP ?GPname ?postcode where { ?postcode <http://data.ordnancesurvey.co.uk/ontology/spatialrelations/within> <http://data.ordnancesurvey.co.uk/id/postcodedistrict/SO17> . ?site <http://data.ordnancesurvey.co.uk/ontology/postcode/postcode> ?postcode . ?site <http://www.w3.org/ns/org#siteOf> ?GP. ?GP a <http://data.kasabi.com/dataset/nhs-organization/def/GeneralPractice> . ?GP <http://www.w3.org/2000/01/rdf-schema#label> ?GPname . }
Login to test this query using our experimental API explorer Permalink to this sample query

What are the types of crime committed in postcode district SO17, and how many were committed..

Query: 
select ?crimetype (count(?crimetype) as ?number) where { ?postcode <http://data.ordnancesurvey.co.uk/ontology/spatialrelations/within> <http://data.ordnancesurvey.co.uk/id/postcodedistrict/SO17> . ?crime <http://commons.psi.enakting.org/def/nearest-postcode> ?postcode . ?crime a <http://crime.rkbexplorer.com/id/ReportedCrime> . ?crime <http://crime.rkbexplorer.com/id/crime-type> ?crimetype . } group by ?crimetype
Login to test this query using our experimental API explorer Permalink to this sample query

How many cases of antisocial behaviour were reported for each ward in the month of June?

Query: 
select ?wardlabel (COUNT(?crime) as ?number) where { ?crime <http://commons.psi.enakting.org/def/period> <http://time.psi.enakting.org/interval/2011-06-01T00:00:00ZP1M> . ?crime <http://commons.psi.enakting.org/def/nearest-postcode> ?postcode . ?crime <http://crime.rkbexplorer.com/id/crime-type> <http://crime.rkbexplorer.com/id/anti-social-behaviour> . ?postcode <http://data.ordnancesurvey.co.uk/ontology/postcode/ward> ?ward . ?ward <http://www.w3.org/2000/01/rdf-schema#label> ?wardlabel . } group by ?wardlabel order by ?number
Login to test this query using our experimental API explorer Permalink to this sample query
11th Aug 2011

Find me GPs in Portswood and the bustops in a 100 metre radius 

Query: 
select ?gp ?gppostcode ?bustop where { ?gp a <http://data.kasabi.com/dataset/nhs-organization/def/GeneralPractice> . ?gp <http://www.w3.org/ns/org#hasSite> ?gpsite . ?gp <http://data.kasabi.com/dataset/nhs-organization/def/status> "Active" . ?gpsite <http://data.ordnancesurvey.co.uk/ontology/spatialrelations/within><http://data.ordnancesurvey.co.uk/id/7000000000017711> . ?gpsite <http://data.ordnancesurvey.co.uk/ontology/postcode/postcode> ?gppostcode . ?gppostcode <http://data.ordnancesurvey.co.uk/ontology/spatialrelations/easting>?gpeast . ?gppostcode<http://data.ordnancesurvey.co.uk/ontology/spatialrelations/northing> ?gpnorth . ?bustop a <http://transport.data.gov.uk/def/naptan/BusStopPoint> . ?bustop <http://data.ordnancesurvey.co.uk/ontology/spatialrelations/easting> ?bteasting . ?bustop <http://data.ordnancesurvey.co.uk/ontology/spatialrelations/northing> ?btnorthing . FILTER ( ( (?gpeast - ?bteasting)*(?gpeast - ?bteasting)+(?gpnorth - ?btnorthing)*(?gpnorth - ?btnorthing) ) < 10000) }
Login to test this query using our experimental API explorer Permalink to this sample query
Create a sample query

Search API

Perform a free-text search against the text fields indexed in a dataset. Useful when you want to quickly query a dataset but don't know, or need to know its structure. There is also a solr search endpoint allowing more complex queries.

Lookup API

Retrieve a description of a single resource. Useful for fetching the key properties and relationships of a single entity.

Reconciliation API

Useful for resolving names, labels or codes against a dataset in Kasabi to find links to more data. This API is compatible with the Google Refine tool.

How to Attribute This Dataset

Kasabi provides a quick and easy way to attribute a dataset from any webpage. We think attribution is an important community norm.

To directly embed an attribution message in a webpage, add a script tag that invokes our Attribution API as follows

<script
     type="text/javascript"
     src="http://api.kasabi.com/dataset/southampton-postcodes/attribution">
</script>

If you need more flexible options, then read the Attribution API documentation

External Sources

The following external sources were used in creating or compiling this dataset
  • http://beta.kasabi.com/dataset/ordnance-survey-linked-data
  • http://beta.kasabi.com/dataset/nhs-performance-data
  • http://beta.kasabi.com/dataset/renewable-energy-generators
  • http://beta.kasabi.com/dataset/education
  • http://crime.rkbexplorer.com/
  • http://openlylocal.com/
  • http://beta.kasabi.com/dataset/english-heritage
Contributed APIs

Bind a SPARQL 1.1 query to a parameterised URL to create a simple way to request results of a query. Custom formats can be added by applying XSLT stylesheets. Useful for creating custom APIs against datasets.

View configuration, subscription and access details