This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const URL = "https://sparql.crssnky.xyz/spql/imas/query?query="; | |
const Query = ['PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>PREFIX schema: <http://schema.org/>PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>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)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ?千早の主語 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ?クラス ?クラス名 ?説明 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ?述語 ?述語名 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var twitter = require('twitter'); | |
var request=require('request'); | |
var fs= require('fs'); | |
var webshot=require('webshot'); | |
var Q=require('q'); | |
// Tweet module | |
var client = new twitter({ | |
consumer_key: '', | |
consumer_secret: '', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var twitter = require('twitter'); | |
var request=require('request'); | |
// Tweet module | |
var client = new twitter({ | |
consumer_key: '', | |
consumer_secret: '', | |
access_token_key: '', | |
access_token_secret: '', | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ?uName group_concat(?name) | |
WHERE { | |
?s rdf:type imas:Unit; | |
schema:name ?uName; | |
schema:member ?OI; | |
schema:member ?mem. |