def jr_split(s):
    p = six.moves.urllib.parse.urlparse(s)
    return (
        normalize_url(six.moves.urllib.parse.urlunparse(p[:5]+('',))),
        '#'+p.fragment if p.fragment else '#'
    )
split a json-reference into (url, json-pointer)
dataset/ETHPy150Open mission-liao/pyswagger/pyswagger/utils.py/jr_split