[tracker-miners/wip/carlosg/tracker-3.0-api-breaks: 42/57] miners: Don't set domain ontology on SPARQL connection
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/wip/carlosg/tracker-3.0-api-breaks: 42/57] miners: Don't set domain ontology on SPARQL connection
- Date: Wed, 12 Feb 2020 15:29:10 +0000 (UTC)
commit 5f9069ce0d3a31cb75d7cc7d5be8f866b240a0c2
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Dec 31 02:00:54 2019 +0100
miners: Don't set domain ontology on SPARQL connection
These calls are dropped from libtracker-sparql 3.0 API. The SPARQL
connection is now an internal detail to an endpoint, so connections
don't need to be aware of the domain ontology in use anymore.
src/miners/fs/tracker-main.c | 2 --
src/miners/rss/tracker-main.c | 2 --
src/tracker-extract/tracker-main.c | 2 --
src/tracker/tracker-miner-manager.c | 3 ---
4 files changed, 9 deletions(-)
---
diff --git a/src/miners/fs/tracker-main.c b/src/miners/fs/tracker-main.c
index 3f35d0725..67bf6a7fe 100644
--- a/src/miners/fs/tracker-main.c
+++ b/src/miners/fs/tracker-main.c
@@ -843,8 +843,6 @@ main (gint argc, gchar *argv[])
return EXIT_SUCCESS;
}
- tracker_sparql_connection_set_domain (domain_ontology_name);
-
domain_ontology = tracker_domain_ontology_new (domain_ontology_name, NULL, &error);
if (error) {
g_critical ("Could not load domain ontology '%s': %s",
diff --git a/src/miners/rss/tracker-main.c b/src/miners/rss/tracker-main.c
index 1738ed628..c7e031cbf 100644
--- a/src/miners/rss/tracker-main.c
+++ b/src/miners/rss/tracker-main.c
@@ -139,8 +139,6 @@ main (int argc, char **argv)
g_option_context_free (context);
- tracker_sparql_connection_set_domain (domain_ontology_name);
-
/* Command line stuff doesn't use logging, so we're using g_print*() */
if (add_feed) {
TrackerSparqlConnection *connection;
diff --git a/src/tracker-extract/tracker-main.c b/src/tracker-extract/tracker-main.c
index d17682d25..177f408ff 100644
--- a/src/tracker-extract/tracker-main.c
+++ b/src/tracker-extract/tracker-main.c
@@ -361,8 +361,6 @@ main (int argc, char *argv[])
setlocale (LC_ALL, "");
- tracker_sparql_connection_set_domain (domain_ontology_name);
-
domain_ontology = tracker_domain_ontology_new (domain_ontology_name, NULL, &error);
if (error) {
g_critical ("Could not load domain ontology '%s': %s",
diff --git a/src/tracker/tracker-miner-manager.c b/src/tracker/tracker-miner-manager.c
index c22fc5249..cd28ac3bf 100644
--- a/src/tracker/tracker-miner-manager.c
+++ b/src/tracker/tracker-miner-manager.c
@@ -630,13 +630,10 @@ tracker_miner_manager_new_full (gboolean auto_start,
{
GError *inner_error = NULL;
TrackerMinerManager *manager;
- const gchar *domain_ontology;
- domain_ontology = tracker_sparql_connection_get_domain ();
manager = g_initable_new (TRACKER_TYPE_MINER_MANAGER,
NULL,
&inner_error,
- "domain-ontology", domain_ontology,
"auto-start", auto_start,
NULL);
if (inner_error)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]