Skip to content
This repository has been archived by the owner on Dec 29, 2017. It is now read-only.

gkellogg/github-lod

Repository files navigation

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

License

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

About

Provides DOAP, schema.org and FOAF representations of schema.org repositories

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published