diff options
author | David Robillard <d@drobilla.net> | 2021-04-01 16:25:00 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-04-01 16:25:00 -0400 |
commit | 0e4a1979afb7258e48da941caffedf7034176bd0 (patch) | |
tree | d9f8338fb6c5110dfd559f822a6668141b2ab3cc /src | |
parent | f90140095a3ffc78b2df048b3daa4a103da2778b (diff) | |
download | ingen-0e4a1979afb7258e48da941caffedf7034176bd0.tar.gz ingen-0e4a1979afb7258e48da941caffedf7034176bd0.tar.bz2 ingen-0e4a1979afb7258e48da941caffedf7034176bd0.zip |
Fix invalid URI mapping when a property range is a blank node
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/RDFS.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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) { |