Skip to content
Provides DOAP, schema.org and FOAF representations of schema.org repositories
Ruby JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin
dumps
examples
lib
public
.gitignore
.yardopts
Gemfile
Gemfile.lock
README.markdown
Rakefile
UNLICENSE
config-example.ru
example2.ttl
github-lod.gemspec

README.markdown

GitHub Linked Open Data demo

This gem uses the GitHub API to map users and repositories to DOAP and FOAF. It is an example project using Ruby RDF tools to reflect Active Record objects to RDF, either as embedded HTML+RDFa, or using many of other available RDF serializers included in the application.

The application uses the Okonski GitHub API Client gem to access the GitHub JSON API and caches data in a local SQLite3 database using Active Record. This gem acts as a shim on top of those classes to provide RDF.rb interfaces and to create an HTML+RDFa representation. For this we use the FOAF and DOAP RDF vocabularies. It also provides alternative RDF representations of Users and Projects using HTTP content negotiation and/or by appending the appropriate file extension to a request.

Dependencies

Installation

The recommended installation method is via Bundler

% gem install bundler
% bundler install

Running

This application is designed to be run using Sinatra. Details of installing will vary depending on hosting provider.

Running locally for development purposes is easiest using Shutgun. This can be done by running the following:

% bundle exec shotgun -p 3000 config.ru

This allows the application to be accessed using http://localhost:3000.

Download

To get a local working copy of the development repository, do:

% git clone git://github.com/gkellogg/github-lod.git

Authors

This is free and unencumbered public domain software. For more information, see http://unlicense.org/ or the accompanying {file:UNLICENSE} file.

Something went wrong with that request. Please try again.