Closed palexander closed 11 years ago
When searching by IRI we need to pass an IRI object ...
Person.find(RDF::IRI.new("http://goo.org/metadata/person/paul"))
And for nested objects .... people that live in a country with name Spain ...
Person.where(:lives => { :name => "Spain" })
The same can be achieved in two steps ...
spain = Country.find("Spain")
Person.where(:lives => spain)
Both are supported.
Supporting a "find" functionality similar to ActiveModel would be great. This will help people familiar with ActiveRecord and other common Ruby ORMs to use Goo a little easier.
I imagine several types of calls:
More examples here: http://guides.rubyonrails.org/active_record_querying.html