Method: Freeb::Converter.freebase_id_to_topic
- Defined in:
- lib/freeb/converter.rb
.freebase_id_to_topic(freebase_id, model) ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/freeb/converter.rb', line 3 def self.freebase_id_to_topic(freebase_id, model) config = ModelConfig.get(model) query_properties = ModelConfig.get_query_properties(model) mql = { :id => freebase_id, :type => config[:type], :name => nil }.merge(query_properties) API.topic(mql) end |