lib/hal_client/curie_resolver.rb
# Returns a an expanded version of `curie_or_uri` or the
# input. The input is returned when `curie_or_uri` is not a curie
# or is a curie whose namespace is not recognized.
#
# curie_or_uri - the (potential) curie to resolve
Returns a an expanded version of `curie_or_uri` or the
input. The input is returned when `curie_or_uri` is not a curie
or is a curie whose namespace is not recognized.

the (potential) curie to resolve
Returns a an expanded version of ` curie_or_uri ` or the input . The input is returned when ` curie_or_uri ` is not a curie or is a curie whose namespace is not recognized . the ( potential ) curie to resolve
def resolve(curie_or_uri)
      ns, short_name = split_curie curie_or_uri
      if ns && (namespaces.has_key? ns)
        namespaces[ns].expand(rel: short_name).to_s
      else
        curie_or_uri
      end
    end
def resolve ( curie_or_uri ) ns , short_name = split_curie curie_or_uri if ns && ( namespaces . has_key? ns ) namespaces [ ns ] . expand ( rel : short_name ) . to_s else curie_or_uri end end
Returns a an expanded version of `curie_or_uri` or the
input.
Returns a an expanded version of ` curie_or_uri ` or the input .
curie_or_uri
<not_specific>