All Projects → ruby-rdf → Trinity

ruby-rdf / Trinity

Licence: unlicense
[UNMAINTAINED] A minimalistic Ruby web framework for publishing Linked Data.

Programming Languages

javascript
184084 projects - #8 most used programming language

Trinity

This is a minimalistic web framework for publishing Linked Data.

Usage

To start up a Trinity server on http://localhost:3000/, invoke the installed trinity program with an RDF input file describing the resources to publish. An example N-Triples file is included as etc/localhost.nt:

% trinity etc/localhost.nt
>> Thin web server (v1.2.5 codename This Is Not A Web Server)
>> Debugging ON
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:3000, CTRL+C to stop
127.0.0.1 - - [15/Jan/2010 22:33:44] "GET /hello HTTP/1.1" 200

Hints

Since RDF.rb currently only supports the N-Triples serialization format, make sure that the input file to Trinity is in that format.

You can convert RDF/XML to N-Triples with the rapper utility:

% rapper -i rdfxml -o ntriples input.rdf > output.nt

You can convert Turtle to N-Triples as follows:

% rapper -i turtle -o ntriples input.ttl > output.nt

Documentation

Dependencies

Installation

The recommended installation method is via RubyGems. To install the latest official release from Gemcutter, do:

% [sudo] gem install trinity

Download

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

% git clone git://github.com/datagraph/trinity.git

Alternatively, you can download the latest development version as a tarball as follows:

% wget http://github.com/datagraph/trinity/tarball/master

Resources

Authors

License

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].