Created: 2008-07-12 18:54
Updated: 2017-05-21 16:49


DM-Semantic Release 0.0.2 (January 8th 2009)

Author: Pius Uzamere, The Uyiosa Corporation

Copyright: 2009


DM-Semantic is a plugin for DataMapper that will allow you to seamlessly export your data models as OWL ontologies and expose your data as RDF.


  1. Import and Export RDF Data Directly From Your Models: DM-Semantic adds a special DataMapper Type called RDFGraph. You can add properties with this type to your DataMapper models and transparently load and dump RDF triples to your models (in Ntriples form.) Let your data do more for you by manipulating it as RDF so that you can mash it up with other data sources and inference across the data.


  1. Install the Gem

Make sure you've upgraded to at least RubyGems 1.2. Then, if you've never installed a gem from GitHub before then do this:

gem sources -a (you only have to do this once)


sudo gem install pius-dm-semantic

  1. Make Sure You've Got the Dependencies installed

DM-Semantic depends on Reddy (

sudo gem install reddy

  1. Require the gem

  2. Now, you can use RDF in your model. See specs for examples.

To use the special RDFGraph type, create a property with the type in your model. For example:

property :graph, RDFGraph

  1. Read the documentation

It's YARD. It's sexy.

  1. Contribute!

Fork my repository (, make some changes, and send along a pull request!


DM-Semantic was created in 2008 by Pius Uzamere (pius -AT- alum -DOT- mit -DOT- edu) and is
licensed under the MIT license.

Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more