ontology_search.rb revision 725d1f9b70a60c140e264a476060022ecc384e5a
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
end
def select_item_list(keyword_list, type)
keyword_list.each do |keyword|
end
end
end
# Display all repository ontologies for empty keyword list
if mixed_list.size == 0
end
return Response.new(page, @limit, repository.ontologies.count, bean_list_factory.bean_list)
end
index = 0
end
Response.new(page, @limit, search.total, bean_list_factory.bean_list)
end
# Display all ontologies for empty keyword list
if mixed_list.size == 0
end
return Response.new(page, @limit, Ontology.count, bean_list_factory.bean_list)
end
search = Ontology.search_by_keywords(mixed_list, page, nil, nil, nil, nil, nil)
end
Response.new(page, @limit, search.total, bean_list_factory.bean_list)
end
end