sgvizler: Europeana Newspapers by year
by valexiev
HTML
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/1.9.0/jquery.js"></script>
<script src="https://www.google.com/jsapi"></script>
<script src="http://beta.data2000.no/sgvizler/release/0.6/sgvizler.js"></script>
<div id="ex"
data-sgvizler-endpoint="http://europeana-test.ontotext.com/sparql.srj"
data-sgvizler-query="
PREFIX aat: <http://vocab.getty.edu/aat/>
PREFIX edm: <http://www.europeana.eu/schemas/edm/>
PREFIX dc: <http://purl.org/dc/elements/1.1/>
select ?date (count(*) as ?c) {
?x edm:hasType aat:300026656; dc:date ?dat.
bind(concat(substr(?dat,1,3),'0') as ?date)
} group by ?date having (?c>1) order by ?date
"
data-sgvizler-chart="google.visualization.ColumnChart"
data-sgvizler-chart-options="vAxis.logScale=true|legend.position=none|vAxis.textPosition=in"
style="width:700px; height:500px; border:1 solid black; display: inline-block;"></div>
JavaScript
$(document).ready(function () {
sgvizler.defaultEndpointOutputFormat('json').containerDrawAll();
});