Skip to content

Instantly share code, notes, and snippets.

@cm3
Last active August 29, 2015 13:56
Show Gist options
  • Save cm3/8818793 to your computer and use it in GitHub Desktop.
Save cm3/8818793 to your computer and use it in GitHub Desktop.

電子情報通信学会の和文誌におけるキーワードの年単位のトレンド

IEICE Knowledge Discovery (I-Scover) のデータをLOD化して提供している I-Scover SPARQL Endpoint を用いて、着目しているキーワードが付された論文数の推移を可視化するもの。このクエリをコアとして、I-Scover trendsを作った。下は、"GMPLS"をキーワードとした例。

年ごとの粒度でまとめるために、year関数で年だけにしたあと、1月1日を付け加えて、それ全体をdate型でキャストしているのがミソ(xsd:date(concat(year(?issued), "-01-01"))の部分)。

sparql

PREFIX iscover: <http://i-scover.ieice.org/terms/iscover#>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>

SELECT (xsd:date(concat(year(?issued), "-01-01")) as ?year), (count(year(?issued)) as ?count_article) where {
  ?s a iscover:Article ;
     dcterms:title ?title ;
     dcterms:subject [ a iscover:Term ;
skos:prefLabel "GMPLS"@ja ] ;
     dcterms:issued ?issued.
}
GROUP BY year(?issued)
ORDER BY year(?issued)

endpoint

http://monticola.lodac.nii.ac.jp/sparql

viewer

http://lod.ac/apps/sparql-doc-toolkit/?doc_url=https%3A%2F%2Fgist.github.com%2Fcm3%2F8818793

view_settings

chart

google.visualization.AnnotatedTimeLine

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