[tracker/wip/extract-graphs: 25/30] tracker-extract, pdf: Do all inserts in miner-fs's graph
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/extract-graphs: 25/30] tracker-extract, pdf: Do all inserts in miner-fs's graph
- Date: Tue, 6 Sep 2011 10:53:13 +0000 (UTC)
commit e988bd72637dfb44ea8f19e6f2eb1cb3173f1d13
Author: Philip Van Hoof <philip codeminded be>
Date: Tue Sep 6 10:46:57 2011 +0200
tracker-extract, pdf: Do all inserts in miner-fs's graph
src/tracker-extract/tracker-extract-pdf.c | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-pdf.c b/src/tracker-extract/tracker-extract-pdf.c
index 288aa8e..21499d1 100644
--- a/src/tracker-extract/tracker-extract-pdf.c
+++ b/src/tracker-extract/tracker-extract-pdf.c
@@ -421,6 +421,10 @@ tracker_extract_get_metadata (TrackerExtractInfo *info)
xd->model ? xd->model : "");
tracker_sparql_builder_insert_open (preupdate, NULL);
+ if (graph) {
+ tracker_sparql_builder_graph_open (preupdate, graph);
+ }
+
tracker_sparql_builder_subject_iri (preupdate, equip_uri);
tracker_sparql_builder_predicate (preupdate, "a");
tracker_sparql_builder_object (preupdate, "nfo:Equipment");
@@ -434,7 +438,12 @@ tracker_extract_get_metadata (TrackerExtractInfo *info)
tracker_sparql_builder_predicate (preupdate, "nfo:model");
tracker_sparql_builder_object_unvalidated (preupdate, xd->model);
}
+
+ if (graph) {
+ tracker_sparql_builder_graph_close (preupdate);
+ }
tracker_sparql_builder_insert_close (preupdate);
+
tracker_sparql_builder_predicate (metadata, "nfo:equipment");
tracker_sparql_builder_object_iri (metadata, equip_uri);
g_free (equip_uri);
@@ -534,6 +543,10 @@ tracker_extract_get_metadata (TrackerExtractInfo *info)
tracker_sparql_builder_object_iri (metadata, addruri);
tracker_sparql_builder_insert_open (preupdate, NULL);
+ if (graph) {
+ tracker_sparql_builder_graph_open (preupdate, graph);
+ }
+
tracker_sparql_builder_subject_iri (preupdate, addruri);
g_free (addruri);
@@ -561,6 +574,9 @@ tracker_extract_get_metadata (TrackerExtractInfo *info)
tracker_sparql_builder_object_unvalidated (preupdate, xd->country);
}
+ if (graph) {
+ tracker_sparql_builder_graph_close (preupdate);
+ }
tracker_sparql_builder_insert_close (preupdate);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]