diff options
author | Julien Hémono <whackvault@me.com> | 2016-03-09 20:11:42 +0100 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2016-05-14 00:29:26 +0200 |
commit | a05758cddec975f4b24b9268226f1aaf3c2bc1ac (patch) | |
tree | 6d0c8e09fb6bb2c25f4eda3f3d677f2e140311b6 | |
parent | 2881ac6fcdb94be7db34f1976058d85dc43a25f9 (diff) | |
download | tracker-a05758cddec975f4b24b9268226f1aaf3c2bc1ac.tar.gz |
IPTC extractors : use nco:contributor for contact metadata
5a27279a7e07a9f1f0c58f663f4c290c397d4aff adds support for contact
IPTC metadata and represents it with a nco:representative predicate.
This contradicts the ontology that stipulates that the subject of
a nco:representative predicate is a nco:Contact. Consequently, updates
from extraction of files containing this IPTC field are rejected by
the store.
This fix uses the nco:contributor predicate instead. Official
documentation at [1] says the field "Identifies the person or
organisation which can provide further background information on
the objectdata." Nco:contributor is therefore too narrow as not every
such person need be a contributor. The adequate predicate doesn't
exist but if it did it would definitely at least be a nao:annotation
or more narrowly a nao:isRelated. But I deem these too broad because
their range isn't a person or an organisation.
https://bugzilla.gnome.org/show_bug.cgi?id=762675
-rw-r--r-- | src/tracker-extract/tracker-extract-jpeg.c | 2 | ||||
-rw-r--r-- | src/tracker-extract/tracker-extract-tiff.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/tracker-extract/tracker-extract-jpeg.c b/src/tracker-extract/tracker-extract-jpeg.c index 8097a7ba5..a9f8f6edd 100644 --- a/src/tracker-extract/tracker-extract-jpeg.c +++ b/src/tracker-extract/tracker-extract-jpeg.c @@ -338,7 +338,7 @@ tracker_extract_get_metadata (TrackerExtractInfo *info) } tracker_sparql_builder_insert_close (preupdate); - tracker_sparql_builder_predicate (metadata, "nco:representative"); + tracker_sparql_builder_predicate (metadata, "nco:contributor"); tracker_sparql_builder_object_iri (metadata, uri); g_free (uri); } diff --git a/src/tracker-extract/tracker-extract-tiff.c b/src/tracker-extract/tracker-extract-tiff.c index d14ac79e9..d1c6d50ec 100644 --- a/src/tracker-extract/tracker-extract-tiff.c +++ b/src/tracker-extract/tracker-extract-tiff.c @@ -606,7 +606,7 @@ tracker_extract_get_metadata (TrackerExtractInfo *info) } tracker_sparql_builder_insert_close (preupdate); - tracker_sparql_builder_predicate (metadata, "nco:representative"); + tracker_sparql_builder_predicate (metadata, "nco:contributor"); tracker_sparql_builder_object_iri (metadata, uri); g_free (uri); } |