[polari/wip/carlosg/tracker: 443/445] src: Use distinct graph for polari RDF data
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari/wip/carlosg/tracker: 443/445] src: Use distinct graph for polari RDF data
- Date: Mon, 21 Jun 2021 22:04:11 +0000 (UTC)
commit f737fec5ebb362369f4d56103a93308a473904ee
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun Jun 20 13:32:17 2021 +0200
src: Use distinct graph for polari RDF data
Using the anonymous graph becomes awkward with any future use of
named graphs, so use a named graph from the start. This might be
handy for data isolation, migration, etc... purposes.
data/resources/polari.ontology | 2 +-
src/logger.js | 1 +
src/polari-log-tool.c | 2 +-
src/telepathyClient.js | 2 +-
4 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/data/resources/polari.ontology b/data/resources/polari.ontology
index a8ca603b..ae062b87 100644
--- a/data/resources/polari.ontology
+++ b/data/resources/polari.ontology
@@ -3,7 +3,7 @@
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix nrl: <http://tracker.api.gnome.org/ontology/v3/nrl#> .
-@prefix polari: <http://example.org/ns#> .
+@prefix polari: <org.gnome.Polari:#> .
polari: a nrl:Namespace, nrl:Ontology ;
nrl:prefix "polari" ;
diff --git a/src/logger.js b/src/logger.js
index 400d80dd..b6ea9ae5 100644
--- a/src/logger.js
+++ b/src/logger.js
@@ -153,6 +153,7 @@ var LogWalker = class {
?time
polari:isAction(?msg) as ?isAction
?isSelf
+ from polari:irc
{ ?msg a polari:Message;
polari:time ?time;
polari:sender ?sender;
diff --git a/src/polari-log-tool.c b/src/polari-log-tool.c
index 9083bdca..67ef1cc1 100644
--- a/src/polari-log-tool.c
+++ b/src/polari-log-tool.c
@@ -80,7 +80,7 @@ import_ready (GObject *source,
channel_name,
is_room);
- tracker_batch_add_resource (batch, NULL, res);
+ tracker_batch_add_resource (batch, "polari:irc", res);
g_object_unref (res);
#else
g_print ("<%s> %s\n",
diff --git a/src/telepathyClient.js b/src/telepathyClient.js
index e1948bd7..ee799917 100644
--- a/src/telepathyClient.js
+++ b/src/telepathyClient.js
@@ -704,7 +704,7 @@ class TelepathyClient extends Tp.BaseClient {
let message = Polari.Message.new_from_tp_message (tpMessage);
let res = message.to_tracker_resource(accountId, channelName, isRoom);
- connection.update_resource_async(null, resource, null, (o, res) => {
+ connection.update_resource_async('polari:irc', resource, null, (o, res) => {
try {
connection.update_resource_finish(res);
} catch (e) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]