Skip to content

Instantly share code, notes, and snippets.

View crssnky's full-sized avatar
🏍️
ブンブン

crssnky crssnky

🏍️
ブンブン
View GitHub Profile
@crssnky
crssnky / FIdol.h
Last active February 24, 2019 13:15
USTRUCT(BlueprintType)
struct FIdol{
GENERATED_BODY()
UPROPERTY(BlueprintReadWrite, Category = "imasparql")
FString alternateName;
UPROPERTY(BlueprintReadWrite, Category = "imasparql")
FString birthDate;
UPROPERTY(BlueprintReadWrite, Category = "imasparql")
FString birthPlace;
UPROPERTY(BlueprintReadWrite, Category = "imasparql")
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 (count(?name)as ?回数) (sample(?name)as ?楽曲名)
WHERE {
?s rdf:type imas:SetlistNumber;
schema:name ?name;
}group by ?name having(?回数>4) order by DESC(?回数)
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX schema: <http://schema.org/>
PREFIX imas: <https://sparql.crssnky.xyz/imasrdf/URIs/imas-schema.ttl#>
PREFIX haiku: <https://sparql.crssnky.xyz/SeasonWordsRDF/SeasonWord-schema.ttl#>
PREFIX toaru: <https://metadata.moe/toaru-sparql/elements/>
SELECT distinct (?アイマス声優 as ?声優) {
service<https://metadata.moe/sparql/toaru/query>{
?toaru toaru:cv ?とある声優.
}
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX schema: <http://schema.org/>
PREFIX imas: <https://sparql.crssnky.xyz/imasrdf/URIs/imas-schema.ttl#>
PREFIX haiku: <https://sparql.crssnky.xyz/SeasonWordsRDF/SeasonWord-schema.ttl#>
SELECT ?季語 ?季節 ?ユニット名{
service<https://sparql.crssnky.xyz/spql/SeasonWords/query>{
?ss haiku:SeasonWord ?季語;
haiku:Season ?季節.
}
@crssnky
crssnky / 千早.rdf
Created August 31, 2018 14:40
2018/08/30
<rdf:Description rdf:about="detail/Kisaragi_Chihaya">
<imas:Attribute rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Vo</imas:Attribute>
<schema:familyName xml:lang="ja">如月</schema:familyName>
<imas:familyNameKana xml:lang="ja">きさらぎ</imas:familyNameKana>
<schema:givenName xml:lang="ja">千早</schema:givenName>
<imas:givenNameKana xml:lang="ja">ちはや</imas:givenNameKana>
<imas:nameKana xml:lang="ja">きさらぎちはや</imas:nameKana>
<schema:name xml:lang="ja">如月千早</schema:name>
<foaf:age rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">16</foaf:age>
<schema:height rdf:datatype="http://www.w3.org/2001/XMLSchema#float">162.0</schema:height>
<!DOCTYPE html>
<html lang="ja" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>アイドルの誕生日</title>
</head>
<body>
<h1>直近の誕生日</h1>
<div id="0"></div>
<div id="1"></div>
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 distinct ?クラス ?クラス名 ?説明
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 distinct ?predicate ?object
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 ?千早の主語
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 *