diff options
author | Philip Van Hoof <philip@codeminded.be> | 2011-02-16 10:24:53 +0100 |
---|---|---|
committer | Philip Van Hoof <philip@codeminded.be> | 2011-02-16 10:30:13 +0100 |
commit | 0d1f62288dd9dc90fbaaec292d8835ab46f49702 (patch) | |
tree | 7692c5a1560c5c8dfdee9e03f33f500691fec67f /src/libtracker-extract | |
parent | 95f52db33c8d17df4ad082e0646fa6cbce6304e2 (diff) | |
download | tracker-0d1f62288dd9dc90fbaaec292d8835ab46f49702.tar.gz |
libtracker-extract, tests: Ported XMP to use newer SLO ontology
Diffstat (limited to 'src/libtracker-extract')
-rw-r--r-- | src/libtracker-extract/tracker-xmp.c | 29 |
1 files changed, 5 insertions, 24 deletions
diff --git a/src/libtracker-extract/tracker-xmp.c b/src/libtracker-extract/tracker-xmp.c index ab01aaba7..7be0a2d31 100644 --- a/src/libtracker-extract/tracker-xmp.c +++ b/src/libtracker-extract/tracker-xmp.c @@ -874,38 +874,18 @@ tracker_xmp_apply (TrackerSparqlBuilder *preupdate, if (data->address || data->country || data->city) { gchar *addruri; - tracker_sparql_builder_predicate (metadata, "mlo:location"); + tracker_sparql_builder_predicate (metadata, "slo:location"); tracker_sparql_builder_object_blank_open (metadata); /* GeoPoint */ tracker_sparql_builder_predicate (metadata, "a"); - tracker_sparql_builder_object (metadata, "mlo:GeoPoint"); - - if (data->address) { - tracker_sparql_builder_predicate (metadata, "mlo:address"); - tracker_sparql_builder_object_unvalidated (metadata, data->address); - } - - if (data->state) { - tracker_sparql_builder_predicate (metadata, "mlo:state"); - tracker_sparql_builder_object_unvalidated (metadata, data->state); - } - - if (data->city) { - tracker_sparql_builder_predicate (metadata, "mlo:city"); - tracker_sparql_builder_object_unvalidated (metadata, data->city); - } - - if (data->country) { - tracker_sparql_builder_predicate (metadata, "mlo:country"); - tracker_sparql_builder_object_unvalidated (metadata, data->country); - } + tracker_sparql_builder_object (metadata, "slo:GeoLocation"); 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 */ + tracker_sparql_builder_object_blank_close (metadata); /* GeoLocation */ tracker_sparql_builder_insert_open (preupdate, NULL); tracker_sparql_builder_subject_iri (preupdate, addruri); @@ -936,6 +916,7 @@ tracker_xmp_apply (TrackerSparqlBuilder *preupdate, } tracker_sparql_builder_insert_close (preupdate); + } return TRUE; |