From f85a5403e5b32d997da51ad8b973791589397644 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Fri, 20 Oct 2023 16:39:45 +0300 Subject: Delete db.rdf.get_url_local_name. Signed-off-by: Munyoki Kilyungi --- gn3/db/rdf.py | 8 -------- 1 file changed, 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 -- cgit v1.2.3