Skip to content

Instantly share code, notes, and snippets.

@bhuga
Created March 30, 2010 17:40
Show Gist options
  • Save bhuga/349339 to your computer and use it in GitHub Desktop.
Save bhuga/349339 to your computer and use it in GitHub Desktop.
require 'spira'
require 'rdf'
Spira.add_repository(:person, ::RDF::Repository)
class Person
include Spira::Resource
default_source :person
# the default base path to find Persons
base_path "http://example.org/example/people"
property :name, RDFS.label, String
property :age, FOAF.age, Integer
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment