Skip to content

Instantly share code, notes, and snippets.


crssnky crssnky

Block or report user

Report or block crssnky

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
crssnky / makeUnitList.sparql
Last active Jun 1, 2019
View makeUnitList.sparql
PREFIX schema: <>
PREFIX rdf: <>
PREFIX imas: <>
SELECT ?m (group_concat(?s;separator=",,,,,")as ?u)
?s rdf:type imas:Unit;
schema:member ?m.
}group by (?m) order by (?m)
View 特定の日付以降の公演を取得する.sparql
PREFIX schema: <>
PREFIX rdf: <>
PREFIX imas: <>
PREFIX imasrdf: <>
PREFIX foaf: <>
PREFIX math: <>
PREFIX xsd: <>
PREFIX rdfs: <>
SELECT (sample(?n)as ?公演名) (sample(?sD)as ?公演日) (group_concat(?a)as ?出演者)
View 言語に縛られない文字列リテラル.sparql
PREFIX rdf: <>
?主語 ?述語 "島村卯月"^^rdf:langString
View FIdol.h
struct FIdol{
UPROPERTY(BlueprintReadWrite, Category = "imasparql")
FString alternateName;
UPROPERTY(BlueprintReadWrite, Category = "imasparql")
FString birthDate;
UPROPERTY(BlueprintReadWrite, Category = "imasparql")
FString birthPlace;
UPROPERTY(BlueprintReadWrite, Category = "imasparql")
View im@sparqlと"とあるSPARQL"から共通する声優を取得する.sparql
PREFIX rdf: <>
PREFIX schema: <>
PREFIX imas: <>
PREFIX haiku: <>
PREFIX toaru: <>
SELECT distinct (?アイマス声優 as ?声優) {
?toaru toaru:cv ?とある声優.
View im@sparqlに眠る季語を含むユニット名.sparql
PREFIX rdf: <>
PREFIX schema: <>
PREFIX imas: <>
PREFIX haiku: <>
SELECT ?季語 ?季節 ?ユニット名{
?ss haiku:SeasonWord ?季語;
haiku:Season ?季節.
View 千早.rdf
<rdf:Description rdf:about="detail/Kisaragi_Chihaya">
<imas:Attribute rdf:datatype="">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="">16</foaf:age>
<schema:height rdf:datatype="">162.0</schema:height>
View 前後3日間の誕生日.sparql
PREFIX schema: <>
PREFIX xsd: <>
SELECT (sample(?o) as ?date) (sample(?n) as ?name)
?sub schema:birthDate ?o;
schema:name|schema:alternateName ?n;
bind("--xx-xx"^^xsd:gMonthDay as ?3ago)
bind("--xx-xx"^^xsd:gMonthDay as ?3later)
FILTER(?o>=?3ago && ?o<=?3later).
View im@sparql組み込んでみる.js
const URL = "";
const Query = ['PREFIX rdfs: <>PREFIX schema: <>PREFIX xsd: <>SELECT (sample(?o) as ?date) (sample(?n) as ?name)WHERE {?sub schema:birthDate ?o;rdfs:label ?n;bind("', '"^^xsd:gMonthDay as ?3ago)bind("', '"^^xsd:gMonthDay as ?3later)FILTER(?o>=?3ago && ?o<=?3later).}group by(?sub) order by(?o)'];
const date = new Date();
var strings = [];
date.setDate(date.getDate() - 3)
for (var i = 0; i < 7; i++) {
const month = date.getMonth() + 1;
const day = date.getDate();
strings.push("--" + (month < 10 ? "0" + month : month) + "-" + (day < 10 ? "0" + day : day));
View im@sparql組み込んでみる.html
<!DOCTYPE html>
<html lang="ja" xmlns="">
<meta charset="utf-8" />
<div id="0"></div>
<div id="1"></div>
You can’t perform that action at this time.