aboutsummaryrefslogtreecommitdiff
path: root/gn3
diff options
context:
space:
mode:
authorMunyoki Kilyungi2023-10-03 16:25:07 +0300
committerBonfaceKilz2023-10-27 13:45:32 +0300
commit21dc453d7ef4a9cb7b9fdd0a22a101fca293905a (patch)
tree4619206246fdb045adda07a13876a72f4395a0dd /gn3
parent58047e6c7e3f7d4b7c3cdb859fae4e25c7e2605a (diff)
downloadgenenetwork3-21dc453d7ef4a9cb7b9fdd0a22a101fca293905a.tar.gz
Remove get_url_local_name when processing result keys.
* gn3/db/rdf.py (sparql_query): Delete "get_url_local_name". Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn3')
-rw-r--r--gn3/db/rdf.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/gn3/db/rdf.py b/gn3/db/rdf.py
index 78ddc17..b9cb468 100644
--- a/gn3/db/rdf.py
+++ b/gn3/db/rdf.py
@@ -60,9 +60,7 @@ def sparql_query(
if results:
for result in results:
if "s" in result: # A CONSTRUCT
- key = get_url_local_name(
- result["p"]["value"] # type: ignore
- )
+ key = result["p"]["value"] # type: ignore
value = result["o"]["value"] # type: ignore
parsed_response[key] = __add_value_to_dict(
key, value, parsed_response