aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMunyoki Kilyungi2023-10-20 16:39:45 +0300
committerBonfaceKilz2023-10-27 13:45:32 +0300
commitf85a5403e5b32d997da51ad8b973791589397644 (patch)
tree92bb3e6a759dfe31b752fce54a737564e03fcfaf
parentc4b77143cd763d70931871645d6eb976272d3165 (diff)
downloadgenenetwork3-f85a5403e5b32d997da51ad8b973791589397644.tar.gz
Delete db.rdf.get_url_local_name.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
-rw-r--r--gn3/db/rdf.py8
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