[tracker: 1/2] fix #172 blank nodes should be processed when processing nested resources



commit 332c1f758459bbac42e829542db643f88d1a4ac5
Author: Viktor Gal <viktor gal maeth com>
Date:   Mon Jan 27 12:38:49 2020 +0100

    fix #172
    blank nodes should be processed when processing nested resources

 src/libtracker-sparql/tracker-resource.c | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/src/libtracker-sparql/tracker-resource.c b/src/libtracker-sparql/tracker-resource.c
index 87b9c692d..03b45991e 100644
--- a/src/libtracker-sparql/tracker-resource.c
+++ b/src/libtracker-sparql/tracker-resource.c
@@ -1026,6 +1026,11 @@ is_builtin_class (const gchar             *uri_or_curie,
        gchar *prefix = NULL;
        gboolean has_prefix;
 
+       // blank nodes should be processed as nested resource
+       // g_uri_parse_scheme returns NULL for blank nodes, i.e. _:1
+       if (is_blank_node (uri_or_curie))
+               return FALSE;
+
        prefix = g_uri_parse_scheme (uri_or_curie);
 
        if (!prefix)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]