'This pulls apart the salient bits of the URI and populates the
resource via a ``obj_get``.
Optionally accepts a ``request``.
If you need custom behavior based on other portions of the URI,
simply override this method.'

def get_via_uri(self, uri, request=None):

    prefix = get_script_prefix()
    chomped_uri = uri
    if (prefix and chomped_uri.startswith(prefix)):
        chomped_uri = chomped_uri[(len(prefix) - 1):]
    try:
        (view, args, kwargs) = resolve(chomped_uri)
        resource_name = kwargs[u'resource_name']
        resource_class = self.resource_mapping[resource_name]
    except (Resolver404, KeyError):
        raise NotFound((u"The    URL    provided    '%s'    was    not    a    link    to    a    valid    resource." % uri))
    parent_resource = resource_class(api_name=self._meta.api_name)
    kwargs = parent_resource.remove_api_resource_names(kwargs)
    bundle = Bundle(request=request)
    return parent_resource.obj_get(bundle, **kwargs)
