[tracker/wip/carlosg/deserialize-api: 3/17] libtracker-sparql: Rename function




commit 9bbc5e627fe0ce28abbe55144c9e728d609d6bfe
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sat May 7 23:56:13 2022 +0200

    libtracker-sparql: Rename function
    
    As a side of using TrackerDeserializer, the function
    tracker_data_load_turtle_file() is no longer just related to Turtle
    files, and can load files in any supported RDF format. Rename it
    so it's more clear.

 src/libtracker-sparql/core/tracker-data-update.c | 8 ++++----
 src/libtracker-sparql/core/tracker-data-update.h | 2 +-
 src/libtracker-sparql/core/tracker-sparql.c      | 4 ++--
 3 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/libtracker-sparql/core/tracker-data-update.c 
b/src/libtracker-sparql/core/tracker-data-update.c
index 72e9801f6..4d525b35f 100644
--- a/src/libtracker-sparql/core/tracker-data-update.c
+++ b/src/libtracker-sparql/core/tracker-data-update.c
@@ -2946,10 +2946,10 @@ failed:
 }
 
 void
-tracker_data_load_turtle_file (TrackerData  *data,
-                               GFile        *file,
-                               const gchar  *graph,
-                               GError      **error)
+tracker_data_load_rdf_file (TrackerData  *data,
+                           GFile        *file,
+                           const gchar  *graph,
+                           GError      **error)
 {
        TrackerSparqlCursor *deserializer;
        gchar *uri;
diff --git a/src/libtracker-sparql/core/tracker-data-update.h 
b/src/libtracker-sparql/core/tracker-data-update.h
index d270e6003..e00d5edcb 100644
--- a/src/libtracker-sparql/core/tracker-data-update.h
+++ b/src/libtracker-sparql/core/tracker-data-update.h
@@ -97,7 +97,7 @@ gboolean tracker_data_load_from_deserializer        (TrackerData               *
                                                      const gchar               *graph,
                                                      const gchar               *location,
                                                      GError                   **error);
-void     tracker_data_load_turtle_file              (TrackerData               *data,
+void     tracker_data_load_rdf_file                 (TrackerData               *data,
                                                      GFile                     *file,
                                                      const gchar               *graph,
                                                      GError                   **error);
diff --git a/src/libtracker-sparql/core/tracker-sparql.c b/src/libtracker-sparql/core/tracker-sparql.c
index 7559e5640..4bfa4b935 100644
--- a/src/libtracker-sparql/core/tracker-sparql.c
+++ b/src/libtracker-sparql/core/tracker-sparql.c
@@ -4145,8 +4145,8 @@ translate_Load (TrackerSparql  *sparql,
        file = g_file_new_for_uri (tracker_token_get_idstring (&resource));
        tracker_token_unset (&resource);
 
-       tracker_data_load_turtle_file (tracker_data_manager_get_data (sparql->data_manager),
-                                      file, graph, &inner_error);
+       tracker_data_load_rdf_file (tracker_data_manager_get_data (sparql->data_manager),
+                                   file, graph, &inner_error);
 
        if (inner_error) {
                g_clear_object (&file);


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