hack: get type and format uris of input data by examining file extension