[tracker/on-extractor-error: 4/5] miners/fs: Don't write nie:isStoredAs anymore



commit c87addbf7603908c8c80851d3b6bbfe977d2f5b2
Author: Philip Van Hoof <philip codeminded be>
Date:   Tue May 3 17:51:58 2011 +0200

    miners/fs: Don't write nie:isStoredAs anymore

 src/miners/fs/tracker-miner-files.c |   15 +++++----------
 1 files changed, 5 insertions(+), 10 deletions(-)
---
diff --git a/src/miners/fs/tracker-miner-files.c b/src/miners/fs/tracker-miner-files.c
index 658c5a8..31e848b 100644
--- a/src/miners/fs/tracker-miner-files.c
+++ b/src/miners/fs/tracker-miner-files.c
@@ -1957,8 +1957,6 @@ extractor_get_embedded_metadata_cb (const gchar *preupdate,
 {
 	ProcessFileData *data = user_data;
 	const gchar *uuid;
-	gboolean is_iri;
-	const gchar *urn;
 
 	if (error) {
 		tracker_sparql_builder_graph_close (data->sparql);
@@ -1970,21 +1968,18 @@ extractor_get_embedded_metadata_cb (const gchar *preupdate,
 		return;
 	}
 
-	urn = miner_files_get_file_urn (data->miner, data->file, &is_iri);
-
 	/* Laying the link between the IE and the DO. We use IE = DO, don't do this
 	 * in case of error so that we can distinguish between succeeded and failed
 	 * files with sparql queries */
 	tracker_sparql_builder_predicate (data->sparql, "a");
 	tracker_sparql_builder_object (data->sparql, "nie:InformationElement");
-	tracker_sparql_builder_predicate (data->sparql, "nie:isStoredAs");
-	if (is_iri) {
-		tracker_sparql_builder_object_iri (data->sparql, urn);
-	} else {
-		tracker_sparql_builder_object (data->sparql, urn);
-	}
 
 	if (sparql && *sparql) {
+		gboolean is_iri;
+		const gchar *urn;
+
+		urn = miner_files_get_file_urn (data->miner, data->file, &is_iri);
+
 		if (is_iri) {
 			gchar *str;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]