[tracker-miners/wip/carlosg/compiler-warnings: 1/8] tracker-extract: Use tracker_resource_print_rdf() to get Turtle content
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/wip/carlosg/compiler-warnings: 1/8] tracker-extract: Use tracker_resource_print_rdf() to get Turtle content
- Date: Mon, 29 Aug 2022 18:08:31 +0000 (UTC)
commit 393fdd56edb5c8c6f2d192b9ff63f8f5c52d81e4
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 | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/src/tracker-extract/tracker-extract.c b/src/tracker-extract/tracker-extract.c
index 76ed041f1..d46d2e245 100644
--- a/src/tracker-extract/tracker-extract.c
+++ b/src/tracker-extract/tracker-extract.c
@@ -736,6 +736,7 @@ tracker_extract_get_metadata_by_cmdline (TrackerExtract *object,
g_free (text);
} else if (output_format == TRACKER_SERIALIZATION_FORMAT_TURTLE) {
+ TrackerNamespaceManager *namespaces;
char *turtle;
/* If this was going into the tracker-store we'd generate a unique ID
@@ -743,7 +744,10 @@ tracker_extract_get_metadata_by_cmdline (TrackerExtract *object,
*/
tracker_resource_set_identifier (resource, uri);
- turtle = tracker_resource_print_turtle (resource, NULL);
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+ namespaces = tracker_namespace_manager_get_default ();
+ G_GNUC_END_IGNORE_DEPRECATIONS
+ turtle = tracker_resource_print_rdf (resource, namespaces, 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]