Skip to content

Instantly share code, notes, and snippets.

@artob
Created March 30, 2010 19:53
Show Gist options
  • Save artob/349520 to your computer and use it in GitHub Desktop.
Save artob/349520 to your computer and use it in GitHub Desktop.
class Item
include Spira::Resource(SIOC.Item)
property :title, DC.title, String
property :content, SIOC.content, String
property :created, DC.created, DateTime
property :creator, SIOC.has_creator, UserAccount
property :item, SIOC.about, self
property :has_reply, SIOC.has_reply, self
property :reply_of, SIOC.reply_of, self # IFP of :has_reply
end
class Post < Item
include Spira::Resource(SIOC.Post)
has_many :topics, SIOC.topic, String
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment