lodum/SPEX

Name: SPEX

Owner: LODUM

Description: Spatial temporal explorer

Created: 2014-01-18 11:01:37.0

Updated: 2017-03-27 08:01:08.0

Pushed: 2016-01-21 16:02:50.0

Homepage: null

Size: 9453

Language: HTML

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

SPEX

spex

The Spatial-Temporal Content Explorer (SPEX) is a tool for exploring data stored according to the Resource Description Framework (RDF) specifications and published on a SPARQL endpoint. The tool can be opened in the browser, and enables the user to explore contents, visually construct a query, add spatial and temporal constraints to the query, and retrieve the data returned by the search / query. The idea of the tool is to enable any user to search for (spatio-temporal) data stored in the RDF format. This is usually only possible using the SPARQL Protocol and RDF Query Language (SPARQL), but by using SPEX, the work of formulating the search in the SPARQL syntax is simplified through visual feedback mechanisms. This way, the user doesn't require any prior knowledge of the SPARQL syntax for extracting data from the RDF-database or about available vocabularies. The code of SPEX is based on HTML, CSS, Javascript, and uses the javascript and css-based libraries jQuery, d3, bootstrap, leaflet and timeline.

See also:

Basic functionality

SPEX enables the user to visually construct the query in the query pane (Top left, main part of the screen). In the background, the data entered by the user is stored and translated into the syntax of SPARQL, the language in which RDF databases are queried.

Adding constraints

The user can additionally add constraints to certain elements of the visually constructed query: In case any element of the query can be related to space or time (for example countries or wars), it is highlighted, and spatial constraints can be added using the map window (top right of the screen). Temporal constraints are added using the timeline (right side, under the map window). These constraints are also translated into the sparql syntax, and added to the existing query.

Linked data Vocabularies used for space and time representation (compare class FilterExpander.js):

Execution of the query and displaying the results

The resulting SPARQL query is sent (as a string, as a HTTP request) to the SPARQL endpoint specified in the tool (textfield at the top right). The response of this HTTP request contains the result of the query, which is extracted and displayed as a table in the results pane (bottom left, under the query pane). In addition, if the results have any spatial data (points, geometries), these are displayed in the map window. Any temporal information (points of time, time intervals) is displayed in the timeline. The queries are fired in real-time: Every time the user modifies the visual query, a new query is sent to the endpoint and the results are loaded into the results pane.

To aid the user while constructing the visual query, the tool makes suggestions: Whenever the user starts making a change to the existing visual query at a particular point, another query is fired in the background, which retrieves information about what additions to the query at this point have any results at all. These possibilities are the displayed to the user as suggestions, from which he/she can choose.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.