Created
March 30, 2010 17:40
-
-
Save bhuga/349339 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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