[tracker-miners/wip/carlosg/compiler-warnings: 5/12] tracker-extract: Use tracker_resource_print_rdf() to get Turtle content




commit e263240a60c0efd2b770637380c9a18a84492484
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sun Aug 28 22:01:31 2022 +0200

    tracker-extract: Use tracker_resource_print_rdf() to get Turtle content
    
    Avoid a deprecated function call.

 src/tracker-extract/tracker-extract.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/tracker-extract/tracker-extract.c b/src/tracker-extract/tracker-extract.c
index 76ed041f1..31523f9ad 100644
--- a/src/tracker-extract/tracker-extract.c
+++ b/src/tracker-extract/tracker-extract.c
@@ -743,7 +743,7 @@ tracker_extract_get_metadata_by_cmdline (TrackerExtract             *object,
                         */
                        tracker_resource_set_identifier (resource, uri);
 
-                       turtle = tracker_resource_print_turtle (resource, NULL);
+                       turtle = tracker_resource_print_rdf (resource, NULL, TRACKER_RDF_FORMAT_TURTLE, NULL);
 
                        if (turtle) {
                                g_print ("%s\n", turtle);


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