Skip to content

Instantly share code, notes, and snippets.

@cm3
Forked from cm3/gist:8131632
Last active January 2, 2016 07:59
Show Gist options
  • Save cm3/8273143 to your computer and use it in GitHub Desktop.
Save cm3/8273143 to your computer and use it in GitHub Desktop.

漫画の開始号と終了号を得る

本当は?sが漫画であるといった条件を付した方がいいけれども、 開始号と終了号というpropertyが漫画特有のものであるため。

sparql

select distinct (str(?l) as ?title), (str(?o) as ?start),  (str(?o2) as ?end) where {
    ?s rdfs:label ?l; 
       <http://ja.dbpedia.org/property/開始号> ?o;
       <http://ja.dbpedia.org/property/終了号> ?o2.
    }

##endpoint http://ja.dbpedia.org/sparql ##viewer http://lod.ac/apps/sparql-doc-toolkit/?doc_url=https%3A%2F%2Fgist.github.com%2Fcm3%2F8273143 ##view_settings ###chart google.visualization.Table

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