app/controllers/known_uris_controller.rb
# search for primary measurement predicates. This won't be called unless there
# is a term, so do a basic search and filter on measurement type
search for primary measurement predicates. This won't be called unless there
is a term, so do a basic search and filter on measurement type
search for primary measurement predicates . This won ' t be called unless there is a term so do a basic search and filter on measurement type
def autocomplete_known_uri_predicates
    @known_uris = search_known_uris_by_name_or_uri(params[:term])
    @known_uris.delete_if{ |ku| ku.uri_type_id != UriType.measurement.id || ! EOL::Sparql.connection.all_measurement_type_known_uris.include?(ku) }
    render_autocomplete_results
  end
def autocomplete_known_uri_predicates @known_uris = search_known_uris_by_name_or_uri ( params [ :term ] ) @known_uris . delete_if { | ku | ku . uri_type_id != UriType . measurement . id || ! EOL :: Sparql . connection . all_measurement_type_known_uris . include? ( ku ) } render_autocomplete_results end
search for primary measurement predicates.
search for primary measurement predicates .