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("/")