Skip to content

Instantly share code, notes, and snippets.

{
"@context": [
"https://schema.org/docs/jsonldcontext.json",
{
"@vocab": "http://json2ld.mapper.tokyo/ns/",
"json2ld": "http://json2ld.mapper.tokyo/ns/",
"name": {
"@id": "schema:name"
},
"ingredient": {
{
"@context": [
"https://imi.go.jp/ns/core/context.jsonld",
{
"@vocab": "http://json2ld.mapper.tokyo/ns/",
"json2ld": "http://json2ld.mapper.tokyo/ns/",
"name": {
"@id": "json2ld:name"
},
"ingredient": {
@fumi
fumi / open_data_sites_of_prefectures_in_Japan.rq
Last active April 10, 2017 09:19
Wikidataで都道府県オープンデータサイト
# endpoint: https://query.wikidata.org
# result: http://tinyurl.com/mjrokvw
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wikibase: <http://wikiba.se/ontology#>
@fumi
fumi / japan.topojson
Created August 30, 2016 09:00
Topojson for Japanese map
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fumi
fumi / e-stat.rq
Last active May 4, 2016 22:47
municipalities of Japan
#
# 実行場所: http://data.e-stat.go.jp/lod/sparql/
#
PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>
PREFIX org:<http://www.w3.org/ns/org#>
PREFIX dcterms:<http://purl.org/dc/terms/>
PREFIX sacs:<http://data.e-stat.go.jp/lod/terms/sacs#>
PREFIX sac:<http://data.e-stat.go.jp/lod/sac/>
PREFIX sace:<http://data.e-stat.go.jp/lod/sace/>
PREFIX sacr:<http://data.e-stat.go.jp/lod/sacr/>
@fumi
fumi / test.html
Last active February 1, 2016 12:50
<!DOCTYPE html>
<html>
<head>
<title>Covert test</tktle>
</head>
<body>
<h1>Convert Test</h1>
<table>
<%parse
<tr>
@fumi
fumi / sgvizler_div_map.html
Last active December 19, 2015 07:09
sgvizler map by div element
<div id="sgvizler_div_map"
data-sgvizler-endpoint="http://dbpedia.org/sparql"
data-sgvizler-query="SELECT ?lat ?long ?name ?text ?url ?image
WHERE {
?url a yago:PrefecturesOfJapan ;
dct:subject <http://dbpedia.org/resource/Category:Prefectures_of_Japan> ;
rdfs:label ?name;
geo:lat ?lat;
geo:long ?long .
OPTIONAL{ ?url rdfs:comment ?text }
@fumi
fumi / sgvizler_div_piechart.html
Last active December 19, 2015 07:09
sgvizler piechart by div element
<div id="sgvizler_div_piechart"
data-sgvizler-endpoint="http://ja.dbpedia.org/sparql"
data-sgvizler-query="SELECT ?class (count(?instance) AS ?noOfInstances)
WHERE {
?instance a ?class .
}
GROUP BY ?class
ORDER BY DESC(?noOfInstances)"
data-sgvizler-chart="gPieChart"
data-sgvizler-loglevel="2"
@fumi
fumi / fluentd
Created June 27, 2013 01:42
/etc/init.d/fluentd for Debian weedy
#!/bin/bash
PID_FILE=/var/run/fluent/fluent.pid
CONF_FILE=/etc/fluent/fluent.conf
LOG_FILE=/var/log/fluent/fluentd.log
PSNAME="fluentd --daemon"
F_USER=fluent
F_GROUP=fluent
RUBY_VER="1.9.3-p194"
@fumi
fumi / schema.xml
Created April 16, 2013 09:42
CKAN 2.0日本語用 schema.xml (Kuromoji使用)
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0