From 0e4a1979afb7258e48da941caffedf7034176bd0 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 1 Apr 2021 16:25:00 -0400 Subject: Fix invalid URI mapping when a property range is a blank node --- src/gui/RDFS.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/RDFS.cpp b/src/gui/RDFS.cpp index 5a676cad..ed8d7e8c 100644 --- a/src/gui/RDFS.cpp +++ b/src/gui/RDFS.cpp @@ -234,7 +234,9 @@ range(World& world, const LilvNode* prop, bool recursive) URISet ranges; LILV_FOREACH(nodes, n, nodes) { - ranges.insert(URI(lilv_node_as_string(lilv_nodes_get(nodes, n)))); + if (lilv_node_is_uri(lilv_nodes_get(nodes, n))) { + ranges.insert(URI(lilv_node_as_string(lilv_nodes_get(nodes, n)))); + } } if (recursive) { -- cgit v1.2.1