Open Data Service, University of Southampton

Open Data Service

University of Southampton Open Data Service

get( "sparql_endpoint" ) ); if( !$db ) { print $db->errno() . ": " . $db->error(). "\n"; exit; } $db->ns( "rdfs","http://www.w3.org/2000/01/rdf-schema#" ); $db->ns( "skos","http://www.w3.org/2004/02/skos/core#" ); $sparql = " SELECT DISTINCT ?site ?label ?code WHERE { ?site a . ?site skos:notation ?code . ?site rdfs:label ?label . } ORDER BY ?label "; $result = $db->query( $sparql, "List of Sites" ); if( !$result ) { print $db->errno() . ": " . $db->error(). "\n"; exit; } print "

Embed this Map in your own site

"; print "

Use this for lectures, conferences, seminars and anything else!

"; $b = "32,59"; $s = 1; $z = 16; $w = 400; $h = 400; $am = 0; $bus = 0; $pl = 1; $pt = 0; $bg = 0; $t = ''; if( isset($_GET['b'] )) { $b = $_GET['b']; } if( isset($_GET['s'] )) { $s = $_GET['s']; } if( isset($_GET['z'] )) { $z = $_GET['z']; } if( isset($_GET['am'] )) { $am = $_GET['am']; } if( isset($_GET['bus'] )) { $bus = $_GET['bus']; } if( isset($_GET['pl'] )) { $pl = $_GET['pl']; } if( isset($_GET['pt'] )) { $pt = $_GET['pt']; } if( isset($_GET['bg'] )) { $bg = $_GET['bg']; } if( isset($_GET['t'] )) { $t = $_GET['t']; } if( isset($_GET['w'] )) { $w = $_GET['w']; } if( isset($_GET['h'] )) { $h = $_GET['h']; } $kmlurl = "http://data.southampton.ac.uk/viewers/site.kml/$s?b=$b&am=$am&bus=$bus&pt=$pt&pl=$pl&bg=$bg"; $mapurl = "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&z=$z&q=".urlencode($kmlurl); if( $t ) { $mapurl .= "&t=$t"; } $iframe = "
View Larger Map (Full Screen)
"; ?>
Site ID:
Highlight Building IDs:
Zoom:
Width:
Height:
[ | ] Amenities
[ | ] Bus Stops
[ | ] Building Outlines
[ | ] Placemarkers
[ | ] Site Outline
[ | | ]

Tip: Click a building to find out its building number.

Cut and paste this into your page to get the map.