Open Knowledge

Rufus Pollock是Open Knowledge Foundation的发起人,他在OpenTech 2008聚会上有一个演讲提到了“Debian of Data”的概念。

Rufus PollockOpen Knowledge Foundation的发起人,他在OpenTech 2008聚会上有一个演讲提到了“Debian of Data”的概念,相当诱人,其中的几段设想中的代码是这样的:

datapkg create mypkg
# go into mypkg and add some data
cp ~/mydata1.csv ./
# edit the metadata
vi setup.py / vi metadata.txt
# tar it up and upload it somewhere
scp -r . http://somesite.com/downloads
# or register on CKAN
datapkg register .

# later and somewhere else ...
datapkg install mypkg
# or just
datapkg install http://somesite.com/donwloads/mypkg.tgz
datapkg list-installed

# USING
# in my code
import datapkg
data = datapkg.resource_stream('mypkg-name', 'mydata1.csv')
# plot it etc
# datapkg plot ...

真是相当美丽的东西啊。