Skip to content

Instantly share code, notes, and snippets.

@Fannon
Created May 26, 2014 09:21
Show Gist options
  • Save Fannon/d70dc5a82fb3ae3f4573 to your computer and use it in GitHub Desktop.
Save Fannon/d70dc5a82fb3ae3f4573 to your computer and use it in GitHub Desktop.
<h4>Data via SPARQL Query</h4>
<plastic id="table-sparql-query" style="height: 300px; width: 100%;">
<script class="plastic-query" type="application/sparql-query" data-query-url="http://dbpedia.org/sparql">
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX type: <http://dbpedia.org/class/yago/>
PREFIX prop: <http://dbpedia.org/property/>
SELECT ?country_name ?population
WHERE {
?country a type:LandlockedCountries ;
rdfs:label ?country_name ;
prop:populationEstimate ?population .
FILTER (?population > 15000000 && langMatches(lang(?country_name), "en")) .
} ORDER BY DESC(?population)
</script>
<script class="plastic-display" data-display-module="simple-table" type="application/json">
{
"tableHead": true
}
</script>
</plastic>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment