[tracker/rss-enclosures] tracker-extract: tiff: Add mlo:asPostalAddress
- From: Roberto Guido <rguido src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/rss-enclosures] tracker-extract: tiff: Add mlo:asPostalAddress
- Date: Wed, 24 Nov 2010 02:12:31 +0000 (UTC)
commit 3cd367ef4061407371611dc335f4a22796a9c105
Author: Philip Van Hoof <philip codeminded be>
Date: Mon Oct 25 15:57:06 2010 +0200
tracker-extract: tiff: Add mlo:asPostalAddress
Fixes NB#199131
src/tracker-extract/tracker-extract-tiff.c | 28 ++++++++++++++++++++++++++++
1 files changed, 28 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-tiff.c b/src/tracker-extract/tracker-extract-tiff.c
index 533d94e..e2a06c9 100644
--- a/src/tracker-extract/tracker-extract-tiff.c
+++ b/src/tracker-extract/tracker-extract-tiff.c
@@ -495,6 +495,34 @@ extract_tiff (const gchar *uri,
tracker_sparql_builder_object_unvalidated (metadata, md.country);
}
+ tracker_sparql_builder_predicate (metadata, "mlo:asPostalAddress");
+ tracker_sparql_builder_object_blank_open (metadata); /* PostalAddress */
+
+ tracker_sparql_builder_predicate (metadata, "a");
+ tracker_sparql_builder_object (metadata, "nco:PostalAddress");
+
+ if (md.address) {
+ tracker_sparql_builder_predicate (metadata, "nco:streetAddress");
+ tracker_sparql_builder_object_unvalidated (metadata, md.address);
+ }
+
+ if (md.state) {
+ tracker_sparql_builder_predicate (metadata, "nco:region");
+ tracker_sparql_builder_object_unvalidated (metadata, md.state);
+ }
+
+ if (md.city) {
+ tracker_sparql_builder_predicate (metadata, "nco:locality");
+ tracker_sparql_builder_object_unvalidated (metadata, md.city);
+ }
+
+ if (md.country) {
+ tracker_sparql_builder_predicate (metadata, "nco:country");
+ tracker_sparql_builder_object_unvalidated (metadata, md.country);
+ }
+
+ tracker_sparql_builder_object_blank_close (metadata); /* PostalAddress */
+
tracker_sparql_builder_object_blank_close (metadata);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]