Acts As RDF

This acts_as extension provides the capabilities for serving RDF.

Install

Rails 3

Specify it in your Rails Gemfile:

gem "acts_as_rdf"

Then install it:

bundle install

Rails 2

Specify it in your Rails config:

config.gem “acts_as_rdf”, “~>0.1”

Then install it:

rake gems:install

Example

class Item < ActiveRecord::Base
  acts_as_rdf
end

item.to_rdf
item.to_ttl
item.to_ntriples

Bugs and Feedback

If you discover any bugs or want to drop a line, feel free to create an issue on GitHub: github.com/rails/acts_as_rdf/issues

Note on Patches/Pull Requests

  • Fork the project.

  • Make your feature addition or bug fix.

  • Add tests for it. This is important so I don't break it in a future version unintentionally.

  • Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)

  • Send me a pull request. Bonus points for topic branches.

Credits

Copyright © 2010 Andrew Sodt, released under the MIT license