Skip to content
Command-line access to prefix.cc database
Ruby
Pull request Compare This branch is 1 commit behind ldodds:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin
lib
.buildpath
.project
README.rdoc
Rakefile

README.rdoc

A simple command-line tool for working with the data collected by Richard Cyganiak's excellent service prefix.cc.

I rely on the service as the easiest way to remember URIs for RDF vocabularies. But I often find myself working on a train or a plane and so the service is accessible.

What I really wanted is a way to query the knowledge base both on and offline.

Prefix command provides you with a simple command-line tool to do exactly that.

INSTALLATION

[sudo] gem install prefix-cmd

Or grab the source and:

rake install

USAGE

The command caches a local copy of the data available from:

prefix.cc/popular/all

The data is fetched and cached in:

~/.prefix-cmd/prefixes.json

There are three options:

prefix-cmd init #initialise or refresh your local cache

To lookup a URI:

prefix-cmd uri [prefix|curie]

To suggest a prefix:

prefix-cmd prefix [uri]

Thats all!

Something went wrong with that request. Please try again.