ontology_search.rb revision 8f83890dad6eaebb02a9215d8efb3b4a2ce92633
require 'json'
#
# Beware! This is not tested well.
#
end
@limit = 20
end
end
end
#unless repository.ontologies.where("name = :prefix", prefix: prefix, repository_id: repository).empty?
# text_list.add(prefix)
#end
repository.ontologies.select(:name).where("name ILIKE :prefix", prefix: "#{prefix}%").limit(25).group("name").limit(5).each do |ontology|
end
end
end
end
end
end
text_list.to_a.sort.map { |x| {text: x} }
end
text_list.to_a.sort.map { |x| {text: x} }
end
end
keyword_list.each do |keyword|
end
end
end
def select_item(keyword_list, type_name, type)
keyword_list.each do |keyword|
return nil
else
end
end
end
end
search = Ontology.search_by_keywords(mixed_list, page, repository, project, ontology_type, formality_level, license_model, task)
end
Response.new(page, @limit, search.total, bean_list_factory.bean_list)
end
end