Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uedayou/9d834e3faa6a1527e292 to your computer and use it in GitHub Desktop.
Save uedayou/9d834e3faa6a1527e292 to your computer and use it in GitHub Desktop.

SPARQL Encpoint:
    http://ja.dbpedia.org/sparql

SPARQL Query:

select ?label ?comment ?birthPlace ?thumbnail ?lat ?long   
where{?s a <http://dbpedia.org/ontology/Wrestler>.
?s <http://www.w3.org/2000/01/rdf-schema#label> ?label.
?s <http://www.w3.org/2000/01/rdf-schema#comment> ?comment.
?s <http://dbpedia.org/ontology/birthPlace> ?birthPlace.
?s <http://dbpedia.org/ontology/thumbnail> ?thumbnail.
?birthPlace rdf:type <http://schema.org/Place>.
?birthPlace <http://www.w3.org/2003/01/geo/wgs84_pos#lat> ?lat.
?birthPlace <http://www.w3.org/2003/01/geo/wgs84_pos#long> ?long.

}limit 100

leaflet-simple-sparql を使うと上記 SPARQLクエリで地図アプリが作れます。

https://github.com/uedayou/leaflet-simple-sparql

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment