Skip to content

Instantly share code, notes, and snippets.

@fumi
fumi / schame-2.0-ja.xml
Last active August 29, 2015 14:00
ckan-2.2用暫定schema.xml
<?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
PREFIX booth: <http://lod.ac/ns/booth#>
PREFIX cinii: <http://ci.nii.ac.jp/ns/1.0/>
PREFIX dc: <http://purl.org/dc/terms/>
PREFIX dc11: <http://purl.org/dc/elements/1.1/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX kaken: <http://kaken.nii.ac.jp/ns#>
PREFIX rns: <http://rns.nii.ac.jp/ns#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX prism: <http://prismstandard.org/namespaces/basic/2.0/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
Index: compute-accuracy.c
===================================================================
--- compute-accuracy.c (revision 42)
+++ compute-accuracy.c (working copy)
@@ -16,7 +16,7 @@
#include <stdlib.h>
#include <string.h>
#include <math.h>
-#include <malloc.h>
+#include <stdlib.h>
--- Portfile.bak 2010-02-20 15:13:12.000000000 +0900
+++ Portfile 2010-02-20 15:13:21.000000000 +0900
@@ -89,7 +89,7 @@
variant utf8 {
post-build {
- system "mkdir dict/utf-8.d"
+ system "mkdir -p dict/utf-8.d"
foreach DIC ${dics} {
system "nkf -w < dict/${DIC} > dict/utf-8.d/${DIC}"
--- Portfile.bak 2010-02-20 15:56:50.000000000 +0900
+++ Portfile 2010-02-20 15:57:15.000000000 +0900
@@ -15,12 +15,12 @@
checksums md5 2e056df3a25335872c66e2057a2dade7
#extract.suffix .zip
#use_zip yes
-extract {system "mkdir -p ${workdir}/qkc-1.0.0"
- system "cd ${workdir}/qkc-1.0.0 && \
+extract {system "mkdir -p ${workpath}/qkc-1.0.0"
+ system "cd ${workpath}/qkc-1.0.0 && \
#!/usr/bin/env ruby
require 'rdf'
require 'rdf/raptor'
repo = RDF::Repository.new
count = 0
while true
repo.load("test.ttl")
PREFIX : <http://example.org/ex/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
SELECT *
WHERE {
:taro ^foaf:knows+ / !(foaf:interest|foaf:knows) ?t .
}
@fumi
fumi / gist:1096411
Created July 21, 2011 02:49
/System/Library/Frameworks/Python.framework/Versions/Current/Extras/lib/python on Lion
CoreGraphics
OpenSSL
PyObjC
PyObjC.pth
PyRSS2Gen-1.0.0-py2.7.egg-info
PyRSS2Gen.py
PyRSS2Gen.pyc
Twisted-11.0.0-py2.7.egg-info
altgraph
altgraph-0.7.1-py2.7.egg-info
;; gist
(require 'gist)
;; gist
(require 'gist)