Method: Qa::Authorities::Getty::Ulan#build_query_url

Defined in:
lib/qa/authorities/getty/ulan.rb

#build_query_url(q) ⇒ Object

Replace ampersands, otherwise the query will fail



10
11
12
# File 'lib/qa/authorities/getty/ulan.rb', line 10

def build_query_url(q)
  "http://vocab.getty.edu/sparql.json?query=#{ERB::Util.url_encode(sparql(q)).gsub('&', '%26')}&_implicit=false&implicit=true&_equivalent=false&_form=%2Fsparql"
end