[tracker/anonymous-file-nodes: 7/8] Fix commit 07580f1 to use preinserts for affiliation info.
- From: Carlos Garnacho <carlosg src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker/anonymous-file-nodes: 7/8] Fix commit 07580f1 to use preinserts for affiliation info.
- Date: Tue, 26 Jan 2010 14:49:15 +0000 (UTC)
commit b137c02b22dc56836a99e0a131e6a71afd69574c
Author: Carlos Garnacho <carlos lanedo com>
Date: Tue Jan 26 14:36:36 2010 +0100
Fix commit 07580f1 to use preinserts for affiliation info.
src/tracker-extract/tracker-extract-jpeg.c | 13 +++++--------
src/tracker-extract/tracker-extract-tiff.c | 14 +++++---------
2 files changed, 10 insertions(+), 17 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-jpeg.c b/src/tracker-extract/tracker-extract-jpeg.c
index f45528d..5e04a0d 100644
--- a/src/tracker-extract/tracker-extract-jpeg.c
+++ b/src/tracker-extract/tracker-extract-jpeg.c
@@ -525,15 +525,12 @@ extract_jpeg (const gchar *uri,
if (md.creator) {
if (id.byline_title) {
- tracker_sparql_builder_subject (metadata, "_:affiliation_by_line");
- tracker_sparql_builder_predicate (metadata, "a");
- tracker_sparql_builder_object (metadata, "nco:Affiliation");
-
- tracker_sparql_builder_subject (metadata, "_:affiliation_by_line");
- tracker_sparql_builder_predicate (metadata, "nco:title");
- tracker_sparql_builder_object_unvalidated (metadata, id.byline_title);
+ tracker_sparql_builder_subject (preinserts, "_:affiliation_by_line");
+ tracker_sparql_builder_predicate (preinserts, "a");
+ tracker_sparql_builder_object (preinserts, "nco:Affiliation");
- tracker_sparql_builder_subject_iri (metadata, uri);
+ tracker_sparql_builder_predicate (preinserts, "nco:title");
+ tracker_sparql_builder_object_unvalidated (preinserts, id.byline_title);
}
tracker_sparql_builder_predicate (metadata, "nco:creator");
diff --git a/src/tracker-extract/tracker-extract-tiff.c b/src/tracker-extract/tracker-extract-tiff.c
index 6a993f4..12f8f30 100644
--- a/src/tracker-extract/tracker-extract-tiff.c
+++ b/src/tracker-extract/tracker-extract-tiff.c
@@ -692,17 +692,13 @@ extract_tiff (const gchar *uri,
}
if (merge_data.creator) {
-
if (iptc_data.byline_title) {
- tracker_sparql_builder_subject (metadata, "_:affiliation_by_line");
- tracker_sparql_builder_predicate (metadata, "a");
- tracker_sparql_builder_object (metadata, "nco:Affiliation");
-
- tracker_sparql_builder_subject (metadata, "_:affiliation_by_line");
- tracker_sparql_builder_predicate (metadata, "nco:title");
- tracker_sparql_builder_object_unvalidated (metadata, iptc_data.byline_title);
+ tracker_sparql_builder_subject (preinserts, "_:affiliation_by_line");
+ tracker_sparql_builder_predicate (preinserts, "a");
+ tracker_sparql_builder_object (preinserts, "nco:Affiliation");
- tracker_sparql_builder_subject_iri (metadata, uri);
+ tracker_sparql_builder_predicate (preinserts, "nco:title");
+ tracker_sparql_builder_object_unvalidated (preinserts, iptc_data.byline_title);
}
tracker_sparql_builder_predicate (metadata, "nco:creator");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]