Skip to content

Instantly share code, notes, and snippets.

@maraigue
Created April 27, 2019 02:41
Show Gist options
  • Save maraigue/01708e318e2c3f999618cc6b00edf99f to your computer and use it in GitHub Desktop.
Save maraigue/01708e318e2c3f999618cc6b00edf99f to your computer and use it in GitHub Desktop.
im@sparql (https://sparql.crssnky.xyz/imas/) 利用例:ミリオンライブ6thLIVE仙台公演(Angel)の出演者のアイドルカラーを得る
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#>
PREFIX imasrdf: <https://sparql.crssnky.xyz/imasrdf/RDFs/detail/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX math: <http://www.w3.org/2005/xpath-functions/math#>
PREFIX xsd: <https://www.w3.org/TR/xmlschema11-2/#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?色 ?名前 ?声優
WHERE {
?主語 imas:Title ?シリーズ;
schema:name ?名前;
imas:cv ?声優;
imas:Color ?色;
imas:Division ?属性.
filter(regex(str(?シリーズ), "MillionStars")).
filter(regex(str(?属性), "Angel")).
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment