ncbo / goo

Graph Oriented Objects (GOO) for Ruby. A RDF/SPARQL based ORM.
http://ncbo.github.io/goo/
Other
15 stars 6 forks source link

Inverse attributes #32

Closed msalvadores closed 11 years ago

msalvadores commented 11 years ago

Support something like ...


class Ontology
       attribute :submissions, 
              :inverse_of => { :with => :ontology_submission , 
              :attribute => :ontology }
end

It basically allow us to have the connection only in one place in the triple and represent an inverse property in code.