From 739b9cc836a5872c5bcdfc997fadeb86ac8010fc Mon Sep 17 00:00:00 2001 From: Sarath Menon Date: Tue, 5 Dec 2023 17:59:22 +0100 Subject: [PATCH] add fix for viz --- pyscal_rdf/visualize.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyscal_rdf/visualize.py b/pyscal_rdf/visualize.py index 2d8f928..42969b9 100644 --- a/pyscal_rdf/visualize.py +++ b/pyscal_rdf/visualize.py @@ -31,6 +31,10 @@ def get_string_from_URI(x): rawsplit = raw.split(":") if len(rawsplit) > 1: return "_".join(rawsplit), "BNode" + + rawsplit = raw.split(':') + if len(rawsplit) == 2: + return "_".join(rawsplit), "BNode" #just a normal url split now rawsplit = raw.split("/")