The aim of this gist is to show how to handle the execution of simple SPARQL query over the DBpedia SPARQL endpoint using Javascript, JQuery and AJAX.
Christopher Clavius (25 March 1538 – 6 February 1612) was a German Jesuit mathematician and astronomer who was the main architect of the modern Gregorian calendar. In his last years he was probably the most respected astronomer in Europe and his textbooks were used for astronomical education for over fifty years in and even out of Europe.
The following code shows how to create a Google Maps containg the events occurred during the life of Clavius. On clicking the markers an infowindow opens showing the name of the event.
xxxxxxxxxx
<html>
<head>
<meta name="description" content="LOD CNR MI TUTORIAL - Clavius Example 2" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?libraries=geometry,visualization&sensor=true"></script>
<script type="text/javascript" src="index.js"></script>
<title>Clavius Time Events</title>
</head>
<body onload="init()">
<div>
<input type="button" onclick="retrieveData()" value="Execute Query">
</div>
<div class="tab" id="map-canvas" style="height: 600px"></div>
</body>
</html>
Modified http://maps.googleapis.com/maps/api/js?libraries=geometry,visualization&sensor=true to a secure url
https://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js
https://maps.googleapis.com/maps/api/js?libraries=geometry,visualization&sensor=true