Demo: World Eathquake Map (MIT Exhibit)

From Data-gov Wiki

Jump to: navigation, search

Infobox (featured demo) edit with form
  • name: Demo: World Eathquake Map (MIT Exhibit)

  • description: This demo displays a world map listing recent earthquakes (in the past week) with a magnitude of 3.0 or greater on the Richter scale and a depth 50 kilometers or less. Clicking on a location shows additional earthquake details. Clicking on a property facet to show only relevant earthquakes.
  • creator(s): Li Ding
  • created: Aug 6,2009
  • modified: 2011-3-13

live demo here

Contents

Facts about this Demonstration

Live Demo(s)
Video Demo(s)
Data.gov Data source(s)
Other Data source(s)
Technology Used
Related SPARQL
Related Demo(s)


Interesting Observations

A user may use a map to view recent earthquakes, and SPARQL querying can be used filter what will be displayed on the Map (e.g. only show earthquakes whose magnitude is no less than 2.0).


Technology Highlights

Simile Exhibit offers a convenient interface that accepts JSON data sources. However, Exhibit and the Google Visualization API accept different types of JSON formats. Therefore, we used the SparqlProxy to bridge this gap. Below is the tricky point

  
 <link rel="exhibit/data"
       href="http://data-gov.tw.rpi.edu/ws/sparqlproxy.php?query-uri=http%3A%2F%2Fdata-gov.tw.rpi.edu%2Fsparql%2Fdemo-34-exhibit.sparql&output=exhibit" 
       type="application/json"
       charset="utf-8"/>

http://data-gov.tw.rpi.edu/sparql/demo-34-exhibit.sparql

the complete source code is at http://code.google.com/p/data-gov-wiki/source/browse/trunk/www/demo/exhibit/demo-34-exhibit-sparql.html

Below are some documentations for using Exhibit, which is spread around the web, and some useful tips:

More

Currently, the depth property in the RDF data is an untyped literal. This should be converted to the float datatype so that SPARQL can use filtering.

There is yet another way to directly show the entire RDF/XML data on MIT Exhibit. This is accomplished by replacing the data with the following line (see this link)

 <link rel="exhibit/data"
       href="http://data-gov.tw.rpi.edu/raw/34/data-34.rdf" 
       type="application/rdf+xml"
       charset="utf-8"/>

The complete source code is at http://code.google.com/p/data-gov-wiki/source/browse/trunk/www/demo/exhibit/demo-34-exhibit-rdf.html. See http://simile.mit.edu/wiki/Exhibit/How_to_import_RDF_on_the_fly for more information.

Facts about Demo: World Eathquake Map (MIT Exhibit)RDF feed
Data sourceDataset 34  +
Dcterms:created6 August 2009  +
Dcterms:creatorLi Ding  +
Dcterms:descriptionThis demo displays a world map listing rec This demo displays a world map listing recent earthquakes (in the past week) with a magnitude of 3.0 or greater on the Richter scale and a depth 50 kilometers or less. Clicking on a location shows additional earthquake details. Clicking on a property facet to show only relevant earthquakes. y facet to show only relevant earthquakes.
Dcterms:modified2011-3-13
Foaf:depictionhttps://data-gov.tw.rpi.edu/w/images/a/a8/Quake-exhibit-map.png  +
Foaf:nameDemo: World Eathquake Map (MIT Exhibit)
ImageQuake-exhibit-map.png  +
Live demohttp://data-gov.tw.rpi.edu/demo/stable/demo-34-earthquake-exhibit.html  +
Skos:altLabelDemo: World Eathquake Map (MIT Exhibit)  +, demo: world eathquake map (mit exhibit)  +, and DEMO: WORLD EATHQUAKE MAP (MIT EXHIBIT)  +
Sparqlhttp://data-gov.tw.rpi.edu/demo/stable/demo-34-earthquake-exhibit.sparql  +
Technology usedRDF  +, SPARQL  +, SparqlProxy  +, and Simile Exhibit  +
Personal tools
internal pages