SQUISH query for generating SVG for mapping objects
Based on Jim Ley's
code and demos .
The main file is all
semantic web groups . You can query this file directly, by adding
'from http://www.w3.org/2001/sw/Europe/200303/geo/allSWGroups.rdf'
to the query below. Without it, the demo queries an SQL database
containing the same data.
Query the database by string returning SVG. See Semantic
Web Developer Map: representing locations of people, research groups
and projects for more information.
Show Europe points
Show Europe map
Show world map
SELECT ?airport, ?lat, ?long, ?name
WHERE
(foaf:name ?grp ?name)
(contact:nearestAirport ?grp ?airport)
(geo:lat ?airport ?lat)
(geo:long ?airport ?long)
USING geo for http://www.w3.org/2003/01/geo/wgs84_pos#
foaf for http://xmlns.com/foaf/0.1/
contact for http://www.w3.org/2000/10/swap/pim/contact#
return results as html
SELECT ?airport, ?lat, ?long, ?name
WHERE
(foaf:name ?grp ?name)
(contact:nearestAirport ?grp ?airport)
(geo:lat ?airport ?lat)
(geo:long ?airport ?long)
USING geo for http://www.w3.org/2003/01/geo/wgs84_pos#
foaf for http://xmlns.com/foaf/0.1/
contact for http://www.w3.org/2000/10/swap/pim/contact#
search for a person
SELECT ?airport, ?lat, ?long, ?name
WHERE
(foaf:name ?grp ?name)
(contact:nearestAirport ?grp ?airport)
(geo:lat ?airport ?lat)
(geo:long ?airport ?long)
and ?name ~ 'dan'
USING geo for http://www.w3.org/2003/01/geo/wgs84_pos#
foaf for http://xmlns.com/foaf/0.1/
contact for http://www.w3.org/2000/10/swap/pim/contact#
libby.miller@bristol.ac.uk