[tracker/wip/carlosg/serialize-api] libtracker-data: Skip nrl:added/nrl:modified while parsing RDF



commit d5c40cb984bddcceae52064175da0955839ea804
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sun Jan 30 17:22:16 2022 +0100

    libtracker-data: Skip nrl:added/nrl:modified while parsing RDF
    
    These properties can only mess up with Tracker's own interpretation, skip
    them altogether when parsing.

 src/libtracker-data/tracker-data-update.c | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/src/libtracker-data/tracker-data-update.c b/src/libtracker-data/tracker-data-update.c
index 7c3069fca..c090f63dc 100644
--- a/src/libtracker-data/tracker-data-update.c
+++ b/src/libtracker-data/tracker-data-update.c
@@ -2895,6 +2895,13 @@ tracker_data_load_turtle_file (TrackerData  *data,
                        goto failed;
                }
 
+               /* Skip nrl:added/nrl:modified when parsing */
+               if (g_strcmp0 (tracker_property_get_name (predicate),
+                              "nrl:modified") == 0 ||
+                   g_strcmp0 (tracker_property_get_name (predicate),
+                              "nrl:added") == 0)
+                       continue;
+
                if (!tracker_data_query_string_to_value (data->manager,
                                                         object_str,
                                                         langtag,


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