[tracker] tracker-miner-applications: when defaulting to application, include nie:dataSource
- From: Aleksander Morgado <aleksm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tracker-miner-applications: when defaulting to application, include nie:dataSource
- Date: Wed, 17 Nov 2010 10:19:28 +0000 (UTC)
commit a598b45b150a95daaec76a2e770f5b773b11adf1
Author: Aleksander Morgado <aleksander lanedo com>
Date: Wed Nov 17 11:19:04 2010 +0100
tracker-miner-applications: when defaulting to application, include nie:dataSource
src/miners/fs/tracker-miner-applications.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/miners/fs/tracker-miner-applications.c b/src/miners/fs/tracker-miner-applications.c
index 222cb2a..dd4f7fa 100644
--- a/src/miners/fs/tracker-miner-applications.c
+++ b/src/miners/fs/tracker-miner-applications.c
@@ -456,6 +456,9 @@ process_desktop_file (ProcessApplicationData *data,
tracker_sparql_builder_object (sparql, "nfo:SoftwareApplication");
tracker_sparql_builder_object (sparql, "nie:DataObject");
+ tracker_sparql_builder_predicate (sparql, "nie:dataSource");
+ tracker_sparql_builder_object_iri (sparql, APPLICATION_DATASOURCE_URN);
+
if (name) {
/* If we got a name, then the issue comes from the type.
* As we're defaulting to Application here, we just g_debug() the problem. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]