lib/hydra/works/services/add_external_file_to_file_set.rb
# Returns appropriate URI for the requested type
#  * Converts supported symbols to corresponding URIs
#  * Converts URI strings to RDF::URI
#  * Returns RDF::URI objects as-is
Returns appropriate URI for the requested type
Converts supported symbols to corresponding URIs
Converts URI strings to RDF::URI
Returns RDF::URI objects as-is
Returns appropriate URI for the requested type Converts supported symbols to corresponding URIs Converts URI strings to RDF :: URI Returns RDF :: URI objects as - is
def type_to_uri(type)
          case type
          when ::RDF::URI
            type
          when String
            ::RDF::URI(type)
          else
            fail ArgumentError, 'Invalid file type.  You must submit a URI or a symbol.'
          end
        end
def type_to_uri ( type ) case type when :: RDF :: URI type when String :: RDF :: URI ( type ) else fail ArgumentError , 'Invalid file type.  You must submit a URI or a symbol.' end end
Returns appropriate URI for the requested type
 Converts supported symbols to corresponding URIs
 Converts URI strings to RDF::URI
 Returns RDF::URI objects as-is
Returns appropriate URI for the requested type Converts supported symbols to corresponding URIs Converts URI strings to RDF :: URI Returns RDF :: URI objects as - is
type
<not_specific>