[tracker/wip/carlosg/deserialize-api: 16/17] cli: Add --trig argument to "tracker import"
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/deserialize-api: 16/17] cli: Add --trig argument to "tracker import"
- Date: Thu, 30 Jun 2022 21:57:56 +0000 (UTC)
commit 3d5fff0aa28bdaf44efcc5756ab48f58a2529c47
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Jun 30 00:51:05 2022 +0200
cli: Add --trig argument to "tracker import"
This makes it parse TriG format, instead of Turtle.
src/tracker/tracker-import.c | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/src/tracker/tracker-import.c b/src/tracker/tracker-import.c
index 30d7f913a..33f88e9d1 100644
--- a/src/tracker/tracker-import.c
+++ b/src/tracker/tracker-import.c
@@ -39,6 +39,7 @@ static gchar **filenames;
static gchar *database_path;
static gchar *dbus_service;
static gchar *remote_service;
+static gboolean trig;
static GOptionEntry entries[] = {
{ "database", 'd', 0, G_OPTION_ARG_FILENAME, &database_path,
@@ -53,6 +54,10 @@ static GOptionEntry entries[] = {
N_("Connects to a remote service"),
N_("Remote service URI")
},
+ { "trig", 'g', 0, G_OPTION_ARG_NONE, &trig,
+ N_("Read TriG format which includes named graph information"),
+ NULL
+ },
{ G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_FILENAME_ARRAY, &filenames,
N_("FILE"),
N_("FILE")},
@@ -140,6 +145,8 @@ import_run (void)
tracker_sparql_connection_deserialize_async (connection,
TRACKER_DESERIALIZE_FLAGS_NONE,
+ trig ?
+ TRACKER_RDF_FORMAT_TRIG :
TRACKER_RDF_FORMAT_TURTLE,
NULL,
stream,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]