[tracker/slo-onto: 10/11] tracker-extract: TIFF: SLO ontology porting
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/slo-onto: 10/11] tracker-extract: TIFF: SLO ontology porting
- Date: Tue, 11 Jan 2011 11:04:52 +0000 (UTC)
commit bffc2b8dee250b0aa99fbb7bdefea4baa2f8ce39
Author: Philip Van Hoof <philip codeminded be>
Date: Mon Jan 10 16:07:08 2011 +0100
tracker-extract: TIFF: SLO ontology porting
src/tracker-extract/tracker-extract-tiff.c | 26 +++-----------------------
1 files changed, 3 insertions(+), 23 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-tiff.c b/src/tracker-extract/tracker-extract-tiff.c
index a53de38..f3da4c9 100644
--- a/src/tracker-extract/tracker-extract-tiff.c
+++ b/src/tracker-extract/tracker-extract-tiff.c
@@ -471,35 +471,15 @@ extract_tiff (const gchar *uri,
if (md.city || md.state || md.address || md.country) {
gchar *addruri;
- tracker_sparql_builder_predicate (metadata, "mlo:location");
+ tracker_sparql_builder_predicate (metadata, "slo:location");
tracker_sparql_builder_object_blank_open (metadata);
tracker_sparql_builder_predicate (metadata, "a");
- tracker_sparql_builder_object (metadata, "mlo:GeoPoint"); /* GeoPoint */
-
- if (md.address) {
- tracker_sparql_builder_predicate (metadata, "mlo:address");
- tracker_sparql_builder_object_unvalidated (metadata, md.address);
- }
-
- if (md.state) {
- tracker_sparql_builder_predicate (metadata, "mlo:state");
- tracker_sparql_builder_object_unvalidated (metadata, md.state);
- }
-
- if (md.city) {
- tracker_sparql_builder_predicate (metadata, "mlo:city");
- tracker_sparql_builder_object_unvalidated (metadata, md.city);
- }
-
- if (md.country) {
- tracker_sparql_builder_predicate (metadata, "mlo:country");
- tracker_sparql_builder_object_unvalidated (metadata, md.country);
- }
+ tracker_sparql_builder_object (metadata, "slo:GeoPoint"); /* GeoPoint */
addruri = tracker_sparql_get_uuid_urn ();
- tracker_sparql_builder_predicate (metadata, "mlo:asPostalAddress");
+ tracker_sparql_builder_predicate (metadata, "slo:postalAddress");
tracker_sparql_builder_object_iri (metadata, addruri);
tracker_sparql_builder_object_blank_close (metadata); /* GeoPoint */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]