[tracker] tracker-extract-playlist: Don't relate list entries through nie:isStoredAs



commit 27a63de9f94c3320afaa16af6f20b49111cf67e6
Author: Carlos Garnacho <carlos lanedo com>
Date:   Mon Mar 8 14:04:58 2010 +0100

    tracker-extract-playlist: Don't relate list entries through nie:isStoredAs
    
    nie:MediaFileListEntry isn't supposed to be a nie:DataObject, so the use
    of nie:isStoredAs to relate these with the nfo:MediaList is wrong, plus
    it ends up in sparql errors that prevent the addition of playlists to the
    database.

 src/tracker-extract/tracker-extract-playlist.c |   16 ----------------
 1 files changed, 0 insertions(+), 16 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-playlist.c b/src/tracker-extract/tracker-extract-playlist.c
index 801e9d2..f6b02f0 100644
--- a/src/tracker-extract/tracker-extract-playlist.c
+++ b/src/tracker-extract/tracker-extract-playlist.c
@@ -91,19 +91,6 @@ entry_parsed (TotemPlParser *parser, const gchar *to_uri, GHashTable *to_metadat
 	tracker_sparql_builder_predicate (data->metadata, "a");
 	tracker_sparql_builder_object (data->metadata, "nfo:MediaFileListEntry");
 
-	/* The DO for the entries is needed for writeback, which depends on nie:isStoredAs
-	 * being set. You can see it as "is stored in" instead of as ;) */
-
-	tracker_sparql_builder_predicate (data->metadata, "a");
-	tracker_sparql_builder_object (data->metadata, "nie:DataObject");
-	tracker_sparql_builder_predicate (data->metadata, "a");
-	tracker_sparql_builder_object (data->metadata, "nie:InformationElement");
-
-	tracker_sparql_builder_predicate (data->metadata, "nie:isStoredAs");
-	tracker_sparql_builder_object_iri (data->metadata, data->uri);
-	tracker_sparql_builder_predicate (data->metadata, "nie:url");
-	tracker_sparql_builder_object_string (data->metadata, data->uri);
-
 	tracker_sparql_builder_predicate (data->metadata, "nfo:entryContent");
 	tracker_sparql_builder_object_unvalidated (data->metadata, to_uri);
 
@@ -145,9 +132,6 @@ extract_playlist (const gchar          *uri,
 	tracker_sparql_builder_predicate (metadata, "a");
 	tracker_sparql_builder_object (metadata, "nfo:MediaList");
 
-	tracker_sparql_builder_predicate (metadata, "nie:isStoredAs");
-	tracker_sparql_builder_object_iri (metadata, uri);
-
 	result = totem_pl_parser_parse (pl, uri, FALSE);
 
 	switch (result) {



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