diff options
author | Munyoki Kilyungi | 2023-10-20 16:39:45 +0300 |
---|---|---|
committer | BonfaceKilz | 2023-10-27 13:45:32 +0300 |
commit | f85a5403e5b32d997da51ad8b973791589397644 (patch) | |
tree | 92bb3e6a759dfe31b752fce54a737564e03fcfaf /gn3/db | |
parent | c4b77143cd763d70931871645d6eb976272d3165 (diff) | |
download | genenetwork3-f85a5403e5b32d997da51ad8b973791589397644.tar.gz |
Delete db.rdf.get_url_local_name.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn3/db')
-rw-r--r-- | gn3/db/rdf.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/gn3/db/rdf.py b/gn3/db/rdf.py index c8a5017..857e7c2 100644 --- a/gn3/db/rdf.py +++ b/gn3/db/rdf.py @@ -77,11 +77,3 @@ def sparql_query( parsed_response ) return (MonadicDict(parsed_response),) - - -def get_url_local_name(string: str) -> str: - """Get the last item after a '/" from a URL""" - if string.startswith("http"): - url = urlparse(string) - return unquote(url.path).rpartition("/")[-1] - return string |