Skip to content

Instantly share code, notes, and snippets.

@crssnky
Last active June 1, 2019 13:57
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 crssnky/681dd733ad77dd79b2455ebf61daf80b to your computer and use it in GitHub Desktop.
Save crssnky/681dd733ad77dd79b2455ebf61daf80b to your computer and use it in GitHub Desktop.
アイドルごとに所属ユニットを取得する
PREFIX schema: <http://schema.org/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX imas: <https://sparql.crssnky.xyz/imasrdf/URIs/imas-schema.ttl#>
SELECT ?m (group_concat(?s;separator=",,,,,")as ?u)
WHERE {
?s rdf:type imas:Unit;
schema:member ?m.
}group by (?m) order by (?m)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment