Loads resources from the representation contained in the given URL into
    the given collection resource.

    :returns: collection resource

def load_into_collection_from_url(collection, url, content_type=None):
    """
    Loads resources from the representation contained in the given URL into
    the given collection resource.

    :returns: collection resource
    """
    parsed = urlparse.urlparse(url)
    scheme = parsed.scheme # pylint: disable=E1101
    if scheme == 'file':
        # Assume a local path.
        load_into_collection_from_file(collection,
                                       parsed.path, # pylint: disable=E1101
                                       content_type=content_type)
    else:
        raise ValueError('Unsupported URL scheme "%s".' % scheme)