Skip to content

Instantly share code, notes, and snippets.

@tsunagun
tsunagun / lod4all.rb
Last active August 29, 2015 14:26
LOD4ALLで利用できなかったSPARQL式のサンプルなど.元のソースコードはFUJITSU LABORATORIESによるAPIサンプルコード(http://lod4all.net/api.html
require 'open-uri'
# 問い合わせ先のURL
uri = URI.parse("http://lod4all.net/api/search.cgi")
# SPARQL式
sparql =<<-EOS
SELECT ?s
WHERE {
?s ?p <http://ja.dbpedia.org/resource/東京都> .